Searched refs:X_OK (Results 1 - 25 of 29) sorted by relevance

12

/ast/src/cmd/3d/
H A Daccess3d.c60 case X_OK:
75 if (mode & (R_OK|W_OK|X_OK))
82 if (mode & X_OK) test |= S_IXUSR;
88 if (mode & X_OK) test |= S_IXGRP;
94 if (mode & X_OK) test |= S_IXOTH;
/ast/src/lib/libast/comp/
H A Dsystem.c49 return !eaccess(pathshell(), X_OK);
H A Deaccess.c76 if (!S_ISREG(st.st_mode) || !(flags & X_OK) || (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)))
86 if (flags & X_OK)
98 if (flags & X_OK)
127 if (flags & X_OK)
H A Drename.c46 if (!eaccess(mvdir, X_OK))
H A Dspawnveg.c72 if (!access(path, X_OK))
172 if (access(path, X_OK))
/ast/src/lib/libcoshell/
H A Dsystem.c38 return !eaccess(pathshell(), X_OK);
/ast/src/lib/libast/path/
H A Dpathtemp.c84 #define VALID(d) (*(d)&&!eaccess(d,W_OK|X_OK))
185 if (!(d = (char*)dir) || *d && eaccess(d, W_OK|X_OK))
230 if (!d && (!*(d = astconf("TMP", NiL, NiL)) || eaccess(d, W_OK|X_OK)) && eaccess(d = TMP1, W_OK|X_OK) && eaccess(d = TMP2, W_OK|X_OK))
H A Dpathshell.c107 if (!*(sh = astconf("SH", NiL, NiL)) || *sh != '/' || eaccess(sh, X_OK) || !(sh = strdup(sh)))
/ast/src/cmd/std/
H A Diconv.c125 if (!access(p, X_OK) || !access(p += 4, X_OK))
/ast/src/lib/libast/sfio/
H A Dsfpopen.c58 { if(access(interp,X_OK) == 0)
110 { if(access(cmd,X_OK) != 0)
117 if(access(s,X_OK) == 0)
H A Dsfhdr.h469 #ifndef X_OK
470 #define X_OK 01 macro
/ast/src/lib/libcmd/
H A Dgetconf.c293 if ((cmd = oargv[0]) && *cmd == '/' && !access(cmd, X_OK))
360 if (!access(buf, X_OK))
378 if (!access(buf, X_OK))
H A Ddate.c230 if (!streq(cmd, s) && (!eaccess(s, X_OK) || !eaccess(s+=4, X_OK)))
H A Duname.c329 if (!streq(argv[0], s) && (!eaccess(s, X_OK) || !eaccess(s+=4, X_OK)))
/ast/src/lib/libcs/
H A Dcslocal.c140 if (!eaccess(exe, X_OK) && !stat(exe, &st)) break;
H A Dcsauth.c139 if (eaccess(tmp, X_OK) && (mkdir(tmp, S_IRWXU|S_IRWXG|S_IRWXO) || chmod(tmp, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)))
H A Dcssend.c100 if (eaccess(s, X_OK) && (mkdir(s, S_IRWXU|S_IRWXG|S_IRWXO) || chmod(s, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)))
H A Dcsopen.c54 if (eaccess(state->mount, R_OK|W_OK|X_OK))
61 if (eaccess(state->mount, X_OK))
66 if (eaccess(state->mount, X_OK))
71 if (eaccess(state->mount, X_OK) && (mkdir(state->mount, S_IRWXU|S_IRWXG|S_IRWXO) || chmod(state->mount, S_IRWXU|S_IRWXG|S_IRWXO)))
993 if ((op & CS_OPEN_CREATE) && eaccess(path, X_OK) && (mkdir(path, S_IRWXU|S_IRWXG|S_IRWXO) || chmod(path, S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)))
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c172 if(access(p,X_OK) < 0)
184 if(eaccess(argv[0],X_OK) < 0)
H A Dpath.c964 else if((statb.st_mode&S_IXALL)==S_IXALL || sh_access(path,X_OK)>=0)
1092 if(r && access(path,X_OK))
/ast/src/cmd/ksh93/bltins/
H A Dtest.c324 return(permission(arg, X_OK));
567 if(mode==X_OK && shp->gd->euserid==0)
598 if(!S_ISREG(statb.st_mode) || mode!=X_OK)
/ast/src/cmd/ie/
H A Dio.h186 # define X_OK 1 /* is it executable by caller */ macro
/ast/src/lib/libtksh/tcl/
H A DtclUnixFile.c547 if (access(Tcl_DStringValue(&buffer), X_OK) == 0) {
/ast/src/cmd/ss/
H A Dssd.c448 if (eaccess(cmd, X_OK)) idlecmd = 0;
/ast/src/lib/libtksh/src/
H A Dfilecmd.c171 mode = X_OK;

Completed in 34 milliseconds

12