Home
last modified time | relevance | path

Searched refs:statb (Results 1 – 23 of 23) sorted by relevance

/freebsd-13.1/bin/sh/
H A Dmail.c78 struct stat statb; in chkmail() local
100 if (stat(p, &statb) < 0) in chkmail()
101 statb.st_mtime = 0; in chkmail()
102 if (statb.st_mtime > mailtime[i] && ! silent) { in chkmail()
106 mailtime[i] = statb.st_mtime; in chkmail()
108 if (stat(p, &statb) < 0) in chkmail()
109 statb.st_size = 0; in chkmail()
110 if (statb.st_size > mailtime[i] && ! silent) { in chkmail()
114 mailtime[i] = statb.st_size; in chkmail()
H A Dcd.c85 struct stat statb; in cdcmd() local
124 if (stat(p, &statb) < 0) { in cdcmd()
127 } else if (!S_ISDIR(statb.st_mode)) in cdcmd()
189 struct stat statb; in cdlogical() local
217 if (lstat(stackblock(), &statb) < 0) { in cdlogical()
H A Dexec.c359 struct stat statb; in find_command() local
412 if (stat(fullname, &statb) < 0) { in find_command()
418 if (!S_ISREG(statb.st_mode)) in find_command()
428 if (statb.st_uid == geteuid()) { in find_command()
429 if ((statb.st_mode & 0100) == 0) in find_command()
431 } else if (statb.st_gid == getegid()) { in find_command()
432 if ((statb.st_mode & 010) == 0) in find_command()
435 if ((statb.st_mode & 01) == 0) in find_command()
H A Dmain.c291 struct stat statb; in find_dot_file() local
298 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
H A Dhistedit.c562 struct stat statb; in sh_matches() local
568 if (fstatat(dfd, entry->d_name, &statb, 0) == -1) in sh_matches()
570 if (!S_ISREG(statb.st_mode)) in sh_matches()
H A Dexpand.c1079 struct stat statb; in expmeta() local
1130 if (metaflag == 0 || lstat(expdir, &statb) >= 0) in expmeta()
/freebsd-13.1/contrib/ntp/lib/isc/unix/
H A Dfsaccess.c37 struct stat statb; in isc_fsaccess_set() local
43 if (stat(path, &statb) != 0) in isc_fsaccess_set()
46 if ((statb.st_mode & S_IFDIR) != 0) in isc_fsaccess_set()
48 else if ((statb.st_mode & S_IFREG) == 0) in isc_fsaccess_set()
/freebsd-13.1/usr.bin/mail/
H A Dedit.c144 struct stat statb; in run_editor() local
165 if (fstat(fileno(nf), &statb) < 0) in run_editor()
168 modtime = statb.st_mtime; in run_editor()
197 if (stat(tempname, &statb) < 0) { in run_editor()
201 if (modtime == statb.st_mtime) { in run_editor()
H A Dquit.c396 struct stat statb; in edstop() local
425 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) { in edstop()
/freebsd-13.1/libexec/talkd/
H A Dprocess.c189 struct stat statb; in find_user() local
205 if (stat(ftty, &statb) == 0) { in find_user()
206 if (!(statb.st_mode & 020)) in find_user()
208 if (statb.st_atime > best) { in find_user()
209 best = statb.st_atime; in find_user()
/freebsd-13.1/crypto/heimdal/lib/roken/
H A Dgetusershell.c125 struct stat statb; in initshells() local
153 if (fstat(fileno(fp), &statb) == -1) { in initshells()
157 if ((strings = malloc((u_int)statb.st_size)) == NULL) { in initshells()
161 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *)); in initshells()
/freebsd-13.1/sbin/fsck_ffs/
H A Dsetup.c219 struct stat statb; in openfilesys() local
222 if (stat(dev, &statb) < 0) in openfilesys()
224 if ((statb.st_mode & S_IFMT) != S_IFCHR && in openfilesys()
225 (statb.st_mode & S_IFMT) != S_IFBLK) { in openfilesys()
226 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) { in openfilesys()
231 cursnapshot = statb.st_ino; in openfilesys()
/freebsd-13.1/libexec/rbootd/
H A Dparseconf.c315 struct stat statb; in GetBootFiles() local
343 if (stat(dp->d_name, &statb) < 0 || in GetBootFiles()
344 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
/freebsd-13.1/contrib/ntp/lib/isc/win32/
H A Dfsaccess.c300 struct stat statb; in isc_fsaccess_set() local
304 if (stat(path, &statb) != 0) in isc_fsaccess_set()
307 if ((statb.st_mode & S_IFDIR) != 0) in isc_fsaccess_set()
309 else if ((statb.st_mode & S_IFREG) == 0) in isc_fsaccess_set()
/freebsd-13.1/contrib/tcsh/
H A Dtw.parse.c2023 struct stat statb; in filetype() local
2031 if (lstat(ptr, &statb) != -1) { in filetype()
2035 if (stat(ptr, &statb) == -1) in filetype()
2037 else if (S_ISDIR(statb.st_mode)) in filetype()
2047 if (S_ISSOCK(statb.st_mode)) /* Socket */ in filetype()
2051 if (S_ISFIFO(statb.st_mode)) /* Named Pipe */ in filetype()
2076 if (S_ISCHR(statb.st_mode)) /* char device */ in filetype()
2080 if (S_ISBLK(statb.st_mode)) /* block device */ in filetype()
2106 struct stat statb; in isadirectory() local
2113 if (S_ISSOCK(statb.st_mode)) /* Socket */ in isadirectory()
[all …]
H A Dsh.file.c277 struct stat statb; in filetype() local
282 if (lstat(spath, &statb) == 0) { in filetype()
283 switch (statb.st_mode & S_IFMT) { in filetype()
288 if (stat(spath, &statb) == 0 && /* follow it out */ in filetype()
289 S_ISDIR(statb.st_mode)) in filetype()
298 if (statb.st_mode & 0111) in filetype()
H A Dsh.exp.c87 struct stat statb; in sh_access() local
113 if (stat(name, &statb) == -1) in sh_access()
118 if (S_ISDIR(statb.st_mode) && mode == X_OK) in sh_access()
137 else if (euid == statb.st_uid) in sh_access()
140 else if (egid == statb.st_gid) in sh_access()
167 if (groups[n] == statb.st_gid) { in sh_access()
176 if (statb.st_mode & mode) in sh_access()
/freebsd-13.1/usr.sbin/lpr/lpr/
H A Dlpr.c114 static struct stat statb; variable
393 (uintmax_t)statb.st_dev, (uintmax_t)statb.st_ino); in main()
715 if (stat(file, &statb) < 0) { in test()
719 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in test()
723 if (statb.st_size == 0) { in test()
/freebsd-13.1/usr.sbin/lpr/common_source/
H A Ddisplayq.c106 struct stat statb; in displayq() local
131 ret = stat(pp->lock_file, &statb); in displayq()
134 if (statb.st_mode & LFM_PRINT_DIS) { in displayq()
148 if (statb.st_mode & LFM_QUEUE_DIS) { in displayq()
/freebsd-13.1/contrib/diff/src/
H A Ddiff3.c227 struct stat statb; in main() local
363 if (stat (file[i], &statb) < 0) in main()
365 else if (S_ISDIR (statb.st_mode)) in main()
/freebsd-13.1/contrib/sendmail/src/
H A Dreadcf.c157 struct stat statb; local
177 if (fstat(sm_io_getinfo(cf, SM_IO_WHAT_FD, NULL), &statb) < 0)
183 if (!S_ISREG(statb.st_mode))
189 if (OpMode != MD_TEST && bitset(S_IWGRP|S_IWOTH, statb.st_mode))
H A Dqueue.c6014 struct stat statb; local
6022 if (lstat(name, &statb) < 0)
6024 if (stat(name, &statb) < 0)
6033 if (S_ISLNK(statb.st_mode))
6040 if (stat(name, &statb) < 0)
6050 if (!S_ISDIR(statb.st_mode))
/freebsd-13.1/contrib/libpcap/
H A Dpcap-linux.c2465 struct stat statb; local
2528 if (lstat(subsystem_path, &statb) != 0) {
3100 struct stat statb; local
3115 if (stat(pathstr, &statb) == 0) {