fcntl.c
This routine currently only interacts with the file control block. If the structure of the file control block and the associated meanings do not change, the partial implementation of fcntl() should remain unaltered for other filesystem implementations.
The only commands that have been implemented are the F_GETFD and F_SETFD.
The commands manipulate the LIBIO_FLAGS_CLOSE_ON_EXEC bit in the
flags
element of the file control block associated with the file
descriptor index.
The current implementation of the function performs the sequence of operations below:
Copyright © 1988-2004 OAR Corporation