diff options
Diffstat (limited to 'src/libposixplz')
-rw-r--r-- | src/libposixplz/munmap_void.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libposixplz/munmap_void.c b/src/libposixplz/munmap_void.c new file mode 100644 index 0000000..bbc6e10 --- /dev/null +++ b/src/libposixplz/munmap_void.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +#include <sys/mman.h> +#include <errno.h> + +#include <skalibs/posixplz.h> + +void munmap_void (void *addr, size_t len) +{ + int e = errno ; + munmap(addr, len) ; + errno = e ; +} |