Fcntl

Description

Fcntl is a Perl module to load the C Fcntl.h defines. SYNOPSIS 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 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 systems 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 compatibility 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 Perls seek() and sysse.

Lock - C Fcntl H - Perl Module - Fcntl - Constants - Perl - Module - Libraries - Programming

Published By:Fcntl team

License Type:Freeware

Date Added:22 October, 2010

Version:5.8.8

Price:Free

Downloads:20

Size:12.2 MB

Platform: Linux

What people say
- required fields
     
Related Downloads

Java::JCR::Lock is a Perl module that can load JCR lock extension wrappers. SYNOPSIS use Java::JCR::Lock This loads the Perl classes mapped to the Java package named javax.jcr.lock.

DateAug 31, 2010

AuthorAndrew Sterling Hanenkamp

Size48.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

SimpleCDB - A Perl-only Constant Database.

DateSep 12, 2010

AuthorBenjamin Low

Size15.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

VaryOnApplet is a pushbutton process-control applet for Gnome.

DateSep 7, 2010

AuthorChuck Rhode

Size68.6 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

File::LckPwdF is a Perl module to lock and unlock the passwd and shadow files with lckpwdf and ulckpwdf. SYNOPSIS use File::LckPwdF; (lock_passwd(15)) || (die "Cant lock password file:n$! stopped"); # ...

DateSep 14, 2010

AuthorE. Allen Smith

Size5.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

vlock project can lock one or more sessions on the Linux console. This is especially useful for Linux machines which have multiple users with access to the console.

DateOct 31, 2010

AuthorFrank Benkstein

Size18.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities