Lines Matching defs:flags
11 /* VSTREAM *safe_open(path, flags, mode, st, user, group, why)
13 /* int flags;
27 /* .IP "path, flags, mode"
94 static VSTREAM *safe_open_exist(const char *path, int flags,
105 if ((fp = vstream_fopen(path, flags & ~(O_CREAT | O_EXCL), 0)) == 0) {
197 static VSTREAM *safe_open_create(const char *path, int flags, mode_t mode,
206 if ((fp = vstream_fopen(path, flags | (O_CREAT | O_EXCL), mode)) == 0) {
245 VSTREAM *safe_open(const char *path, int flags, mode_t mode,
250 switch (flags & (O_CREAT | O_EXCL)) {
256 return (safe_open_exist(path, flags, st, why));
262 return (safe_open_create(path, flags, mode, st, user, group, why));
271 fp = safe_open_exist(path, flags, st, why);
273 fp = safe_open_create(path, flags, mode, st, user, group, why);
275 fp = safe_open_exist(path, flags, st, why);