From: Alejandro Colomar Date: Sun, 27 Feb 2022 21:20:56 +0000 (+0100) Subject: sem_open.3: Add LIBRARY section (libpthread) X-Git-Tag: man-pages-5.19-rc1~300 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5845c222fc0a81bdeacdd40a9dd4e5f8fa8d7eb3;p=thirdparty%2Fman-pages.git sem_open.3: Add LIBRARY section (libpthread) Signed-off-by: Alejandro Colomar --- diff --git a/man3/sem_open.3 b/man3/sem_open.3 index 4c2119a91d..91e5205de4 100644 --- a/man3/sem_open.3 +++ b/man3/sem_open.3 @@ -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 " " /* 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.