/netbsd-current/sys/arch/hp300/stand/mkboot/ |
H A D | mkboot.c | 243 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 D | file.c | 275 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 D | mkboot.c | 415 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 D | fsaccess.c | 31 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 D | expand.c | 1575 struct stat statb; local 1666 if (metaflag == 0 || lstat(expdir, &statb) >= 0)
|
H A D | eval.c | 1586 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 D | histedit.c | 622 struct stat statb; local 627 if (fstatat(dfd, entry->d_name, &statb, 0) == -1) 629 if (!S_ISREG(statb.st_mode))
|
H A D | exec.c | 129 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 D | cd.c | 88 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 D | pcap-linux.c | 1795 struct stat statb; local 1807 if (stat(pathstr, &statb) == 0) {
|
/netbsd-current/sbin/fsck_ffs/ |
H A D | setup.c | 94 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 D | lpr.c | 103 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 D | var.c | 1026 struct stat statb; local 1029 && stat(s, &statb) == 0 && S_ISDIR(statb.st_mode))
|
H A D | c_test.c | 427 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 D | eval.c | 1022 (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 D | io.c | 211 struct stat statb; local 213 return fstat(fd, &statb) == 0 && !S_ISREG(statb.st_mode) ?
|
H A D | history.c | 264 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 D | if_eg.c | 169 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 D | parseconf.c | 315 struct stat statb; local 343 if (stat(dp->d_name, &statb) < 0 || !S_ISREG(statb.st_mode))
|
/netbsd-current/usr.bin/progress/ |
H A D | progress.c | 89 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 D | word.c | 138 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 D | fsaccess.c | 302 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 D | fsaccess.c | 39 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 D | setup.c | 165 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 D | setup.c | 113 struct stat statb; local 121 if (stat(dev, &statb) < 0) { 125 if (!S_ISCHR(statb.st_mode)) {
|