/freebsd-current/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 80 struct stat stbuf; local 82 if (isdir(path, &stbuf) != 1) 98 struct stat stbuf; local 129 switch (isdir(path, &stbuf)) { 139 if ((stbuf.st_mode & S_ISTXT) && stbuf.st_uid != getuid()) 179 if (fstat(fd, &stbuf) != 0) 181 if ((stbuf.st_flags & SF_SNAPSHOT) == 0)
|
/freebsd-current/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 58 struct stat stbuf; local 204 if (stat(dir, &stbuf) >= 0) 209 if (stbuf.st_uid == uid) 212 else if (uid == 0 && stbuf.st_uid == TrustedUid) 218 if (stbuf.st_gid == gid) 224 gr->gr_gid == stbuf.st_gid) || 225 (gr = getgrgid(stbuf.st_gid)) != NULL)) 239 if ((stbuf.st_mode & md) != md) 246 dir, (int) stbuf.st_uid, 247 (unsigned long) stbuf 409 struct stat stbuf; local [all...] |
/freebsd-current/usr.sbin/makefs/ |
H A D | walk.c | 78 struct stat stbuf; local 124 if (lstat(path, &stbuf) == -1) 127 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { 147 S_ISDIR(stbuf.st_mode)) { 156 inode_type(stbuf.st_mode), path, 161 cur = create_fsnode(root, dir, name, &stbuf); 182 if (stbuf.st_nlink > 1) { 218 struct stat *stbuf) 227 cur->type = stbuf->st_mode & S_IFMT; 229 cur->inode->st = *stbuf; 217 create_fsnode(const char *root, const char *path, const char *name, struct stat *stbuf) argument 402 struct stat stbuf; local [all...] |
/freebsd-current/usr.sbin/lpr/common_source/ |
H A D | common.c | 117 struct stat stbuf; local 126 if (fstat(dirfd(dirp), &stbuf) < 0) 134 arraysz = (stbuf.st_size / 24); 146 statres = stat(d->d_name, &stbuf); 157 q->job_time = stbuf.st_mtime; 328 struct stat stbuf; local 337 memset(&stbuf, 0, sizeof(stbuf)); 339 statres = stat(lfname, &stbuf); 351 chgbits = stbuf [all...] |
/freebsd-current/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 772 struct stat stbuf; local 784 res = lstat(name, &stbuf); 792 agemod = difftime(cln_now, stbuf.st_mtime); 793 agestat = difftime(cln_now, stbuf.st_ctime); 806 if (S_ISLNK(stbuf.st_mode)) { 821 cln_sizecnt += stbuf.st_size; 825 if (S_ISLNK(stbuf.st_mode)) { 850 if (S_ISLNK(stbuf.st_mode)) { 997 struct stat stbuf; local 1012 if (stat(lf, &stbuf) > 1053 struct stat stbuf; local 1139 struct stat stbuf; local [all...] |
/freebsd-current/sbin/ldconfig/ |
H A D | elfhints.c | 63 struct stat stbuf; local 68 if (stat(name, &stbuf) == -1) { 72 if (stbuf.st_uid != 0) { 76 if ((stbuf.st_mode & S_IWOTH) != 0) { 80 if ((stbuf.st_mode & S_IWGRP) != 0) {
|
/freebsd-current/libexec/talkd/ |
H A D | announce.c | 65 struct stat stbuf; local 69 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
|
/freebsd-current/libexec/tftpd/ |
H A D | tftpd.c | 683 struct stat stbuf; local 713 if (stat(filename, &stbuf) < 0) 715 if ((stbuf.st_mode & S_IFMT) != S_IFREG) 718 if ((stbuf.st_mode & S_IROTH) == 0) 721 if (check_woth && ((stbuf.st_mode & S_IWOTH) == 0)) 745 if (stat(pathname, &stbuf) == 0 && 746 (stbuf.st_mode & S_IFMT) == S_IFREG) { 748 if ((stbuf.st_mode & S_IROTH) != 0) 751 if (!check_woth || ((stbuf.st_mode & S_IWOTH) != 0)) 769 option_tsize(peer, NULL, mode, &stbuf); [all...] |
H A D | tftp-options.c | 140 struct stat *stbuf) 147 options_set_reply(OPT_TSIZE, "%ju", (uintmax_t)stbuf->st_size); 139 option_tsize(int peer __unused, struct tftphdr *tp __unused, int mode, struct stat *stbuf) argument
|
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpcmd.y | 615 struct stat stbuf; 616 if (stat($3, &stbuf) < 0) 619 else if (!S_ISREG(stbuf.st_mode)) { 624 time_t mtime = stbuf.st_mtime; 1441 struct stat stbuf; 1442 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 1445 reply(213, "%lu", (unsigned long)stbuf.st_size); 1452 struct stat stbuf; 1458 if (fstat(fileno(fin), &stbuf) < [all...] |
H A D | ftpcmd.c | 2394 struct stat stbuf; 2395 if (stat((yyvsp[(3) - (5)].s), &stbuf) < 0) 2398 else if (!S_ISREG(stbuf.st_mode)) { 2403 time_t mtime = stbuf.st_mtime; 3497 struct stat stbuf; 3498 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 3501 reply(213, "%lu", (unsigned long)stbuf.st_size); 3508 struct stat stbuf; 3514 if (fstat(fileno(fin), &stbuf) < 2391 struct stat stbuf; local 3494 struct stat stbuf; local 3505 struct stat stbuf; local [all...] |
/freebsd-current/libexec/ftpd/ |
H A D | ftpcmd.y | 714 struct stat stbuf; 715 if (stat($4, &stbuf) < 0) 717 else if (!S_ISREG(stbuf.st_mode)) { 721 t = gmtime(&stbuf.st_mtime); 1578 struct stat stbuf; 1579 if (stat(filename, &stbuf) < 0) 1581 else if (!S_ISREG(stbuf.st_mode)) 1584 reply(213, "%jd", (intmax_t)stbuf.st_size); 1590 struct stat stbuf; 1596 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-current/contrib/openbsm/libauditd/ |
H A D | auditd_lib.c | 423 struct stat stbuf; local 471 if (stat(pn, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 476 total_size += stbuf.st_size; 494 tstamp = stbuf.st_mtime; 508 tstamp = stbuf.st_mtime = current_time; 510 &stbuf.st_atimespec); 512 &stbuf.st_mtimespec); 526 new->at_size = stbuf.st_size;
|
/freebsd-current/lib/libmd/ |
H A D | mdXhl.c | 54 struct stat stbuf; local
|
/freebsd-current/contrib/tcp_wrappers/ |
H A D | scaffold.c | 233 struct stat stbuf; local 248 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
/freebsd-current/sbin/restore/ |
H A D | tape.c | 201 struct stat stbuf; local 250 if (stat(".", &stbuf) < 0) { 254 if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) 256 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) 257 fssize = stbuf.st_blksize; 258 if (((TP_BSIZE - 1) & stbuf.st_blksize) != 0) { 260 "blocksize (%d);\n", TP_BSIZE, stbuf.st_blksize);
|
H A D | symtab.c | 525 struct stat stbuf; local 543 if (fstat(fd, &stbuf) < 0) { 547 tblsize = stbuf.st_size - sizeof(struct symtableheader);
|
/freebsd-current/usr.bin/vgrind/ |
H A D | vfontedpr.c | 122 struct stat stbuf; local 293 fstat(fileno(stdin), &stbuf); local 294 cp = ctime(&stbuf.st_mtime);
|
/freebsd-current/usr.sbin/makefs/cd9660/ |
H A D | cd9660_eltorito.c | 72 struct stat stbuf; local 132 if (lstat(new_image->filename, &stbuf) == -1) 136 switch (stbuf.st_size) { 158 new_image->size = stbuf.st_size;
|
/freebsd-current/usr.bin/msgs/ |
H A D | msgs.c | 259 struct stat stbuf; local 288 if (stat(inbuf, &stbuf) != 0) 290 if (stbuf.st_mtime < keep 291 && stbuf.st_mode&S_IWRITE) {
|
/freebsd-current/contrib/tcsh/ |
H A D | sh.exec.c | 887 struct stat stbuf; local 900 return (stat(strname, &stbuf) != -1 && 901 ((dir_ok && S_ISDIR(stbuf.st_mode)) || 902 (S_ISREG(stbuf.st_mode) && 904 (stbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) &&
|
/freebsd-current/sbin/routed/ |
H A D | trace.c | 285 struct stat stbuf; local 320 || 0 > stat(_PATH_TRACE, &stbuf)) 329 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) { 331 stbuf.st_mode, filename);
|
/freebsd-current/bin/df/ |
H A D | df.c | 101 struct stat stbuf; local 211 if (stat(*argv, &stbuf) < 0) { 217 } else if (S_ISCHR(stbuf.st_mode)) {
|
/freebsd-current/bin/sh/ |
H A D | histedit.c | 751 struct stat stbuf; local 756 stat(expname ? expname : name, &stbuf) == 0 && 757 S_ISDIR(stbuf.st_mode))
|
/freebsd-current/contrib/ntp/util/ |
H A D | tickadj.c | 751 struct stat stbuf; local 753 if (stat(*kname, &stbuf) == -1)
|