Performs operations on an open file.
#include <fcntl.h> int fcntl ( int fildes, int cmd, ...);
(IN) Specifies a file descriptor to be operated on by cmd.
(IN) Specifies which command to execute on the specified file descriptor. See Command Modes.
(IN) Specifies an argument specific to the cmd parameter. See Command Modes.
If successful, returns a positive integer value. Otherwise, returns -1 and sets errno to one of the following.
The fcntl function has commands for duplicating a file descriptor, setting and getting file descriptor flags, and getting and setting advisory locks. Advisory locks can only be used by the threads within the same virtual machine and cannot be shared with another virtual machine. See Command Modes for more information.