Changeset 390 for azure_iot_hub/trunk/musl-1.1.18/src/mman
- Timestamp:
- May 23, 2019, 12:45:39 AM (5 years ago)
- Location:
- azure_iot_hub/trunk/musl-1.1.18/src/mman
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub/trunk/musl-1.1.18/src/mman/mmap.c
r389 r390 7 7 #include "libc.h" 8 8 9 #ifndef __c2__10 9 static void dummy(void) { } 11 10 weak_alias(dummy, __vm_wait); 12 #else13 extern void __vm_wait(void);14 #endif15 11 16 12 #define UNIT SYSCALL_MMAP2_UNIT … … 42 38 } 43 39 44 #ifndef __c2__45 40 weak_alias(__mmap, mmap); 46 #else47 void *mmap(void *start, size_t len, int prot, int flags, int fd, off_t off)48 {49 return __mmap(start, len, prot, flags, fd, off);50 }51 #endif52 41 53 42 LFS64(mmap); -
azure_iot_hub/trunk/musl-1.1.18/src/mman/mprotect.c
r389 r390 11 11 } 12 12 13 #ifndef __c2__14 13 weak_alias(__mprotect, mprotect); 15 #else16 int mprotect(void *addr, size_t len, int prot)17 {18 return __mprotect(addr, len, prot);19 }20 #endif -
azure_iot_hub/trunk/musl-1.1.18/src/mman/mremap.c
r389 r390 8 8 #include "libc.h" 9 9 10 #ifndef __c2__11 10 static void dummy(void) { } 12 11 weak_alias(dummy, __vm_wait); 13 #else14 extern void __vm_wait(void);15 #endif16 12 17 13 void *__mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...) -
azure_iot_hub/trunk/musl-1.1.18/src/mman/munmap.c
r389 r390 3 3 #include "libc.h" 4 4 5 #ifndef __c2__6 5 static void dummy(void) { } 7 6 weak_alias(dummy, __vm_wait); 8 #else9 extern void __vm_wait(void);10 #endif11 7 12 8 int __munmap(void *start, size_t len) … … 16 12 } 17 13 18 #ifndef __c2__19 14 weak_alias(__munmap, munmap); 20 #else21 int munmap(void *start, size_t len)22 {23 return __munmap(start, len);24 }25 #endif
Note:
See TracChangeset
for help on using the changeset viewer.