1a. What would cause end of file to be reached on the fd?
1b. How would the child process detect end of file?
1c. Under what condition would a call to read() return a value greater than zero, but smaller than the number of bytes that the process requested?
1d. Under what condition would a call to read() return a value of negative one?
1e. Under what condition would a call to read() return a value of zero?
A process has two fds open for reading and wants to read from whichever one is ready for reading first. How can this be done? Give as many details as you can.
Here are some RCS questions:
3a. What does the "-l
" option do on
a co command?
3b. The last revision of myprog.cc
was number
2.7 and I just made some changes to it that are part of revision
level 3. How do I check the file in?
3c. The last revision of x_file.cc
was number
7.2. There are no changes to it for revision level 8, but it is
used in revision level 8. What should I do? (Note:
"Ask Dr. Vickery" is not an acceptable answer!)
3d. What does the line, "static char
*rcs_version = $Id$;
" have to do with the
ident command?
3e. I made a mistake typing the log message when I checked in a file. How can I fix it?
Define the following make terms: Implicit rule, Explicit rule, target, dependency list, command list. After defining them, use them to describe what make does.
Describe three ways to provide a value for the make
macro, CXXFLAGS
. ("Describe" means to say more
than just to name the ways!) Then tell how make uses the
CXXFLAGS
macro. Then tell what will happen if there is
no value assigned to the CXXFLAGS
macro when it
is used by make.
A. Describe as many ways as you can that datagram sockets are different from stream sockets.
B. Describe as many ways as you can that datagram sockets are like stream sockets.