Symbol: lstat
bin/cp/cp.c
238
r = lstat(to.p_path, &to_stat);
bin/cp/cp.c
262
r = lstat(*argv, &tmp_stat);
bin/cp/cp.c
419
sval = Pflag ? lstat(to.p_path, &to_stat) : stat(to.p_path, &to_stat);
bin/cp/utils.c
150
lstat(to.p_path, &sb) : stat(to.p_path, &sb);
bin/csh/exp.c
504
lstat(short2str(ep), &stb) : stat(short2str(ep), &stb)) {
bin/csh/file.c
279
if (lstat(short2str(path), &statb) == 0) {
bin/getfacl/getfacl.c
194
error = lstat(path, &sb);
bin/ksh/c_test.c
287
return lstat(opnd1, &b1) == 0 && S_ISLNK(b1.st_mode);
bin/ksh/eval.c
1027
if (lstat(Xstring(*xs, xp), &lstatb) < 0)
bin/ln/ln.c
166
if (hflag && lstat(targetdir, &sb) == 0 && S_ISLNK(sb.st_mode)) {
bin/ln/ln.c
241
if ((Pflag ? lstat : stat)(source, &sb)) {
bin/ln/ln.c
258
(lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
bin/ln/ln.c
300
exists = !lstat(target, &sb);
bin/mv/mv.c
248
if (!lstat(to, &sb)) {
bin/mv/mv.c
259
if (lstat(from, &sb)) {
bin/pax/ar_subs.c
1022
res = lstat(dirbuf, &sb);
bin/pax/ar_subs.c
1058
if ((Yflag || Zflag) && ((lstat(arcn->name, &sb) == 0))) {
bin/pax/ar_subs.c
359
if (kflag && (lstat(arcn->name, &sb) == 0)) {
bin/pax/ar_subs.c
374
if ((uflag || Dflag) && ((lstat(arcn->name, &sb) == 0))) {
bin/pax/ar_subs.c
413
if ((Yflag || Zflag) && ((lstat(arcn->name, &sb) == 0))) {
bin/pax/file_subs.c
312
if (lstat(arcn->ln_name, &sb) != -1 && S_ISDIR(sb.st_mode)) {
bin/pax/file_subs.c
364
if (lstat(arcn->name, &sb) < 0)
bin/pax/file_subs.c
402
if (lstat(from, &sb) == 0) {
bin/pax/file_subs.c
494
while (lstat(nm, &sb) == 0 &&
bin/pax/file_subs.c
614
if (lstat(nm, &sb) < 0) {
bin/pax/file_subs.c
672
if (lstat(name, &sb) < 0)
bin/pax/file_subs.c
753
if (lstat(name, &sb) == 0) {
bin/pax/file_subs.c
784
(lstat(name, &sb) == 0)) {
bin/pax/file_subs.c
835
if (lstat(fnm, &sb) == 0) {
bin/pax/ftree.c
451
if (lstat(Mftent.fts_path, &statbuf) == -1) {
bin/rm/rm.c
292
if (lstat(f, &sb)) {
bin/rm/rm.c
398
if (lstat(file, &sb))
bin/sh/cd.c
224
if (lstat(stackblock(), &statb) < 0) {
bin/sh/expand.c
1779
if (metaflag == 0 || lstat(expdir, &statb) >= 0)
bin/test/test.c
724
if (mode == FILSYM ? lstat(nm, &s) : stat(nm, &s))
distrib/utils/tls/tls.c
97
if (lstat(fname, &st)) {
games/gomoku/main.c
97
if (lstat(fname, &st) == 0) {
lib/libc/compat/sys/compat_stat.c
48
__warn_references(lstat,
lib/libc/compat/sys/compat_stat.c
58
__strong_alias(lstat, __compat_lstat)
lib/libc/gen/fts.c
953
if (!lstat(p->fts_accpath, sbp)) {
lib/libc/gen/fts.c
960
} else if (lstat(p->fts_accpath, sbp)) {
lib/libc/gen/getcwd.c
176
if (lstat(resolved, &sb) == -1)
lib/libc/gen/glob.c
1099
return lstat(buf, sb);
lib/libc/net/rcmd.c
714
if (lstat(pbuf, &sbuf) < 0)
lib/libc/stdio/gettemp.c
154
} else if (lstat(path, &sbuf))
lib/libc/stdio/remove.c
59
if (lstat(file, &sb) < 0)
lib/libpuffs/null.c
154
if (lstat(PCNPATH(pcn), &sb) == -1)
lib/libpuffs/null.c
312
rv = lstat(PCNPATH(pcn), &sb);
lib/libpuffs/null.c
380
if (lstat(PNPATH(pn), &sb) == -1)
lib/librmt/rmtlib.c
894
return lstat(path, buf);
lib/libutil/secure_path.c
60
if (lstat(path, &sb) < 0)
libexec/atrun/atrun.c
217
if (lstat(filename, &lbuf) == -1)
libexec/httpd/bozohttpd.c
1485
lstat(dir, &sb) == 0 && S_ISDIR(sb.st_mode)) {
libexec/httpd/bozohttpd.c
1506
if (lstat(redir, &sb) == 0) {
libexec/httpd/bozohttpd.c
1517
if (lstat(redir, &sb) < 0 || !S_ISLNK(sb.st_mode))
libexec/mail.local/mail.local.c
230
if (lstat(path, &sb) == -1) {
regress/sys/kern/getcwd/old_getcwd.c
133
if (lstat(up, &s))
regress/sys/kern/getcwd/old_getcwd.c
208
if (lstat(up, &s)) {
sbin/dump/main.c
331
error = lstat(argv[i], &sb);
sbin/dump/snapshot.c
75
if (lstat(file, &sb) < 0)
sbin/mknod/mknod.c
259
if (lstat(name, &sb) != 0 || (!fifo && sb.st_rdev != dev))
sbin/savecore/savecore.c
809
if (lstat(device, &sb)) {
share/examples/puffs/icfs/icfs.c
190
if (lstat(argv[0], &sb) == -1)
share/examples/puffs/pnullfs/pnullfs.c
91
if (lstat(argv[0], &sb) == -1)
share/examples/puffs/rot13fs/rot13fs.c
142
if (lstat(argv[0], &sb) == -1)
share/man/tools/noso.c
17
if (lstat(argv[i], &sb) < 0)
sys/dev/pci/btvmei.c
368
b3_617_vmeintr(struct b3_617_softc *sc, unsigned char lstat)
sys/dev/pci/btvmei.c
377
if (!(lstat & (1 << level)))
sys/dev/pci/btvmei.c
620
unsigned char lstat;
sys/dev/pci/btvmei.c
626
lstat = read_csr_byte(sc, LDMA_CMD);
sys/dev/pci/btvmei.c
627
if ((lstat & LDC_DMA_DONE) && (lstat & LDC_DMA_INT_ENABLE)) {
sys/dev/pci/btvmei.c
629
write_csr_byte(sc, LDMA_CMD, lstat & (~LDC_DMA_DONE));
sys/dev/pci/btvmei.c
636
lstat = read_csr_byte(sc, LOC_INT_STATUS);
sys/dev/pci/btvmei.c
637
if (lstat & LIS_CINT_MASK) {
sys/dev/pci/btvmei.c
639
b3_617_vmeintr(sc, lstat);
sys/dev/pci/btvmei.c
644
lstat = read_csr_byte(sc, LOC_STATUS);
sys/dev/pci/btvmei.c
645
if (lstat & LSR_PR_STATUS) {
sys/dev/pci/btvmei.c
651
lstat = read_csr_byte(sc, REM_STATUS);
sys/dev/pci/btvmei.c
652
if (lstat & RSR_PT_STATUS) {
sys/dev/pci/if_sk.c
2240
uint16_t lstat;
sys/dev/pci/if_sk.c
2242
SK_PHYADDR_BCOM, BRGPHY_MII_AUXSTS, &lstat);
sys/dev/pci/if_sk.c
2244
if (!(lstat & BRGPHY_AUXSTS_LINK) && sc_if->sk_link) {
sys/dev/pci/pci_subr.c
4478
pcireg_t lctl, lstat;
sys/dev/pci/pci_subr.c
4486
lstat = (reg >> 16) & 0xffff;
sys/dev/pci/pci_subr.c
4487
printf(" Lane %d status: 0x%04x\n", i, lstat);
sys/dev/pci/pci_subr.c
4488
pci_conf_print_lmr_lcsr(lstat, up, dp);
sys/kern/kern_lwp.c
1376
int lstat = l->l_stat;
sys/kern/kern_lwp.c
1383
lstat = LSONPROC;
sys/kern/kern_lwp.c
1404
switch (lstat) {
sys/rump/librump/rumpkern/rump_syscalls.c
4509
__weak_alias(lstat,rump___sysimpl_lstat30);
sys/rump/librump/rumpkern/rump_syscalls.c
5547
__weak_alias(lstat,rump___sysimpl_lstat50);
sys/sys/stat.h
254
int lstat(const char *, struct stat *) __RENAME(__lstat50);
tests/lib/libc/c063/t_fchmodat.c
187
ATF_REQUIRE(lstat(LINK, &st) == 0);
tests/lib/libc/c063/t_fchownat.c
231
ATF_REQUIRE(lstat(LINK, &st) == 0);
tests/lib/libc/c063/t_linkat.c
165
ATF_REQUIRE(lstat(LINK, &ost) == 0);
tests/lib/libc/c063/t_linkat.c
166
ATF_REQUIRE(lstat(TARGET, &nst) == 0);
tests/lib/libc/c063/t_linkat.c
169
ATF_REQUIRE(lstat(FILE, &ost) == 0);
tests/lib/libc/c063/t_linkat.c
170
ATF_REQUIRE(lstat(TARGET, &nst) == 0);
tests/lib/libc/c063/t_linkat.c
197
ATF_REQUIRE(lstat(LINK, &ost) == 0);
tests/lib/libc/c063/t_linkat.c
198
ATF_REQUIRE(lstat(TARGET, &nst) == 0);
tests/lib/libc/c063/t_linkat.c
201
ATF_REQUIRE(lstat(FILE, &ost) == 0);
tests/lib/libc/c063/t_linkat.c
202
ATF_REQUIRE(lstat(TARGET, &nst) == 0);
tests/lib/libc/c063/t_symlinkat.c
118
ATF_REQUIRE(lstat(LINK, &st) == 0);
tests/lib/libc/c063/t_utimensat.c
221
RL(lstat(LINK, &st));
tests/lib/libc/sys/t_link.c
199
ATF_REQUIRE(lstat(pathl, &sb) == 0);
tests/lib/libc/sys/t_stat.c
175
ATF_REQUIRE_ERRNO(ENAMETOOLONG, lstat(buf, &st) == -1);
tests/lib/libc/sys/t_stat.c
181
ATF_REQUIRE_ERRNO(EFAULT, lstat((void *)-1, &st) == -1);
tests/lib/libc/sys/t_stat.c
187
ATF_REQUIRE_ERRNO(EFAULT, lstat("/etc/passwd", (void *)-1) == -1);
tests/lib/libc/sys/t_stat.c
193
ATF_REQUIRE_ERRNO(ENOENT, lstat("/a/b/c/d/e/f/g/h/i/j/k", &st) == -1);
tests/lib/libc/sys/t_stat.c
385
ATF_REQUIRE(lstat(pathlink, &sb) == 0);
tools/compat/lchflags.c
47
if (lstat(path, &psb) == -1)
tools/compat/lchmod.c
47
if (lstat(path, &psb) == -1)
tools/compat/lchown.c
47
if (lstat(path, &psb) == -1)
usr.bin/make/dir.c
423
rc = (useLstat ? lstat : stat)(pathname, &sys_st);
usr.bin/make/main.c
1944
if (lstat(file, &st) == -1)
usr.bin/make/util.c
257
if (lstat(".", &st_cur) == -1) {
usr.bin/make/util.c
303
if (lstat(nextpathptr, &st_next) == -1) {
usr.bin/newsyslog/newsyslog.c
562
if (lstat(file1, &st) != 0)
usr.bin/newsyslog/newsyslog.c
566
if (lstat(file2, &st) == 0)
usr.bin/newsyslog/newsyslog.c
579
k = lstat(file1, &st);
usr.bin/rdist/server.c
1020
if (lstat(target, &stb) == 0) {
usr.bin/rdist/server.c
1058
if (lstat(name, &stb) < 0) {
usr.bin/rdist/server.c
1182
else if (lstat(target, &stb) < 0)
usr.bin/rdist/server.c
1263
if (lstat(target, &stb) < 0) {
usr.bin/rdist/server.c
1342
if (lstat(target, &stb) < 0) {
usr.bin/rdist/server.c
347
if ((opts & FOLLOW ? stat(target, &stb) : lstat(target, &stb)) < 0) {
usr.bin/rdist/server.c
716
if (lstat(target, &stb) < 0) {
usr.bin/rdist/server.c
822
if (lstat(target, &stb) == 0) {
usr.bin/realpath/realpath.c
164
if (lstat(s, &sb) == -1 || !S_ISLNK(sb.st_mode)) {
usr.bin/sed/main.c
420
if (lstat(fname, &sb) != 0)
usr.bin/sort/sort.c
322
} else if (lstat(outpath, &st) == 0
usr.bin/stat/stat.c
343
(rc = lstat(argv[0], &st)) == -1)
usr.bin/stat/stat.c
346
rc = lstat(argv[0], &st);
usr.bin/touch/touch.c
132
stime_file(optarg, ts, lstat);
usr.bin/touch/touch.c
156
get_file_status = lstat;
usr.bin/unzip/unzip.c
333
if (lstat(path, &sb) == 0) {
usr.bin/unzip/unzip.c
371
if (lstat(path, &sb) == 0) {
usr.bin/unzip/unzip.c
613
if (lstat(*path, &sb) == 0) {
usr.sbin/catman/catman.c
281
lstat(manpaths.gl_pathv[i], &st1);
usr.sbin/catman/catman.c
284
lstat(manpaths.gl_pathv[j], &st2);
usr.sbin/catman/catman.c
290
lstat(p, &st3);
usr.sbin/catman/catman.c
412
if (lstat(manpage, &manstat) <0) {
usr.sbin/catman/catman.c
486
if ((error = lstat(tmp, &lnkstat)) &&
usr.sbin/inetd/parse.c
1305
if (lstat(glob_path, &sb) != 0) {
usr.sbin/lpr/lpd/printjob.c
550
if (lstat(file, &stb) < 0 || (fi = open(file, O_RDONLY)) < 0)
usr.sbin/lpr/lpd/printjob.c
917
if (lstat(file, &stb) < 0 || (f = open(file, O_RDONLY)) < 0)
usr.sbin/makefs/cd9660.c
2136
if (lstat(diskStructure->generic_bootimage, &stbuf) == -1)
usr.sbin/makefs/cd9660/cd9660_eltorito.c
128
if (lstat(new_image->filename, &stbuf) == -1)
usr.sbin/makefs/walk.c
253
if (lstat(path, &stbuf) == -1)
usr.sbin/makefs/walk.c
556
lstat(path, &stbuf) == -1)
usr.sbin/mountd/mountd.c
2380
if (lstat(dirp, &sb) == -1)
usr.sbin/mountd/mountd.c
2389
if (lstat(dirp, &sb) == -1)
usr.sbin/npf/npfctl/npfctl.c
355
if (lstat(path, &st) == -1) {
usr.sbin/sysinst/aout2elf.c
225
if (lstat(prefix, &st) == 0) {
usr.sbin/sysinst/aout2elf.c
243
if (lstat(src, &st) == 0) {
usr.sbin/sysinst/aout2elf.c
366
if (lstat(p, &sb) == 0) {
usr.sbin/user/user.c
1214
if (lstat(home, &st) < 0 && !(up->u_flags & F_MKDIR)) {
usr.sbin/user/user.c
1253
if (lstat(home, &st) == 0) {