, whichever is the maximum supported
by your system.
Note that the library functions use signed integers, so C
is
C<(-1, 0)>. If you don't want that, use Perls C
, C> and C<%>.
I Deprecated I and I now covered by
I.
=item C
dlclose(dlhandle);
=item C
dlerror();
=item C
dlhandle = dlopen(filename, flags);
=item C
addr = dlsym(dlhandle, name);
=item C
r = drand48();
=item C
endutxent();
=item C
newfd = dup3(oldfd, newfd, flags);
C is similar to L|POSIX/dup2> except for the
following differences.
I and I may be numeric file descriptors or Perl file handles. If
I equals I, then C fails with the error C.
The I parameter forces the file descriptor flags of I to be the
bitwise OR of zero or more of C, C. Your system might
support a different set of flags.
C returns the new numeric file descriptor (which may be 0).
On error, undef is returned.
C was standardized with POSIX.1-2024.
I
=item C
(r, X0, X1, X2) = erand48(X0, X1, X2);
=item C
y = erf(x);
=item C
y = erfc(x);
=item C
rv = execveat(dirfd, path, args, env=undef, flags=0);
The C system call is a nonstandard extension present in Linux.
See also L|"fexecve">.
It executes the program referred to by I, which is interpreted relative
to I as with the other I<*at> functions, passing I as its
command-line arguments and optionally I as its environment.
I must be an array reference and, by convention, I[0]> should
be the name of the program being executed.
I must be a hash reference. If omitted or undef, the environment of the
calling proces is used (which you can manipulate via C<%ENV>).
I is a bit mask that can include zero or more of the flags
C, C.
I is executed "as is", i.e. no C search or interpretation of shell
metacharacters takes place as opposed to Perl's built-in
L|perlfunc/exec>.
Returns undef on error, otherwise it doesn't return.
Usage example:
sysopen my $dh, '/usr', O_DIRECTORY|O_PATH;
execveat($dh, 'bin/date', [qw(date +%T)], {TZ => 'UTC'}, AT_SYMLINK_NOFOLLOW);
I
=item C
y = exp(x);
=item C
y = exp2(x);
This function may not be available in libquadmath.
=item C
y = expm1(x);
=item C
absval = fabs(x);
I
=item C
rv = faccessat(dirfd, path, amode, flags=0);
I is the bitwise OR of zero or more of C,
C.
=item C
rv = fchmodat(dirfd, path, mode, flags=0);
I can be 0 or C. Your system might support a
different set of flags.
=item C
rv = fchownat(dirfd, path, uid, gid, flags=0);
I can be 0 or C. Your system might support a
different set of flags.
=item C
rv = fdatasync(fd);
=item C
rv = fdopen(fd, mode);
Returns a file handle associated with the numeric file descriptor I or
undef on error. I is one of the values C<"r">, C<"w">, C<"a"> with an
optional C<"+"> and/or C<"b">.
The file descriptor is not dup'ed and will be closed when the handle is closed.
It's similar to C with the following improvements:
=over
=item *
It I calls C.
=item *
It expects POSIX mode strings (e.g. C<"r">, not C<"<">).
=item *
It fails if I is not compatible with the flags of I.
=back
Usage example:
my $fh = do {
opendir my $dh, '.';
fdopen(POSIX::dup(fileno $dh), 'r');
};
chmod 0700, $fh; # this would fail with $dh from opendir
I
I I can no longer be a handle (that was a wrong
turn).
=item C
rv = fdopendir(fd);
Returns a directory handle associated with the numeric file descriptor I
or undef on error.
The file descriptor is not dup'ed and will be closed when the handle is closed.
Usage example:
my $dh = do {
sysopen my $fh, '/tmp', O_RDONLY|O_DIRECTORY|O_NOFOLLOW;
fdopendir(POSIX::dup(fileno $fh));
};
my @dents = readdir $dh; # this would fail with $fh from sysopen
I
I I can no longer be a handle (that was a wrong
turn).
=item C
d = fdim(double x, double y);
=item C
rv = feclearexcept(excepts);
Returns C<0 but true> on success, undef on error.
I
=item C
rounding_mode = fegetround();
=item C
rv = feraiseexcept(excepts);
Returns C<0 but true> on success, undef on error.
I
=item C
rv = fesetround(round);
Returns C<0 but true> on success, undef on error.
=item C
excepts_currently_set = fetestexcept(excepts);
I
=item C
rv = fexecve(fd, args, env=undef);
Executes the program referred to by the file descriptor I, passing I
as its command-line arguments and optionally I as its environment.
I must be an array reference and, by convention, I[0]> should
be the name of the program being executed.
I must be a hash reference. If omitted or undef, the environment of the
calling proces is used (which you can manipulate via C<%ENV>).
See the manpage for issues regarding the close-on-exec flag and the /proc
filesystem.
Returns undef on error, otherwise it doesn't return.
Usage example:
sysopen my $fh, '/usr/bin/date', O_PATH;
fexecve($fh, [qw(date +%T)], {TZ => 'UTC'});
See also L|"execveat">.
I
=item C
pos = ffs(i);
Calls C, C, or C, whichever is the maximum available
on your system.
=item C
y = floor(x);
=item C
r = fma(x, y, z);
=item C
m = fmax(x, y);
=item C
m = fmin(x, y);
=item C
m = fmod(x, y);
=item C
rv = fnmatch(pattern, string, flags);
Returns 0 if I matches I, C if there is no
match, undef if there is an error.
I is the bitwise OR of zero or more of C,
C, C, C, C,
C