Searched refs:statb (Results 1 - 22 of 22) sorted by relevance

/freebsd-11-stable/bin/sh/
H A Dmail.c79 struct stat statb; local
98 if (stat(p, &statb) < 0)
99 statb.st_mtime = 0;
100 if (statb.st_mtime > mailtime[i] && ! silent) {
104 mailtime[i] = statb.st_mtime;
106 if (stat(p, &statb) < 0)
107 statb.st_size = 0;
108 if (statb.st_size > mailtime[i] && ! silent) {
112 mailtime[i] = statb.st_size;
H A Dcd.c85 struct stat statb; local
124 if (stat(p, &statb) < 0) {
127 } else if (!S_ISDIR(statb.st_mode))
180 struct stat statb; local
208 if (lstat(stackblock(), &statb) < 0) {
H A Dmain.c296 struct stat statb; local
303 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
H A Dexec.c325 struct stat statb; local
377 if (stat(fullname, &statb) < 0) {
383 if (!S_ISREG(statb.st_mode))
393 if (statb.st_uid == geteuid()) {
394 if ((statb.st_mode & 0100) == 0)
396 } else if (statb.st_gid == getegid()) {
397 if ((statb.st_mode & 010) == 0)
400 if ((statb.st_mode & 01) == 0)
H A Dexpand.c1078 struct stat statb; local
1129 if (metaflag == 0 || lstat(expdir, &statb) >= 0)
/freebsd-11-stable/contrib/ntp/lib/isc/unix/
H A Dfsaccess.c37 struct stat statb; local
43 if (stat(path, &statb) != 0)
46 if ((statb.st_mode & S_IFDIR) != 0)
48 else if ((statb.st_mode & S_IFREG) == 0)
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dgetusershell.c125 struct stat statb; local
153 if (fstat(fileno(fp), &statb) == -1) {
157 if ((strings = malloc((u_int)statb.st_size)) == NULL) {
161 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *));
/freebsd-11-stable/usr.bin/mail/
H A Dedit.c142 struct stat statb; local
163 if (fstat(fileno(nf), &statb) < 0)
166 modtime = statb.st_mtime;
195 if (stat(tempname, &statb) < 0) {
199 if (modtime == statb.st_mtime) {
H A Dquit.c394 struct stat statb; local
423 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
/freebsd-11-stable/libexec/talkd/
H A Dprocess.c187 struct stat statb; local
203 if (stat(ftty, &statb) == 0) {
204 if (!(statb.st_mode & 020))
206 if (statb.st_atime > best) {
207 best = statb.st_atime;
/freebsd-11-stable/libexec/rbootd/
H A Dparseconf.c313 struct stat statb; local
341 if (stat(dp->d_name, &statb) < 0 ||
342 (statb.st_mode & S_IFMT) != S_IFREG)
/freebsd-11-stable/contrib/tcsh/
H A Dtw.parse.c2023 struct stat statb; local
2031 if (lstat(ptr, &statb) != -1) {
2033 if (S_ISLNK(statb.st_mode)) { /* Symbolic link */
2035 if (stat(ptr, &statb) == -1)
2037 else if (S_ISDIR(statb.st_mode))
2047 if (S_ISSOCK(statb.st_mode)) /* Socket */
2051 if (S_ISFIFO(statb.st_mode)) /* Named Pipe */
2055 if (S_ISHIDDEN(statb.st_mode)) /* Hidden Directory [aix] */
2072 if (S_ISNWK(statb.st_mode)) /* Network Special [hpux] */
2076 if (S_ISCHR(statb
2106 struct stat statb; local
[all...]
H A Dsh.file.c277 struct stat statb; local
282 if (lstat(spath, &statb) == 0) {
283 switch (statb.st_mode & S_IFMT) {
288 if (stat(spath, &statb) == 0 && /* follow it out */
289 S_ISDIR(statb.st_mode))
298 if (statb.st_mode & 0111)
H A Dsh.exp.c87 struct stat statb; local
113 if (stat(name, &statb) == -1)
118 if (S_ISDIR(statb.st_mode) && mode == X_OK)
137 else if (euid == statb.st_uid)
140 else if (egid == statb.st_gid)
167 if (groups[n] == statb.st_gid) {
176 if (statb.st_mode & mode)
/freebsd-11-stable/sbin/fsck_ffs/
H A Dsetup.c78 struct stat statb; local
85 if (stat(dev, &statb) < 0) {
93 if ((statb.st_mode & S_IFMT) != S_IFCHR &&
94 (statb.st_mode & S_IFMT) != S_IFBLK) {
95 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) {
100 if ((statb.st_flags & SF_SNAPSHOT) != 0 && cvtlevel == 0) {
101 cursnapshot = statb.st_ino;
104 (statb.st_flags & SF_SNAPSHOT) == 0) {
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dfsaccess.c300 struct stat statb; local
304 if (stat(path, &statb) != 0)
307 if ((statb.st_mode & S_IFDIR) != 0)
309 else if ((statb.st_mode & S_IFREG) == 0)
/freebsd-11-stable/usr.sbin/lpr/lpr/
H A Dlpr.c112 static struct stat statb; variable in typeref:struct:stat
391 (uintmax_t)statb.st_dev, (uintmax_t)statb.st_ino);
713 if (stat(file, &statb) < 0) {
717 if ((statb.st_mode & S_IFMT) == S_IFDIR) {
721 if (statb.st_size == 0) {
/freebsd-11-stable/usr.sbin/lpr/common_source/
H A Ddisplayq.c104 struct stat statb; local
129 ret = stat(pp->lock_file, &statb);
132 if (statb.st_mode & LFM_PRINT_DIS) {
146 if (statb.st_mode & LFM_QUEUE_DIS) {
/freebsd-11-stable/contrib/diff/src/
H A Ddiff3.c229 struct stat statb;
365 if (stat (file[i], &statb) < 0)
367 else if (S_ISDIR (statb.st_mode))
227 struct stat statb; local
/freebsd-11-stable/contrib/sendmail/src/
H A Dqueue.c6014 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))
H A Dreadcf.c157 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))
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-linux.c2465 struct stat statb; local
2528 if (lstat(subsystem_path, &statb) != 0) {
3100 struct stat statb; local
3115 if (stat(pathstr, &statb) == 0) {

Completed in 352 milliseconds