File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111More descriptors can share the same file opening (read/write mode, position).
1212\item standard file descriptors
1313 \begin {itemize }
14- \item 0 \dots {} standard input (read only)
15- \item 1 \dots {} standard output (write only)
16- \item 2 \dots {} unbuffered error output (write only)
14+ \item 0 \dots {} standard input (read only)
15+ \item 1 \dots {} standard output (write only)
16+ \item 2 \dots {} unbuffered error output (write only)
1717 \end {itemize }
1818\item for reading and writing a file: \funnm {read}(), \funnm {write}()
1919\item position change: \funnm {lseek}(), close: \funnm {close}(),
3131\item A process inherits file descriptors from its parent so it does not have to
3232open already open files. Usually at least file descriptors 0, 1, and 2 are
3333provided.
34- \item Functions from a header file \texttt {stdio.h } (e.g. \funnm {fopen}(),
34+ \item Functions from the \texttt {stdio.h } header file (e.g. \funnm {fopen}(),
3535\funnm {fprintf}(), and \funnm {fscanf}()), and their file handle \texttt {FILE }
3636are defined in the standard \texttt {libc } library and use standard system calls
3737like \funnm {open}(), \funnm {write}(), and \funnm {read}(). From those functions,
You can’t perform that action at this time.
0 commit comments