X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libbb%2Flibbb.h;h=bc1ae21049361913863fc44f52df4552f1c3f36c;hp=4e1fafcaa4cbe24edd34f99161f49d3cd358f1f3;hb=4ea955bc7e5575bc1d8b34c364591c47653f2cfd;hpb=a79c1af5c0d3908a3ad30806530c754b42cf80e2 diff --git a/libbb/libbb.h b/libbb/libbb.h index 4e1fafc..bc1ae21 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -56,20 +56,21 @@ const char *mode_string(int mode); const char *time_string(time_t timeVal); int copy_file(const char *source, const char *dest, int flags); -int copy_file_chunk(FILE *src_file, FILE *dst_file, unsigned long long chunksize); +int copy_file_chunk(FILE * src_file, FILE * dst_file, + unsigned long long chunksize); ssize_t safe_read(int fd, void *buf, size_t count); ssize_t full_read(int fd, char *buf, int len); -extern int parse_mode( const char* s, mode_t* theMode); +extern int parse_mode(const char *s, mode_t * theMode); extern FILE *wfopen(const char *path, const char *mode); extern FILE *xfopen(const char *path, const char *mode); -extern void *xmalloc (size_t size); +extern void *xmalloc(size_t size); extern void *xrealloc(void *old, size_t size); extern void *xcalloc(size_t nmemb, size_t size); -extern char *xstrdup (const char *s); -extern char *xstrndup (const char *s, int n); +extern char *xstrdup(const char *s); +extern char *xstrndup(const char *s, int n); extern char *safe_strncpy(char *dst, const char *src, size_t size); char *xreadlink(const char *path); @@ -103,15 +104,15 @@ enum extract_functions_e { extract_exclude_list = 4096 }; -char *deb_extract(const char *package_filename, FILE *out_stream, - const int extract_function, const char *prefix, - const char *filename, int *err); +char *deb_extract(const char *package_filename, FILE * out_stream, + const int extract_function, const char *prefix, + const char *filename, int *err); -extern int unzip(FILE *l_in_file, FILE *l_out_file); +extern int unzip(FILE * l_in_file, FILE * l_out_file); extern int gz_close(int gunzip_pid); -extern FILE *gz_open(FILE *compressed_file, int *pid); +extern FILE *gz_open(FILE * compressed_file, int *pid); -int make_directory (const char *path, long mode, int flags); +int make_directory(const char *path, long mode, int flags); enum { FILEUTILS_PRESERVE_STATUS = 1,