From bfdac5b274d8ca371307d2b4b417092ba25f11ab Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 28 Aug 2013 17:54:19 +0200 Subject: [SERVER] Copy CRC-32 list from uplink server if available Split up helper.c, move file/disk related functions to fileutil.c Uplink: Make sure relayed requests are at least 1MiB --- src/server/fileutil.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/server/fileutil.h (limited to 'src/server/fileutil.h') diff --git a/src/server/fileutil.h b/src/server/fileutil.h new file mode 100644 index 0000000..394338b --- /dev/null +++ b/src/server/fileutil.h @@ -0,0 +1,14 @@ +#ifndef _FILEUTIL_H_ +#define _FILEUTIL_H_ + +#include "../types.h" +#include + +int file_isReadable(char *file); +int file_isWritable(char *file); +int mkdir_p(const char* path); +int file_alloc(int fd, uint64_t offset, uint64_t size); +uint64_t file_freeDiskSpace(const char * const path); +time_t file_lastModification(const char * const file); + +#endif /* FILEUTIL_H_ */ -- cgit v1.2.3-55-g7522