Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
1.6 KB
|
Line | |
---|
1 | #ifndef _SHARED_MMAN_H_ |
---|
2 | #define _SHARED_MMAN_H_ |
---|
3 | |
---|
4 | typedef enum |
---|
5 | { |
---|
6 | PROT_NONE = 0x0, /*! no access */ |
---|
7 | PROT_EXEC = 0x1, /*! executable */ |
---|
8 | PROT_WRITE = 0x2, /*! writable */ |
---|
9 | PROT_READ = 0x4, /*! readable */ |
---|
10 | } |
---|
11 | mmap_prot_t; |
---|
12 | |
---|
13 | typedef enum |
---|
14 | { |
---|
15 | MAP_FILE = 0x00000000, /*! map an open file defined by its fdid */ |
---|
16 | MAP_ANON = 0x00000001, /*! map an anonymous vseg in local cluster */ |
---|
17 | MAP_REMOTE = 0x00000002, /*! map an anonymous vseg in remote cluster (cxy == fdid) */ |
---|
18 | MAP_PRIVATE = 0x00000010, /*! */ |
---|
19 | MAP_SHARED = 0x00000020, /*! */ |
---|
20 | MAP_FIXED = 0x00000100, /*! non supported */ |
---|
21 | } |
---|
22 | mmap_flags_t; |
---|
23 | |
---|
24 | typedef struct mmap_attr_s |
---|
25 | { |
---|
26 | void * addr; /*! requested virtual address (unused : should be NULL) */ |
---|
27 | unsigned int length; /*! requested vseg size (bytes) */ |
---|
28 | unsigned int prot; /*! access modes */ |
---|
29 | unsigned int flags; /*! MAP_FILE / MAP_ANON / MAP_PRIVATE / MAP_SHARED */ |
---|
30 | unsigned int fdid; /*! file descriptor index (if MAP_FILE) */ |
---|
31 | unsigned int offset; /*! file offset (if MAP_FILE) */ |
---|
32 | } |
---|
33 | mmap_attr_t; |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.