Fcntl
Native Rust implementation built into the interpreter. Runtime: PP. See original documentation for the full Perl reference.
Provides file control constants and file-type test functions matching
the POSIX <fcntl.h> and <sys/stat.h> headers. All values are
sourced from the libc crate so they match the build platform.
Constants are registered as constant CVs (inlined at compile time).
Functions that take arguments (S_ISREG, S_IFMT, etc.) go through
stub dispatch.
Functions
FD_CLOEXEC
F_DUPFD
F_GETFD
F_GETFL
F_SETFD
F_SETFL
LOCK_EX
LOCK_NB
LOCK_SH
LOCK_UN
O_APPEND
O_CREAT
O_EXCL
O_NOCTTY
O_NOFOLLOW
O_NONBLOCK
O_RDONLY
O_RDWR
O_TRUNC
O_WRONLY
SEEK_CUR
SEEK_END
SEEK_SET
S_IFBLK
S_IFCHR
S_IFDIR
S_IFIFO
S_IFLNK
S_IFMT
S_IFREG
S_IFSOCK
S_IMODE
S_IRGRP
S_IROTH
S_IRUSR
S_IRWXG
S_IRWXO
S_IRWXU
S_ISBLK
S_ISCHR
S_ISDIR
S_ISFIFO
S_ISGID
S_ISLNK
S_ISREG
S_ISSOCK
S_ISUID
S_ISVTX
S_IWGRP
S_IWOTH
S_IWUSR
S_IXGRP
S_IXOTH
S_IXUSR
fcntl_autoload
Resolves unknown Fcntl constant names at runtime via the AUTOLOAD mechanism.
use Fcntl;
my $val = Fcntl::SOME_CONSTANT();
See also: get_constant_value, dispatch