Lines Matching defs:path
11 /* VSTREAM *safe_open(path, flags, mode, st, user, group, why)
12 /* const char *path;
27 /* .IP "path, flags, mode"
93 static VSTREAM *safe_open_exist(const char *path, int flags,
104 if ((fp = vstream_fopen(path, flags & ~(O_CREAT | O_EXCL), 0)) == 0) {
119 msg_fatal("%s: bad open file status: %m", path);
150 else if (lstat(path, &lstat_st) < 0) {
156 const char *parent_path = sane_dirname(parent_buf, path);
196 static VSTREAM *safe_open_create(const char *path, int flags, mode_t mode,
205 if ((fp = vstream_fopen(path, flags | (O_CREAT | O_EXCL), mode)) == 0) {
214 msg_fatal("%s: bad open file status: %m", path);
225 msg_warn("%s: cannot change file ownership: %m", path);
244 VSTREAM *safe_open(const char *path, int flags, mode_t mode,
255 return (safe_open_exist(path, flags, st, why));
261 return (safe_open_create(path, flags, mode, st, user, group, why));
270 fp = safe_open_exist(path, flags, st, why);
272 fp = safe_open_create(path, flags, mode, st, user, group, why);
274 fp = safe_open_exist(path, flags, st, why);