File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 593593to the process address space. The loader then maps all dynamic libraries there
594594as well, then finally calls the program \texttt {main() }.
595595\item A useful exercise is to write a simple program calling \texttt {open() },
596- for example. When done, run the program via \texttt {truss(1) } or
597- \texttt {strace(1) } like this: \texttt {truss ./a.out }. You will see what is being
598- done before \texttt {open } is called in the end.
596+ for example. Then run the program via \texttt {truss(1) } or
597+ \texttt {strace(1) } like this: \texttt {truss ./a.out }. You will see a number of
598+ system calls before \texttt {open } is actually called. These system calls
599+ can be attributed to the dynamic linker.
599600\item The \texttt {FD\_ CLOEXEC } file descriptor flag is set using the
600601\texttt {fcntl } system call. It can be also set via implementation specific
601602(i.e. non-standard) way, e.g. by passing the \texttt {O\_ CLOEXEC } flag to
You can’t perform that action at this time.
0 commit comments