diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |