Lines Matching refs:pflags

98 sethlp(int pflags)  in sethlp()  argument
106 if (pflags & P_EXIST) in sethlp()
108 else if (pflags & P_NEXIST) in sethlp()
111 if (pflags & P_ABSOLUTE) in sethlp()
113 else if (pflags & P_RELATIVE) in sethlp()
116 if (pflags & P_READ) in sethlp()
118 if (pflags & P_WRITE) in sethlp()
120 if (pflags & P_EXEC) in sethlp()
122 if (pflags & P_CREAT) in sethlp()
125 if (pflags & P_BLK) in sethlp()
127 else if (pflags & P_CHR) in sethlp()
129 else if (pflags & P_DIR) in sethlp()
131 else if (pflags & P_REG) in sethlp()
134 if (pflags & P_NONZERO) in sethlp()
141 ckpath_stx(int pflags) in ckpath_stx() argument
143 if (((pflags & P_ABSOLUTE) && (pflags & P_RELATIVE)) || in ckpath_stx()
144 ((pflags & P_NEXIST) && (pflags & in ckpath_stx()
146 ((pflags & P_CREAT) && (pflags & (P_EXIST|P_NEXIST|P_BLK|P_CHR))) || in ckpath_stx()
147 ((pflags & P_BLK) && (pflags & (P_CHR|P_REG|P_DIR|P_NONZERO))) || in ckpath_stx()
148 ((pflags & P_CHR) && (pflags & (P_REG|P_DIR|P_NONZERO))) || in ckpath_stx()
149 ((pflags & P_DIR) && (pflags & P_REG))) { in ckpath_stx()
156 ckpath_val(char *path, int pflags) in ckpath_val() argument
162 if ((pflags & P_RELATIVE) && (*path == '/')) { in ckpath_val()
166 if ((pflags & P_ABSOLUTE) && (*path != '/')) { in ckpath_val()
171 if (pflags & P_EXIST) { in ckpath_val()
182 if (pflags & P_CREAT) { in ckpath_val()
183 if (pflags & P_DIR) { in ckpath_val()
197 } else if (pflags & P_NEXIST) { in ckpath_val()
203 if ((pflags & P_NONZERO) && (status.st_size < 1)) { in ckpath_val()
208 if ((pflags & P_CHR) && ((status.st_mode & S_IFMT) != S_IFCHR)) { in ckpath_val()
212 if ((pflags & P_BLK) && ((status.st_mode & S_IFMT) != S_IFBLK)) { in ckpath_val()
216 if ((pflags & P_DIR) && ((status.st_mode & S_IFMT) != S_IFDIR)) { in ckpath_val()
220 if ((pflags & P_REG) && ((status.st_mode & S_IFMT) != S_IFREG)) { in ckpath_val()
224 if ((pflags & P_READ) && !(status.st_mode & S_IREAD)) { in ckpath_val()
228 if ((pflags & P_WRITE) && !(status.st_mode & S_IWRITE)) { in ckpath_val()
232 if ((pflags & P_EXEC) && !(status.st_mode & S_IEXEC)) { in ckpath_val()
240 ckpath_err(int pflags, char *error, char *input) in ckpath_err() argument
246 if (ckpath_val(input, pflags)) { in ckpath_err()
252 defhlp = sethlp(pflags); in ckpath_err()
258 ckpath_hlp(int pflags, char *help) in ckpath_hlp() argument
262 defhlp = sethlp(pflags); in ckpath_hlp()
268 ckpath(char *pathval, int pflags, char *defstr, char *error, char *help, in ckpath() argument
275 if ((pathval == NULL) || ckpath_stx(pflags)) in ckpath()
279 if (pflags & P_ABSOLUTE) in ckpath()
281 else if (pflags & P_RELATIVE) in ckpath()
286 defhlp = sethlp(pflags); in ckpath()
313 if (ckpath_val(input, pflags)) { in ckpath()