/freebsd-11-stable/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 78 struct stat stbuf; local 80 if (isdir(path, &stbuf) != 1) 97 struct stat stbuf; local 128 switch (isdir(path, &stbuf)) { 138 if ((stbuf.st_mode & S_ISTXT) && stbuf.st_uid != getuid()) 178 if (fstat(fd, &stbuf) != 0) 180 if ((stbuf.st_flags & SF_SNAPSHOT) == 0)
|
/freebsd-11-stable/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-11-stable/usr.sbin/makefs/ |
H A D | walk.c | 82 struct stat stbuf; local 127 if (lstat(path, &stbuf) == -1) 130 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { 150 S_ISDIR(stbuf.st_mode)) { 159 inode_type(stbuf.st_mode), path, 164 cur = create_fsnode(root, dir, name, &stbuf); 185 if (stbuf.st_nlink > 1) { 221 struct stat *stbuf) 230 cur->type = stbuf->st_mode & S_IFMT; 232 cur->inode->st = *stbuf; 220 create_fsnode(const char *root, const char *path, const char *name, struct stat *stbuf) argument 404 struct stat stbuf; local [all...] |
/freebsd-11-stable/sbin/badsect/ |
H A D | badsect.c | 92 struct stat stbuf, devstat; local 100 if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0) 110 if (stbuf.st_dev == devstat.st_rdev && 117 (u_long)stbuf.st_rdev, argv[1]);
|
/freebsd-11-stable/usr.sbin/lpr/common_source/ |
H A D | common.c | 123 struct stat stbuf; local 132 if (fstat(dirfd(dirp), &stbuf) < 0) 140 arraysz = (stbuf.st_size / 24); 152 statres = stat(d->d_name, &stbuf); 163 q->job_time = stbuf.st_mtime; 334 struct stat stbuf; local 343 memset(&stbuf, 0, sizeof(stbuf)); 345 statres = stat(lfname, &stbuf); 357 chgbits = stbuf [all...] |
/freebsd-11-stable/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 788 struct stat stbuf; local 800 res = lstat(name, &stbuf); 808 agemod = difftime(cln_now, stbuf.st_mtime); 809 agestat = difftime(cln_now, stbuf.st_ctime); 822 if (S_ISLNK(stbuf.st_mode)) { 837 cln_sizecnt += stbuf.st_size; 841 if (S_ISLNK(stbuf.st_mode)) { 866 if (S_ISLNK(stbuf.st_mode)) { 1013 struct stat stbuf; local 1028 if (stat(lf, &stbuf) > 1069 struct stat stbuf; local 1155 struct stat stbuf; local [all...] |
/freebsd-11-stable/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) {
|
H A D | ldconfig.c | 201 struct stat stbuf; local 203 if (stat(argv[i], &stbuf) == -1) { 214 if (S_ISREG(stbuf.st_mode))
|
/freebsd-11-stable/libexec/talkd/ |
H A D | announce.c | 71 struct stat stbuf; local 75 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
|
/freebsd-11-stable/libexec/tftpd/ |
H A D | tftpd.c | 688 struct stat stbuf; local 717 if (stat(filename, &stbuf) < 0) 719 if ((stbuf.st_mode & S_IFMT) != S_IFREG) 722 if ((stbuf.st_mode & S_IROTH) == 0) 725 if ((stbuf.st_mode & S_IWOTH) == 0) 749 if (stat(pathname, &stbuf) == 0 && 750 (stbuf.st_mode & S_IFMT) == S_IFREG) { 752 if ((stbuf.st_mode & S_IROTH) != 0) 755 if ((stbuf.st_mode & S_IWOTH) != 0) 773 option_tsize(peer, NULL, mode, &stbuf); [all...] |
H A D | tftp-options.c | 83 struct stat *stbuf) 91 "%ju", stbuf->st_size); 82 option_tsize(int peer __unused, struct tftphdr *tp __unused, int mode, struct stat *stbuf) argument
|
/freebsd-11-stable/contrib/openbsm/libauditd/ |
H A D | auditd_lib.c | 417 struct stat stbuf; local 465 if (stat(pn, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 470 total_size += stbuf.st_size; 488 tstamp = stbuf.st_mtime; 502 tstamp = stbuf.st_mtime = current_time; 504 &stbuf.st_atimespec); 506 &stbuf.st_mtimespec); 520 new->at_size = stbuf.st_size;
|
/freebsd-11-stable/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-11-stable/contrib/opie/ |
H A D | ftpcmd.y | 560 struct stat stbuf; 561 if (stat((char *) $4, &stbuf) < 0) 563 else if ((stbuf.st_mode&S_IFMT) != S_IFREG) { 569 t = gmtime(&stbuf.st_mtime); 1253 struct stat stbuf; 1254 if (stat(filename, &stbuf) < 0 || 1255 (stbuf.st_mode&S_IFMT) != S_IFREG) 1258 reply(213, "%lu", stbuf.st_size); 1264 struct stat stbuf; 1270 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-11-stable/libexec/ftpd/ |
H A D | ftpcmd.y | 723 struct stat stbuf; 724 if (stat($4, &stbuf) < 0) 726 else if (!S_ISREG(stbuf.st_mode)) { 730 t = gmtime(&stbuf.st_mtime); 1587 struct stat stbuf; 1588 if (stat(filename, &stbuf) < 0) 1590 else if (!S_ISREG(stbuf.st_mode)) 1593 reply(213, "%jd", (intmax_t)stbuf.st_size); 1599 struct stat stbuf; 1605 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-11-stable/lib/libmd/ |
H A D | mdXhl.c | 55 struct stat stbuf; local
|
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | scaffold.c | 241 struct stat stbuf; local 256 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
/freebsd-11-stable/sbin/restore/ |
H A D | tape.c | 207 struct stat stbuf; local 256 if (stat(".", &stbuf) < 0) { 260 if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) 262 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) 263 fssize = stbuf.st_blksize; 264 if (((TP_BSIZE - 1) & stbuf.st_blksize) != 0) { 266 "blocksize (%d);\n", TP_BSIZE, stbuf.st_blksize);
|
/freebsd-11-stable/usr.bin/vgrind/ |
H A D | vfontedpr.c | 134 struct stat stbuf; local 305 fstat(fileno(stdin), &stbuf); local 306 cp = ctime(&stbuf.st_mtime);
|
/freebsd-11-stable/usr.bin/msgs/ |
H A D | msgs.c | 275 struct stat stbuf; local 304 if (stat(inbuf, &stbuf) != 0) 306 if (stbuf.st_mtime < keep 307 && stbuf.st_mode&S_IWRITE) {
|
/freebsd-11-stable/usr.sbin/makefs/cd9660/ |
H A D | cd9660_eltorito.c | 66 struct stat stbuf; local 124 if (lstat(new_image->filename, &stbuf) == -1) 128 switch (stbuf.st_size) { 150 new_image->size = stbuf.st_size;
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | collect.c | 199 struct stat stbuf; local 222 if (dfd < 0 || fstat(dfd, &stbuf) < 0) 226 e->e_dfdev = stbuf.st_dev; 227 e->e_dfino = stbuf.st_ino;
|
/freebsd-11-stable/sbin/routed/ |
H A D | trace.c | 303 struct stat stbuf; local 338 || 0 > stat(_PATH_TRACE, &stbuf)) 347 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) { 349 stbuf.st_mode, filename);
|
/freebsd-11-stable/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)) &&
|