Fcntl

A translation of the C fcntl.h program that uses h2xs (which builds a Perl extension from a C header file) and the C compiler to translate #define symbols and make them available as functions. Exports the following routines by default; each routine returns the value of the #define that is the same as the routine name:

FD_CLOEXEC

F_DUPFD

F_GETFD

F_GETFL

F_GETLK

F_RDLCK

F_SETFD

F_SETFL

F_SETLK

F_SETLKW

F_UNLCK

F_WRLCK

O_APPEND

O_CREAT

O_EXCL

O_NDELAY

O_NOCTTY

O_NONBLOCK

O_RDONLY

O_RDWR

O_TRUNC

O_WRONLY

   

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.