16 __weak_alias(shmget
, _shmget
)
19 static int get_ipc_endpt(endpoint_t
*pt
)
21 return minix_rs_lookup("ipc", pt
);
24 /* Get shared memory segment. */
25 int shmget(key_t key
, size_t size
, int shmflg
)
31 if (get_ipc_endpt(&ipc_pt
) != OK
) {
38 m
.SHMGET_FLAG
= shmflg
;
40 r
= _syscall(ipc_pt
, IPC_SHMGET
, &m
);
43 return m
.SHMGET_RETID
;