]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/SDKs/darwin/usr/include/sys/mman.h
Imported Upstream version 1.5.0+dfsg1
[rustc.git] / src / compiler-rt / SDKs / darwin / usr / include / sys / mman.h
CommitLineData
1a4d82fc
JJ
1/* ===-- mman.h - stub SDK header for compiler-rt ---------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 * ===-----------------------------------------------------------------------===
9 *
10 * This is a stub SDK header file. This file is not part of the interface of
11 * this library nor an official version of the appropriate SDK header. It is
12 * intended only to stub the features of this header required by compiler-rt.
13 *
14 * ===-----------------------------------------------------------------------===
15 */
16
17#ifndef __SYS_MMAN_H__
18#define __SYS_MMAN_H__
19
20typedef __SIZE_TYPE__ size_t;
21
22#define PROT_NONE 0x00
23#define PROT_READ 0x01
24#define PROT_WRITE 0x02
25#define PROT_EXEC 0x04
26
27#define MAP_SHARED 0x0001
28#define MAP_PRIVATE 0x0002
29
30#define MAP_FILE 0x0000
31#define MAP_ANON 0x1000
32
33#define MS_ASYNC 0x0001
34#define MS_INVALIDATE 0x0002
35#define MS_SYNC 0x0010
36
37void *mmap(void *addr, size_t len, int prot, int flags, int fd,
38 long long offset);
39int munmap(void *addr, size_t len);
40int msync(void *addr, size_t len, int flags);
41
42#endif /* __SYS_MMAN_H__ */