File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 916916\sltitle {\texttt {pipe() }}
917917\texttt {int \funnm {pipe}(int \emph {fildes }[2]); }
918918\begin {itemize }
919- \item creates an unnamed pipe and allocates a pair of file descriptors
919+ \item creates an \emph { unnamed pipe } and allocates a pair of file descriptors
920920 \begin {itemize }
921921 \item \texttt {fildes[0] } \dots {} for reading from a pipe
922922 \item \texttt {fildes[1] } \dots {} for writing to a pipe
928928 \end {itemize }
929929\item consumer gets \texttt {EOF } (i.e. \texttt {read() } returns
930930\texttt {0 }) only if all copies of \texttt {fildes[1] } are closed.
931- \item named pipe (i.e. FIFO, see \funnm {mkfifo}) works the same way. The
932- difference is any process can use it.
931+ \item \emph { named pipe } (i.e. FIFO, see \funnm {mkfifo}) works the same way.
932+ The difference is that any process (modulo permissions) can use it.
933933\end {itemize }
934934\end {slide }
935935
936936\label {PIPE }
937937
938938\begin {itemize }
939- \item An unnamed pipe is created by one process and can be passed to its
939+ \item \emph {pipe } is an object with 2 endpoints; serves for passing data from
940+ one to the other.
941+ \item An \emph {unnamed pipe } is created by one process and can be passed to its
940942children only via file descriptors inherited through \funnm {fork}. That
941943limitation can be worked around via passing an open file descriptor via a
942944u{}nix-domain socket. However, such a workaround is out of scope for this
You can’t perform that action at this time.
0 commit comments