Next: Fcntl
Up: Functions and procedures
Previous: FStat
Function Fcntl (Fd : text, Cmd : Integer) : Integer;
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.
LinuxError is used to report errors.
- sys_ebadf
- Fd has a bad file descriptor.
Fcntl, Fcntl (2)
Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998