Lines Matching defs:mode
555 int sh_access(register const char *name, register int mode)
562 return(sh_ioaccess((int)strtol(name+8, (char**)0, 10),mode));
564 if(mode==X_OK && shp->gd->euserid==0)
567 return(access(name,mode));
576 mode = access(name,mode);
582 return(mode);
591 if(mode == F_OK)
592 return(mode);
595 if(!S_ISREG(statb.st_mode) || mode!=X_OK)
598 mode = (S_IXUSR|S_IXGRP|S_IXOTH);
601 mode <<= 6;
603 mode <<= 3;
626 mode <<= 3;
632 if(statb.st_mode & mode)
639 * Return the mode bits of file <file>
641 * The mode bits are zero if the file doesn't exist.