Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 38
hp e3000
programming
and posix
file management - fcntl()
int fcntl(int *fildes, int cmd, ...);
Duplicate an existing file descriptor
Get & set file descriptor flags
Get & set file status flags
Record locking
sfcntl() must be used for socket descriptors