2019-01-19 17:26:41 +01:00
|
|
|
#ifndef UNPACK_H
|
|
|
|
#define UNPACK_H
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
#include "image_entry.h"
|
|
|
|
#include "pkgreader.h"
|
|
|
|
#include "command.h"
|
|
|
|
#include "util.h"
|
|
|
|
|
|
|
|
enum {
|
|
|
|
FLAG_NO_CHOWN = 0x01,
|
|
|
|
FLAG_NO_CHMOD = 0x02,
|
|
|
|
};
|
|
|
|
|
2019-01-30 11:27:32 +01:00
|
|
|
int create_hierarchy(int dirfd, image_entry_t *list);
|
2019-01-19 17:26:41 +01:00
|
|
|
|
|
|
|
int mkdir_p(const char *path);
|
|
|
|
|
|
|
|
#endif /* UNPACK_H */
|