Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1882 clevermous 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#ifndef __dj_include_sys_mman_h_
3
#define __dj_include_sys_mman_h_
4
 
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
 
9
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
10
 
11
#ifndef __STRICT_ANSI__
12
 
13
#ifndef _POSIX_SOURCE
14
 
15
/* protections are chosen from these bits, or-ed together */
16
#define PROT_NONE	0		/* no access to these pages */
17
#define PROT_READ	0x1		/* pages can be read */
18
#define PROT_WRITE	0x2		/* pages can be written */
19
#define PROT_EXEC	0		/* pages can be executed - not used */
20
 
21
extern int mprotect(void *addr, size_t len, int prot);
22
 
23
#endif /* !_POSIX_SOURCE */
24
#endif /* !__STRICT_ANSI__ */
25
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
26
 
27
#ifndef __dj_ENFORCE_FUNCTION_CALLS
28
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
29
 
30
#ifdef __cplusplus
31
}
32
#endif
33
 
34
#endif /* !__dj_include_sys_mman_h_ */