| 876 | } |
| 877 | |
| 878 | void *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 | |
| 890 | const char *mmap_os_err(void) |
| 891 | { |
no test coverage detected