Home
last modified time | relevance | path

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

12

/freebsd/sys/fs/p9fs/
H A Dp9_protocol.c47 stat_free(struct p9_wstat *stbuf) in stat_free() argument
50 free(stbuf->name, M_TEMP); in stat_free()
51 free(stbuf->uid, M_TEMP); in stat_free()
52 free(stbuf->gid, M_TEMP); in stat_free()
53 free(stbuf->muid, M_TEMP); in stat_free()
54 free(stbuf->extension, M_TEMP); in stat_free()
196 struct p9_wstat *stbuf = va_arg(ap, struct p9_wstat *); in p9_buf_vreadf() local
199 &stbuf->size, &stbuf->type, &stbuf->dev, &stbuf->qid, in p9_buf_vreadf()
200 &stbuf->mode, &stbuf->atime, &stbuf->mtime, &stbuf->length, in p9_buf_vreadf()
201 &stbuf->name, &stbuf->uid, &stbuf->gid, &stbuf->muid, in p9_buf_vreadf()
[all …]
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c58 struct stat stbuf; variable
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.st_mode,
[all …]
/freebsd/sbin/mksnap_ffs/
H A Dmksnap_ffs.c80 struct stat stbuf; in issamefs() local
82 if (isdir(path, &stbuf) != 1) in issamefs()
98 struct stat stbuf; in main() local
129 switch (isdir(path, &stbuf)) { in main()
139 if ((stbuf.st_mode & S_ISTXT) && stbuf.st_uid != getuid()) in main()
179 if (fstat(fd, &stbuf) != 0) in main()
181 if ((stbuf.st_flags & SF_SNAPSHOT) == 0) in main()
/freebsd/usr.sbin/makefs/
H A Dwalk.c78 struct stat stbuf; in walk_dir() local
124 if (lstat(path, &stbuf) == -1) in walk_dir()
127 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { in walk_dir()
147 S_ISDIR(stbuf.st_mode)) { in walk_dir()
156 inode_type(stbuf.st_mode), path, in walk_dir()
161 cur = create_fsnode(root, dir, name, &stbuf); in walk_dir()
182 if (stbuf.st_nlink > 1) { in walk_dir()
218 struct stat *stbuf) in create_fsnode() argument
227 cur->type = stbuf->st_mode & S_IFMT; in create_fsnode()
229 cur->inode->st = *stbuf; in create_fsnode()
[all …]
/freebsd/usr.sbin/lpr/lpc/
H A Dcmds.c772 struct stat stbuf; in unlinkf() local
784 res = lstat(name, &stbuf); in unlinkf()
792 agemod = difftime(cln_now, stbuf.st_mtime); in unlinkf()
793 agestat = difftime(cln_now, stbuf.st_ctime); in unlinkf()
806 if (S_ISLNK(stbuf.st_mode)) { in unlinkf()
821 cln_sizecnt += stbuf.st_size; in unlinkf()
825 if (S_ISLNK(stbuf.st_mode)) { in unlinkf()
850 if (S_ISLNK(stbuf.st_mode)) { in unlinkf()
997 struct stat stbuf; in setstatus_q() local
1012 if (stat(lf, &stbuf) >= 0) { in setstatus_q()
[all …]
/freebsd/usr.sbin/lpr/common_source/
H A Dcommon.c117 struct stat stbuf; in getq() local
126 if (fstat(dirfd(dirp), &stbuf) < 0) in getq()
134 arraysz = (stbuf.st_size / 24); in getq()
146 statres = stat(d->d_name, &stbuf); in getq()
157 q->job_time = stbuf.st_mtime; in getq()
328 struct stat stbuf; in set_qstate() local
337 memset(&stbuf, 0, sizeof(stbuf)); in set_qstate()
339 statres = stat(lfname, &stbuf); in set_qstate()
351 chgbits = stbuf.st_mode; in set_qstate()
/freebsd/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/libexec/talkd/
H A Dannounce.c65 struct stat stbuf; in announce() local
69 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0) in announce()
/freebsd/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/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/libexec/ftpd/
H A Dftpcmd.y714 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) < 0) {
[all …]
/freebsd/sbin/restore/
H A Dtape.c201 struct stat stbuf; in setup()
250 if (stat(".", &stbuf) < 0) { in setup()
254 if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) in setup()
256 if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) in setup()
257 fssize = stbuf.st_blksize; in setup()
258 if (((TP_BSIZE - 1) & stbuf.st_blksize) != 0) { in setup()
260 "blocksize (%d);\n", TP_BSIZE, stbuf.st_blksize); in setup()
200 struct stat stbuf; setup() local
H A Dsymtab.c525 struct stat stbuf; in initsymtable() local
543 if (fstat(fd, &stbuf) < 0) { in initsymtable()
547 tblsize = stbuf.st_size - sizeof(struct symtableheader); in initsymtable()
/freebsd/contrib/tcp_wrappers/
H A Dscaffold.c233 struct stat stbuf; local
248 (void) check_path(buf[0] ? buf : "/", &stbuf);
/freebsd/usr.bin/msgs/
H A Dmsgs.c259 struct stat stbuf; in main() local
288 if (stat(inbuf, &stbuf) != 0) in main()
290 if (stbuf.st_mtime < keep in main()
291 && stbuf.st_mode&S_IWRITE) { in main()
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c72 struct stat stbuf; in cd9660_add_boot_disk() local
132 if (lstat(new_image->filename, &stbuf) == -1) in cd9660_add_boot_disk()
136 switch (stbuf.st_size) { in cd9660_add_boot_disk()
158 new_image->size = stbuf.st_size; in cd9660_add_boot_disk()
/freebsd/sbin/routed/
H A Dtrace.c285 struct stat stbuf; in set_tracefile() local
320 || 0 > stat(_PATH_TRACE, &stbuf)) in set_tracefile()
329 if (stat(filename, &stbuf) >= 0 && !S_ISREG(stbuf.st_mode)) { in set_tracefile()
331 stbuf.st_mode, filename); in set_tracefile()
/freebsd/usr.bin/vgrind/
H A Dvfontedpr.c122 struct stat stbuf; in main() local
293 fstat(fileno(stdin), &stbuf); in main()
294 cp = ctime(&stbuf.st_mtime); in main()
/freebsd/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/contrib/sendmail/src/
H A Dcollect.c201 struct stat stbuf; local
224 if (dfd < 0 || fstat(dfd, &stbuf) < 0)
228 e->e_dfdev = stbuf.st_dev;
229 e->e_dfino = stbuf.st_ino;
/freebsd/bin/df/
H A Ddf.c101 struct stat stbuf; in main() local
211 if (stat(*argv, &stbuf) < 0) { in main()
217 } else if (S_ISCHR(stbuf.st_mode)) { in main()
/freebsd/libexec/tftpd/
H A Dtftp-options.c140 struct stat *stbuf) in option_tsize() argument
147 options_set_reply(OPT_TSIZE, "%ju", (uintmax_t)stbuf->st_size); in option_tsize()
/freebsd/bin/sh/
H A Dhistedit.c751 struct stat stbuf; in append_char_function() local
756 stat(expname ? expname : name, &stbuf) == 0 && in append_char_function()
757 S_ISDIR(stbuf.st_mode)) in append_char_function()
/freebsd/contrib/libedit/
H A Dfilecomplete.c449 struct stat stbuf; in append_char_function() local
453 if (stat(expname ? expname : name, &stbuf) == -1) in append_char_function()
455 if (S_ISDIR(stbuf.st_mode)) in append_char_function()

12