source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/ipc/shmat.c@ 352

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

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 396 bytes
Line 
1#include <sys/shm.h>
2#include "syscall.h"
3#include "ipc.h"
4
5#ifdef SYS_shmat
6void *shmat(int id, const void *addr, int flag)
7{
8 return (void *)syscall(SYS_shmat, id, addr, flag);
9}
10#else
11void *shmat(int id, const void *addr, int flag)
12{
13 unsigned long ret;
14 ret = syscall(SYS_ipc, IPCOP_shmat, id, flag, &addr, addr);
15 return (ret > -(unsigned long)SHMLBA) ? (void *)ret : (void *)addr;
16}
17#endif
Note: See TracBrowser for help on using the repository browser.