The due date has been changed from April 18 to April 25, 2022.
Some changes to problem 3 are intended to clarify which output is to be used.
Please form a team of 2 or 3. Include the names of all team members in the header comment. One person needs to submit the program; the other team members must submit a short note identifying who turned in the program.
When this command is issued, the timeout program is to execute “command ....” After s seconds have passed, timeout is to send a SIGTERM signal to the command timeout is running.
You must use fork(2) and execve(2) to run the subcommand.
Don’t forget to check for possible errors, such as a negative number of seconds or no command!
The program should loop until sent signal 9 (SIGKILL). This signal cannot be caught.
If the files are linked, print
Print this if both files are hard links to the same file, or if both are symbolic links to the same file.
If file1 is a symbolic link to file2, print
Print this only if file2 is a hard link to a file, and file1 is a symbolic link to file1 (or vice versa).
If the files are not linked, print
If a system error occurs (for example, a file does not exist), use perror(3) to print the appropriate error message.
ECS 150, Operating Systems
Version of April 19, 2022 at 7:24PM
|You can also obtain a PDF version of this.|