diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-03-05 19:06:28 +0000 |
|---|---|---|
| committer | Andreas Ericsson <ae@op5.se> | 2010-04-30 09:47:58 +0200 |
| commit | 3cc606359d5ac5c869901d89d8f25cac348f4c98 (patch) | |
| tree | eeeb57b574aa97501bd7f477330a2bca8d1bdfe3 /src/fileops.h | |
| parent | 54b9460fee5219cb5a57118bce066697704ef3f8 (diff) | |
| download | libgit2-3cc606359d5ac5c869901d89d8f25cac348f4c98.tar.gz | |
Add some more (macro) file operation wrappers
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h index dc5b2ce5d..2da4231d0 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -61,12 +61,16 @@ extern int gitfo_creat(const char *path, int mode); extern int gitfo_read(git_file fd, void *buf, size_t cnt); extern int gitfo_write(git_file fd, void *buf, size_t cnt); +#define gitfo_lseek(f,n,w) lseek(f, n, w) extern off_t gitfo_size(git_file fd); extern int gitfo_read_file(gitfo_buf *obj, const char *path); extern void gitfo_free_buf(gitfo_buf *obj); extern int gitfo_move_file(char *from, char *to); +#define gitfo_stat(p,b) stat(p, b) +#define gitfo_fstat(f,b) fstat(f, b) + #define gitfo_unlink(p) unlink(p) #define gitfo_rmdir(p) rmdir(p) #define gitfo_chdir(p) chdir(p) |
