Skip to content

Commit 54217eb

Browse files
author
Vladimir Kotal
committed
add some explanation
1 parent 0670693 commit 54217eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

file-api.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@
190190
so you need the other two calls for non-regular files.
191191
\item The test of a file's existence using the flag \texttt{O\_EXCL} and its
192192
subsequent creation if it did not exist, is an atomic operation. You can use
193-
that for lock files but only with the \texttt{open} call, not \texttt{creat}.
193+
that for lock files but only with the \texttt{open} call, not \texttt{creat},
194+
because \texttt{creat} lacks the flags specification.
194195
\item You need extra privileges to create device special files (e.g. to be a
195196
root).
196197
\end{itemize}

0 commit comments

Comments
 (0)