MCPcopy Index your code
hub / github.com/git/git / xmmap_gently

Function xmmap_gently

wrapper.c:878–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878void *xmmap_gently(void *start, size_t length,
879 int prot, int flags, int fd, off_t offset)
880{
881 void *ret;
882
883 mmap_limit_check(length);
884 ret = mmap(start, length, prot, flags, fd, offset);
885 if (ret == MAP_FAILED && !length)
886 ret = NULL;
887 return ret;
888}
889
890const char *mmap_os_err(void)
891{

Callers 5

xmmapFunction · 0.85
use_packFunction · 0.85
do_read_indexFunction · 0.85
reftable_mmapFunction · 0.85

Calls 1

mmap_limit_checkFunction · 0.85

Tested by

no test coverage detected