Home
last modified time | relevance | path

Searched refs:ls (Results 1 – 25 of 264) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dllex.c26 #define next(ls) (ls->current = zgetc(ls->z)) argument
30 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') argument
44 #define save_and_next(ls) (save(ls, ls->current), next(ls)) argument
47 static l_noret lexerror (LexState *ls, const char *msg, int token);
50 static void save (LexState *ls, int c) { in save() argument
51 Mbuffer *b = ls->buff; in save()
55 lexerror(ls, "lexical element too long", 0); in save()
57 luaZ_resizebuffer(ls->L, b, newsize); in save()
73 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument
76 return (lisprint(token)) ? luaO_pushfstring(ls->L, LUA_QL("%c"), token) : in luaX_token2str()
[all …]
H A Dlparser.c55 static void statement (LexState *ls);
56 static void expr (LexState *ls, expdesc *v);
59 static void anchor_token (LexState *ls) { in anchor_token() argument
61 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); in anchor_token()
62 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) { in anchor_token()
63 TString *ts = ls->t.seminfo.ts; in anchor_token()
64 luaX_newstring(ls, getstr(ts), ts->tsv.len); in anchor_token()
70 static l_noret semerror (LexState *ls, const char *msg) { in semerror() argument
71 ls->t.token = 0; /* remove 'near to' from final message */ in semerror()
72 luaX_syntaxerror(ls, msg); in semerror()
[all …]
H A Dllex.h69 LUAI_FUNC void luaX_setinput (lua_State *L, LexState *ls, ZIO *z,
71 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
72 LUAI_FUNC void luaX_next (LexState *ls);
73 LUAI_FUNC int luaX_lookahead (LexState *ls);
74 LUAI_FUNC l_noret luaX_syntaxerror (LexState *ls, const char *s);
75 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dsfinit.c36 char* ls = ""; in main() local
40 char* ls = "L"; in main() local
54 printf("\t1E%d%s,\n", i, ls); in main()
58 printf("\t{ 1E1%s, 1E2%s, 1E4%s, 1E8%s, 1E16%s, 1E32%s },\n", ls, ls, ls, ls, ls, ls); in main()
59 printf("\t{ 1E-1%s, 1E-2%s, 1E-4%s, 1E-8%s, 1E-16%s, 1E-32%s },\n", ls, ls, ls, ls, ls, ls); in main()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dlc.c835 register Lc_scan_t* ls; in lcscan() local
837 if (!(ls = (Lc_scan_t*)lc)) in lcscan()
839 if (!(ls = newof(0, Lc_scan_t, 1, 0))) in lcscan()
841 ls->lc.code = ls->lc.name = ls->buf; in lcscan()
842 ls->territory = -1; in lcscan()
843 ls->language = elementsof(ls->lc.territory->languages); in lcscan()
844 ls->attribute = elementsof(ls->lc.language->attributes); in lcscan()
846 …if (++ls->attribute >= elementsof(ls->lc.language->attributes) || !(ls->list.attribute = ls->lc.la… in lcscan()
848 …if (++ls->language >= elementsof(ls->lc.territory->languages) || !(ls->lc.language = ls->lc.territ… in lcscan()
850 if (!lc_territories[++ls->territory].code) in lcscan()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_op.c59 __nis_ldap_search_t *ls; in buildLdapSearch() local
64 ls = am(myself, sizeof (*ls)); in buildLdapSearch()
65 if (ls == 0) in buildLdapSearch()
68 ls->base = sdup(myself, T, base); in buildLdapSearch()
69 if (ls->base == 0 && base != 0) in buildLdapSearch()
71 ls->scope = scope; in buildLdapSearch()
74 ls->filterComp = am(myself, numFilterComps * in buildLdapSearch()
75 sizeof (ls->filterComp[0])); in buildLdapSearch()
76 if (ls->filterComp == 0) { in buildLdapSearch()
81 ls->filterComp[i] = sdup(myself, T, filterComp[i]); in buildLdapSearch()
[all …]
H A Dldap_ldap.c63 __nis_ldap_search_t *ls; in lookupLDAP() local
134 ls = buildLdapSearch(base, scope, 0, 0, filter, attrs, 0, 0); in lookupLDAP()
135 if (ls == 0) { in lookupLDAP()
146 rv = ldapSearch(ls, &nrv, 0, &stat); in lookupLDAP()
147 freeLdapSearch(ls); in lookupLDAP()
233 __nis_ldap_search_t ls; in storeLDAP() local
249 ls.numFilterComps = 0; in storeLDAP()
250 ls.filterComp = 0; in storeLDAP()
251 ls.numAttrs = 0; in storeLDAP()
252 ls.attrs = 0; in storeLDAP()
[all …]
H A Dldap_map.c198 __nis_ldap_search_t *ls; in mapFromLDAP() local
240 ls = createLdapRequest(t, rv, 0, 1, &res, NULL); in mapFromLDAP()
243 ls = 0; in mapFromLDAP()
247 ls = createLdapRequest(t, 0, 0, 1, NULL, NULL); in mapFromLDAP()
252 if (ls == 0) { in mapFromLDAP()
271 nqt = (ls->isDN || qin != 0) ? 0 : -1; in mapFromLDAP()
272 rv = ldapSearch(ls, &nqt, 0, ldapStat); in mapFromLDAP()
281 if (ls->isDN || qin == 0) in mapFromLDAP()
286 freeLdapSearch(ls); in mapFromLDAP()
604 __nis_ldap_search_t *ls; in map1qToLDAP() local
[all …]
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dgetgroup.c109 register struct list *ls; local
126 for (ls = list; ls != NULL; ls = ls->nxt) {
127 if (strcmp(ls->name, group) == 0) {
136 ls = &tmplist;
137 ls->name = group;
138 ls->nxt = list;
139 list = ls;
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.h164 #define NLDAP_OR_MIXED_MODE(pidtype, ls) \ argument
165 (NLDAP_MODE(pidtype, ls) || MIXED_MODE(pidtype, ls))
166 #define AD_OR_MIXED_MODE(pidtype, ls)\ argument
167 (AD_MODE(pidtype, ls) || MIXED_MODE(pidtype, ls))
168 #define NLDAP_MODE(pidtype, ls) \ argument
169 ((PID_UID_OR_UNKNOWN(pidtype) && (ls)->nm_siduid == IDMAP_NM_NLDAP) || \
170 (PID_GID_OR_UNKNOWN(pidtype) && (ls)->nm_sidgid == IDMAP_NM_NLDAP))
171 #define AD_MODE(pidtype, ls) \ argument
172 ((PID_UID_OR_UNKNOWN(pidtype) && (ls)->nm_siduid == IDMAP_NM_AD) || \
173 (PID_GID_OR_UNKNOWN(pidtype) && (ls)->nm_sidgid == IDMAP_NM_AD))
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/
H A Dacl_common.kshlib46 ls -ld $obj | awk '{print $1}'
61 ls -vd $obj | nawk '(NR != 1) {print $0}'
76 ls -Vd $obj | nawk '(NR != 1) {print $0}'
188 ls -ld $obj | awk '{print $1}' | grep "+$" > /dev/null
205 ls -vd $obj | awk '(NR == 1) {print $1}' | grep "+$" > /dev/null
255 ls -vd $1 | nawk 'BEGIN {count=0}
293 ls $args $file > $tmpfile
370 chgusr_exec $user ls -l $node > /dev/null 2>&1
412 for xattr in `runat $obj ls | \
431 value=$(ls -dl $node | awk '{print $3}')
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_lease.c61 smb2_lease_hold(smb_lease_t *ls) in smb2_lease_hold() argument
65 mutex_enter(&ls->ls_mutex); in smb2_lease_hold()
66 ret = !ls->ls_destroying; in smb2_lease_hold()
68 ls->ls_refcnt++; in smb2_lease_hold()
69 mutex_exit(&ls->ls_mutex); in smb2_lease_hold()
75 lease_destroy(smb_lease_t *ls) in lease_destroy() argument
77 smb_node_release(ls->ls_node); in lease_destroy()
78 mutex_destroy(&ls->ls_mutex); in lease_destroy()
79 kmem_cache_free(smb_lease_cache, ls); in lease_destroy()
83 smb2_lease_rele(smb_lease_t *ls) in smb2_lease_rele() argument
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_011_pos.ksh80 FILE_COUNT=`ls -Al $SNAPDIR | grep -v "total" | wc -l`
82 ls -Al $SNAPDIR
100 FILE_COUNT=`ls -Al $TESTDIR/after* 2> /dev/null | grep -v "total" | wc -l`
102 ls -Al $TESTDIR
106 FILE_COUNT=`ls -Al $TESTDIR/before* 2> /dev/null \
109 ls -Al $TESTDIR
H A Drollback_001_pos.ksh82 FILE_COUNT=`ls -Al $SNAPDIR | grep -v "total" | wc -l`
84 ls -Al $SNAPDIR
103 FILE_COUNT=`ls -Al $TESTDIR/after* 2> /dev/null | grep -v "total" | wc -l`
105 ls -Al $TESTDIR
109 FILE_COUNT=`ls -Al $TESTDIR/before* 2> /dev/null \
112 ls -Al $TESTDIR
H A Drollback_002_pos.ksh86 FILE_COUNT=`ls -Al $SNAPDIR | grep -v "total" | wc -l`
88 ls -Al $SNAPDIR
120 FILE_COUNT=`ls -Al $TESTDIR/aftersecond* 2> /dev/null \
123 ls -Al $TESTDIR
127 FILE_COUNT=`ls -Al $TESTDIR/original* $TESTDIR/afterfirst*| grep -v "total" | wc -l`
129 ls -Al $TESTDIR
H A Dsnapshot_004_pos.ksh67 FILE_COUNT=`ls -Al $SNAPDIR | grep -v "total 0" | wc -l`
69 ls $SNAPDIR
84 FILE_COUNT=`ls -Al $SNAPDIR | grep -v "total 0" | wc -l`
86 ls $SNAPDIR
/illumos-gate/usr/src/test/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_mtime.ksh50 o_atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}')
51 o_ctime=$(ls -E% all $TESTDIR/clone/file | awk '/ctime/ {print $4}')
52 o_mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}')
55 atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}')
56 ctime=$(ls -E% all $TESTDIR/clone/file | awk '/ctime/ {print $4}')
57 mtime=$(ls -E% all $TESTDIR/clone/file | awk '/mtime/ {print $4}')
/illumos-gate/usr/src/test/libc-tests/tests/
H A Dtimespec_get.c45 timespec_cmp(const struct timespec *ls, const struct timespec *rs) in timespec_cmp() argument
47 if (ls->tv_sec > rs->tv_sec) in timespec_cmp()
49 if (ls->tv_sec < rs->tv_sec) in timespec_cmp()
51 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
53 if (ls->tv_nsec > rs->tv_nsec) in timespec_cmp()
55 if (ls->tv_nsec < rs->tv_nsec) in timespec_cmp()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwbrdr.c52 chtype ls, chtype rs, chtype ts, chtype bs, in wborder() argument
61 w, ls, rs, ts, bs, tl, tr, bl, br in wborder()
65 if (ls == 0) in wborder()
66 ls = ACS_VLINE; in wborder()
67 (void) __m_acs_cc(ls, &wls); in wborder()
H A Dbrdr_st.c47 border_set(ls, rs, ts, bs, tl, tr, bl, br) in border_set() argument
48 const cchar_t *ls, *rs, *ts, *bs, *tl, *tr, *bl, *br; in border_set()
55 ls, rs, ts, bs, tl, tr, bl, br
59 code = wborder_set(stdscr, ls, rs, ts, bs, tl, tr, bl, br);
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dpath.sh107 print 'print hi' > ls
108 if [[ $($SHELL ls 2> /dev/null) != hi ]]
111 if [[ $(ls -d . 2>/dev/null) == . && $(PATH=/bin:/usr/bin:$PATH ls -d . 2>/dev/null) != . ]]
231 if whence ls > /dev/null
250 x=$(whence ls)
251 PATH=.:$PWD:${x%/ls}
252 [[ $(whence ls) == "$x" ]] || err_exit 'PATH search bug when .:$PWD in path'
253 PATH=$PWD:.:${x%/ls}
254 [[ $(whence ls) == "$x" ]] || err_exit 'PATH search bug when :$PWD:. in path'
256 [[ $(whence ls) == /* ]] || err_exit 'whence not generating absolute pathname'
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount_008_pos.ksh83 log_mustnot ls $testfile
84 log_must ls $mntpnt/$TESTFILE1 $mntpnt/$TESTFILE2
90 log_must ls $testfile1 $mntpnt1/$TESTFILE2
93 log_mustnot ls $mntpnt/$TESTFILE2
94 log_must ls $testfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_inherit_002_neg.ksh195 ls -vd $basedir
196 ls -vd $node
205 ls -vd $basedir
206 ls -vd $node
215 ls -vd $basedir
216 ls -vd $node
234 ls -vd $basedir
235 ls -vd $node
/illumos-gate/usr/src/boot/common/linenoise/
H A Dlinenoise.c219 static int completeLine(struct linenoiseState *ls) { in completeLine() argument
224 completionCallback(ls->buf,&lc); in completeLine()
233 struct linenoiseState saved = *ls; in completeLine()
235 ls->len = ls->pos = strlen(lc.cvec[i]); in completeLine()
236 ls->buf = lc.cvec[i]; in completeLine()
237 refreshLine(ls); in completeLine()
238 ls->len = saved.len; in completeLine()
239 ls->pos = saved.pos; in completeLine()
240 ls->buf = saved.buf; in completeLine()
242 refreshLine(ls); in completeLine()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPlwpregs.c660 lwpstatus_t ls; in Plwp_stack() local
661 if (getlwpfile(P, lwpid, "lwpstatus", &ls, sizeof (ls)) != 0) in Plwp_stack()
663 addr = ls.pr_ustack; in Plwp_stack()
693 lwpstatus_t ls; in Plwp_main_stack() local
701 if (getlwpfile(P, lwpid, "lwpstatus", &ls, sizeof (ls)) != 0) in Plwp_main_stack()
707 ls = lwp->lwp_status; in Plwp_main_stack()
710 addr = ls.pr_ustack; in Plwp_main_stack()
742 ucontext_t *ctxp = (void *)ls.pr_oldcontext; in Plwp_main_stack()
749 ucontext32_t *ctxp = (void *)ls.pr_oldcontext; in Plwp_main_stack()
772 lwpstatus_t ls; in Plwp_alt_stack() local
[all …]

1234567891011