Changeset 597 for trunk/libs/mini-libc/mman.c
- Timestamp:
- Nov 10, 2018, 2:56:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/mini-libc/mman.c
r473 r597 28 28 #include <stdio.h> 29 29 30 //////////////////////////////// y30 //////////////////////////////// 31 31 int munmap( void * addr, 32 32 unsigned int size ) … … 47 47 mmap_attr_t attr; 48 48 49 attr.addr = addr; 49 // addr argument must be NULL 50 if( addr != NULL ) 51 { 52 printf("\n[ERROR] in %s : the <addr> argument must be NULL\n", __FUNCTION__ ); 53 return NULL; 54 } 55 56 //set the mmap attributes 57 attr.addr = NULL; 50 58 attr.length = length; 51 59 attr.prot = prot;
Note: See TracChangeset
for help on using the changeset viewer.