| /freebsd-10-stable/bin/sh/ |
| D | mail.c | 79 struct stat statb; in chkmail() local 98 if (stat(p, &statb) < 0) in chkmail() 99 statb.st_mtime = 0; in chkmail() 100 if (statb.st_mtime > mailtime[i] && ! silent) { in chkmail() 104 mailtime[i] = statb.st_mtime; in chkmail() 106 if (stat(p, &statb) < 0) in chkmail() 107 statb.st_size = 0; in chkmail() 108 if (statb.st_size > mailtime[i] && ! silent) { in chkmail() 112 mailtime[i] = statb.st_size; in chkmail()
|
| D | cd.c | 87 struct stat statb; in cdcmd() local 127 if (stat(p, &statb) < 0) { in cdcmd() 130 } else if (!S_ISDIR(statb.st_mode)) in cdcmd() 182 struct stat statb; in cdlogical() local 210 if (lstat(stackblock(), &statb) < 0) { in cdlogical()
|
| D | exec.c | 325 struct stat statb; in find_command() local 378 if (stat(fullname, &statb) < 0) { in find_command() 384 if (!S_ISREG(statb.st_mode)) in find_command() 395 if (statb.st_uid == geteuid()) { in find_command() 396 if ((statb.st_mode & 0100) == 0) in find_command() 398 } else if (statb.st_gid == getegid()) { in find_command() 399 if ((statb.st_mode & 010) == 0) in find_command() 402 if ((statb.st_mode & 01) == 0) in find_command()
|
| D | main.c | 294 struct stat statb; in find_dot_file() local 301 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
|
| D | expand.c | 1150 struct stat statb; in expmeta() local 1207 if (metaflag == 0 || lstat(expdir, &statb) >= 0) in expmeta()
|
| /freebsd-10-stable/contrib/ntp/lib/isc/unix/ |
| 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-10-stable/usr.bin/mail/ |
| D | edit.c | 142 struct stat statb; in run_editor() local 163 if (fstat(fileno(nf), &statb) < 0) in run_editor() 166 modtime = statb.st_mtime; in run_editor() 195 if (stat(tempname, &statb) < 0) { in run_editor() 199 if (modtime == statb.st_mtime) { in run_editor()
|
| D | quit.c | 394 struct stat statb; in edstop() local 423 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) { in edstop()
|
| /freebsd-10-stable/libexec/talkd/ |
| D | process.c | 187 struct stat statb; in find_user() local 203 if (stat(ftty, &statb) == 0) { in find_user() 204 if (!(statb.st_mode & 020)) in find_user() 206 if (statb.st_atime > best) { in find_user() 207 best = statb.st_atime; in find_user()
|
| /freebsd-10-stable/crypto/heimdal/lib/roken/ |
| 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-10-stable/sbin/fsck_ffs/ |
| D | setup.c | 75 struct stat statb; in setup() local 82 if (stat(dev, &statb) < 0) { in setup() 90 if ((statb.st_mode & S_IFMT) != S_IFCHR && in setup() 91 (statb.st_mode & S_IFMT) != S_IFBLK) { in setup() 92 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) { in setup() 97 if ((statb.st_flags & SF_SNAPSHOT) != 0 && cvtlevel == 0) { in setup() 98 cursnapshot = statb.st_ino; in setup() 101 (statb.st_flags & SF_SNAPSHOT) == 0) { in setup()
|
| /freebsd-10-stable/libexec/rbootd/ |
| D | parseconf.c | 313 struct stat statb; in GetBootFiles() local 341 if (stat(dp->d_name, &statb) < 0 || in GetBootFiles() 342 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
|
| /freebsd-10-stable/contrib/ntp/lib/isc/win32/ |
| 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-10-stable/contrib/tcsh/ |
| D | tw.parse.c | 2027 struct stat statb; in filetype() local 2035 if (lstat(ptr, &statb) != -1) { in filetype() 2037 if (S_ISLNK(statb.st_mode)) { /* Symbolic link */ 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() 2059 if (S_ISHIDDEN(statb.st_mode)) /* Hidden Directory [aix] */ in filetype() 2076 if (S_ISNWK(statb.st_mode)) /* Network Special [hpux] */ in filetype() 2080 if (S_ISCHR(statb.st_mode)) /* char device */ in filetype() [all …]
|
| 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()
|
| 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-10-stable/usr.sbin/lpr/lpr/ |
| D | lpr.c | 112 static struct stat statb; variable 391 statb.st_dev, (uintmax_t)statb.st_ino); in main() 713 if (stat(file, &statb) < 0) { in test() 717 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in test() 721 if (statb.st_size == 0) { in test()
|
| /freebsd-10-stable/usr.sbin/lpr/common_source/ |
| D | displayq.c | 104 struct stat statb; in displayq() local 129 ret = stat(pp->lock_file, &statb); in displayq() 132 if (statb.st_mode & LFM_PRINT_DIS) { in displayq() 146 if (statb.st_mode & LFM_QUEUE_DIS) { in displayq()
|
| /freebsd-10-stable/contrib/diff/src/ |
| 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-10-stable/contrib/sendmail/src/ |
| 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))
|
| 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-10-stable/contrib/libpcap/ |
| D | pcap-linux.c | 1877 struct stat statb; local 1944 if (lstat(subsystem_path, &statb) != 0) {
|