Home
last modified time | relevance | path

Searched full:ls (Results 1 – 25 of 1192) sorted by relevance

12345678910>>...48

/freebsd/sys/contrib/openzfs/module/lua/
H A Dllex.c24 #define next(ls) (ls->current = zgetc(ls->z)) argument
28 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') argument
42 #define save_and_next(ls) (save(ls, ls->current), next(ls)) argument
45 static l_noret lexerror (LexState *ls, const char *msg, int token);
48 static void save (LexState *ls, int c) { in save() argument
49 Mbuffer *b = ls->buff; in save()
53 lexerror(ls, "lexical element too long", 0); in save()
55 luaZ_resizebuffer(ls->L, b, newsize); in save()
71 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument
74 return (lisprint(token)) ? luaO_pushfstring(ls->L, LUA_QL("%c"), token) : in luaX_token2str()
[all …]
H A Dlparser.c53 static void statement (LexState *ls);
54 static void expr (LexState *ls, expdesc *v);
57 static void anchor_token (LexState *ls) { in anchor_token() argument
59 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); in anchor_token()
60 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) { in anchor_token()
61 TString *ts = ls->t.seminfo.ts; in anchor_token()
62 luaX_newstring(ls, getstr(ts), ts->tsv.len); in anchor_token()
68 static l_noret semerror (LexState *ls, const char *msg) { in semerror() argument
69 ls->t.token = 0; /* remove 'near to' from final message */ in semerror()
70 luaX_syntaxerror(ls, msg); in semerror()
[all …]
/freebsd/contrib/lua/src/
H A Dllex.c32 #define next(ls) (ls->current = zgetc(ls->z)) argument
36 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') argument
51 #define save_and_next(ls) (save(ls, ls->current), next(ls)) argument
54 static l_noret lexerror (LexState *ls, const char *msg, int token);
57 static void save (LexState *ls, int c) { in save() argument
58 Mbuffer *b = ls->buff; in save()
62 lexerror(ls, "lexical element too long", 0); in save()
64 luaZ_resizebuffer(ls->L, b, newsize); in save()
82 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument
85 return luaO_pushfstring(ls->L, "'%c'", token); in luaX_token2str()
[all …]
H A Dlparser.c64 static void statement (LexState *ls);
65 static void expr (LexState *ls, expdesc *v);
68 static l_noret error_expected (LexState *ls, int token) { in error_expected() argument
69 luaX_syntaxerror(ls, in error_expected()
70 luaO_pushfstring(ls->L, "%s expected", luaX_token2str(ls, token))); in error_expected()
75 lua_State *L = fs->ls->L; in errorlimit()
83 luaX_syntaxerror(fs->ls, msg); in errorlimit()
95 static int testnext (LexState *ls, int c) { in testnext() argument
96 if (ls->t.token == c) { in testnext()
97 luaX_next(ls); in testnext()
[all …]
/freebsd/contrib/libedit/TEST/
H A Dtest_filecompletion.c55 L"ls ang",
58 L"ls ang\\<ular\\>test "
61 /* test angular bracket inside double quotes: ls "dq_ang */
62 L"ls \"dq_ang",
65 L"ls \"dq_ang<ular>test\""
68 /* test angular bracket inside singlq quotes: ls "sq_ang */
69 L"ls 'sq_ang",
72 L"ls 'sq_ang<ular>test'"
76 L"ls back",
79 L"ls backslash\\\\test "
[all …]
/freebsd/lib/libifconfig/
H A Dlibifconfig_lagg.c68 struct _ifconfig_lagg_status *ls; in ifconfig_lagg_get_lagg_status() local
70 ls = calloc(1, sizeof(struct _ifconfig_lagg_status)); in ifconfig_lagg_get_lagg_status()
71 if (ls == NULL) { in ifconfig_lagg_get_lagg_status()
76 ls->l.ra = &ls->ra; in ifconfig_lagg_get_lagg_status()
77 ls->l.ro = &ls->ro; in ifconfig_lagg_get_lagg_status()
78 ls->l.rf = &ls->rf; in ifconfig_lagg_get_lagg_status()
79 *lagg_status = &ls->l; in ifconfig_lagg_get_lagg_status()
81 ls->ra.ra_port = ls->rpbuf; in ifconfig_lagg_get_lagg_status()
82 ls->ra.ra_size = sizeof(ls->rpbuf); in ifconfig_lagg_get_lagg_status()
84 strlcpy(ls->ro.ro_ifname, name, sizeof(ls->ro.ro_ifname)); in ifconfig_lagg_get_lagg_status()
[all …]
/freebsd/lib/libc/tests/gen/
H A Dfmtmsg_test.c53 MM_UTIL | MM_PRINT, "BSD:ls", MM_ERROR,
54 "illegal option -- z", "refer to manual", "BSD:ls:001",
56 "BSD:ls: ERROR: illegal option -- z\n"
57 "TO FIX: refer to manual BSD:ls:001\n"
60 MM_UTIL | MM_PRINT, "BSD:ls", MM_ERROR,
61 "illegal option -- z", "refer to manual", "BSD:ls:001",
64 "TO FIX: refer to manual BSD:ls:001\n"
67 MM_UTIL | MM_PRINT, "BSD:ls", MM_ERROR,
68 "illegal option -- z", "refer to manual", "BSD:ls:001",
73 MM_UTIL | MM_PRINT, "BSD:ls", MM_ERROR,
[all …]
/freebsd/bin/sh/tests/builtins/
H A Dcommand13.016 check "$(cd /bin && PATH=. command -v ls)" /bin/ls /bin/./ls
17 check "$(cd /bin && PATH=:/var/empty/nosuch command -v ls)" /bin/ls /bin/./ls
18 check "$(cd / && PATH=bin command -v ls)" /bin/ls
19 check "$(cd / && command -v bin/ls)" /bin/ls
20 check "$(cd /bin && command -v ./ls)" /bin/ls /bin/./ls
H A Dcommand6.02 case $(command -pV ls) in
3 */var/empty/ls*)
4 echo "Failed: \$(command -pV ls) should not match */var/empty/ls*" ;;
5 "ls is"*" "/*/ls) ;;
7 echo "Failed: \$(command -pV ls) match \"ls is\"*\" \"/*/ls" ;;
10 command -pV /bin/ls
H A Dbuiltin1.013 builtin ls 2>/dev/null && echo "Bad return code at $LINENO"
20 check '-z "$( (builtin ls) 2>/dev/null)"'
21 check '-z "$(builtin ls 2>/dev/null)"'
22 check '-z "$(builtin ls 2>/dev/null; :)"'
26 check '-n "$( (builtin ls) 2>&1)"'
27 check '-n "$(builtin ls 2>&1)"'
28 check '-n "$(builtin ls 2>&1; :)"'
/freebsd/tests/sys/acl/
H A Dtools-crossfs.test59 $ ls -l posix/xxx | cut -d' ' -f1
70 $ ls -l posix/yyy | cut -d' ' -f1
79 $ ls -l posix/xxx | cut -d' ' -f1
83 $ ls -l none/xxx | cut -d' ' -f1
92 $ ls -l posix/xxx | cut -d' ' -f1
101 $ ls -l nfs4/xxx | cut -d' ' -f1
116 $ ls -l nfs4/yyy | cut -d' ' -f1
124 $ ls -l nfs4/xxx | cut -d' ' -f1
127 $ ls -l posix/xxx | cut -d' ' -f1
135 $ ls -l nfs4/xxx | cut -d' ' -f1
[all …]
H A Dtools-posix.test64 # Check whether ls correctly marks files with "+".
65 $ ls -l xxx | cut -d' ' -f1
103 $ ls -l lll | cut -d' ' -f1
107 $ ls -l xxx | cut -d' ' -f1
161 $ ls -l yyy | cut -d' ' -f1
203 $ ls -l xxx | cut -d' ' -f1
215 $ ls -l xxx | cut -d' ' -f1
221 $ ls -l xxx yyy zzz | cut -d' ' -f1
229 $ ls -l nnn xxx yyy zzz | cut -d' ' -f1
230 > ls: nnn: No such file or directory
[all …]
/freebsd/usr.bin/systat/
H A Dzarc.c61 getinfo(struct zarcstats *ls);
187 getinfo(struct zarcstats *ls) in getinfo() argument
198 size_t size = sizeof(ls->hits.arcstats); in getinfo()
200 &ls->hits.arcstats, &size, NULL, 0) != 0) in getinfo()
203 ls->misses.arcstats); in getinfo()
205 ls->hits.arcstats_demand_data); in getinfo()
207 ls->misses.arcstats_demand_data); in getinfo()
209 ls->hits.arcstats_demand_metadata); in getinfo()
211 ls->misses.arcstats_demand_metadata); in getinfo()
213 ls->hits.arcstats_prefetch_data); in getinfo()
[all …]
H A Dvmstat.c727 getinfo(struct Info *ls) in getinfo() argument
733 GETSYSCTL("kern.cp_time", ls->time); in getinfo()
735 GETSYSCTL("vm.stats.sys.v_swtch", ls->v_swtch); in getinfo()
736 GETSYSCTL("vm.stats.sys.v_trap", ls->v_trap); in getinfo()
737 GETSYSCTL("vm.stats.sys.v_syscall", ls->v_syscall); in getinfo()
738 GETSYSCTL("vm.stats.sys.v_intr", ls->v_intr); in getinfo()
739 GETSYSCTL("vm.stats.sys.v_soft", ls->v_soft); in getinfo()
740 GETSYSCTL("vm.stats.vm.v_vm_faults", ls->v_vm_faults); in getinfo()
741 GETSYSCTL("vm.stats.vm.v_io_faults", ls->v_io_faults); in getinfo()
742 GETSYSCTL("vm.stats.vm.v_cow_faults", ls->v_cow_faults); in getinfo()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_ls_001_pos.ksh36 # Verify that '/bin/ls' command option supports ZFS ACL
40 # 2. Verify that 'ls [-dv]' can list the ACEs of ACL of
43 # 4. Verify that 'ls -l' can use the '+' to indicate the non-trivial
65 log_assert "Verify that '$LS' command supports ZFS ACLs."
83 log_note "Verify that '$LS [-dv]' can list file/directory ACEs of its acl."
90 ls_str="$LS -v"
92 ls_str="$LS -dv"
102 log_fail "'$LS [-dv] fails to list file/directroy acls."
105 log_note "Verify that '$LS [-dl] [-dv]' can output '+' to indicate " \
112 log_must eval "$LS -ld -vd $obj | $GREP "+" > /dev/null"
[all …]
/freebsd/tests/sys/kern/
H A Dsendfile_helper.c58 int ls; in tcp_socketpair() local
60 ls = socket(PF_INET, SOCK_STREAM, 0); in tcp_socketpair()
61 if (ls < 0) in tcp_socketpair()
62 err(1, "socket ls"); in tcp_socketpair()
64 if (setsockopt(ls, SOL_SOCKET, SO_REUSEADDR, &(socklen_t){1}, in tcp_socketpair()
68 if (bind(ls, (struct sockaddr *)&sin, sizeof(sin)) < 0) in tcp_socketpair()
69 err(1, "bind ls"); in tcp_socketpair()
71 if (getsockname(ls, (struct sockaddr *)&sin, in tcp_socketpair()
75 if (listen(ls, 5) < 0) in tcp_socketpair()
76 err(1, "listen ls"); in tcp_socketpair()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/acl/trivial/
H A Dzfs_acl_ls_001_pos.ksh36 # Verifies that ls displays @ in the file permissions using ls -@
41 # 2. Verify 'ls -l' can display @ in file permissions.
55 log_assert "Verifies that ls displays @ in the file permissions using ls -@ " \
66 initfiles=$($LS -R $INI_DIR/*)
70 ls_attr=$(usr_exec $LS -@ $f | $AWK '{print substr($1, 11, 1)}')
72 log_fail "ls -@ $f with attribute should success."
74 log_note "ls -@ $f with attribute success."
83 log_pass "ls display @ in file permission passed."
H A Dzfs_acl_ls_002_neg.ksh36 # Verifies that ls doesn't display @ in the file permissions using ls -@
42 # 3. Verify 'ls -l' can't display @ in file permission.
56 log_assert "Verifies that ls doesn't display @ in the file " \
57 "permissions using ls -@ for files without attribute."
67 initfiles=$($LS -R $INI_DIR/*)
73 ls_attr=$(usr_exec $LS -l $f | $AWK '{print substr($1, 11, 1)}')
75 log_fail "ls with attribute shouldn't success."
84 log_pass "ls doesn't display @ in file permissions passed."
/freebsd/usr.bin/which/
H A Dwhich.165 .Xr ls 1
70 $ /usr/bin/which ls cp
71 /bin/ls
79 $ PATH=/bin:/rescue /usr/bin/which -a ls cp
80 /bin/ls
81 /rescue/ls
89 $ PATH=/bin:/bin /usr/bin/which -a ls
90 /bin/ls
91 /bin/ls
97 $ /usr/bin/which -s ls cp
/freebsd/tools/test/stress2/misc/
H A Dmac_chkexec.sh29 # Regression test for panic in second ls
47 cp /bin/ls $mntpoint
48 setfmac chkexec/md5:`md5 -q $mntpoint/ls` $mntpoint/ls
50 $mntpoint/ls $mntpoint/ls
51 setfmac chkexec/none $mntpoint/ls
52 $mntpoint/ls $mntpoint/ls
/freebsd/contrib/kyua/doc/
H A Dbuild-root.mdoc65 src/bin/ls/
66 src/bin/ls/Kyuafile
67 src/bin/ls/ls.c
68 src/bin/ls/ls_test.c
74 obj/bin/ls/
75 obj/bin/ls/ls*
76 obj/bin/ls/ls_test*
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_009_pos.ksh41 # 3. Verify 'ls' and 'cd /' will succeed
44 # 6. Verify 'ls' and 'cd /' will succeed
47 # 9. Verify 'ls' 'cd /' 'zpool list' and etc will succeed
99 log_must ls
102 log_mustnot ls
113 log_must ls
116 log_mustnot ls
127 log_must ls
130 log_mustnot ls
/freebsd/contrib/elftoolchain/size/
H A Dsize.1181 .Pa /bin/ls
184 $ size /bin/ls
186 20975 540 392 21907 5593 /bin/ls
190 .Pa /bin/ls
195 $ size -tx /bin/ls /bin/dd
197 0x51ef 0x21c 0x188 21907 5593 /bin/ls
203 .Pa /bin/ls
206 $ size -A /bin/ls
207 /bin/ls :
/freebsd/tests/sys/cddl/zfs/tests/acl/
H A Dacl_common.kshlib50 $LS -ld $obj | $AWK '{print $1}'
65 $LS -vd $obj | $NAWK '(NR != 1) {print $0}'
80 $LS -Vd $obj | $NAWK '(NR != 1) {print $0}'
181 # Check '+' is set for a given file/directory with 'ls [-l]' command
192 $LS -ld $obj | $AWK '{print $1}' | $GREP "+\>" > /dev/null
198 # Check '+' is set for a given file/directory with 'ls [-v]' command
209 $LS -vd $obj | $NAWK '(NR == 1) {print $1}' | $GREP "+\>" > /dev/null
259 $LS -vd $1 | $NAWK 'BEGIN {count=0}
297 $LS $args $file > $tmpfile
298 (( $? != 0 )) && log_fail "FAIL: $LS $args $file > $tmpfile"
[all …]
/freebsd/share/examples/libifconfig/
H A Dstatus.c265 struct ifconfig_lagg_status *ls; in print_lagg() local
270 if (ifconfig_lagg_get_lagg_status(lifh, ifa->ifa_name, &ls) < 0) { in print_lagg()
279 if (ls->ra->ra_proto == lpr[i].lpr_proto) { in print_lagg()
287 if (ls->rf->rf_flags & LAGG_F_HASHMASK) { in print_lagg()
291 if (ls->rf->rf_flags & LAGG_F_HASHL2) { in print_lagg()
295 if (ls->rf->rf_flags & LAGG_F_HASHL3) { in print_lagg()
299 if (ls->rf->rf_flags & LAGG_F_HASHL4) { in print_lagg()
306 printf("\t\tflags=%x", ls->ro->ro_opts); in print_lagg()
308 printf("\t\tflowid_shift: %d\n", ls->ro->ro_flowid_shift); in print_lagg()
309 if (ls->ra->ra_proto == LAGG_PROTO_ROUNDROBIN) { in print_lagg()
[all …]

12345678910>>...48