UP | HOME

HW6
COP-3402

  1. 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.
  2. What is the full path of this file if the current working directory of the process is /tmp/?
  3. What can you pass to the system call to tell the kernel to create the file if it doesn't exist already?
  4. What might it mean if the error code is ENOENT?

Author: Paul Gazzillo

Created: 2024-12-31 Tue 11:17

Validate