Home
last modified time | relevance | path

Searched refs:stbuf (Results 1 – 25 of 41) sorted by relevance

12

/freebsd-13.1/contrib/sendmail/libsmutil/
H A Dsafefile.c58 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 Dmksnap_ffs.c78 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 Dwalk.c82 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 Dcmds.c790 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 Dcommon.c125 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 Dtftpd.c693 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 Dtftp-options.c86 struct stat *stbuf) in option_tsize() argument
94 "%ju", stbuf->st_size); in option_tsize()
/freebsd-13.1/sbin/ldconfig/
H A Delfhints.c63 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 Dftpcmd.y560 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 Dannounce.c73 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 Dauditd_lib.c423 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 Dftpcmd.y615 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 Dftpcmd.c2391 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 Dftpcmd.y725 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 Dtape.c209 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 Dsymtab.c533 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 Dscaffold.c241 struct stat stbuf; local
256 (void) check_path(buf[0] ? buf : "/", &stbuf);
/freebsd-13.1/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c66 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 Dmsgs.c277 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 Dtrace.c290 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 Dvfontedpr.c136 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 Dcollect.c199 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 Dsh.exec.c887 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 Ddf.c116 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 DmdXhl.c57 struct stat stbuf; in MDXFdChunk() local

12