MAN page from Old RedHat 5.X perl-5.004-4.i386.rpm
Fcntl
Section: Perl Programmers Reference Guide (3)
Updated: perl 5.004, patch 04
Index NAME
Fcntl - load the C Fcntl.h defines
SYNOPSIS
use Fcntl; use Fcntl qw(:DEFAULT :flock);
DESCRIPTION
This module is just a translation of the C
fnctl.h file.Unlike the old mechanism of requiring a translated
fnctl.phfile, this uses the
h2xs program (see the Perl source distribution)and your native C compiler. This means that it has a far more likely chance of getting the numbers right.
NOTE
Only
#define symbols get translated; you must still correctlypack up your own arguments to pass as args for locking functions, etc.
EXPORTED SYMBOLS
By default your system's F_* and O_* constants (eg, F_DUPFD andO_CREAT) and the FD_CLOEXEC constant are exported into your namespace.
You can request that the flock() constants (LOCK_SH, LOCK_EX, LOCK_NBand LOCK_UN) be provided by using the tag :flock. See the Exporter manpage.
You can request that the old constants (FAPPEND, FASYNC, FCREAT,FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC) be provided forcompatibility reasons by using the tag :Fcompat. For newapplications the newer versions of these constants are suggested(O_APPEND, O_ASYNC, O_CREAT, O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK,O_SYNC, O_TRUNC).
Please refer to your native fcntl() and open() documentation to seewhat constants are implemented in your system.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- NOTE
- EXPORTED SYMBOLS
This document was created byman2html,using the manual pages.