1 /*
2  * Copyright (c) 2008 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 /*
8  * NaCl Service Runtime.  IMC API.
9  */
10 
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_MMAN_H_
12 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_MMAN_H_
13 
14 #include <sys/types.h>
15 
16 #include "native_client/src/trusted/service_runtime/include/bits/mman.h"
17 
18 #if defined(NACL_IN_TOOLCHAIN_HEADERS)
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /** Description of mmap. More details... */
25 extern void *mmap(void *start, size_t length, int prot, int flags,
26                   int desc, off_t offset);
27 
28 /** Description of munmap. More details... */
29 extern int munmap(void *start, size_t length);
30 
31 /** Description of mprotect. More details... */
32 extern int mprotect(void *start, size_t length, int prot);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif  // defined(NACL_IN_TOOLCHAIN_HEADERS)
39 
40 #endif
41