pm

barely a pack manager
git clone git://z3bra.org/pm
Log | Files | Refs | README | LICENSE

commit aaa99805e572cf06ba88ae8297dabac628fb1990
parent 45faba361e445fe72b0266ae50c899d310efd65c
Author: z3bra <willyatmailoodotorg>
Date:   Tue Dec 29 13:59:08 2015

Add function prototypes

Diffstat:
 pm.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/pm.c b/pm.c @@ -45,6 +45,13 @@ enum { ERR_METADATA = 2, }; +void usage(char *name); +int p_mkdir(const char *dir, mode_t mode); +int inspect(int fd, const char *filename); +int metadata(const char *datadir, const char *filename); +int pack(const char *out, char **filename); +int unpack(char *root, const char *in); + char *argv0; void @@ -58,7 +65,8 @@ usage(char *name) * http://nion.modprobe.de/blog/archives/357-Recursive-directory-creation.html */ int -p_mkdir(const char *dir, mode_t mode) { +p_mkdir(const char *dir, mode_t mode) +{ char tmp[PATH_MAX]; char *p = NULL; size_t len;