source: azure_iot_hub/trunk/musl-1.1.18/src/ipc/shmget.c@ 389

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

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 305 bytes
Line 
1#include <sys/shm.h>
2#include <stdint.h>
3#include "syscall.h"
4#include "ipc.h"
5
6int shmget(key_t key, size_t size, int flag)
7{
8 if (size > PTRDIFF_MAX) size = SIZE_MAX;
9#ifdef SYS_shmget
10 return syscall(SYS_shmget, key, size, flag);
11#else
12 return syscall(SYS_ipc, IPCOP_shmget, key, size, flag);
13#endif
14}
Note: See TracBrowser for help on using the repository browser.