10 #include <sys/types.h>
16 static int get_ipc_endpt(endpoint_t
*pt
)
18 return minix_rs_lookup("ipc", pt
);
21 /* Shared memory control operation. */
22 int shmctl(int shmid
, int cmd
, struct shmid_ds
*buf
)
28 if (get_ipc_endpt(&ipc_pt
) != OK
) {
35 m
.SHMCTL_BUF
= (long) buf
;
37 r
= _syscall(ipc_pt
, IPC_SHMCTL
, &m
);
38 if ((cmd
== IPC_INFO
|| cmd
== SHM_INFO
|| cmd
== SHM_STAT
)