summaryrefslogtreecommitdiffstats
path: root/src/util.h
blob: 2460ab9c2cb14f8ad170604dd6c085d1cd839d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef fooutilhfoo
#define fooutilhfoo

#include <db.h>
#include <stdint.h>

void statistics(DB *db);
char* normalize_path(char *s);
void rotdash(void);
const char* get_attached_filename(const char *path, const char *fn);
int isdirectory(const char *path);
int copy_fd(int sfd, int dfd, uint32_t l);
int copy_file(const char *src, const char *dst);
int copy_or_link_file(const char *src, const char *dst);

#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif

#endif