Seth Woolley's Man Viewer

Fcntl(3) - Fcntl - load the C Fcntl.h defines - man 3 Fcntl

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

Fcntl(3)               Perl Programmers Reference Guide               Fcntl(3)

       Fcntl - load(7,n) the C Fcntl.h defines

           use Fcntl;
           use Fcntl qw(:DEFAULT :flock);

       This module is just a translation of the C fcntl.h file.  Unlike the
       old mechanism of requiring a translated file(1,n), this uses the
       h2xs program (see the Perl source distribution) and your native C com-
       piler.  This means that it has a far more likely chance of getting the
       numbers right.

       Only "#define" symbols get translated; you must still correctly pack(3,n,n pack-old) up
       your own arguments to pass as args for locking functions, etc.

       By default your system's F_* and O_* constants (eg, F_DUPFD and
       O_CREAT) and the FD_CLOEXEC constant are exported into your namespace.

       You can request that the flock(1,2)() constants (LOCK_SH, LOCK_EX, LOCK_NB
       and LOCK_UN) be provided by using the tag ":flock".  See Exporter.

       You can request that the old constants (FAPPEND, FASYNC, FCREAT, FDE-
       FER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC) be provided for compati-
       bility reasons by using the tag ":Fcompat".  For new applications the
       newer versions of these constants are suggested (O_APPEND, O_ASYNC,

       For ease of use also the SEEK_* constants (for seek() and sysseek(),
       e.g. SEEK_END) and the S_I* constants (for chmod(1,2)() and stat(1,2)()) are
       available for import.  They can be imported either separately or using
       the tags ":seek" and ":mode".

       Please refer to your native fcntl(2), open(2,3,n)(2), fseek(3), lseek(2)
       (equal to Perl's seek() and sysseek(), respectively), and chmod(1,2)(2) doc-
       umentation to see what constants are implemented in(1,8) your system.

       See perlopentut to learn about the uses of the O_* constants with

       See "seek" in(1,8) perlfunc and "sysseek" in(1,8) perlfunc about the SEEK_* con-

       See "stat(1,2)" in(1,8) perlfunc about the S_I* constants.

perl v5.8.5                       2001-09-21                          Fcntl(3)

References for this manual (incoming links)