*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> perl5/Fcntl (3)              
Title
Content
Arch
Section
 

Contents


Fcntl(3)							      Fcntl(3)


NAME    [Toc]    [Back]

     Fcntl - load the C	Fcntl.h	defines

SYNOPSIS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     Only #define symbols get translated; you must still correctly pack	up
     your own arguments	to pass	as args	for locking functions, etc.

EXPORTED SYMBOLS    [Toc]    [Back]

     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	the Exporter manpage.

     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).

     Please refer to your native fcntl() and open() documentation to see what
     constants are implemented in your system.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
Socket IRIX load the C socket.h defines and structure manipulators
pxffcntl IRIX Provides a subset of fcntl(2) functionality, except the third argument is always an integer
defpattern IRIX defines patterns
defpup IRIX defines a menu
deflinestyle IRIX defines a linestyle
semid_ds Tru64 Defines a semaphore set
iflTile2D IRIX defines a simple 2-D rectangle
netgroup OpenBSD defines network groups
msqid_ds Tru64 Defines a message queue
defrasterfont IRIX defines a raster font
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service