]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sem_open.3: Add LIBRARY section (libpthread)
authorAlejandro Colomar <alx.manpages@gmail.com>
Sun, 27 Feb 2022 21:20:56 +0000 (22:20 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Sun, 27 Feb 2022 21:20:56 +0000 (22:20 +0100)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3/sem_open.3

index 4c2119a91d8314f12e160fbcc7b997d8fdc58de3..91e5205de49fe5b14278dc4e339fb15272a86b1c 100644 (file)
@@ -5,6 +5,9 @@
 .TH SEM_OPEN 3 2021-03-22 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sem_open \- initialize and open a named semaphore
+.SH LIBRARY
+POSIX threads library
+.RI ( libpthread ", " -lpthread )
 .SH SYNOPSIS
 .nf
 .BR "#include <fcntl.h>" "           /* For O_* constants */"
@@ -15,8 +18,6 @@ sem_open \- initialize and open a named semaphore
 .BI "sem_t *sem_open(const char *" name ", int " oflag ,
 .BI "                mode_t " mode ", unsigned int " value );
 .fi
-.PP
-Link with \fI\-pthread\fP.
 .SH DESCRIPTION
 .BR sem_open ()
 creates a new POSIX semaphore or opens an existing semaphore.