diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:47 -0700 |
commit | a93c6fd677f16285ce1109f9f200b2b235ab981e (patch) | |
tree | f41a55ef2d736a19648bed510aa9ff8cdee40aee /git-compat-util.h | |
parent | fba551379ef89b92b9356caa4096144026250c22 (diff) | |
parent | dc0592941138df684770bfe800ccad6b810214c3 (diff) |
Merge branch 'ew/mmap-failures'
Error message update. * ew/mmap-failures: xmmap: inform Linux users of tuning knobs on ENOMEM
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index dca72cba29..b46605300a 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -876,6 +876,7 @@ char *xstrndup(const char *str, size_t len); void *xrealloc(void *ptr, size_t size); void *xcalloc(size_t nmemb, size_t size); void *xmmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); +const char *mmap_os_err(void); void *xmmap_gently(void *start, size_t length, int prot, int flags, int fd, off_t offset); int xopen(const char *path, int flags, ...); ssize_t xread(int fd, void *buf, size_t len); |