aboutsummaryrefslogtreecommitdiffstats
path: root/man2/semctl.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-06-01 00:55:28 +1200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-06-08 03:10:25 +1200
commitf66524636d339199ee717a78ce504a9ef07e01b8 (patch)
tree90c8c84d5d4b0e21d98fb1d68ee1c128c7d90eb8 /man2/semctl.2
parent26a85bf20ebf726780e024c8d9ee3df731f62d8a (diff)
downloadman-pages-f66524636d339199ee717a78ce504a9ef07e01b8.tar.gz
msgctl.2, msgget.2, msgop.2, semctl.2, semget.2, semop.2, shmctl.2, shmget.2: NOTES: <sys/types.h> and <sys/ipc.h> aren't strictly needed
Add text to NOTES to say that the <sys/types.h> and <sys/ipc.h> header files aren't required by Linux or the standards, but may be needed for portability to old systems. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/semctl.2')
-rw-r--r--man2/semctl.215
1 files changed, 14 insertions, 1 deletions
diff --git a/man2/semctl.2 b/man2/semctl.2
index f16e94144d..bf08e4c3a2 100644
--- a/man2/semctl.2
+++ b/man2/semctl.2
@@ -36,7 +36,7 @@
.\" Added semid_ds and ipc_perm structure definitions
.\" 2005-08-02, mtk: Added IPC_INFO, SEM_INFO, SEM_STAT descriptions.
.\"
-.TH SEMCTL 2 2009-09-27 "Linux" "Linux Programmer's Manual"
+.TH SEMCTL 2 2012-05-31 "Linux" "Linux Programmer's Manual"
.SH NAME
semctl \- semaphore control operations
.SH SYNOPSIS
@@ -461,6 +461,19 @@ or greater than the implementation limit
SVr4, POSIX.1-2001.
.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
.SH NOTES
+The inclusion of
+.I <sys/types.h>
+and
+.I <sys/ipc.h>
+isn't required on Linux or by any version of POSIX.
+However,
+some old implementations required the inclusion of these header files,
+and the SVID also documented their inclusion.
+Applications intended to be portable to such old systems may need
+to include these header files.
+.\" Like Linux, the FreeBSD man pages still document
+.\" the inclusion of these header files.
+
The
.BR IPC_INFO ,
.B SEM_STAT