/freebsd/bin/sh/ |
H A D | mail.c | 70 struct stat statb; in chkmail() local 92 if (stat(p, &statb) < 0) in chkmail() 93 statb.st_mtime = 0; in chkmail() 94 if (statb.st_mtime > mailtime[i] && ! silent) { in chkmail() 98 mailtime[i] = statb.st_mtime; in chkmail() 100 if (stat(p, &statb) < 0) in chkmail() 101 statb.st_size = 0; in chkmail() 102 if (statb.st_size > mailtime[i] && ! silent) { in chkmail() 106 mailtime[i] = statb.st_size; in chkmail()
|
H A D | cd.c | 77 struct stat statb; in cdcmd() local 116 if (stat(p, &statb) < 0) { in cdcmd() 119 } else if (!S_ISDIR(statb.st_mode)) in cdcmd() 181 struct stat statb; in cdlogical() local 209 if (lstat(stackblock(), &statb) < 0) { in cdlogical()
|
H A D | exec.c | 351 struct stat statb; in find_command() local 404 if (stat(fullname, &statb) < 0) { in find_command() 410 if (!S_ISREG(statb.st_mode)) in find_command() 420 if (statb.st_uid == geteuid()) { in find_command() 421 if ((statb.st_mode & 0100) == 0) in find_command() 423 } else if (statb.st_gid == getegid()) { in find_command() 424 if ((statb.st_mode & 010) == 0) in find_command() 427 if ((statb.st_mode & 01) == 0) in find_command()
|
H A D | main.c | 295 struct stat statb; in find_dot_file() local 302 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
|
/freebsd/usr.bin/mail/ |
H A D | edit.c | 136 struct stat statb; in run_editor() local 157 if (fstat(fileno(nf), &statb) < 0) in run_editor() 160 modtime = statb.st_mtime; in run_editor() 189 if (stat(tempname, &statb) < 0) { in run_editor() 193 if (modtime == statb.st_mtime) { in run_editor()
|
/freebsd/libexec/talkd/ |
H A D | process.c | 181 struct stat statb; in find_user() local 197 if (stat(ftty, &statb) == 0) { in find_user() 198 if (!(statb.st_mode & 020)) in find_user() 200 if (statb.st_atime > best) { in find_user() 201 best = statb.st_atime; in find_user()
|
/freebsd/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/tools/test/stress2/misc/ |
H A D | sendfile12.sh | 155 struct stat statb; 194 if (stat(inputFile, &statb) != 0) 200 if ((cp = mmap(NULL, statb.st_size, PROT_READ | PROT_WRITE, 205 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, SF_NOCACHE)
|
H A D | sendfile.sh | 135 struct stat statb; 177 if (stat(inputFile, &statb) != 0) 183 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile3.sh | 142 struct stat statb; 174 if (stat(inputFile, &statb) != 0) 180 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile10.sh | 182 struct stat statb; 224 if (fstat(fd, &statb) != 0) 226 share[SZ] = statb.st_size; 227 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile20.sh | 169 struct stat statb; 211 if (stat(inputFile, &statb) != 0) 217 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, SF_NOCACHE) == -1)
|
H A D | sendfile24.sh | 159 struct stat statb; 197 if (stat(inputFile, &statb) != 0) 203 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile11.sh | 156 struct stat statb; 194 if (stat(inputFile, &statb) != 0) 200 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile19.sh | 168 struct stat statb; 210 if (stat(inputFile, &statb) != 0) 216 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, SF_NOCACHE) == -1)
|
H A D | sendfile25.sh | 160 struct stat statb; 198 if (stat(inputFile, &statb) != 0) 205 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile8.sh | 162 struct stat statb; 201 if (stat(input, &statb) != 0) 207 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | sendfile9.sh | 161 struct stat statb; 200 if (stat(input, &statb) != 0) 206 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
|
H A D | namecache.sh | 119 struct stat statb; 140 if (stat(dp->d_name, &statb) == -1) {
|
/freebsd/libexec/rbootd/ |
H A D | parseconf.c | 305 struct stat statb; in GetBootFiles() local 333 if (stat(dp->d_name, &statb) < 0 || in GetBootFiles() 334 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
|
/freebsd/sbin/fsck_ffs/ |
H A D | setup.c | 368 struct stat statb; in openfilesys() local 371 if (stat(dev, &statb) < 0) in openfilesys() 373 if ((statb.st_mode & S_IFMT) != S_IFCHR && in openfilesys() 374 (statb.st_mode & S_IFMT) != S_IFBLK) { in openfilesys() 375 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) { in openfilesys() 380 cursnapshot = statb.st_ino; in openfilesys()
|
/freebsd/contrib/tcsh/ |
H A D | tw.parse.c | 2023 struct stat statb; in filetype() local 2031 if (lstat(ptr, &statb) != -1) { in filetype() 2033 if (S_ISLNK(statb.st_mode)) { /* Symbolic link */ 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() 2055 if (S_ISHIDDEN(statb.st_mode)) /* Hidden Directory [aix] */ in filetype() 2072 if (S_ISNWK(statb.st_mode)) /* Network Special [hpux] */ in filetype() 2076 if (S_ISCHR(statb.st_mode)) /* char device */ in filetype() [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/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 99 static struct stat statb; variable 378 (uintmax_t)statb.st_dev, (uintmax_t)statb.st_ino); in main() 699 if (stat(file, &statb) < 0) { in test() 703 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in test() 707 if (statb.st_size == 0) { in test()
|