Skip to content

Commit 0cae897

Browse files
committed
fix clarification
1 parent b813aaa commit 0cae897

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

file-api.tex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -730,11 +730,10 @@
730730
\item \texttt{F\_GETLK}, \texttt{F\_SETLK}, \texttt{F\_SETLKW} \dots{}
731731
for file locking
732732
\end{itemize}
733-
\item Note that there are two kinds of flags. Flags associated with the file
734-
descriptor, having \texttt{FD} in the macro names \texttt{FD\_CLOEXEC},
735-
and flags associated with the slot in the system file table of opened files,
736-
having \texttt{FL} in the \texttt{fcntl} command macros
737-
(i.e. \texttt{F\_GETFL}). See also the picture on page \pageref{OPENFILETABLES}.
733+
\item Note the difference between \texttt{fcntl} commands ending with
734+
\texttt{FD} and \texttt{FL}. While the former deal with a file descriptor, the
735+
latter deal with a file opening, i.e. particular slot in the system file table
736+
of opened files. See also the picture on page \pageref{OPENFILETABLES}.
738737
\item Devices may support reading and writing using \texttt{read} and
739738
\texttt{write}, and mapping files to memory (\texttt{mmap}, see page
740739
\pageref{MMAP}), all other operations on devices (e.g. setting parameters,

0 commit comments

Comments
 (0)