/ast/src/lib/libast/string/ |
H A D | fmtperm.c | 27 * return strperm() expression for perm 34 fmtperm(register int perm) argument 47 if (perm & S_ISVTX) 49 if (perm & S_ISUID) 51 if (perm & S_IRUSR) 53 if (perm & S_IWUSR) 55 if (perm & S_IXUSR) 57 if ((perm & (S_ISGID|S_IXGRP)) == S_ISGID) 67 if ((perm & (S_ISGID|S_IXGRP)) == (S_ISGID|S_IXGRP)) 69 if (perm [all...] |
H A D | strperm.c | 27 * apply file permission expression expr to perm 43 strperm(const char* aexpr, char** e, register int perm) argument 54 if (perm == -1) 56 perm = 0; 92 perm &= ~who; 94 perm = 0; 113 if (!S_ISDIR(perm) && !(perm & (S_IXUSR|S_IXGRP|S_IXOTH))) 126 if (perm & S_IXGRP) 130 return perm [all...] |
/ast/src/lib/libast/preroot/ |
H A D | realopen.c | 34 realopen(const char* path, int mode, int perm) argument 40 return(open(buf, mode, perm));
|
/ast/src/lib/libbz/ |
H A D | huffman.c | 196 Int32 *perm, 207 if (length[j] == i) { perm[pp] = j; pp++; }; 194 hbCreateDecodeTables( Int32 *limit, Int32 *base, Int32 *perm, UChar *length, Int32 minLen, Int32 maxLen, Int32 alphaSize ) argument
|
H A D | bzhdr.h | 433 Int32 perm [BZ_N_GROUPS][BZ_MAX_ALPHA_SIZE]; member in struct:__anon327
|
/ast/src/lib/libcmd/ |
H A D | cksum.c | 178 pr(State_t* state, Sfio_t* op, Sfio_t* ip, char* file, int perm, struct stat* st, Sfio_t* check) argument 234 if (perm >= 0) 236 if (perm)
|
H A D | cp.c | 170 int perm; /* permissions to preserve */ member in struct:State_s 598 else if ((wfd = open(state->path, (st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags)|O_cloexec, ent->fts_statp->st_mode & state->perm)) < 0) 660 if ((state->preserve & PRESERVE_PERM) && (ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, ent->fts_statp->st_mode & state->perm)) 661 error(ERROR_SYSTEM|2, "%s: cannot reset mode to %s", state->path, fmtmode(st.st_mode & state->perm, 0) + 1); 983 state->perm = state->uid ? S_IPERM : (S_IPERM & ~S_ISVTX);
|
/ast/src/lib/libcs/ |
H A D | css.h | 107 int perm; /* service permissions */ member in struct:Css_s
|
/ast/src/cmd/pax/ |
H A D | file.c | 227 pp = f->perm; 228 f->perm = st->st_mode & state.modemask; 234 if (mkdir(s, f->perm)) 238 f->perm = pp; 245 f->perm = pp; 261 int perm; local 290 f->chmod = f->perm != (st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO)) && 454 if (!exists && mkdir(f->name, f->perm) && (missdir(ap, f) || mkdir(f->name, f->perm))) 642 if ((perm [all...] |
H A D | options.h | 174 Value_t perm; member in struct:Option_s
|
/ast/src/lib/libast/uwin/ |
H A D | crypt.c | 481 * Initialize "perm" to represent transformation "p", which rearranges 486 * "perm" must be all-zeroes on entry to this routine. 488 static void init_perm(C_block perm[64/CHUNKBITS][1<<CHUNKBITS], argument 500 perm[i][j].b[k>>3] |= 1<<(k&07); 513 static unsigned char perm[64], tmp32[32]; /* "static" for speed */ local 525 perm[i] = 0; 537 perm[i] = (unsigned char) k; 540 prtab("pc1tab", perm, 8); 542 init_perm(PC1ROT, perm, 8, 8); 550 perm[ [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | io.c | 1072 static char *io_usename(char *name, int *perm, int fno, int mode) argument 1087 *perm = statb.st_mode&(RW_ALL|(S_IXUSR|S_IXGRP|S_IXOTH)); 1143 int r, indx = shp->topfd, perm= -1; local 1342 if(tname = io_usename(fname,&perm,fn,0)) 1375 if(perm>0) 1377 fchmod(fd,perm); 1379 chmod(tname,perm);
|