msgctl.c\ipc\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/ipc/msgctl.c
blob: d1ff7c70b494b99f2f2cadcbbfe0e3b6a9a25aca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/msg.h>
#include "syscall.h"
#include "ipc.h"
int msgctl(int q, int cmd, struct msqid_ds *buf)
{
#ifdef SYS_msgctl
	return syscall(SYS_msgctl, q, cmd | 0x100, buf);
#else
	return syscall(SYS_ipc, IPCOP_msgctl, q, cmd | 0x100, 0, buf, 0);
#endif
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 03:24:38 +0000

AltStyle によって変換されたページ (->オリジナル) /