Searched refs:stbuf (Results 1 - 25 of 27) sorted by relevance

12

/netbsd-current/bin/ksh/
H A Dmail.c52 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 Dcmds.c125 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 Dwalk.c138 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 Dannounce.c74 struct stat stbuf; local
78 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&S_IWGRP) == 0)
/netbsd-current/usr.sbin/tcpdchk/
H A Dscaffold.c144 struct stat stbuf; local
160 (void) check_path(buf[0] ? buf : "/", &stbuf);
/netbsd-current/sbin/badsect/
H A Dbadsect.c99 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 Dcommon.c240 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 Dtftpd.c776 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 Dexec.c571 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 Dcmds.c459 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 Dftpcmd.y828 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 Dvfontedpr.c137 struct stat stbuf; local
308 fstat(fileno(stdin), &stbuf); local
309 cp = ctime(&stbuf.st_mtime);
/netbsd-current/bin/df/
H A Ddf.c94 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 Dmsgs.c266 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 Dcd9660_eltorito.c68 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 Dfs.c798 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 Dtrace.c304 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 Dhlfsd.c834 struct stat stbuf; local
854 if (stat(dir_name, &stbuf) == 0 && stbuf.st_ino == ROOTID) {
/netbsd-current/games/larn/
H A Dscores.c764 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 Dsymtab.c543 struct stat stbuf; local
562 if (fstat(fd, &stbuf) < 0) {
566 tblsize = stbuf.st_size - sizeof(struct symtableheader);
H A Dtape.c294 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 Dtickadj.c753 struct stat stbuf; local
755 if (stat(*kname, &stbuf) == -1)
/netbsd-current/lib/librefuse/
H A Drefuse.c282 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 Dcmds.c605 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 Dread.c2846 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

Completed in 621 milliseconds

12