initial commit
[glibc.git] / conform / data / sys / mman.h-data
1 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4
2 constant PROT_READ
3 constant PROT_WRITE
4 constant PROT_EXEC
5 constant PROT_NONE
6
7 constant MAP_SHARED
8 constant MAP_PRIVATE
9 constant MAP_FIXED
10
11 constant MS_ASYNC
12 constant MS_SYNC
13 constant MS_INVALIDATE
14
15 constant MCL_CURRENT
16 constant MCL_FUTURE
17
18 constant MAP_FAILED
19
20 # if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
21 constant POSIX_MADV_NORMAL
22 constant POSIX_MADV_SEQUENTIAL
23 constant POSIX_MADV_RANDOM
24 constant POSIX_MADV_WILLNEED
25 constant POSIX_MADV_DONTNEED
26
27 optional-constant POSIX_TYPED_MEM_ALLOCATE
28 optional-constant POSIX_TYPED_MEM_ALLOCATE_CONTIG
29 optional-constant POSIX_TYPED_MEM_MAP_ALLOCATABLE
30
31 type mode_t
32
33 optional-type {struct posix_typedmem_info}
34 optional-element {struct posix_typedmem_info} size_t posix_tmi_length
35
36 function int posix_madvise (void*, size_t, int)
37 optional-function int posix_mem_offset (const void*, size_t, off_t*, size_t*, int*)
38 optional-function int posix_typed_mem_get_info (int, struct posix_typed_mem_info*)
39 optional-function int posix_typed_mem_open (const char*, int, int)
40 # endif
41
42 # ifndef POSIX
43 type size_t
44 type off_t
45 # endif
46
47 function int mlock (const void*, size_t)
48 function int mlockall (int)
49 function {void*} mmap (void*, size_t, int, int, int, off_t)
50 function int mprotect (void*, size_t, int)
51 function int msync (void*, size_t, int)
52 function int munlock (const void*, size_t)
53 function int munlockall (void)
54 function int munmap (void*, size_t)
55 function int shm_open (const char*, int, mode_t)
56 function int shm_unlink (const char*)
57
58 allow shm_*
59 allow MAP_*
60 allow MCL_*
61 allow MS_*
62 allow PROT_*
63 allow *_t
64 #endif