use Fcntl; $nonblock_flag = O_NDELAY(); $create_flag = O_CREAT(); $read_write_flag = O_RDWR();
This module is just a translation of the C fcntl.h file. Unlike the old mechanism which required a translated fcntl.ph file, fcntl uses the h2xs program (see the Perl source distribution) and your native C compiler. This means that it has a much better chance of getting the numbers right.
Note that only
#define symbols get translated; you must still correctly
pack up your own arguments to pass as arguments for locking functions and
The following routines are exported by default, and each routine returns the value
#define that is the same as the routine name: