Please fill in the blanks. Each blank is worth 5 points. There are several reasonable answers for some of the blanks; choose one. Blanks with the same number have the same answer.
exec, all ________3_________ is replaced, and the only things that are preserved are the open ________4________ and the ________5________ variables for the process. In particular, it is impossible to institute a signal ________6_________ before an
execand have it apply to the process after the
int p;. Once the pipe is initialized, one writes to p[________8________] and reads from p[________9________]. To write to a pipe as if it were a terminal or file, one uses the library function ________10_________ to make
fprintfwork on the pipe. The differences between
writeacts on a file ________11________ while
fprintfacts on a file ________12________. While
writealways happens ________13________,
fprintfis ________14________ and must be ________15________ to ensure that everything is written.
execare different calls is that one often wants to make changes in process settings ________16_________ executing the forked process.
typedefs allows one to define shorthands for complex types. For example, after writing
typedef int foo;the typedef declaration ________17________ declares an array
barwith 10 elements. A typedef cannot be ________18_________ in the same file.