diff options
Diffstat (limited to 'rpmio/rpmfileutil.h')
-rw-r--r-- | rpmio/rpmfileutil.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpmio/rpmfileutil.h b/rpmio/rpmfileutil.h index 0022e5d03..a917868c5 100644 --- a/rpmio/rpmfileutil.h +++ b/rpmio/rpmfileutil.h @@ -31,4 +31,14 @@ int rpmDoDigest(pgpHashAlgo algo, const char * fn,int asAscii, */ int rpmMkTempFile(const char * prefix, const char ** fnptr, FD_t * fdptr); +/** + * Insure that directories in path exist, creating as needed. + * @param path directory path + * @param mode directory mode (if created) + * @param uid directory uid (if created), or -1 to skip + * @param gid directory uid (if created), or -1 to skip + * @return 0 on success, errno (or -1) on error + */ +int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid); + #endif /* _RPMFILEUTIL_H */ |