summaryrefslogtreecommitdiff
path: root/api/posix/sys/mman.h
blob: d347c76441e3767dcf3621332668ff57ff63755f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <stddef.h>

#include "types.h"

#define MAP_FAILED ((void *) -1)

#define MAP_ANONYMOUS (1 >> 0)

void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset);
int munmap(void *addr, size_t length);