.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH SEM_INIT 3 2012-05-13 "Linux" "Linux Programmer's Manual"
+.TH SEM_INIT 3 2014-03-10 "Linux" "Linux Programmer's Manual"
.SH NAME
sem_init \- initialize an unnamed semaphore
.SH SYNOPSIS
can operate on the semaphore using
.BR sem_post (3),
.BR sem_wait (3),
-etc.
+and so on.
Initializing a semaphore that has already been initialized
results in undefined behavior.
is nonzero,
but the system does not support process-shared semaphores (see
.BR sem_overview (7)).
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR sem_init ()
+function is thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH NOTES