Mercurial > hg > toybox
diff lib/lib.h @ 1219:468444e5c7c5 draft
Move mkpathat to lib, remove redundant function used by patch.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 11 Mar 2014 20:44:55 -0500 |
parents | c08555a9d948 |
children | 63db77909fc8 |
line wrap: on
line diff
--- a/lib/lib.h Tue Mar 11 18:11:12 2014 -0500 +++ b/lib/lib.h Tue Mar 11 20:44:55 2014 -0500 @@ -110,7 +110,6 @@ char *xrealpath(char *path); void xchdir(char *path); void xchroot(char *path); -void xmkpath(char *path, int mode); struct passwd *xgetpwuid(uid_t uid); struct group *xgetgrgid(gid_t gid); struct passwd *xgetpwnam(char *name); @@ -128,6 +127,7 @@ ssize_t readall(int fd, void *buf, size_t len); ssize_t writeall(int fd, void *buf, size_t len); off_t lskip(int fd, off_t offset); +int mkpathat(int atfd, char *dir, mode_t lastmode, int flags); struct string_list **splitpath(char *path, struct string_list **list); char *readfile(char *name, char *buf, off_t len); void msleep(long miliseconds);