Home
last modified time | relevance | path

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

12

/netbsd-src/bin/sh/
H A Dmail.c83 struct stat statb; in chkmail() local
104 if (stat(p, &statb) < 0) in chkmail()
105 statb.st_mtime = 0; in chkmail()
106 if (statb.st_mtime > mailtime[i] && ! silent) { in chkmail()
110 mailtime[i] = statb.st_mtime; in chkmail()
112 if (stat(p, &statb) < 0) in chkmail()
113 statb.st_size = 0; in chkmail()
114 if (statb.st_size > mailsize[i] && ! silent) { in chkmail()
139 mailsize[i] = statb.st_size; in chkmail()
H A Dexec.c129 struct stat statb; in shellexec() local
136 if (e == EACCES && stat(argv[0], &statb) == -1) in shellexec()
167 if (stat(cmdname, &statb) != -1) in shellexec()
574 struct stat statb; in find_command() local
581 while (stat(name, &statb) < 0) { in find_command()
668 while (stat(fullname, &statb) < 0) { in find_command()
678 if (!S_ISREG(statb.st_mode)) in find_command()
697 if (statb.st_uid == geteuid()) { in find_command()
698 if ((statb.st_mode & 0100) == 0) in find_command()
700 } else if (statb.st_gid == getegid()) { in find_command()
[all …]
H A Dcd.c88 struct stat statb; in cdcmd() local
134 if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) { in cdcmd()
164 struct stat statb; in docd()
194 if (lstat(stackblock(), &statb) < 0) { in docd()
/netbsd-src/sys/arch/hp300/stand/mkboot/
H A Dmkboot.c243 struct stat statb; in putfile() local
248 fstat(fd, &statb); in putfile()
250 ld.count = htobe32(statb.st_size); in putfile()
251 if ((bp = malloc(statb.st_size)) == NULL) in putfile()
253 if (read(fd, bp, statb.st_size) < 0) in putfile()
257 write(to, bp, statb.st_size); in putfile()
260 return statb.st_size + sizeof(ld); in putfile()
299 struct stat statb; in bcddate() local
305 stat(name, &statb); in bcddate()
306 tm = localtime(&statb.st_ctime); in bcddate()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dfsaccess.c31 struct stat statb; in isc_fsaccess_set() local
37 if (stat(path, &statb) != 0) { in isc_fsaccess_set()
41 if ((statb.st_mode & S_IFDIR) != 0) { in isc_fsaccess_set()
43 } else if ((statb.st_mode & S_IFREG) == 0) { in isc_fsaccess_set()
/netbsd-src/usr.bin/mail/
H A Dedit.c66 struct stat statb; in run_editor() local
100 if (fstat(fileno(nf), &statb) < 0) in run_editor()
103 modtime = statb.st_mtime; in run_editor()
126 if (stat(tempname, &statb) < 0) { in run_editor()
130 if (modtime == statb.st_mtime) { in run_editor()
H A Dquit.c143 struct stat statb; in edstop() local
175 if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) { in edstop()
/netbsd-src/libexec/talkd/
H A Dprocess.c186 struct stat statb; in find_user() local
207 if (stat(ftty, &statb) != 0) in find_user()
210 if (!(statb.st_mode & S_IWGRP)) { in find_user()
215 if (statb.st_atime > atime && in find_user()
217 atime = statb.st_atime; in find_user()
/netbsd-src/games/boggle/boggle/
H A Dword.c138 struct stat statb; in loaddict() local
143 if (fstat(fileno(fp), &statb) < 0) { in loaddict()
152 if ((dictspace = malloc(statb.st_size + 1)) == NULL) { in loaddict()
156 n = (long)statb.st_size; in loaddict()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dgetusershell.c127 struct stat statb; in initshells() local
155 if (fstat(fileno(fp), &statb) == -1) { in initshells()
159 if ((strings = malloc((u_int)statb.st_size)) == NULL) { in initshells()
163 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *)); in initshells()
/netbsd-src/usr.bin/progress/
H A Dprogress.c89 struct stat statb; in main() local
138 if (!zflag && !lflag && (fstat(fd, &statb) == 0)) { in main()
139 if (S_ISFIFO(statb.st_mode)) { in main()
145 filesize = statb.st_size; in main()
/netbsd-src/bin/ksh/
H A Dc_test.c427 test_stat(pathx, statb) in test_stat() argument
429 struct stat *statb;
431 return stat(pathx, statb);
450 struct stat statb; local
452 if (stat(pathx, &statb) < 0)
454 else if (S_ISDIR(statb.st_mode))
457 res = (statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
H A Dio.c211 struct stat statb; local
213 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
H A Dexec.c1020 struct stat statb; local
1022 if (stat(pathx, &statb) < 0)
1028 && (!S_ISREG(statb.st_mode)
1030 || !(statb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))))
1033 err = S_ISDIR(statb.st_mode) ? EISDIR : EACCES;
1123 struct stat statb; local
1153 && (stat(cp, &statb) < 0 || S_ISREG(statb.st_mode)))
/netbsd-src/usr.sbin/rbootd/
H A Dparseconf.c315 struct stat statb; in GetBootFiles() local
343 if (stat(dp->d_name, &statb) < 0 || !S_ISREG(statb.st_mode)) in GetBootFiles()
/netbsd-src/usr.sbin/lpr/lpr/
H A Dlpr.c103 static struct stat statb; variable
351 (unsigned long long)statb.st_dev, in main()
352 (unsigned long long)statb.st_ino); in main()
614 if (stat(file, &statb) < 0) { in test()
618 if (S_ISDIR(statb.st_mode)) { in test()
622 if (statb.st_size == 0) { in test()
/netbsd-src/usr.sbin/lpr/common_source/
H A Ddisplayq.c100 struct stat statb; in displayq() local
119 ret = stat(LO, &statb); in displayq()
122 if (statb.st_mode & S_IXUSR) { in displayq()
137 if (statb.st_mode & S_IXGRP) { in displayq()
/netbsd-src/bin/csh/
H A Dfile.c275 struct stat statb; in filetype() local
279 if (lstat(short2str(path), &statb) == 0) { in filetype()
280 switch (statb.st_mode & S_IFMT) { in filetype()
284 if (stat(short2str(path), &statb) == 0 && /* follow it out */ in filetype()
285 S_ISDIR(statb.st_mode)) in filetype()
292 if (statb.st_mode & 0111) in filetype()
/netbsd-src/sys/arch/hppa/stand/mkboot/
H A Dmkboot.c416 struct stat statb; in bcddate()
422 stat(file, &statb); in bcddate()
423 tm = localtime(&statb.st_ctime); in bcddate()
415 struct stat statb; bcddate() local
/netbsd-src/sbin/fsck_lfs/
H A Dsetup.c165 struct stat statb; in setup() local
178 if (stat(dev, &statb) < 0) { in setup()
182 if (!S_ISCHR(statb.st_mode) && skipclean) { in setup()
/netbsd-src/sbin/fsck_ext2fs/
H A Dsetup.c113 struct stat statb; in setup() local
121 if (stat(dev, &statb) < 0) { in setup()
125 if (!S_ISCHR(statb.st_mode)) { in setup()
/netbsd-src/sbin/fsck_ffs/
H A Dsetup.c94 struct stat statb; in setup() local
104 if (stat(dev, &statb) < 0) { in setup()
108 if (!forceimage && !S_ISCHR(statb.st_mode)) { in setup()
/netbsd-src/external/gpl2/xcvs/dist/diff/
H A Ddiff3.c272 struct stat statb; local
418 if (stat (file[i], &statb) < 0)
423 else if (S_ISDIR(statb.st_mode))
/netbsd-src/external/gpl2/diffutils/dist/src/
H A Ddiff3.c249 struct stat statb; in main() local
383 if (stat (file[i], &statb) < 0) in main()
385 else if (S_ISDIR (statb.st_mode)) in main()
/netbsd-src/sys/dev/isa/
H A Dif_eg.c169 egreadPCBstat(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t statb) in egreadPCBstat() argument
179 if ((bus_space_read_1(iot, ioh, EG_STATUS) & EG_PCB_STAT) == statb) in egreadPCBstat()

12