Changeset 2463df9 in mainline for uspace/lib/posix/source/sys/mman.c
- Timestamp:
- 2014-02-11T04:38:26Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89dcf93
- Parents:
- b6e481b
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/mman.c
rb6e481b r2463df9 27 27 */ 28 28 29 /** @addtogroup lib c29 /** @addtogroup libposix 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #include <sys/mman.h> 36 #include <sys/types.h> 37 #include <as.h> 38 #include <unistd.h> 35 #define LIBPOSIX_INTERNAL 36 #define __POSIX_DEF__(x) posix_##x 39 37 40 void *mmap(void *start, size_t length, int prot, int flags, int fd, 41 aoff64_t offset) 38 #include "../internal/common.h" 39 #include <posix/sys/mman.h> 40 #include <posix/sys/types.h> 41 #include <libc/as.h> 42 #include <posix/unistd.h> 43 44 void *posix_mmap(void *start, size_t length, int prot, int flags, int fd, 45 __POSIX_DEF__(off_t) offset) 42 46 { 43 47 if (!start) … … 53 57 } 54 58 55 int munmap(void *start, size_t length)59 int posix_munmap(void *start, size_t length) 56 60 { 57 61 return as_area_destroy(start);
Note:
See TracChangeset
for help on using the changeset viewer.