next up previous contents index
Next: Fcntl Up: Functions and procedures Previous: FStat

Fcntl

   

Declaration:

Function Fcntl (Fd : text, Cmd : Integer) : Integer;

Description:

Read a file's attributes. Fd is an assigned file. Cmd speciefies what to do, and is one of the following:

F_GetFd
Read the close_on_exec flag. If the low-order bit is 0, then the file will remain open across execve calls.
F_GetFl
Read the descriptor's flags.
F_GetOwn
Get the Process ID of the owner of a socket.

Errors:

LinuxError is used to report errors.

sys_ebadf
Fd has a bad file descriptor.

See also:

Fcntl, Fcntl (2)



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998