Home
last modified time | relevance | path

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

12

/freebsd/bin/sh/
H A Dmail.c70 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 Dcd.c77 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 Dexec.c351 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 Dmain.c294 struct stat statb; in find_dot_file() local
301 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
/freebsd/usr.bin/mail/
H A Dedit.c136 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 Dprocess.c181 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 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/tools/test/stress2/misc/
H A Dsendfile12.sh155 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 Dsendfile.sh135 struct stat statb;
177 if (stat(inputFile, &statb) != 0)
183 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile3.sh142 struct stat statb;
174 if (stat(inputFile, &statb) != 0)
180 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile10.sh182 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 Dsendfile20.sh169 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 Dsendfile24.sh159 struct stat statb;
197 if (stat(inputFile, &statb) != 0)
203 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile11.sh156 struct stat statb;
194 if (stat(inputFile, &statb) != 0)
200 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile8.sh162 struct stat statb;
201 if (stat(input, &statb) != 0)
207 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile9.sh161 struct stat statb;
200 if (stat(input, &statb) != 0)
206 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dsendfile19.sh168 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 Dsendfile25.sh160 struct stat statb;
198 if (stat(inputFile, &statb) != 0)
205 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
H A Dnamecache.sh119 struct stat statb;
140 if (stat(dp->d_name, &statb) == -1) {
/freebsd/libexec/rbootd/
H A Dparseconf.c305 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 Dsetup.c368 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 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/usr.sbin/lpr/lpr/
H A Dlpr.c99 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()

12