summaryrefslogtreecommitdiff
path: root/src/libposixplz/munmap_void.c
blob: bbc6e1069734009487860e610d259b2f420c363a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 ;
}