Searched refs:S_ISREG (Results 1 - 25 of 46) sorted by relevance

12

/ast/src/cmd/at/
H A Dat.h53 #define AT_EXEC_OK(d,x) (S_ISREG((x)->st_mode)&&((x)->st_mode&(S_IXUSR|S_IXGRP|S_IWOTH|S_IXOTH))==(S_IXUSR|S_IXGRP|S_IXOTH))
55 #define AT_JOB_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((j)->st_mode)&&(((j)->st_mode)&S_IPERM)==AT_JOB_MODE)
56 #define AT_OLD_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((j)->st_mode)&&(((j)->st_mode)&(S_IPERM&~(AT_JOB_MODE^AT_RUN_MODE)))==AT_JOB_MODE)
57 #define AT_RUN_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((j)->st_mode)&&(((j)->st_mode)&S_IPERM)==AT_RUN_MODE&&(unsigned long)(j)->st_mtime<=NOW)
61 #define AT_EXEC_OK(d,x) (S_ISREG((x)->st_mode))
63 #define AT_JOB_OK(d,j) (S_ISREG((j)->st_mode)&&(d)->st_uid==(j)->st_uid)
75 #define AT_EXEC_OK(d,x) (S_ISREG((x)->st_mode)&&((x)->st_mode&(S_IXUSR|S_IWGRP|S_IXGRP|S_IWOTH|S_IXOTH))==(S_IXUSR|S_IXGRP|S_IXOTH))
77 #define AT_JOB_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((j)->st_mode)&&(((j)->st_mode)&S_IPERM)==AT_JOB_MODE)
78 #define AT_OLD_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((j)->st_mode)&&(((j)->st_mode)&(S_IPERM&~(AT_JOB_MODE^AT_RUN_MODE)))==AT_JOB_MODE)
79 #define AT_RUN_OK(d,j) ((d)->st_uid==(j)->st_uid&&S_ISREG((
[all...]
H A Datx.c91 ++n && !S_ISREG(js.st_mode) ||
/ast/src/lib/libast/vec/
H A Dvecfile.c50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
/ast/src/lib/libast/string/
H A Dmodex.c58 if (S_ISREG(i)) x |= X_IFREG;
/ast/src/lib/libast/features/
H A Dmode.c103 #ifdef S_ISREG
104 if (!S_ISREG(X_IFREG)) idtype = 0;
107 printf("#define S_ISREG(m) (S_ITYPE(m)==S_IFREG)\n");
109 printf("#define S_ISREG(m) 0\n");
/ast/src/lib/libast/port/
H A Dastcopy.c67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1))
/ast/src/lib/libast/comp/
H A Deaccess.c76 if (!S_ISREG(st.st_mode) || !(flags & X_OK) || (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
/ast/src/cmd/3d/
H A Dcopy.c70 if (!S_ISREG(st->st_mode)) return 0;
H A Dlib.c300 n = !STAT(path - map->keysize, &st) && !S_ISREG(st.st_mode) && !S_ISDIR(st.st_mode);
500 if (S_ISREG(st->st_mode))
H A Dopen3d.c77 if (S_ISREG(state.path.st.st_mode) && !(state.path.st.st_mode & S_IPERM))
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c139 !S_ISREG(statb.st_mode))
191 if(fstat(n, &statb) < 0 || !S_ISREG(statb.st_mode))
300 if(!S_ISREG(statb.st_mode) || mode != 1)
/ast/src/lib/libast/path/
H A Dpathfind.c35 #define regular(p,s) (stat((p),(s))>=0&&(S_ISREG((s)->st_mode)||streq(p,"/dev/null")))
/ast/src/lib/libcmd/
H A Dwc.c166 && S_ISREG(statb.st_mode))
H A Dcmp.c376 n = ((flags & CMP_SILENT) && S_ISREG(s1.st_mode) && S_ISREG(s2.st_mode) && (s1.st_size - o1) != (s2.st_size - o2)) ? 1 : cmp(file1, f1, file2, f2, flags, count, differences);
H A Drm.c285 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0)
/ast/src/cmd/ie/
H A Dio.h48 #ifndef S_ISREG
49 # define S_ISREG(m) (((m)&S_IFMT)==S_IFREG) macro
50 #endif /* S_ISREG */
/ast/src/lib/libardir/
H A Dardir.c42 if (((ar->fd = open(file, (flags & ARDIR_CREATE) ? (O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_cloexec) : (flags & ARDIR_UPDATE) ? (O_RDWR|O_BINARY|O_cloexec) : (O_RDONLY|O_BINARY|O_cloexec))) < 0 || fstat(ar->fd, &ar->st) || !S_ISREG(ar->st.st_mode)) && (!meth || !(flags & ARDIR_FORCE)))
/ast/src/cmd/std/
H A Dfile.c157 fp = (sp && S_ISREG(sp->st_mode)) ? sfopen(NiL, file, "r") : (Sfio_t*)0;
/ast/src/cmd/ksh93/bltins/
H A Dtest.c329 if(stat(arg,&statb)<0 || !S_ISREG(statb.st_mode))
349 return(test_stat(arg,&statb)>=0 && S_ISREG(statb.st_mode));
598 if(!S_ISREG(statb.st_mode) || mode!=X_OK)
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c192 return( stat( pPath, &St ) == 0 && S_ISREG( St.st_mode ) );
/ast/src/lib/libtksh/src/
H A Dfilecmd.c336 mode = S_ISREG(statBuf.st_mode);
462 if (S_ISREG(mode)) {
/ast/src/lib/libjcl/
H A Dfind.c32 #define REGULAR(p,s) (stat((p),(s))>=0&&(S_ISREG((s)->st_mode)||streq(p,"/dev/null")))
/ast/src/cmd/sortlib/vcodex/
H A Dvcodex.c142 if (!ZIPSUFFIX(path, p) && *state->input.suffix && !stat(path, &st) && S_ISREG(st.st_mode))
/ast/src/lib/libast/sfio/
H A Dsfsetbuf.c246 if(S_ISREG(st.st_mode) || S_ISDIR(st.st_mode))
/ast/src/cmd/mailx/
H A Dlocal.c102 if (!user || !*user || !stat(mail, &st) && S_ISREG(st.st_mode))

Completed in 85 milliseconds

12