#ifndef MKDIR_PARENTS_H
#define MKDIR_PARENTS_H
/* Create path and all the directories under it if needed. Permissions for
existing directories isn't changed. Returns 0 if ok. If directory already
exists, returns -1 with errno=EEXIST. */
directories. (uid_t)-1 or (gid_t)-1 can be used to indicate that it
doesn't need to be changed. If gid isn't (gid_t)-1 and the parent directory
had setgid-bit enabled, it's removed unless explicitly included in the
mode. */
/* Like mkdir_parents_chown(), but change only group. If chown() fails with
EACCES, use gid_origin in the error message. */
/* Like mkdir_parents_chown(), but don't actually create any parents. */
/* stat() the path or its first parent that exists. Returns 0 if ok, -1 if
failed. root_dir is set to the last stat()ed directory (on success and
on failure). */
#endif