Main index | Section 3 | Options |
#include <sys/fcntl.h>
#include <libutil.h>
If flags includes O_NONBLOCK and the file is already locked, flopen() will fail and set errno to EWOULDBLOCK.
As with open(), the additional mode argument is required if flags includes O_CREAT.
The flopenat() function is equivalent to the flopen() function except in the case where the path specifies a relative path. In this case the file to be opened is determined relative to the directory associated with the file descriptor fd instead of the current working directory. If flopenat() is passed the special value AT_FDCWD in the fd parameter, the current working directory is used and the behavior is identical to a call to flopen().
FLOPEN (3) | July 28, 2017 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | One of the advantages of using UNIX to teach an operating systems course is the sources and documentation will easily fit into a student's briefcase. | ” |
— John Lions |