diff options
| author | René Scharfe <l.s.r@web.de> | 2025-12-06 14:27:39 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-07 07:28:11 +0900 |
| commit | e1ecf0dd6897eae1594b7e9345605b8f88485b95 (patch) | |
| tree | 8182ac3c3d18c1c5aca8c3e3e489b9493ccf4cee /wrapper.h | |
| parent | 9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff) | |
| download | git-e1ecf0dd6897eae1594b7e9345605b8f88485b95.tar.xz | |
wrapper: add git_mkdtemp()
Extend git_mkstemps_mode() to optionally call mkdir(2) instead of
open(2), then use that ability to create a mkdtemp(3) replacement,
git_mkdtemp(). We'll start using it in the next commit.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wrapper.h')
| -rw-r--r-- | wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,8 @@ int xsnprintf(char *dst, size_t max, const char *fmt, ...); int xgethostname(char *buf, size_t len); +char *git_mkdtemp(char *pattern); + /* set default permissions by passing mode arguments to open(2) */ int git_mkstemps_mode(char *pattern, int suffix_len, int mode); int git_mkstemp_mode(char *pattern, int mode); |
