HW6
COP-3402
- Write a snippet of C code that, using a system call as described in class and the in the readings, opens a file named "hello.c" for reading.
- What is the full path of this file if the current working directory of the process is
/tmp/
? - What can you pass to the system call to tell the kernel to create the file if it doesn't exist already?
- What might it mean if the error code is ENOENT?