UNIX
UNIX
File Descriptors
• File descriptors are normally small non-negative integers that the kernel
uses to identify the files accessed by a process. Whenever it opens an
existing file or creates a new file, the kernel returns a file descriptor that we
use when we want to read or write the file.