Contents of /trunk/mkinitrd-magellan/klibc/usr/include/sys/mman.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 686 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 686 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | /* |
2 | * sys/mman.h |
3 | */ |
4 | |
5 | #ifndef _SYS_MMAN_H |
6 | #define _SYS_MMAN_H |
7 | |
8 | #include <klibc/extern.h> |
9 | #include <sys/types.h> |
10 | #include <asm/mman.h> |
11 | |
12 | #define MAP_FAILED ((void *)-1) |
13 | |
14 | __extern void *mmap(void *, size_t, int, int, int, off_t); |
15 | __extern int munmap(void *, size_t); |
16 | __extern void *mremap(void *, size_t, size_t, unsigned long); |
17 | __extern int shm_open(const char *, int, mode_t); |
18 | __extern int shm_unlink(const char *); |
19 | __extern int msync(const void *, size_t, int); |
20 | __extern int mprotect(const void *, size_t, int); |
21 | __extern int mlockall(int); |
22 | __extern int munlockall(void); |
23 | __extern int mlock(const void *, size_t); |
24 | __extern int munlock(const void *, size_t); |
25 | |
26 | #endif /* _SYS_MMAN_H */ |