Changeset 52acfab in mainline for uspace/lib/posix/include/posix/sys/mman.h
- Timestamp:
- 2019-05-28T19:24:14Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77de449e
- Parents:
- af5037d (diff), bebd154 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-28 19:24:14)
- git-committer:
- GitHub <noreply@…> (2019-05-28 19:24:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/sys/mman.h
raf5037d r52acfab 37 37 38 38 #include <sys/types.h> 39 #include < abi/mm/as.h>39 #include <_bits/decls.h> 40 40 41 #define MAP_FAILED ((void *) -1)41 #define MAP_FAILED ((void *) -1) 42 42 43 43 #define MAP_SHARED (1 << 0) … … 45 45 #define MAP_FIXED (1 << 2) 46 46 #define MAP_ANONYMOUS (1 << 3) 47 #define MAP_ANON MAP_ANONYMOUS47 #define MAP_ANON MAP_ANONYMOUS 48 48 49 #undef PROT_NONE 50 #undef PROT_READ 51 #undef PROT_WRITE 52 #undef PROT_EXEC 53 #define PROT_NONE 0 54 #define PROT_READ AS_AREA_READ 55 #define PROT_WRITE AS_AREA_WRITE 56 #define PROT_EXEC AS_AREA_EXEC 49 #define PROT_NONE 0 50 #define PROT_READ 1 51 #define PROT_WRITE 2 52 #define PROT_EXEC 4 53 54 __C_DECLS_BEGIN; 57 55 58 56 extern void *mmap(void *start, size_t length, int prot, int flags, int fd, … … 60 58 extern int munmap(void *start, size_t length); 61 59 60 __C_DECLS_END; 61 62 62 #endif /* POSIX_SYS_MMAN_H_ */ 63 63
Note:
See TracChangeset
for help on using the changeset viewer.