]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man/man2/ipc.2
91eb1ac5059fb38781b24bf2e8be051f912dc7f7
[thirdparty/man-pages.git] / man / man2 / ipc.2
1 .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995.
2 .\"
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
4 .\"
5 .\" Modified Tue Oct 22 08:11:14 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
6 .TH ipc 2 (date) "Linux man-pages (unreleased)"
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\[em]for example x86-64 and ARM\[em]there is no
42 .BR ipc ()
43 system call; instead,
44 .BR msgctl (2),
45 .BR semctl (2),
46 .BR shmctl (2),
47 and so on really are implemented as separate system calls.
48 .SH STANDARDS
49 Linux.
50 .SH SEE ALSO
51 .BR msgctl (2),
52 .BR msgget (2),
53 .BR msgrcv (2),
54 .BR msgsnd (2),
55 .BR semctl (2),
56 .BR semget (2),
57 .BR semop (2),
58 .BR semtimedop (2),
59 .BR shmat (2),
60 .BR shmctl (2),
61 .BR shmdt (2),
62 .BR shmget (2),
63 .BR sysvipc (7)