File descriptor - Wikipedia
https://en.wikipedia.org/wiki/File_descriptorIn the traditional implementation of Unix, file descriptors index into a per-process file descriptor table maintained by the kernel, that in turn indexes into a system-wide table of files opened by all processes, called the file table.This table records the mode with which the file (or other resource) has been opened: for reading, writing, appending, and possibly other modes.