Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: fusl/include/sys/mman.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/sys/klog.h ('k') | fusl/include/sys/mount.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _SYS_MMAN_H
2 #define _SYS_MMAN_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #include <features.h>
8
9 #define __NEED_mode_t
10 #define __NEED_size_t
11 #define __NEED_off_t
12
13 #if defined(_GNU_SOURCE)
14 #define __NEED_ssize_t
15 #endif
16
17 #include <bits/alltypes.h>
18
19 #include <bits/mman.h>
20
21 void *mmap (void *, size_t, int, int, int, off_t);
22 int munmap (void *, size_t);
23
24 int mprotect (void *, size_t, int);
25 int msync (void *, size_t, int);
26
27 int posix_madvise (void *, size_t, int);
28
29 int mlock (const void *, size_t);
30 int munlock (const void *, size_t);
31 int mlockall (int);
32 int munlockall (void);
33
34 #ifdef _GNU_SOURCE
35 #define MREMAP_MAYMOVE 1
36 #define MREMAP_FIXED 2
37 void *mremap (void *, size_t, size_t, int, ...);
38 int remap_file_pages (void *, size_t, int, size_t, int);
39 #endif
40
41 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
42 int madvise (void *, size_t, int);
43 int mincore (void *, size_t, unsigned char *);
44 #endif
45
46 int shm_open (const char *, int, mode_t);
47 int shm_unlink (const char *);
48
49 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
50 #define mmap64 mmap
51 #define off64_t off_t
52 #endif
53
54 #ifdef __cplusplus
55 }
56 #endif
57 #endif
OLDNEW
« no previous file with comments | « fusl/include/sys/klog.h ('k') | fusl/include/sys/mount.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698