Manual Pages for Linux CentOS command on man Fcntl
MyWebUniversity

Manual Pages for Linux CentOS command on man Fcntl

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

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 fcntl.h file. Unlike the old mechanism of requiring a translated fcntl.ph file, 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 correctly pack up your own arguments to pass as args for locking functions, etc. EXPORTED SYMBOLS By default your system's F* and O* constants (eg, FDUPFD and OCREAT) and the FDCLOEXEC constant are exported into your namespace. You can request that the flock() constants (LOCKSH, LOCKEX, LOCKNB and LOCKUN) be provided by using the tag ":flock". See Exporter. You can request that the old constants (FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC) be provided for compatibility reasons by using the tag ":Fcompat". For new applications the newer versions of these constants are suggested (OAPPEND, OASYNC, OCREAT, ODEFER, OEXCL, ONDELAY, ONONBLOCK, OSYNC, OTRUNC). For ease of use also the SEEK* constants (for seek() and sysseek(), e.g. SEEKEND) and the SI* constants (for chmod() and stat()) 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), fseek(3), lseek(2) (equal to Perl's seek() and sysseek(), respectively), and chmod(2) documentation to see what constants are implemented in your system. See perlopentut to learn about the uses of the O* constants with sysopen(). See "seek" in perlfunc and "sysseek" in perlfunc about the SEEK* constants. See "stat" in perlfunc about the SI* constants.

perl v5.16.3 2013-03-04 Fcntl(3pm)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™