CS 3733 Operating Systems, Fall 2003 Assignment 3 Comments
Assignment 3 was worth 30 points.
Please remember that you are not allowed to work with others on these
assignments. What you turn in must be representative of your work.
- You must run lint separately on the two programs. There can only be one
main function in all of the files you lint together.
- You should never have any "implicitly declared to return int" or
"value type used inconsistently" in your lint warnings.
- You need to understand the difference between a line and a string.
- What is wrong with the following:
struct stat *buf;
fstat(fd, buf);
- Always check for errors when you malloc, even if the malloc is done by
strdup.
- Make backup copies of your source files. You never know when you are going
to erase something by mistake.
- Don't call atoi in a loop, as in while (count < atoi(num)
- The system include files usually come before the include files from
your directory.
- pipereceiver should not try to read bytes passed the length given.
pipereceiver cannot use copyfile but pipesender
can.
- Use fstat or stat but not lstat