summaryrefslogtreecommitdiff
path: root/05/musl-0.6.0/include/sys/mman.h
blob: 6aede8bd9a7131b74ebee8202b2802579e1325ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef	_SYS_MMAN_H
#define	_SYS_MMAN_H
#ifdef __cplusplus
extern "C" {
#endif

#define __NEED_mode_t
#define __NEED_size_t
#define __NEED_off_t

#include <bits/alltypes.h>

#include <bits/mman.h>

void *mmap (void *, size_t, int, int, int, off_t);
int munmap (void *, size_t);

int mprotect (void *, size_t, int);
int msync (void *, size_t, int);

int posix_madvise (void *, size_t, int);

int mlock (const void *, size_t);
int munlock (const void *, size_t);
int mlockall (int);
int munlockall (void);

/* linux extension */
void *mremap (void *, size_t, size_t, int, ...);

int shm_open (const char *, int, mode_t);
int shm_unlink (const char *);

#ifdef __cplusplus
}
#endif
#endif