summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-08-30 13:10:12 +0000
committerLennart Poettering <lennart@poettering.net>2003-08-30 13:10:12 +0000
commit2c2c89575688a5ccac7032401df5a58b87f49aad (patch)
treefe2c034620b60f0512463dca330f994b48640cb8 /src/util.h
parentdb3b96fc0014a5e860df1efc729b38d629662826 (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.h8
1 files changed, 7 insertions, 1 deletions
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