Searched refs:stbuf (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-current/sbin/mksnap_ffs/
H A Dmksnap_ffs.c80 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 Dsafefile.c58 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 Dwalk.c78 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 Dcommon.c117 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 Dcmds.c772 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 Delfhints.c63 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 Dannounce.c65 struct stat stbuf; local
69 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
/freebsd-current/libexec/tftpd/
H A Dtftpd.c683 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 Dtftp-options.c140 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 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) <
[all...]
H A Dftpcmd.c2394 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 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) <
[all...]
/freebsd-current/contrib/openbsm/libauditd/
H A Dauditd_lib.c423 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 DmdXhl.c54 struct stat stbuf; local
/freebsd-current/contrib/tcp_wrappers/
H A Dscaffold.c233 struct stat stbuf; local
248 (void) check_path(buf[0] ? buf : "/", &stbuf);
/freebsd-current/sbin/restore/
H A Dtape.c201 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 Dsymtab.c525 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 Dvfontedpr.c122 struct stat stbuf; local
293 fstat(fileno(stdin), &stbuf); local
294 cp = ctime(&stbuf.st_mtime);
/freebsd-current/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c72 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 Dmsgs.c259 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 Dsh.exec.c887 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 Dtrace.c285 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 Ddf.c101 struct stat stbuf; local
211 if (stat(*argv, &stbuf) < 0) {
217 } else if (S_ISCHR(stbuf.st_mode)) {
/freebsd-current/bin/sh/
H A Dhistedit.c751 struct stat stbuf; local
756 stat(expname ? expname : name, &stbuf) == 0 &&
757 S_ISDIR(stbuf.st_mode))
/freebsd-current/contrib/ntp/util/
H A Dtickadj.c751 struct stat stbuf; local
753 if (stat(*kname, &stbuf) == -1)

Completed in 257 milliseconds

12