| /freebsd-13.1/contrib/sendmail/libsmutil/ |
| H A D | safefile.c | 58 struct stat stbuf; variable 204 if (stat(dir, &stbuf) >= 0) 209 if (stbuf.st_uid == uid) 218 if (stbuf.st_gid == gid) 246 dir, (int) stbuf.st_uid, 409 struct stat stbuf; local 474 ret = lstat(s, &stbuf); 476 ret = stat(s, &stbuf); 486 if (S_ISLNK(stbuf.st_mode)) 634 if (stbuf.st_uid == uid && [all …]
|
| /freebsd-13.1/sbin/mksnap_ffs/ |
| H A D | mksnap_ffs.c | 78 struct stat stbuf; in issamefs() local 80 if (isdir(path, &stbuf) != 1) in issamefs() 96 struct stat stbuf; in main() local 127 switch (isdir(path, &stbuf)) { in main() 137 if ((stbuf.st_mode & S_ISTXT) && stbuf.st_uid != getuid()) in main() 177 if (fstat(fd, &stbuf) != 0) in main() 179 if ((stbuf.st_flags & SF_SNAPSHOT) == 0) in main()
|
| /freebsd-13.1/usr.sbin/makefs/ |
| H A D | walk.c | 82 struct stat stbuf; in walk_dir() local 186 if (stbuf.st_nlink > 1) { in walk_dir() 222 struct stat *stbuf) in create_fsnode() argument 233 cur->inode->st = *stbuf; in create_fsnode() 406 struct stat stbuf; in apply_specdir() local 436 memset(&stbuf, 0, sizeof(stbuf)); in apply_specdir() 438 stbuf.st_nlink = 1; in apply_specdir() 439 stbuf.st_mtime = stbuf.st_atime = in apply_specdir() 442 stbuf.st_mtimensec = stbuf.st_atimensec = in apply_specdir() 446 &stbuf); in apply_specdir() [all …]
|
| /freebsd-13.1/usr.sbin/lpr/lpc/ |
| H A D | cmds.c | 790 struct stat stbuf; in unlinkf() local 802 res = lstat(name, &stbuf); in unlinkf() 824 if (S_ISLNK(stbuf.st_mode)) { in unlinkf() 839 cln_sizecnt += stbuf.st_size; in unlinkf() 843 if (S_ISLNK(stbuf.st_mode)) { in unlinkf() 1015 struct stat stbuf; in setstatus_q() local 1030 if (stat(lf, &stbuf) >= 0) { in setstatus_q() 1071 struct stat stbuf; in status() local 1117 (void) fstat(fd, &stbuf); in status() 1118 if (stbuf.st_size > 0) { in status() [all …]
|
| /freebsd-13.1/usr.sbin/lpr/common_source/ |
| H A D | common.c | 125 struct stat stbuf; in getq() local 134 if (fstat(dirfd(dirp), &stbuf) < 0) in getq() 142 arraysz = (stbuf.st_size / 24); in getq() 154 statres = stat(d->d_name, &stbuf); in getq() 165 q->job_time = stbuf.st_mtime; in getq() 336 struct stat stbuf; in set_qstate() local 345 memset(&stbuf, 0, sizeof(stbuf)); in set_qstate() 347 statres = stat(lfname, &stbuf); in set_qstate() 359 chgbits = stbuf.st_mode; in set_qstate()
|
| /freebsd-13.1/libexec/tftpd/ |
| H A D | tftpd.c | 693 struct stat stbuf; in validate_access() local 722 if (stat(filename, &stbuf) < 0) in validate_access() 724 if ((stbuf.st_mode & S_IFMT) != S_IFREG) in validate_access() 727 if ((stbuf.st_mode & S_IROTH) == 0) in validate_access() 730 if ((stbuf.st_mode & S_IWOTH) == 0) in validate_access() 754 if (stat(pathname, &stbuf) == 0 && in validate_access() 755 (stbuf.st_mode & S_IFMT) == S_IFREG) { in validate_access() 757 if ((stbuf.st_mode & S_IROTH) != 0) in validate_access() 760 if ((stbuf.st_mode & S_IWOTH) != 0) in validate_access() 778 option_tsize(peer, NULL, mode, &stbuf); in validate_access()
|
| H A D | tftp-options.c | 86 struct stat *stbuf) in option_tsize() argument 94 "%ju", stbuf->st_size); in option_tsize()
|
| /freebsd-13.1/sbin/ldconfig/ |
| H A D | elfhints.c | 63 struct stat stbuf; in add_dir() local 68 if (stat(name, &stbuf) == -1) { in add_dir() 72 if (stbuf.st_uid != 0) { in add_dir() 76 if ((stbuf.st_mode & S_IWOTH) != 0) { in add_dir() 80 if ((stbuf.st_mode & S_IWGRP) != 0) { in add_dir()
|
| /freebsd-13.1/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; variable 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; variable 1270 if (fstat(fileno(fin), &stbuf) < 0 || [all …]
|
| /freebsd-13.1/libexec/talkd/ |
| H A D | announce.c | 73 struct stat stbuf; in announce() local 77 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0) in announce()
|
| /freebsd-13.1/contrib/openbsm/libauditd/ |
| H A D | auditd_lib.c | 423 struct stat stbuf; in auditd_expire_trails() local 471 if (stat(pn, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { in auditd_expire_trails() 476 total_size += stbuf.st_size; in auditd_expire_trails() 494 tstamp = stbuf.st_mtime; in auditd_expire_trails() 508 tstamp = stbuf.st_mtime = current_time; in auditd_expire_trails() 510 &stbuf.st_atimespec); in auditd_expire_trails() 512 &stbuf.st_mtimespec); in auditd_expire_trails() 526 new->at_size = stbuf.st_size; in auditd_expire_trails()
|
| /freebsd-13.1/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) < 0 || !S_ISREG(stbuf.st_mode)) {
|
| H A D | ftpcmd.c | 2391 struct stat stbuf; in yyparse() 2392 if (stat((yyvsp[(3) - (5)].s), &stbuf) < 0) in yyparse() 2395 else if (!S_ISREG(stbuf.st_mode)) { in yyparse() 2400 time_t mtime = stbuf.st_mtime; in yyparse() 3494 struct stat stbuf; 3495 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 3498 reply(213, "%lu", (unsigned long)stbuf.st_size); 3505 struct stat stbuf; 3511 if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) {
|
| /freebsd-13.1/libexec/ftpd/ |
| H A D | ftpcmd.y | 725 struct stat stbuf; 726 if (stat($4, &stbuf) < 0) 728 else if (!S_ISREG(stbuf.st_mode)) { 732 t = gmtime(&stbuf.st_mtime); 1589 struct stat stbuf; 1590 if (stat(filename, &stbuf) < 0) 1592 else if (!S_ISREG(stbuf.st_mode)) 1601 struct stat stbuf; 1607 if (fstat(fileno(fin), &stbuf) < 0) { 1611 } else if (!S_ISREG(stbuf.st_mode)) { [all …]
|
| /freebsd-13.1/sbin/restore/ |
| H A D | tape.c | 209 struct stat stbuf; in setup() local 258 if (stat(".", &stbuf) < 0) { in setup() 262 if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) in setup() 264 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) in setup() 265 fssize = stbuf.st_blksize; in setup() 266 if (((TP_BSIZE - 1) & stbuf.st_blksize) != 0) { in setup() 268 "blocksize (%d);\n", TP_BSIZE, stbuf.st_blksize); in setup()
|
| H A D | symtab.c | 533 struct stat stbuf; in initsymtable() local 551 if (fstat(fd, &stbuf) < 0) { in initsymtable() 555 tblsize = stbuf.st_size - sizeof(struct symtableheader); in initsymtable()
|
| /freebsd-13.1/contrib/tcp_wrappers/ |
| H A D | scaffold.c | 241 struct stat stbuf; local 256 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
| /freebsd-13.1/usr.sbin/makefs/cd9660/ |
| H A D | cd9660_eltorito.c | 66 struct stat stbuf; in cd9660_add_boot_disk() local 126 if (lstat(new_image->filename, &stbuf) == -1) in cd9660_add_boot_disk() 130 switch (stbuf.st_size) { in cd9660_add_boot_disk() 152 new_image->size = stbuf.st_size; in cd9660_add_boot_disk()
|
| /freebsd-13.1/usr.bin/msgs/ |
| H A D | msgs.c | 277 struct stat stbuf; in main() local 306 if (stat(inbuf, &stbuf) != 0) in main() 308 if (stbuf.st_mtime < keep in main() 309 && stbuf.st_mode&S_IWRITE) { in main()
|
| /freebsd-13.1/sbin/routed/ |
| H A D | trace.c | 290 struct stat stbuf; in set_tracefile() local 325 || 0 > stat(_PATH_TRACE, &stbuf)) in set_tracefile() 334 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) { in set_tracefile() 336 stbuf.st_mode, filename); in set_tracefile()
|
| /freebsd-13.1/usr.bin/vgrind/ |
| H A D | vfontedpr.c | 136 struct stat stbuf; in main() local 307 fstat(fileno(stdin), &stbuf); in main() 308 cp = ctime(&stbuf.st_mtime); in main()
|
| /freebsd-13.1/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-13.1/contrib/tcsh/ |
| H A D | sh.exec.c | 887 struct stat stbuf; in executable() local 900 return (stat(strname, &stbuf) != -1 && in executable() 901 ((dir_ok && S_ISDIR(stbuf.st_mode)) || in executable() 902 (S_ISREG(stbuf.st_mode) && in executable() 904 (stbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)) && in executable()
|
| /freebsd-13.1/bin/df/ |
| H A D | df.c | 116 struct stat stbuf; in main() local 226 if (stat(*argv, &stbuf) < 0) { in main() 232 } else if (S_ISCHR(stbuf.st_mode)) { in main()
|
| /freebsd-13.1/lib/libmd/ |
| H A D | mdXhl.c | 57 struct stat stbuf; in MDXFdChunk() local
|