HomeSort by: relevance | last modified time | path
    Searched defs:stbuf (Results 1 - 22 of 22) sorted by relevancy

  /src/libexec/talkd/
announce.c 74 struct stat stbuf; local in function:announce
78 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&S_IWGRP) == 0)
  /src/usr.sbin/tcpdchk/
scaffold.c 144 struct stat stbuf; local in function:check_path
160 (void) check_path(buf[0] ? buf : "/", &stbuf);
  /src/bin/ksh/
mail.c 52 struct stat stbuf; local in function:mcheck
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 in function:mbset
110 if (p && stat(p, &stbuf) == 0 && S_ISREG(stbuf.st_mode)
176 struct stat stbuf; local in function:mballoc
    [all...]
  /src/sbin/badsect/
badsect.c 99 struct stat stbuf, devstat; local in function:main
114 if (stat(".", &stbuf) == -1)
125 if (stbuf.st_dev == devstat.st_rdev &&
132 (long long)stbuf.st_rdev, argv[1]);
  /src/usr.sbin/lpr/lpc/
cmds.c 125 struct stat stbuf; local in function:abortpr
136 if (stat(line, &stbuf) >= 0) {
137 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0)
399 struct stat stbuf; local in function:enablepr
408 if (stat(line, &stbuf) >= 0) {
409 if (chmod(line, stbuf.st_mode & 0767) < 0)
456 struct stat stbuf; local in function:disablepr
464 if (stat(line, &stbuf) >= 0) {
465 if (chmod(line, (stbuf.st_mode & 0777) | 010) < 0)
531 struct stat stbuf; local in function:putmsg
671 struct stat stbuf; local in function:startpr
730 struct stat stbuf; local in function:prstat
824 struct stat stbuf; local in function:stoppr
864 struct stat stbuf; local in function:topq
    [all...]
  /src/usr.sbin/makefs/cd9660/
cd9660_eltorito.c 68 struct stat stbuf; local in function:cd9660_add_boot_disk
128 if (lstat(new_image->filename, &stbuf) == -1)
132 switch (stbuf.st_size) {
154 new_image->size = stbuf.st_size;
  /src/sbin/restore/
symtab.c 543 struct stat stbuf; local in function:initsymtable
562 if (fstat(fd, &stbuf) < 0) {
566 tblsize = stbuf.st_size - sizeof(struct symtableheader);
tape.c 294 struct stat stbuf; local in function:setup
342 if (stat(".", &stbuf) < 0) {
346 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE)
347 fssize = stbuf.st_blksize;
  /src/bin/df/
df.c 97 struct stat stbuf; local in function:main
213 if (stat(*argv, &stbuf) < 0) {
219 } else if (S_ISBLK(stbuf.st_mode)) {
  /src/usr.sbin/makefs/
walk.c 204 struct stat stbuf; local in function:walk_dir
250 if (stat(path, &stbuf) == -1)
253 if (lstat(path, &stbuf) == -1)
260 if (S_ISLNK(stbuf.st_mode)) {
261 stbuf.st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO);
262 stbuf.st_mode |= S_IRWXU
268 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) {
277 if (fsnode_join(&cur, join, last, path, name, &stbuf,
295 cur = create_fsnode(root, dir, name, &stbuf);
317 if (stbuf.st_nlink > 1)
549 struct stat stbuf; local in function:apply_specdir
    [all...]
cd9660.c 2121 struct stat stbuf; local in function:cd9660_add_generic_bootimage
2133 if (lstat(diskStructure->generic_bootimage, &stbuf) == -1)
2137 if (stbuf.st_size > 32768) {
2144 (long long)stbuf.st_size);
  /src/bin/csh/
exec.c 571 struct stat stbuf; local in function:executable
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))));
  /src/games/larn/
scores.c 764 struct stat stbuf; local in function:diedlog
772 if (fstat(io_infd, &stbuf) < 0) {
776 for (n = stbuf.st_size / sizeof(struct log_fmt); n > 0; --n) {
  /src/sbin/routed/
trace.c 304 struct stat stbuf; local in function:set_tracefile
339 || 0 > stat(_PATH_TRACE, &stbuf))
348 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) {
350 stbuf.st_mode, filename);
  /src/usr.bin/vgrind/
vfontedpr.c 137 struct stat stbuf; local in function:main
308 fstat(fileno(stdin), &stbuf);
309 cp = ctime(&stbuf.st_mtime);
  /src/lib/libedit/
filecomplete.c 449 struct stat stbuf; local in function:append_char_function
453 if (stat(expname ? expname : name, &stbuf) == -1)
455 if (S_ISDIR(stbuf.st_mode))
  /src/libexec/ftpd/
cmds.c 459 struct stat stbuf; local in function:sizecmd
460 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode))
463 reply(213, ULLF, (ULLT)stbuf.st_size);
471 struct stat stbuf; local in function:sizecmd
477 if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
482 if (stbuf.st_size > 10240) {
  /src/usr.bin/msgs/
msgs.c 266 struct stat stbuf; local in function:main
301 if (stat(inbuf, &stbuf) != 0)
303 if (stbuf.st_mtime < keep
304 && stbuf.st_mode&S_IWRITE) {
  /src/usr.sbin/lpr/common_source/
common.c 240 struct stat stbuf; local in function:getq
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;
  /src/libexec/tftpd/
tftpd.c 776 struct stat stbuf; local in function:validate_access
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...]
  /src/lib/librefuse/refuse/
fs.c 798 struct stat stbuf; local in function:fuse_dirfil_v11_to_fill_dir_v23
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 in function:fuse_dirfil_v22_to_fill_dir_v23
816 memset(&stbuf, 0, sizeof(stbuf));
817 stbuf.st_mode = dt_to_mode(type);
818 stbuf.st_ino = ino
    [all...]
  /src/usr.bin/ftp/
cmds.c 604 struct stat stbuf; local in function:getit
612 ret = stat(locfile, &stbuf);
622 restart_point = stbuf.st_size;
630 if (stbuf.st_mtime >= mtime) {
726 struct stat stbuf; local in function:mget
728 if (stat(tp, &stbuf) == 0)
729 restart_point = stbuf.st_size;

Completed in 26 milliseconds