diff options
author | Holger Eitzenberger <holger@my-eitzenberger.de> | 2005-08-04 22:43:03 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-05 23:06:58 -0700 |
commit | f2db68eda89f2fbe7e4c1a69a3c10b25ea43667c (patch) | |
tree | 59c2442b47c88b273f3688dd573e97ad3e87aa43 /cache.h | |
parent | 51b0fca012310910783de76f2eacfd10b0f2f9fc (diff) | |
download | git-f2db68eda89f2fbe7e4c1a69a3c10b25ea43667c.tar.gz |
[PATCH] git: add git_mkstemp()
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -181,7 +181,10 @@ extern char *sha1_file_name(const unsigned char *sha1); extern char *sha1_pack_name(const unsigned char *sha1); extern char *sha1_pack_index_name(const unsigned char *sha1); +int git_mkstemp(char *path, size_t n, const char *template); + int safe_create_leading_directories(char *path); +char *safe_strncpy(char *, const char *, size_t); /* Read and unpack a sha1 file into memory, write memory to a sha1 file */ extern int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void *buffer, unsigned long size); |