Searched refs:S_ISREG (Results 1 - 25 of 46) sorted by relevance
12
/ast/src/cmd/at/ |
H A D | at.h | 53 #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 D | atx.c | 91 ++n && !S_ISREG(js.st_mode) ||
|
/ast/src/lib/libast/vec/ |
H A D | vecfile.c | 50 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 D | modex.c | 58 if (S_ISREG(i)) x |= X_IFREG;
|
/ast/src/lib/libast/features/ |
H A D | mode.c | 103 #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 D | astcopy.c | 67 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 D | eaccess.c | 76 if (!S_ISREG(st.st_mode) || !(flags & X_OK) || (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
|
/ast/src/cmd/3d/ |
H A D | copy.c | 70 if (!S_ISREG(st->st_mode)) return 0;
|
H A D | lib.c | 300 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 D | open3d.c | 77 if (S_ISREG(state.path.st.st_mode) && !(state.path.st.st_mode & S_IPERM))
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 139 !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 D | pathfind.c | 35 #define regular(p,s) (stat((p),(s))>=0&&(S_ISREG((s)->st_mode)||streq(p,"/dev/null")))
|
/ast/src/lib/libcmd/ |
H A D | wc.c | 166 && S_ISREG(statb.st_mode))
|
H A D | cmp.c | 376 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 D | rm.c | 285 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0)
|
/ast/src/cmd/ie/ |
H A D | io.h | 48 #ifndef S_ISREG 49 # define S_ISREG(m) (((m)&S_IFMT)==S_IFREG) macro 50 #endif /* S_ISREG */
|
/ast/src/lib/libardir/ |
H A D | ardir.c | 42 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 D | file.c | 157 fp = (sp && S_ISREG(sp->st_mode)) ? sfopen(NiL, file, "r") : (Sfio_t*)0;
|
/ast/src/cmd/ksh93/bltins/ |
H A D | test.c | 329 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 D | ifs_func.c | 192 return( stat( pPath, &St ) == 0 && S_ISREG( St.st_mode ) );
|
/ast/src/lib/libtksh/src/ |
H A D | filecmd.c | 336 mode = S_ISREG(statBuf.st_mode); 462 if (S_ISREG(mode)) {
|
/ast/src/lib/libjcl/ |
H A D | find.c | 32 #define REGULAR(p,s) (stat((p),(s))>=0&&(S_ISREG((s)->st_mode)||streq(p,"/dev/null")))
|
/ast/src/cmd/sortlib/vcodex/ |
H A D | vcodex.c | 142 if (!ZIPSUFFIX(path, p) && *state->input.suffix && !stat(path, &st) && S_ISREG(st.st_mode))
|
/ast/src/lib/libast/sfio/ |
H A D | sfsetbuf.c | 246 if(S_ISREG(st.st_mode) || S_ISDIR(st.st_mode))
|
/ast/src/cmd/mailx/ |
H A D | local.c | 102 if (!user || !*user || !stat(mail, &st) && S_ISREG(st.st_mode))
|
Completed in 85 milliseconds
12