fork() and File Descriptors

After a fork(), what happens to the parent's open file descriptors in the child process?

A

Only stdin, stdout, and stderr are inherited; all other file descriptors are closed

B

They are closed; the child starts with no open files

C

They are duplicated; parent and child share the same underlying open file descriptions, including the file offset

D

They are copied; parent and child each get independent file descriptions with separate offsets