From 2c2c89575688a5ccac7032401df5a58b87f49aad Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 Aug 2003 13:10:12 +0000 Subject: package.c rewrite git-svn-id: file:///home/lennart/svn/public/syrep/trunk@14 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/util.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index a44c598..d16f0a6 100644 --- a/src/util.h +++ b/src/util.h @@ -33,8 +33,9 @@ char* normalize_path(char *s); void rotdash(void); void rotdash_hide(void); const char* get_snapshot_filename(const char *path, const char *fn); +const char* get_attached_filename(const char *root, const char *fn); int isdirectory(const char *path); -int copy_fd(int sfd, int dfd, uint32_t l); +int copy_fd(int sfd, int dfd, size_t l); int copy_file(const char *src, const char *dst, int c); int move_file(const char *src, const char *dst, int c); int copy_or_link_file(const char *src, const char *dst, int c); @@ -53,5 +54,10 @@ int question(const char *q, const char *resp); /* Same as /bin/rm -rf in the shell */ int rm_rf(const char *root, int rec); +ssize_t loop_read(int fd, void *d, size_t l); +ssize_t loop_write(int fd, void *d, size_t l); + +int expand_file(int fd, size_t l); +int filesize(int fd); #endif -- cgit