Debian Codegraph @

upstream/debian-unstable/man2/ipc.2

raw
1 .\" Copyright 1995, Michael Chastain <[email protected]>
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
6 .TH ipc 2 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 ipc \- System V IPC system calls
9 .SH LIBRARY
10 Standard C library
11 .RI ( libc ,\~ \-lc )
12 .SH SYNOPSIS
13 .nf
14 .BR "#include <linux/ipc.h>" " /* Definition of needed constants */"
15 .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
16 .B #include <unistd.h>
17 .P
18 .BI "int syscall(SYS_ipc, unsigned int " call ", int " first ,
19 .BI " unsigned long " second ", unsigned long " third \
20 ", void *" ptr ,
21 .BI " long " fifth );
22 .fi
23 .P
24 .IR Note :
25 glibc provides no wrapper for
26 .BR ipc (),
27 necessitating the use of
28 .BR syscall (2).
29 .SH DESCRIPTION
30 .BR ipc ()
31 is a common kernel entry point for the System\ V IPC calls
32 for messages, semaphores, and shared memory.
33 .I call
34 determines which IPC function to invoke;
35 the other arguments are passed through to the appropriate call.
36 .P
37 User-space programs should call the appropriate functions by their usual names.
38 Only standard library implementors and kernel hackers need to know about
39 .BR ipc ().
40 .SH VERSIONS
41 On some architectures
42 \[em]for example x86-64 and ARM\[em]
43 there is no
44 .BR ipc ()
45 system call;
46 instead,
47 .BR msgctl (2),
48 .BR semctl (2),
49 .BR shmctl (2),
50 and so on really are implemented as separate system calls.
51 .SH STANDARDS
52 Linux.
53 .SH SEE ALSO
54 .BR msgctl (2),
55 .BR msgget (2),
56 .BR msgrcv (2),
57 .BR msgsnd (2),
58 .BR semctl (2),
59 .BR semget (2),
60 .BR semop (2),
61 .BR semtimedop (2),
62 .BR shmat (2),
63 .BR shmctl (2),
64 .BR shmdt (2),
65 .BR shmget (2),
66 .BR sysvipc (7)