Lines Matching refs:pflags

100 sethlp(int pflags)  in sethlp()  argument
108 if (pflags & P_EXIST) in sethlp()
110 else if (pflags & P_NEXIST) in sethlp()
113 if (pflags & P_ABSOLUTE) in sethlp()
115 else if (pflags & P_RELATIVE) in sethlp()
118 if (pflags & P_READ) in sethlp()
120 if (pflags & P_WRITE) in sethlp()
122 if (pflags & P_EXEC) in sethlp()
124 if (pflags & P_CREAT) in sethlp()
127 if (pflags & P_BLK) in sethlp()
129 else if (pflags & P_CHR) in sethlp()
131 else if (pflags & P_DIR) in sethlp()
133 else if (pflags & P_REG) in sethlp()
136 if (pflags & P_NONZERO) in sethlp()
143 ckpath_stx(int pflags) in ckpath_stx() argument
145 if (((pflags & P_ABSOLUTE) && (pflags & P_RELATIVE)) || in ckpath_stx()
146 ((pflags & P_NEXIST) && (pflags & in ckpath_stx()
148 ((pflags & P_CREAT) && (pflags & (P_EXIST|P_NEXIST|P_BLK|P_CHR))) || in ckpath_stx()
149 ((pflags & P_BLK) && (pflags & (P_CHR|P_REG|P_DIR|P_NONZERO))) || in ckpath_stx()
150 ((pflags & P_CHR) && (pflags & (P_REG|P_DIR|P_NONZERO))) || in ckpath_stx()
151 ((pflags & P_DIR) && (pflags & P_REG))) { in ckpath_stx()
158 ckpath_val(char *path, int pflags) in ckpath_val() argument
164 if ((pflags & P_RELATIVE) && (*path == '/')) { in ckpath_val()
168 if ((pflags & P_ABSOLUTE) && (*path != '/')) { in ckpath_val()
173 if (pflags & P_EXIST) { in ckpath_val()
184 if (pflags & P_CREAT) { in ckpath_val()
185 if (pflags & P_DIR) { in ckpath_val()
199 } else if (pflags & P_NEXIST) { in ckpath_val()
205 if ((pflags & P_NONZERO) && (status.st_size < 1)) { in ckpath_val()
210 if ((pflags & P_CHR) && ((status.st_mode & S_IFMT) != S_IFCHR)) { in ckpath_val()
214 if ((pflags & P_BLK) && ((status.st_mode & S_IFMT) != S_IFBLK)) { in ckpath_val()
218 if ((pflags & P_DIR) && ((status.st_mode & S_IFMT) != S_IFDIR)) { in ckpath_val()
222 if ((pflags & P_REG) && ((status.st_mode & S_IFMT) != S_IFREG)) { in ckpath_val()
226 if ((pflags & P_READ) && !(status.st_mode & S_IREAD)) { in ckpath_val()
230 if ((pflags & P_WRITE) && !(status.st_mode & S_IWRITE)) { in ckpath_val()
234 if ((pflags & P_EXEC) && !(status.st_mode & S_IEXEC)) { in ckpath_val()
242 ckpath_err(int pflags, char *error, char *input) in ckpath_err() argument
248 if (ckpath_val(input, pflags)) { in ckpath_err()
255 defhlp = sethlp(pflags); in ckpath_err()
261 ckpath_hlp(int pflags, char *help) in ckpath_hlp() argument
265 defhlp = sethlp(pflags); in ckpath_hlp()
271 ckpath(char *pathval, int pflags, char *defstr, char *error, char *help, in ckpath() argument
278 if ((pathval == NULL) || ckpath_stx(pflags)) in ckpath()
282 if (pflags & P_ABSOLUTE) in ckpath()
284 else if (pflags & P_RELATIVE) in ckpath()
289 defhlp = sethlp(pflags); in ckpath()
316 if (ckpath_val(input, pflags)) { in ckpath()