| /freebsd-13.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 | 359 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 D | main.c | 291 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 D | histedit.c | 562 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 D | expand.c | 1079 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 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-13.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-13.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-13.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-13.1/sbin/fsck_ffs/ |
| H A D | setup.c | 219 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 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-13.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-13.1/contrib/tcsh/ |
| H A D | tw.parse.c | 2023 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 D | sh.file.c | 277 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 D | sh.exp.c | 87 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 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-13.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-13.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-13.1/contrib/sendmail/src/ |
| H A D | readcf.c | 157 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 D | queue.c | 6014 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 D | pcap-linux.c | 2465 struct stat statb; local 2528 if (lstat(subsystem_path, &statb) != 0) { 3100 struct stat statb; local 3115 if (stat(pathstr, &statb) == 0) {
|