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

12

/freebsd-current/bin/sh/
H A Dmail.c70 struct stat statb; local
92 if (stat(p, &statb) < 0)
93 statb.st_mtime = 0;
94 if (statb.st_mtime > mailtime[i] && ! silent) {
98 mailtime[i] = statb.st_mtime;
100 if (stat(p, &statb) < 0)
101 statb.st_size = 0;
102 if (statb.st_size > mailtime[i] && ! silent) {
106 mailtime[i] = statb.st_size;
H A Dcd.c77 struct stat statb; local
116 if (stat(p, &statb) < 0) {
119 } else if (!S_ISDIR(statb.st_mode))
181 struct stat statb; local
209 if (lstat(stackblock(), &statb) < 0) {
H A Dmain.c294 struct stat statb; local
301 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
H A Dexec.c351 struct stat statb; local
404 if (stat(fullname, &statb) < 0) {
410 if (!S_ISREG(statb.st_mode))
420 if (statb.st_uid == geteuid()) {
421 if ((statb.st_mode & 0100) == 0)
423 } else if (statb.st_gid == getegid()) {
424 if ((statb.st_mode & 010) == 0)
427 if ((statb.st_mode & 01) == 0)
/freebsd-current/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-current/usr.bin/mail/
H A Dedit.c136 struct stat statb; local
157 if (fstat(fileno(nf), &statb) < 0)
160 modtime = statb.st_mtime;
189 if (stat(tempname, &statb) < 0) {
193 if (modtime == statb.st_mtime) {
/freebsd-current/libexec/talkd/
H A Dprocess.c181 struct stat statb; local
197 if (stat(ftty, &statb) == 0) {
198 if (!(statb.st_mode & 020))
200 if (statb.st_atime > best) {
201 best = statb.st_atime;
/freebsd-current/tools/test/stress2/misc/
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 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 Dnamecache.sh119 struct stat statb;
140 if (stat(dp->d_name, &statb) == -1) {
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 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 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 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 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 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 Dsendfile25.sh160 struct stat statb;
198 if (stat(inputFile, &statb) != 0)
205 if (sendfile(fd, tcpsock, 0, statb.st_size, NULL, &off, 0) == -1)
/freebsd-current/libexec/rbootd/
H A Dparseconf.c305 struct stat statb; local
333 if (stat(dp->d_name, &statb) < 0 ||
334 (statb.st_mode & S_IFMT) != S_IFREG)
/freebsd-current/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)
/freebsd-current/sbin/fsck_ffs/
H A Dsetup.c368 struct stat statb; local
371 if (stat(dev, &statb) < 0)
373 if ((statb.st_mode & S_IFMT) != S_IFCHR &&
374 (statb.st_mode & S_IFMT) != S_IFBLK) {
375 if (bkgrdflag != 0 && (statb.st_flags & SF_SNAPSHOT) == 0) {
380 cursnapshot = statb.st_ino;
/freebsd-current/usr.sbin/lpr/lpr/
H A Dlpr.c99 static struct stat statb; variable in typeref:struct:stat
378 (uintmax_t)statb.st_dev, (uintmax_t)statb.st_ino);
699 if (stat(file, &statb) < 0) {
703 if ((statb.st_mode & S_IFMT) == S_IFDIR) {
707 if (statb.st_size == 0) {
/freebsd-current/usr.sbin/lpr/common_source/
H A Ddisplayq.c98 struct stat statb; local
123 ret = stat(pp->lock_file, &statb);
126 if (statb.st_mode & LFM_PRINT_DIS) {
140 if (statb.st_mode & LFM_QUEUE_DIS) {

Completed in 487 milliseconds

12