Searched refs:statb (Results 1 - 25 of 35) sorted by last modified time

12

/netbsd-current/sys/arch/hp300/stand/mkboot/
H A Dmkboot.c243 struct stat statb; local
248 fstat(fd, &statb);
250 ld.count = htobe32(statb.st_size);
251 if ((bp = malloc(statb.st_size)) == NULL)
253 if (read(fd, bp, statb.st_size) < 0)
257 write(to, bp, statb.st_size);
260 return statb.st_size + sizeof(ld);
299 struct stat statb; local
305 stat(name, &statb);
306 tm = localtime(&statb
[all...]
/netbsd-current/bin/csh/
H A Dfile.c275 struct stat statb; local
279 if (lstat(short2str(path), &statb) == 0) {
280 switch (statb.st_mode & S_IFMT) {
284 if (stat(short2str(path), &statb) == 0 && /* follow it out */
285 S_ISDIR(statb.st_mode))
292 if (statb.st_mode & 0111)
/netbsd-current/sys/arch/hppa/stand/mkboot/
H A Dmkboot.c415 struct stat statb; local
421 stat(file, &statb);
422 tm = localtime(&statb.st_ctime);
/netbsd-current/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dfsaccess.c31 struct stat statb; local
37 if (stat(path, &statb) != 0) {
41 if ((statb.st_mode & S_IFDIR) != 0) {
43 } else if ((statb.st_mode & S_IFREG) == 0) {
/netbsd-current/bin/sh/
H A Dexpand.c1575 struct stat statb; local
1666 if (metaflag == 0 || lstat(expdir, &statb) >= 0)
H A Deval.c1586 struct stat statb; local
1590 if (stat(basename, &statb) == 0) {
1591 if (S_ISDIR(statb.st_mode))
1593 if (S_ISBLK(statb.st_mode))
1598 if ((stat(fullname, &statb) == 0)) {
1600 if (S_ISDIR(statb.st_mode) || S_ISBLK(statb.st_mode))
H A Dhistedit.c622 struct stat statb; local
627 if (fstatat(dfd, entry->d_name, &statb, 0) == -1)
629 if (!S_ISREG(statb.st_mode))
H A Dexec.c129 struct stat statb; local
136 if (e == EACCES && stat(argv[0], &statb) == -1)
167 if (stat(cmdname, &statb) != -1)
574 struct stat statb; local
581 while (stat(name, &statb) < 0) {
668 while (stat(fullname, &statb) < 0) {
678 if (!S_ISREG(statb.st_mode))
697 if (statb.st_uid == geteuid()) {
698 if ((statb.st_mode & 0100) == 0)
700 } else if (statb
[all...]
H A Dcd.c88 struct stat statb; local
134 if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) {
164 struct stat statb;
194 if (lstat(stackblock(), &statb) < 0) {
/netbsd-current/external/bsd/libpcap/dist/
H A Dpcap-linux.c1795 struct stat statb; local
1807 if (stat(pathstr, &statb) == 0) {
/netbsd-current/sbin/fsck_ffs/
H A Dsetup.c94 struct stat statb; local
104 if (stat(dev, &statb) < 0) {
108 if (!forceimage && !S_ISCHR(statb.st_mode)) {
/netbsd-current/usr.sbin/lpr/lpr/
H A Dlpr.c103 static struct stat statb; variable in typeref:struct:stat
351 (unsigned long long)statb.st_dev,
352 (unsigned long long)statb.st_ino);
614 if (stat(file, &statb) < 0) {
618 if (S_ISDIR(statb.st_mode)) {
622 if (statb.st_size == 0) {
/netbsd-current/bin/ksh/
H A Dvar.c1026 struct stat statb; local
1029 && stat(s, &statb) == 0 && S_ISDIR(statb.st_mode))
H A Dc_test.c427 test_stat(pathx, statb)
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 Deval.c1022 (stat_done = stat(Xstring(*xs, xp), &statb) < 0 \
1024 struct stat lstatb, statb; local
1038 || !S_ISDIR(statb.st_mode))
1052 && S_ISDIR(statb.st_mode))
H A Dio.c211 struct stat statb; local
213 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
H A Dhistory.c264 struct stat statb; local
274 n = fstat(shf_fileno(shf), &statb) < 0 ? 128
275 : statb.st_size + 1;
952 struct stat statb; local
982 if (fstat(histfd, &statb) >= 0)
983 fchown(fd, statb.st_uid, statb.st_gid);
/netbsd-current/sys/dev/isa/
H A Dif_eg.c169 egreadPCBstat(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t statb) argument
179 if ((bus_space_read_1(iot, ioh, EG_STATUS) & EG_PCB_STAT) == statb)
/netbsd-current/usr.sbin/rbootd/
H A Dparseconf.c315 struct stat statb; local
343 if (stat(dp->d_name, &statb) < 0 || !S_ISREG(statb.st_mode))
/netbsd-current/usr.bin/progress/
H A Dprogress.c89 struct stat statb; local
138 if (!zflag && !lflag && (fstat(fd, &statb) == 0)) {
139 if (S_ISFIFO(statb.st_mode)) {
145 filesize = statb.st_size;
/netbsd-current/games/boggle/boggle/
H A Dword.c138 struct stat statb; local
143 if (fstat(fileno(fp), &statb) < 0) {
152 if ((dictspace = malloc(statb.st_size + 1)) == NULL) {
156 n = (long)statb.st_size;
/netbsd-current/external/bsd/ntp/dist/lib/isc/win32/
H A Dfsaccess.c302 struct stat statb; local
306 if (stat(path, &statb) != 0)
309 if ((statb.st_mode & S_IFDIR) != 0)
311 else if ((statb.st_mode & S_IFREG) == 0)
/netbsd-current/external/bsd/ntp/dist/lib/isc/unix/
H A Dfsaccess.c39 struct stat statb; local
45 if (stat(path, &statb) != 0)
48 if ((statb.st_mode & S_IFDIR) != 0)
50 else if ((statb.st_mode & S_IFREG) == 0)
/netbsd-current/sbin/fsck_lfs/
H A Dsetup.c165 struct stat statb; local
178 if (stat(dev, &statb) < 0) {
182 if (!S_ISCHR(statb.st_mode) && skipclean) {
/netbsd-current/sbin/fsck_ext2fs/
H A Dsetup.c113 struct stat statb; local
121 if (stat(dev, &statb) < 0) {
125 if (!S_ISCHR(statb.st_mode)) {

Completed in 342 milliseconds

12