Skip to content

Commit 347f03f

Browse files
committed
adjust wording
and remove blanks
1 parent ae8b8ad commit 347f03f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

file-api.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -614,16 +614,16 @@
614614
\end{slide}
615615

616616
\begin{itemize}
617-
\item Note the flag \texttt{O\_APPEND} used to implement a redirection
618-
\texttt{>>}.
617+
\item Note the flag \texttt{O\_APPEND} used to implement the \texttt{>>}
618+
redirection.
619619
\item \hlabel{REDIRECT} Another example of \texttt{dup} use will be provided when
620620
we start working with pipes. The first redirection example from the slide
621621
(without \texttt{stderr}) is in \example{read/redirect.c}. In that example, the
622622
\texttt{execl} call replaces the current process image with the
623623
program passed in the first argument. We got ahead of ourselves here though, we
624624
will learn about the \texttt{exec} calls on page \pageref{EXEC}.
625625
\item To fully understand how redirection works it is good to draw the file
626-
descriptor table for each step and where the slots point to. In
626+
descriptor table for each step and where the slots point to. In
627627
the \nth{2} example in the slide above, we have the initial state, after
628628
\texttt{close(1)} and \texttt{open("out", ...)}, and the final state, as
629629
follows:
@@ -634,7 +634,7 @@
634634
+-------+ +-------+ +-------+
635635
| 1 +-> stdout ==> | 1 +-> "out" ==> | 1 +-> "out"
636636
+-------+ +-------+ +-------+ /
637-
| 2 +-> stderr | 2 +-> stderr | 2 +---'
637+
| 2 +-> stderr | 2 +-> stderr | 2 +---'
638638
+-------+ +-------+ +-------+
639639
\end{verbatim}
640640

0 commit comments

Comments
 (0)