/netbsd-current/bin/ksh/ |
H A D | mail.c | 52 struct stat stbuf; local 68 if (mbp->mb_path && stat(mbp->mb_path, &stbuf) == 0 69 && S_ISREG(stbuf.st_mode)) 71 if (stbuf.st_size 72 && mbp->mb_mtime != stbuf.st_mtime 73 && stbuf.st_atime <= stbuf.st_mtime) 75 mbp->mb_mtime = stbuf.st_mtime; 101 struct stat stbuf; local 110 if (p && stat(p, &stbuf) 176 struct stat stbuf; local [all...] |
/netbsd-current/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 125 struct stat stbuf; local 136 if (stat(line, &stbuf) >= 0) { 137 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0) 399 struct stat stbuf; local 408 if (stat(line, &stbuf) >= 0) { 409 if (chmod(line, stbuf.st_mode & 0767) < 0) 456 struct stat stbuf; local 464 if (stat(line, &stbuf) >= 0) { 465 if (chmod(line, (stbuf.st_mode & 0777) | 010) < 0) 531 struct stat stbuf; local 671 struct stat stbuf; local 730 struct stat stbuf; local 824 struct stat stbuf; local 864 struct stat stbuf; local [all...] |
/netbsd-current/usr.sbin/makefs/ |
H A D | walk.c | 138 struct stat stbuf; local 184 if (stat(path, &stbuf) == -1) 187 if (lstat(path, &stbuf) == -1) 194 if (S_ISLNK(stbuf.st_mode)) { 195 stbuf.st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO); 196 stbuf.st_mode |= S_IRWXU 202 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { 222 S_ISDIR(stbuf.st_mode)) { 234 inode_type(stbuf.st_mode), path, 240 inode_type(stbuf 315 create_fsnode(const char *root, const char *path, const char *name, struct stat *stbuf) argument 510 struct stat stbuf; local [all...] |
/netbsd-current/libexec/talkd/ |
H A D | announce.c | 74 struct stat stbuf; local 78 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&S_IWGRP) == 0)
|
/netbsd-current/usr.sbin/tcpdchk/ |
H A D | scaffold.c | 144 struct stat stbuf; local 160 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
/netbsd-current/sbin/badsect/ |
H A D | badsect.c | 99 struct stat stbuf, devstat; local 114 if (stat(".", &stbuf) == -1) 125 if (stbuf.st_dev == devstat.st_rdev && 132 (long long)stbuf.st_rdev, argv[1]);
|
/netbsd-current/usr.sbin/lpr/common_source/ |
H A D | common.c | 240 struct stat stbuf; local 249 if (fstat(dirp->dd_fd, &stbuf) < 0) 256 arraysz = (int)(stbuf.st_size / 24); 266 if (stat(d->d_name, &stbuf) < 0) { 274 q->q_time = stbuf.st_mtime;
|
/netbsd-current/libexec/tftpd/ |
H A D | tftpd.c | 776 struct stat stbuf; local 808 if (stat(filename, &stbuf) < 0) 810 if (!S_ISREG(stbuf.st_mode)) 813 if ((stbuf.st_mode & S_IROTH) == 0) 816 if ((stbuf.st_mode & S_IWOTH) == 0) 835 if (stat(pathname, &stbuf) == 0 && 836 (stbuf.st_mode & S_IFMT) == S_IFREG) { 842 if (mode == RRQ && !(stbuf.st_mode & S_IROTH)) 844 if (mode == WRQ && !(stbuf.st_mode & S_IWOTH)) 855 stat_rc = stat(filename, &stbuf); [all...] |
/netbsd-current/bin/csh/ |
H A D | exec.c | 571 struct stat stbuf; local 591 return (stat(strname, &stbuf) != -1 && ((S_ISREG(stbuf.st_mode) && 593 (stbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) && 594 access(strname, X_OK) == 0) || (dir_ok && S_ISDIR(stbuf.st_mode))));
|
/netbsd-current/libexec/ftpd/ |
H A D | cmds.c | 459 struct stat stbuf; local 460 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 463 reply(213, ULLF, (ULLT)stbuf.st_size); 471 struct stat stbuf; local 477 if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 482 if (stbuf.st_size > 10240) {
|
H A D | ftpcmd.y | 828 struct stat stbuf; 829 if (stat($4, &stbuf) < 0) 831 else if (!S_ISREG(stbuf.st_mode)) { 836 t = gmtime(&stbuf.st_mtime);
|
/netbsd-current/usr.bin/vgrind/ |
H A D | vfontedpr.c | 137 struct stat stbuf; local 308 fstat(fileno(stdin), &stbuf); local 309 cp = ctime(&stbuf.st_mtime);
|
/netbsd-current/bin/df/ |
H A D | df.c | 94 struct stat stbuf; local 204 if (stat(*argv, &stbuf) < 0) { 209 } else if (S_ISBLK(stbuf.st_mode)) {
|
/netbsd-current/usr.bin/msgs/ |
H A D | msgs.c | 266 struct stat stbuf; local 301 if (stat(inbuf, &stbuf) != 0) 303 if (stbuf.st_mtime < keep 304 && stbuf.st_mode&S_IWRITE) {
|
/netbsd-current/usr.sbin/makefs/cd9660/ |
H A D | cd9660_eltorito.c | 68 struct stat stbuf; local 128 if (lstat(new_image->filename, &stbuf) == -1) 132 switch (stbuf.st_size) { 154 new_image->size = stbuf.st_size;
|
/netbsd-current/lib/librefuse/refuse/ |
H A D | fs.c | 798 struct stat stbuf; local 801 memset(&stbuf, 0, sizeof(stbuf)); 802 stbuf.st_mode = dt_to_mode(type); 804 res = shim->fill_dir_v23(shim->dirh, name, &stbuf, 0); 813 struct stat stbuf; local 816 memset(&stbuf, 0, sizeof(stbuf)); 817 stbuf.st_mode = dt_to_mode(type); 818 stbuf [all...] |
/netbsd-current/sbin/routed/ |
H A D | trace.c | 304 struct stat stbuf; local 339 || 0 > stat(_PATH_TRACE, &stbuf)) 348 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) { 350 stbuf.st_mode, filename);
|
/netbsd-current/external/bsd/am-utils/dist/hlfsd/ |
H A D | hlfsd.c | 834 struct stat stbuf; local 854 if (stat(dir_name, &stbuf) == 0 && stbuf.st_ino == ROOTID) {
|
/netbsd-current/games/larn/ |
H A D | scores.c | 764 struct stat stbuf; local 772 if (fstat(io_infd, &stbuf) < 0) { 776 for (n = stbuf.st_size / sizeof(struct log_fmt); n > 0; --n) {
|
/netbsd-current/sbin/restore/ |
H A D | symtab.c | 543 struct stat stbuf; local 562 if (fstat(fd, &stbuf) < 0) { 566 tblsize = stbuf.st_size - sizeof(struct symtableheader);
|
H A D | tape.c | 294 struct stat stbuf; local 342 if (stat(".", &stbuf) < 0) { 346 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) 347 fssize = stbuf.st_blksize;
|
/netbsd-current/external/bsd/ntp/dist/util/ |
H A D | tickadj.c | 753 struct stat stbuf; local 755 if (stat(*kname, &stbuf) == -1)
|
/netbsd-current/lib/librefuse/ |
H A D | refuse.c | 282 const struct stat *stbuf, off_t off, enum fuse_fill_dir_flags flags) 288 if (stbuf == NULL) { 292 dtype = (uint8_t)puffs_vtype2dt(puffs_mode2vt(stbuf->st_mode)); 293 dino = stbuf->st_ino; 281 puffs_fuse_fill_dir(void *buf, const char *name, const struct stat *stbuf, off_t off, enum fuse_fill_dir_flags flags) argument
|
/netbsd-current/usr.bin/ftp/ |
H A D | cmds.c | 605 struct stat stbuf; local 613 ret = stat(locfile, &stbuf); 623 restart_point = stbuf.st_size; 631 if (stbuf.st_mtime >= mtime) { 728 struct stat stbuf; local 730 if (stat(tp, &stbuf) == 0) 731 restart_point = stbuf.st_size;
|
/netbsd-current/external/gpl2/gmake/dist/ |
H A D | read.c | 2846 stat_t stbuf; 2848 struct stat stbuf; 2878 EINTRLOOP (e, stat (dir, &stbuf)); 2879 if (e == 0 && S_ISDIR (stbuf.st_mode)) 2915 EINTRLOOP (e, stat (default_include_directories[i], &stbuf)); 2916 if (e == 0 && S_ISDIR (stbuf.st_mode)) 2832 stat_t stbuf; local 2834 struct stat stbuf; local
|