diff options
author | Lennart Poettering <lennart@poettering.net> | 2003-08-30 13:10:12 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2003-08-30 13:10:12 +0000 |
commit | 2c2c89575688a5ccac7032401df5a58b87f49aad (patch) | |
tree | fe2c034620b60f0512463dca330f994b48640cb8 /src/util.h | |
parent | db3b96fc0014a5e860df1efc729b38d629662826 (diff) |
package.c rewrite
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@14 07ea20a6-d2c5-0310-9e02-9ef735347d72
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 |