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

12

/macosx-10.10/procmail-14/procmail/src/
H A Drecommend.c16 { struct group*grp;struct stat stbuf;gid_t gid=(gid_t)-1; local
24 if(!stat(*p,&stbuf)&&stbuf.st_mode&S_ISGID)
25 { if(stbuf.st_mode&S_ISGID)
26 sgid=S_ISGID,gid=stbuf.st_gid;
29 if(!stat(mailspooldir,&stbuf)&&!(stbuf.st_mode&S_IWOTH))
30 if(stbuf.st_mode&S_ISVTX)
33 { if(!(stbuf.st_mode&S_IWGRP))
35 sgid=S_ISGID;gid=stbuf
[all...]
H A Dsetid.c21 { struct stat stbuf; local
24 if(stat(argv[2],&stbuf)||(stbuf.st_mode&S_IRWXU)!=S_IRWXU)
26 else if(stbuf.st_uid!=p->pw_uid)
28 argv[2],(long)stbuf.st_uid,p->pw_name);
29 else if(stbuf.st_gid!=p->pw_gid)
31 argv[2],(long)stbuf.st_gid,(long)p->pw_gid);
H A Dfoldinfo.c53 int rnmbogus(name,stbuf,i,dolog)const char*const name; /* move a file */
54 const struct stat*const stbuf;const int i,dolog; /* out of the way */
60 *p++='.';ultoan((unsigned long)stbuf->st_ino,p); /* i-node numbered */
78 { struct stat stbuf;int tries=3-1; /* minus one for post-decrement */ local
80 { if(!(paranoid?lstat(dir,&stbuf):stat(dir,&stbuf))) /* does it exist? */
82 (S_ISDIR(stbuf.st_mode)&& /* else it must be a directory */
83 (stbuf.st_uid==uid|| /* and have the correct owner */
84 !stbuf.st_uid&&!chown(dir,uid,sgid)))) /* or be safely fixable */
85 return stbuf
113 { struct stat stbuf;mode_t mode;int i;char*chp; local
173 { char ch;struct stat stbuf;int basetype,type; local
[all...]
H A Dlocking.c26 { int permanent=nfsTRY,triedforce=0,locktype=doLOCK;struct stat stbuf;time_t t; local
56 if(!lstat(name,&stbuf)&&stbuf.st_size<=MAX_locksize&&locktimeout
57 &&!lstat(name,&stbuf)&&locktimeout<t-stbuf.st_mtime)
63 if(S_ISDIR(stbuf.st_mode)||unlink(name))
156 { struct stat stbuf; /* return the filesystem time to the caller */ local
157 stat(p,&stbuf);*tim=stbuf.st_mtime;
H A Dprocmail.c340 { struct stat stbuf; /* path starts with /etc/procmailrcs/ */ local
364 stat(buf2,&stbuf)|| /* the /etc/procmailrcs */
365 !S_ISDIR(stbuf.st_mode)|| /* directory must be */
366 stbuf.st_uid!=ROOT_uid&& /* owned by root */
367 chown(buf2,ROOT_uid,stbuf.st_gid)||
368 stbuf.st_mode&(S_IXGRP|S_IXOTH)&& /* and accessible */
371 lstat(rcfile,&stbuf)|| /* it seems to exist */
372 !enoughprivs(passinvk,euid,egid,stbuf.st_uid,
373 stbuf.st_gid)|| /* can we do this at all? */
374 S_ISDIR(stbuf
548 { struct stat stbuf; local
[all...]
H A Dcstdio.c38 { struct stat stbuf; local
39 if(stat(name,&stbuf)||!S_ISREG(stbuf.st_mode))
41 if(stbuf.st_size) /* only if size>0 */
63 { struct stat stbuf;int orc;uchar*orbp,*orbe;struct dynstring*dp; local
64 if(stat(name,&stbuf)||!S_ISREG(stbuf.st_mode))
68 if(!stbuf.st_size) /* avoid opening trivial rcfiles */
H A Dlockfile.c42 { char*p;int j= -1;size_t i;struct stat stbuf; local
48 stat(p,&stbuf),*tim=stbuf.st_mtime,j=myrename(p,name);
183 { struct stat stbuf; local
193 if(force&&!lstat(cp,&stbuf)&&force<t-stbuf.st_mtime)
H A Dmailfold.c97 { struct stat stbuf; local
99 if(fstat(s,&stbuf)|| /* needed? */
100 stbuf.st_mtime==stbuf.st_atime)
135 { static const char lkingto[]="Linking to";struct stat stbuf; local
173 if(chp-buf+mpl+sizeNUM(stbuf.st_ino)>linebuf)
175 stat(buf2,&stbuf); /* filename with i-node number */
176 ultoan((unsigned long)stbuf.st_ino,strcpy(chp,msgprefix)+mpl);
188 else if(errno=EEXIST||!stat(buf,&stbuf)||errno!=ENOENT||rename(buf2,buf))
259 { struct stat stbuf; local
[all...]
H A Dexopen.c178 { int ret;struct stat stbuf; local
179 if(0<(ret=rlink(old,newn,&stbuf))) /* try a real hardlink */
182 if(stbuf.st_nlink<2&&errno==EXDEV&& /* try it by conventional means */
183 0<=(fd=ropen(newn,O_WRONLY|O_CREAT|O_EXCL,stbuf.st_mode)))
H A Dincludes.h215 #define lstat(path,stbuf) stat(path,stbuf)
/macosx-10.10/uucp-11/uucp/contrib/
H A Duusnap.c94 struct stat stbuf;
139 struct stat stbuf;
153 stat(sys.statfile,&stbuf);
154 if ((time=stbuf.st_atime) > sys.laststat) {
236 struct stat stbuf;
241 stat(filename,&stbuf);
242 if ((stbuf.st_mtime > Systems[num].lastidir) || (firstTime)) {
247 stat(filename,&stbuf);
248 Systems[num].lastidir=stbuf.st_mtime;
265 struct stat stbuf;
93 struct stat stbuf; local
138 struct stat stbuf; local
235 struct stat stbuf; local
264 struct stat stbuf; local
293 struct stat stbuf; local
[all...]
/macosx-10.10/remote_cmds-47/talkd.tproj/
H A Dannounce.c84 struct stat stbuf; local
88 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
/macosx-10.10/remote_cmds-47/tftpd.tproj/
H A Dtftpd.c740 struct stat stbuf; local
781 if (stat(filename, &stbuf) < 0)
783 if (!S_ISREG(stbuf.st_mode))
786 if ((stbuf.st_mode & S_IROTH) == 0)
789 if ((stbuf.st_mode & S_IWOTH) == 0)
808 if (stat(pathname, &stbuf) == 0 &&
809 (stbuf.st_mode & S_IFMT) == S_IFREG) {
815 if (mode == RRQ && !(stbuf.st_mode & S_IROTH))
817 if (mode == WRQ && !(stbuf.st_mode & S_IWOTH))
827 if (stat(filename, &stbuf) <
[all...]
/macosx-10.10/Heimdal-398.1.2/appl/dceutils/
H A Dk5dcecon.c242 struct stat stbuf; local
256 if (stat(ccdata, &stbuf))
259 if (stbuf.st_uid != luid)
275 if (stat(ccname+5, &stbuf))
278 if (stbuf.st_uid != luid)
281 *sizep = stbuf.st_size;
/macosx-10.10/Security-57031.1.35/Security/include/security_filedb/
H A DAtomicFile.cpp1068 struct stat stbuf; local
1073 ret = rlink(old, newn, stbuf);
1076 if (stbuf.st_nlink < 2 && (errno == EXDEV || errno == ENOTSUP))
1079 fd = AtomicFile::ropen(newn, O_WRONLY|O_CREAT|O_EXCL, stbuf.st_mode);
1102 struct stat stbuf; /* return the filesystem time to the caller */ local
1103 stat(uniquePath, &stbuf);
1104 tim = stbuf.st_mtime;
1113 struct stat stbuf; local
1136 if (!lstat(path, &stbuf) && stbuf
[all...]
/macosx-10.10/Security-57031.1.35/Security/libsecurity_filedb/lib/
H A DAtomicFile.cpp1068 struct stat stbuf; local
1073 ret = rlink(old, newn, stbuf);
1076 if (stbuf.st_nlink < 2 && (errno == EXDEV || errno == ENOTSUP))
1079 fd = AtomicFile::ropen(newn, O_WRONLY|O_CREAT|O_EXCL, stbuf.st_mode);
1102 struct stat stbuf; /* return the filesystem time to the caller */ local
1103 stat(uniquePath, &stbuf);
1104 tim = stbuf.st_mtime;
1113 struct stat stbuf; local
1136 if (!lstat(path, &stbuf) && stbuf
[all...]
/macosx-10.10/autofs-246/automount/
H A Dautomount.c106 struct stat stbuf; local
497 if (lstat(dir->dir_name, &stbuf) == 0) {
498 if ((stbuf.st_mode & S_IFMT) != S_IFDIR) {
502 st_flags = stbuf.st_flags;
633 struct stat stbuf; local
642 if (lstat(path, &stbuf) == 0) {
646 if ((stbuf.st_mode & S_IFMT) == S_IFLNK) {
687 } else if ((stbuf.st_mode & S_IFMT) == S_IFDIR) {
/macosx-10.10/tcsh-65/tcsh/win32/
H A Dstdio.c411 int nt_stat(const char *filename, struct stat *stbuf) { argument
420 return _stat("C:/",(struct _stat *)stbuf);
423 return _stat(filename,(struct _stat *)stbuf);
588 int nt_fstat(int fd, struct stat *stbuf) { argument
606 if( fstat(realfd,stbuf) <0 ) {
H A Dntfunc.c1121 struct stat stbuf; local
1152 if (!has_ext && (nt_stat(p2, &stbuf) == -1))
1159 return (stat(strname, &stbuf) != -1 &&
1160 ((dir_ok && S_ISDIR(stbuf.st_mode)) ||
1161 (S_ISREG(stbuf.st_mode) &&
1163 (stbuf.st_mode & (S_IXOTH | S_IXGRP | S_IXUSR)))
/macosx-10.10/Heimdal-398.1.2/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...]
/macosx-10.10/autofs-246/automountlib/
H A Dns_files.c86 struct stat stbuf; local
97 if (stat(fname, &stbuf) < 0) {
109 if (!isrestricted && (stbuf.st_mode & S_IXUSR)) {
220 struct stat stbuf; local
242 if (stat(fname, &stbuf) < 0) {
258 if (stbuf.st_mode & S_IXUSR) {
/macosx-10.10/lukemftp-14/tnftp/libedit/
H A Dfilecomplete.c225 struct stat stbuf; local
239 if (stat(temp, &stbuf) == 0 && S_ISDIR(stbuf.st_mode))
/macosx-10.10/file_cmds-242/df/
H A Ddf.c145 struct stat stbuf; local
246 if (tflag == 0 && kludge_tflag && *argv && stat(*argv, &stbuf) < 0
270 if (stat(*argv, &stbuf) < 0) {
276 } else if (S_ISCHR(stbuf.st_mode) || S_ISBLK(stbuf.st_mode)) {
/macosx-10.10/autofs-246/automountd/
H A Dautod_mount.c404 struct stat stbuf; local
431 if (!isdirect && stat(mntpnt, &stbuf) < 0) {
644 if (stat(mntpnt, &stbuf) == 0) {
646 mntpnt, stbuf.st_dev, stbuf.st_rdev);
747 struct stat stbuf; local
778 if (stat(path, &stbuf) != 0) {
/macosx-10.10/mail_cmds-30/msgs/
H A Dmsgs.c288 struct stat stbuf; local
317 if (stat(inbuf, &stbuf) != 0)
319 if (stbuf.st_mtime < keep
320 && stbuf.st_mode&S_IWRITE) {

Completed in 173 milliseconds

12