Skip to content

Commit 88773a7

Browse files
committed
sem_unlink() deserves to be on the slide
1 parent a17f718 commit 88773a7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

synchro.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@
620620
\end{minipage}
621621
]]])
622622
\begin{itemize}
623-
\item creates or opens a new POSIX semaphore. \emph{mode} is same as for
624-
\funnm{open}(). Use ``\texttt{/somename}'' for the \emph{name}.
623+
\item creates or opens a new POSIX semaphore.
625624
\end{itemize}
626625
ifdef([[[NOSPELLCHECK]]], [[[
627626
\texttt{int \funnm{sem\_wait}(sem\_t *\emph{sem});}
@@ -639,16 +638,20 @@
639638
ifdef([[[NOSPELLCHECK]]], [[[
640639
\texttt{int \funnm{sem\_close}(sem\_t *\emph{sem});}
641640
]]])
641+
ifdef([[[NOSPELLCHECK]]], [[[
642+
\texttt{int \funnm{sem\_unlink}(sem\_t *\emph{sem});}
643+
]]])
642644
\begin{itemize}
643645
\item close \emph{\texttt{sem}}, free its resources allocated to \emsl{this}
644-
process.
646+
process or \emsl{system}, respectively.
645647
\end{itemize}
646648
\end{slide}
647649

648650
\begin{itemize}
649651
\item The POSIX semaphore APIs are part of the \emph{POSIX Realtime Extension}
650652
and are optional. For example, macOS supports only named POSIX semaphores.
651-
\item \emph{value} is the initial semaphore value
653+
\item \emph{mode} is same as for \funnm{open}(). Use ``\texttt{/somename}''
654+
for the \emph{name}. \item \emph{value} is the initial semaphore value.
652655
\item Both the \emph{mode} and \emph{value} parameters are optional. This means
653656
that \emph{mode} has to be specified in order to set the initial value.
654657
\item Named semaphore might appear on a file system. Usually in the form of

0 commit comments

Comments
 (0)