Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fcntl(3pm) [redhat man page]

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 fnctl.h file. Unlike the old mechanism of requiring a translated fnctl.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, F_DUPFD and O_CREAT) and the FD_CLOEXEC constant are exported into your namespace. You can request that the flock() 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, FDEFER, 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, O_CREAT, O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK, O_SYNC, O_TRUNC). For ease of use also the SEEK_* constants (for seek() and sysseek(), e.g. SEEK_END) and the S_I* 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) docu- mentation 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 S_I* constants. perl v5.8.0 2002-06-01 Fcntl(3pm)

Check Out this Related Man Page

PMEXP(1p)						User Contributed Perl Documentation						 PMEXP(1p)

NAME
pmexp - show a module's exports DESCRIPTION
Given a module name, this program identifies which symbols are automatically exported (in that package's @EXPORT), those which are optionally exported (in that package's @EXPORT_OK), and also lists out the import groups (in that package's %EXPORT_TAGS hash). EXAMPLES
$ pmexp Text::ParseWords Text::ParseWords automatically exports shellwords, quotewords, nested_quotewords, and parse_line Text::ParseWords optionally exports old_shellwords $ pmexp Text::Wrap Text::Wrap automatically exports wrap and fill Text::Wrap optionally exports $columns, $break, and $huge $ pmexp Fcntl Fcntl automatically exports FD_CLOEXEC, F_DUPFD, F_EXLCK, F_GETFD, F_GETFL, F_GETLK, F_GETLK64, F_GETOWN, F_POSIX, F_RDLCK, F_SETFD, F_SETFL, F_SETLK, F_SETLK64, F_SETLKW, F_SETLKW64, F_SETOWN, F_SHLCK, F_UNLCK, F_WRLCK, O_ACCMODE, O_APPEND, O_ASYNC, O_BINARY, O_CREAT, O_DEFER, O_DSYNC, O_EXCL, O_EXLOCK, O_LARGEFILE, O_NDELAY, O_NOCTTY, O_NONBLOCK, O_RDONLY, O_RDWR, O_RSYNC, O_SHLOCK, O_SYNC, O_TEXT, O_TRUNC, and O_WRONLY Fcntl optionally exports FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC, LOCK_EX, LOCK_NB, LOCK_SH, and LOCK_UN Fcntl export tag `Fcompat' includes FAPPEND, FASYNC, FCREAT, FDEFER, FEXCL, FNDELAY, FNONBLOCK, FSYNC, and FTRUNC Fcntl export tag `flock' includes LOCK_SH, LOCK_EX, LOCK_NB, and LOCK_UN BUGS
The output formatting should be nicer, perhaps using "format" and "write". SEE ALSO
pmeth(1), perlmod(1), Exporter(3). AUTHORS and COPYRIGHTS Copyright (C) 1999 Tom Christiansen. Copyright (C) 2006-2008 Mark Leighton Fisher. This is free software; you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl "Artistic License". (This is the Perl 5 licensing scheme.) Please note this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License". perl v5.10.1 2010-02-22 PMEXP(1p)
Man Page