mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 22:08:56 +00:00
Add some (macro) file operation wrappers
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
ced645ea9c
commit
cfe96f31df
@ -47,6 +47,10 @@ extern off_t gitfo_size(git_file fd);
|
|||||||
extern int gitfo_read_file(gitfo_buf *obj, const char *path);
|
extern int gitfo_read_file(gitfo_buf *obj, const char *path);
|
||||||
extern void gitfo_free_buf(gitfo_buf *obj);
|
extern void gitfo_free_buf(gitfo_buf *obj);
|
||||||
|
|
||||||
|
#define gitfo_unlink(p) unlink(p)
|
||||||
|
#define gitfo_mkdir(p,m) mkdir(p, m)
|
||||||
|
#define gitfo_rmdir(p) rmdir(p)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read-only map all or part of a file into memory.
|
* Read-only map all or part of a file into memory.
|
||||||
* When possible this function should favor a virtual memory
|
* When possible this function should favor a virtual memory
|
||||||
|
Loading…
Reference in New Issue
Block a user