source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/mman/munmap.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 404 bytes
Line 
1#include <sys/mman.h>
2#include "syscall.h"
3#include "libc.h"
4
5#ifndef __c2__
6static void dummy(void) { }
7weak_alias(dummy, __vm_wait);
8#else
9extern void __vm_wait(void);
10#endif
11
12int __munmap(void *start, size_t len)
13{
14 __vm_wait();
15 return syscall(SYS_munmap, start, len);
16}
17
18#ifndef __c2__
19weak_alias(__munmap, munmap);
20#else
21int munmap(void *start, size_t len)
22{
23 return __munmap(start, len);
24}
25#endif
Note: See TracBrowser for help on using the repository browser.