| /freebsd-12.1/bin/sh/ |
| H A D | mail.c | 78 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 D | cd.c | 85 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 D | exec.c | 331 struct stat statb; in find_command() local 384 if (stat(fullname, &statb) < 0) { in find_command() 390 if (!S_ISREG(statb.st_mode)) in find_command() 400 if (statb.st_uid == geteuid()) { in find_command() 401 if ((statb.st_mode & 0100) == 0) in find_command() 403 } else if (statb.st_gid == getegid()) { in find_command() 404 if ((statb.st_mode & 010) == 0) in find_command() 407 if ((statb.st_mode & 01) == 0) in find_command()
|
| H A D | main.c | 299 struct stat statb; in find_dot_file() local 306 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
|
| H A D | expand.c | 1079 struct stat statb; in expmeta() local 1130 if (metaflag == 0 || lstat(expdir, &statb) >= 0) in expmeta()
|
| /freebsd-12.1/contrib/ntp/lib/isc/unix/ |
| H A D | fsaccess.c | 37 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-12.1/usr.bin/mail/ |
| H A D | edit.c | 144 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 D | quit.c | 396 struct stat statb; in edstop() local 425 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) { in edstop()
|
| /freebsd-12.1/libexec/talkd/ |
| H A D | process.c | 189 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-12.1/crypto/heimdal/lib/roken/ |
| H A D | getusershell.c | 125 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-12.1/sbin/fsck_ffs/ |
| H A D | setup.c | 80 struct stat statb; in setup() local 87 if (stat(dev, &statb) < 0) { in setup() 95 if ((statb.st_mode & S_IFMT) != S_IFCHR && in setup() 96 (statb.st_mode & S_IFMT) != S_IFBLK) { in setup() 97 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) { in setup() 102 if ((statb.st_flags & SF_SNAPSHOT) != 0 && cvtlevel == 0) { in setup() 103 cursnapshot = statb.st_ino; in setup() 106 (statb.st_flags & SF_SNAPSHOT) == 0) { in setup()
|
| /freebsd-12.1/libexec/rbootd/ |
| H A D | parseconf.c | 315 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-12.1/contrib/ntp/lib/isc/win32/ |
| H A D | fsaccess.c | 300 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-12.1/contrib/tcsh/ |
| H A D | tw.parse.c | 2027 struct stat statb; in filetype() local 2035 if (lstat(ptr, &statb) != -1) { in filetype() 2039 if (stat(ptr, &statb) == -1) in filetype() 2041 else if (S_ISDIR(statb.st_mode)) in filetype() 2051 if (S_ISSOCK(statb.st_mode)) /* Socket */ in filetype() 2055 if (S_ISFIFO(statb.st_mode)) /* Named Pipe */ in filetype() 2080 if (S_ISCHR(statb.st_mode)) /* char device */ in filetype() 2084 if (S_ISBLK(statb.st_mode)) /* block device */ in filetype() 2110 struct stat statb; in isadirectory() local 2117 if (S_ISSOCK(statb.st_mode)) /* Socket */ in isadirectory() [all …]
|
| H A D | sh.file.c | 280 struct stat statb; in filetype() local 285 if (lstat(spath, &statb) == 0) { in filetype() 286 switch (statb.st_mode & S_IFMT) { in filetype() 291 if (stat(spath, &statb) == 0 && /* follow it out */ in filetype() 292 S_ISDIR(statb.st_mode)) in filetype() 301 if (statb.st_mode & 0111) in filetype()
|
| H A D | sh.exp.c | 91 struct stat statb; in sh_access() local 117 if (stat(name, &statb) == -1) in sh_access() 122 if (S_ISDIR(statb.st_mode) && mode == X_OK) in sh_access() 141 else if (euid == statb.st_uid) in sh_access() 144 else if (egid == statb.st_gid) in sh_access() 171 if (groups[n] == statb.st_gid) { in sh_access() 180 if (statb.st_mode & mode) in sh_access()
|
| /freebsd-12.1/usr.sbin/lpr/lpr/ |
| H A D | lpr.c | 114 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-12.1/usr.sbin/lpr/common_source/ |
| H A D | displayq.c | 106 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-12.1/contrib/diff/src/ |
| H A D | diff3.c | 227 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-12.1/contrib/sendmail/src/ |
| H A D | readcf.c | 151 struct stat statb; local 187 if (fstat(sm_io_getinfo(cf, SM_IO_WHAT_FD, NULL), &statb) < 0) 193 if (!S_ISREG(statb.st_mode)) 199 if (OpMode != MD_TEST && bitset(S_IWGRP|S_IWOTH, statb.st_mode))
|
| H A D | queue.c | 5957 struct stat statb; local 5965 if (lstat(name, &statb) < 0) 5967 if (stat(name, &statb) < 0) 5976 if (S_ISLNK(statb.st_mode)) 5983 if (stat(name, &statb) < 0) 5993 if (!S_ISDIR(statb.st_mode))
|
| /freebsd-12.1/contrib/libpcap/ |
| H A D | pcap-linux.c | 2401 struct stat statb; local 2464 if (lstat(subsystem_path, &statb) != 0) { 3071 struct stat statb; local 3086 if (stat(pathstr, &statb) == 0) {
|