| /netbsd-src/external/mit/lua/dist/src/ |
| H A D | llex.c | 36 #define next(ls) (ls->current = zgetc(ls->z)) argument 40 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') argument 55 #define save_and_next(ls) (save(ls, ls->current), next(ls)) argument 58 static l_noret lexerror (LexState *ls, const char *msg, int token); 61 static void save (LexState *ls, int c) { in save() argument 62 Mbuffer *b = ls->buff; in save() 66 lexerror(ls, "lexical element too long", 0); in save() 68 luaZ_resizebuffer(ls->L, b, newsize); in save() 86 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument 89 return luaO_pushfstring(ls->L, "'%c'", token); in luaX_token2str() [all …]
|
| H A D | lparser.c | 68 static void statement (LexState *ls); 69 static void expr (LexState *ls, expdesc *v); 72 static l_noret error_expected (LexState *ls, int token) { in error_expected() argument 73 luaX_syntaxerror(ls, in error_expected() 74 luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token))); in error_expected() 79 lua_State *L = fs->ls->L; in errorlimit() 87 luaX_syntaxerror(fs->ls, msg); in errorlimit() 99 static int testnext (LexState *ls, int c) { in testnext() argument 100 if (ls->t.token == c) { in testnext() 101 luaX_next(ls); in testnext() [all …]
|
| H A D | llex.h | 90 LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, 92 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l); 93 LUAI_FUNC void luaX_next (LexState *ls); 94 LUAI_FUNC int luaX_lookahead (LexState *ls); 95 LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s); 96 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
|
| /netbsd-src/external/mit/isl/dist/ |
| H A D | isl_local_space.c | 27 isl_ctx *isl_local_space_get_ctx(__isl_keep isl_local_space *ls) in isl_local_space_get_ctx() argument 29 return ls ? ls->dim->ctx : NULL; in isl_local_space_get_ctx() 34 uint32_t isl_local_space_get_hash(__isl_keep isl_local_space *ls) in isl_local_space_get_hash() argument 38 if (!ls) in isl_local_space_get_hash() 42 space_hash = isl_space_get_full_hash(isl_local_space_peek_space(ls)); in isl_local_space_get_hash() 44 div_hash = isl_mat_get_hash(ls->div); in isl_local_space_get_hash() 54 isl_local_space *ls = NULL; in isl_local_space_alloc_div() local 60 ls = isl_calloc_type(ctx, struct isl_local_space); in isl_local_space_alloc_div() 61 if (!ls) in isl_local_space_alloc_div() 64 ls->ref = 1; in isl_local_space_alloc_div() [all …]
|
| H A D | isl_local_space_private.h | 15 isl_stat isl_local_space_check_range(__isl_keep isl_local_space *ls, 18 uint32_t isl_local_space_get_hash(__isl_keep isl_local_space *ls); 26 __isl_keep isl_local_space *ls); 29 __isl_take isl_local_space *ls, int a, int b); 31 __isl_take isl_local_space *ls, __isl_take isl_vec *div); 37 isl_size isl_local_space_var_offset(__isl_keep isl_local_space *ls, 39 unsigned isl_local_space_offset(__isl_keep isl_local_space *ls, 41 isl_bool isl_local_space_involves_dims(__isl_keep isl_local_space *ls, 45 __isl_take isl_local_space *ls, __isl_take isl_mat *div); 46 isl_bool isl_local_space_div_is_marked_unknown(__isl_keep isl_local_space *ls, [all …]
|
| H A D | isl_sort.c | 56 char *a1, *al, *am, *ah, *ls, *hs, *lo, *hi, *b; in msort() local 77 ls = lo; in msort() 92 ls = lo; in msort() 101 if (lo > ls) { in msort() 102 memcpy (b, ls, lo - ls); in msort() 103 copied += (lo - ls); in msort() 104 b += (lo - ls); in msort() 111 memcpy (b, ls, lo - ls); in msort() 112 copied += (lo - ls); in msort() 113 b += (lo - ls); in msort()
|
| H A D | isl_constraint.c | 32 return c ? isl_local_space_get_ctx(c->ls) : NULL; in isl_constraint_get_ctx() 37 return isl_local_space_dim(c->ls, type); in n() 42 return isl_local_space_offset(c->ls, type); in offset() 46 __isl_take isl_local_space *ls, __isl_take isl_vec *v) in isl_constraint_alloc_vec() argument 50 if (!ls || !v) in isl_constraint_alloc_vec() 59 constraint->ls = ls; in isl_constraint_alloc_vec() 64 isl_local_space_free(ls); in isl_constraint_alloc_vec() 70 __isl_take isl_local_space *ls) in isl_constraint_alloc() argument 76 dim = isl_local_space_dim(ls, isl_dim_all); in isl_constraint_alloc() 78 ls = isl_local_space_free(ls); in isl_constraint_alloc() [all …]
|
| H A D | isl_aff.c | 73 __isl_take isl_local_space *ls, __isl_take isl_vec *v) in isl_aff_alloc_vec_validated() argument 77 if (!ls || !v) in isl_aff_alloc_vec_validated() 85 aff->ls = ls; in isl_aff_alloc_vec_validated() 90 isl_local_space_free(ls); in isl_aff_alloc_vec_validated() 101 __isl_give isl_aff *isl_aff_alloc_vec(__isl_take isl_local_space *ls, in isl_aff_alloc_vec() argument 106 if (!ls) in isl_aff_alloc_vec() 109 ctx = isl_local_space_get_ctx(ls); in isl_aff_alloc_vec() 110 if (!isl_local_space_divs_known(ls)) in isl_aff_alloc_vec() 113 if (!isl_local_space_is_set(ls)) in isl_aff_alloc_vec() 117 return isl_aff_alloc_vec_validated(ls, v); in isl_aff_alloc_vec() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | ldap_sync.c | 65 ldap_sync_t *ls = ls_in; in ldap_sync_initialize() local 67 if ( ls == NULL ) { in ldap_sync_initialize() 68 ls = ldap_memalloc( sizeof( ldap_sync_t ) ); in ldap_sync_initialize() 69 if ( ls == NULL ) { in ldap_sync_initialize() 73 memset( ls, 0, sizeof( ldap_sync_t ) ); in ldap_sync_initialize() 75 ls->ls_scope = LDAP_SCOPE_SUBTREE; in ldap_sync_initialize() 76 ls->ls_timeout = -1; in ldap_sync_initialize() 78 return ls; in ldap_sync_initialize() 85 ldap_sync_destroy( ldap_sync_t *ls, int freeit ) in ldap_sync_destroy() argument 87 assert( ls != NULL ); in ldap_sync_destroy() [all …]
|
| /netbsd-src/external/mit/isl/dist/include/isl/ |
| H A D | local_space.h | 16 isl_ctx *isl_local_space_get_ctx(__isl_keep isl_local_space *ls); 22 __isl_keep isl_local_space *ls); 24 __isl_take isl_local_space *ls); 26 isl_bool isl_local_space_is_params(__isl_keep isl_local_space *ls); 27 isl_bool isl_local_space_is_set(__isl_keep isl_local_space *ls); 30 __isl_take isl_local_space *ls, 33 isl_size isl_local_space_dim(__isl_keep isl_local_space *ls, 35 isl_bool isl_local_space_has_dim_name(__isl_keep isl_local_space *ls, 37 const char *isl_local_space_get_dim_name(__isl_keep isl_local_space *ls, 40 __isl_take isl_local_space *ls, [all …]
|
| /netbsd-src/sys/arch/sparc/sparc/ |
| H A D | cache.c | 108 u_int i, lim, ls, ts; in sun4_cache_enable() local 117 ls = CACHEINFO.c_linesize; in sun4_cache_enable() 120 for (i = AC_CACHETAGS, lim = i + ts; i < lim; i += ls) in sun4_cache_enable() 209 int i, ls, ts; in hypersparc_cache_enable() local 223 ls = CACHEINFO.c_linesize; in hypersparc_cache_enable() 229 for (i = 0; i < ts; i += ls) in hypersparc_cache_enable() 259 int i, ls, ts; in swift_cache_enable() local 270 ls = CACHEINFO.ic_linesize; in swift_cache_enable() 273 for (i = 0; i < ts; i += ls) in swift_cache_enable() 276 ls = CACHEINFO.dc_linesize; in swift_cache_enable() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/spu/ |
| H A D | spu_mfcio.h | 192 #define mfc_put( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 193 #define mfc_putf( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 194 #define mfc_putb( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 195 #define mfc_get( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 196 #define mfc_getf( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 197 #define mfc_getb( ls,ea,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),mfc_ea2l(ea),size,tag,MFC_CM… argument 200 #define mfc_putl( ls,ea,lsa,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),(unsigned int)(lsa),siz… argument 201 #define mfc_putlf( ls,ea,lsa,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),(unsigned int)(lsa),siz… argument 202 #define mfc_putlb( ls,ea,lsa,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),(unsigned int)(lsa),siz… argument 203 #define mfc_getl( ls,ea,lsa,size,tag,tid,rid) spu_mfcdma64(ls,mfc_ea2h(ea),(unsigned int)(lsa),siz… argument [all …]
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_sysctl.c | 166 struct linux___sysctl ls; in linux_sys___sysctl() local 173 if ((error = copyin(SCARG(uap, lsp), &ls, sizeof(ls)))) in linux_sys___sysctl() 180 if (ls.oldlenp != NULL) { in linux_sys___sysctl() 181 error = copyin(ls.oldlenp, &oldlen, sizeof(oldlen)); in linux_sys___sysctl() 191 if (ls.nlen > CTL_MAXNAME || ls.nlen < 1) in linux_sys___sysctl() 193 error = copyin(ls.name, &name, ls.nlen * sizeof(int)); in linux_sys___sysctl() 197 ktrmib(name, ls.nlen); in linux_sys___sysctl() 202 sysctl_lock(ls.newval != NULL); in linux_sys___sysctl() 203 error = sysctl_dispatch(&name[0], ls.nlen, in linux_sys___sysctl() 204 ls.oldval, &oldlen, in linux_sys___sysctl() [all …]
|
| H A D | linux_oldselect.c | 64 struct linux_oldselect ls; in linux_sys_oldselect() local 67 if ((error = copyin(SCARG(uap, lsp), &ls, sizeof(ls)))) in linux_sys_oldselect() 70 return linux_select1(l, retval, ls.nfds, ls.readfds, ls.writefds, in linux_sys_oldselect() 71 ls.exceptfds, ls.timeout); in linux_sys_oldselect()
|
| H A D | linux_ipc.c | 156 bsd_to_linux_semid_ds(struct semid_ds *bs, struct linux_semid_ds *ls) in bsd_to_linux_semid_ds() argument 159 memset(ls, 0, sizeof *ls); in bsd_to_linux_semid_ds() 160 bsd_to_linux_ipc_perm(&bs->sem_perm, &ls->l_sem_perm); in bsd_to_linux_semid_ds() 161 ls->l_sem_otime = bs->sem_otime; in bsd_to_linux_semid_ds() 162 ls->l_sem_ctime = bs->sem_ctime; in bsd_to_linux_semid_ds() 163 ls->l_sem_nsems = bs->sem_nsems; in bsd_to_linux_semid_ds() 167 bsd_to_linux_semid64_ds(struct semid_ds *bs, struct linux_semid64_ds *ls) in bsd_to_linux_semid64_ds() argument 170 memset(ls, 0, sizeof *ls); in bsd_to_linux_semid64_ds() 171 bsd_to_linux_ipc64_perm(&bs->sem_perm, &ls->l_sem_perm); in bsd_to_linux_semid64_ds() 172 ls->l_sem_otime = bs->sem_otime; in bsd_to_linux_semid64_ds() [all …]
|
| /netbsd-src/external/bsd/am-utils/dist/scripts/ |
| H A D | test-attrcache.in | 55 inode_a=`ls -lLi /tmp/a | awk '{print $1}'` 56 inode_b=`ls -lLi /tmp/b | awk '{print $1}'` 57 ls -lLi $a/a 58 ls -lLi $a/b 59 ls -l $mapfile 71 ls -l $mapfile 73 ino=`ls -lLi $a/a | awk '{print $1}'` 76 ls -li $a/a 86 ls -li $a/a 107 ls -l $mapfile [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/mpn/sparc64/ |
| H A D | dive_1.c | 67 mp_limb_t inverse, s, s_next, c, l, ls, q; in mpn_divexact_1() local 114 ls = (s >> rshift) | ((s_next << lshift) & lshift_mask); in mpn_divexact_1() 117 SUBC_LIMB (c, l, ls, c); in mpn_divexact_1() 129 ls = s >> rshift; in mpn_divexact_1() 130 l = ls - c; in mpn_divexact_1() 141 ls = (s >> rshift) | ((s_next << lshift) & lshift_mask); in mpn_divexact_1() 144 SUBC_LIMB (c, l, ls, c); in mpn_divexact_1() 156 ls = s >> rshift; in mpn_divexact_1() 157 l = ls - c; in mpn_divexact_1()
|
| /netbsd-src/sys/dev/usb/ |
| H A D | uxrcom.c | 245 usb_cdc_line_state_t ls; in uxrcom_param() local 255 USETDW(ls.dwDTERate, t->c_ospeed); in uxrcom_param() 257 ls.bCharFormat = UCDC_STOP_BIT_2; in uxrcom_param() 259 ls.bCharFormat = UCDC_STOP_BIT_1; in uxrcom_param() 262 ls.bParityType = UCDC_PARITY_ODD; in uxrcom_param() 264 ls.bParityType = UCDC_PARITY_EVEN; in uxrcom_param() 266 ls.bParityType = UCDC_PARITY_NONE; in uxrcom_param() 269 ls.bDataBits = 5; in uxrcom_param() 272 ls.bDataBits = 6; in uxrcom_param() 275 ls.bDataBits = 7; in uxrcom_param() [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/tests/ |
| H A D | xgettext-lisp-1 | 9 cat <<EOF > xg-ls-1.lisp 25 -d xg-ls-1 xg-ls-1.lisp 29 cat <<EOF > xg-ls-1.ok 48 ${DIFF} xg-ls-1.ok xg-ls-1.po
|
| /netbsd-src/tests/lib/librumpclient/ |
| H A D | t_fd.c | 106 int ls; in ATF_TC_BODY() local 117 RL(ls = rump_sys_socket(PF_INET, SOCK_STREAM, 0)); in ATF_TC_BODY() 119 RL(rump_sys_fcntl(ls, F_SETOWN, rump_sys_getpid())); in ATF_TC_BODY() 120 RL(fl = rump_sys_fcntl(ls, F_GETFL)); in ATF_TC_BODY() 121 RL(rump_sys_fcntl(ls, F_SETFL, fl | O_ASYNC)); in ATF_TC_BODY() 127 RL(rump_sys_bind(ls, (struct sockaddr *)&sin, sizeof(sin))); in ATF_TC_BODY() 128 RL(rump_sys_listen(ls, 5)); in ATF_TC_BODY()
|
| /netbsd-src/sys/dev/dec/ |
| H A D | dzkbd.c | 152 struct dz_linestate *ls; in dzkbd_attach() local 159 ls = &dz->sc_dz[daa->daa_line]; in dzkbd_attach() 169 dzi->dzi_ks.attmt.cookie = ls; in dzkbd_attach() 171 dzi->dzi_ls = ls; in dzkbd_attach() 197 dzkbd_cnattach(struct dz_linestate *ls) in dzkbd_cnattach() argument 201 dzkbd_console_internal.dzi_ks.attmt.cookie = ls; in dzkbd_cnattach() 203 dzkbd_console_internal.dzi_ls = ls; in dzkbd_cnattach() 223 struct dz_linestate *ls = v; in dzkbd_sendchar() local 227 dzputc(ls, c); in dzkbd_sendchar()
|
| /netbsd-src/sys/arch/vax/uba/ |
| H A D | qvkbd.c | 158 struct qvaux_linestate *ls; in qvkbd_attach() local 165 ls = &qvaux->sc_qvaux[daa->daa_line]; in qvkbd_attach() 174 qvi->qvi_ks.attmt.cookie = ls; in qvkbd_attach() 176 qvi->qvi_ls = ls; in qvkbd_attach() 203 qvkbd_cnattach(struct qvaux_linestate *ls) in qvkbd_cnattach() argument 207 qvkbd_console_internal.qvi_ks.attmt.cookie = ls; in qvkbd_cnattach() 209 qvkbd_console_internal.qvi_ls = ls; in qvkbd_cnattach() 229 struct qvaux_linestate *ls = v; in qvkbd_sendchar() local 233 qvauxputc(ls, c); in qvkbd_sendchar()
|
| /netbsd-src/sys/arch/alpha/alpha/ |
| H A D | dec_6600.c | 462 struct ev6_logout_sys *ls = in dec_6600_mcheck_sys() local 467 IPRINTF(indent, FMT, "Software Error Summary Flags", ls->flags); in dec_6600_mcheck_sys() 469 IPRINTF(indent, FMT, "CPU Device Interrupt Requests", ls->dir); in dec_6600_mcheck_sys() 470 tsc_print_dir(indent + 1, ls->dir); in dec_6600_mcheck_sys() 472 IPRINTF(indent, FMT, "Cchip Miscellaneous Register", ls->misc); in dec_6600_mcheck_sys() 473 tsc_print_misc(indent + 1, ls->misc); in dec_6600_mcheck_sys() 475 IPRINTF(indent, FMT, "Pchip 0 Error Register", ls->p0_error); in dec_6600_mcheck_sys() 476 if (ls->flags & 0x5) in dec_6600_mcheck_sys() 477 tsp_print_error(indent + 1, ls->p0_error); in dec_6600_mcheck_sys() 479 IPRINTF(indent, FMT, "Pchip 1 Error Register", ls->p1_error); in dec_6600_mcheck_sys() [all …]
|
| /netbsd-src/sys/arch/pmax/ibus/ |
| H A D | dz_ibus.c | 396 dzgetc(struct dz_linestate *ls) in dzgetc() argument 402 if (ls == NULL) { in dzgetc() 409 line = ls->dz_line; in dzgetc() 410 dzr = (volatile struct dzregs *)ls->dz_sc->sc_ioh; in dzgetc() 427 dzputc(struct dz_linestate *ls, int ch) in dzputc() argument 438 if (ls != NULL && ls->dz_sc != NULL) { in dzputc() 439 line = ls->dz_line; in dzputc() 440 dzr = (volatile struct dzregs *)ls->dz_sc->sc_ioh; in dzputc() 442 putc(ch, &ls->dz_tty->t_outq); in dzputc() 449 dzxint(ls->dz_sc); in dzputc()
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
| H A D | rwsnoop_example.txt | 13 0 2848 ls W 58 /devices/pseudo/pts@0:12 14 0 2848 ls W 68 /devices/pseudo/pts@0:12 15 0 2848 ls W 57 /devices/pseudo/pts@0:12 16 0 2848 ls W 67 /devices/pseudo/pts@0:12 17 0 2848 ls W 48 /devices/pseudo/pts@0:12 18 0 2848 ls W 49 /devices/pseudo/pts@0:12 19 0 2848 ls W 33 /devices/pseudo/pts@0:12 20 0 2848 ls W 41 /devices/pseudo/pts@0:12 25 The output scrolls rather fast. Above, we can see an ls command was run, 26 and we can see as ls writes each line. The "<unknown>" read/writes are
|