Debian Codegraph @

lib/POSIX/2008.pod

raw
1 =pod
2
3 =head1 NAME
4
5 POSIX::2008 - Perl interface to POSIX.1-2008 and beyond
6
7 =head1 SYNOPSIS
8
9 use POSIX::2008 qw(:fcntl openat pwrite);
10
11 sysopen my $dh, '/tmp', O_RDONLY|O_DIRECTORY|O_NOFOLLOW
12 or die 'Dafuq?';
13 my $fh = openat($dh, 'foobar', O_RDWR|O_CREAT);
14 pwrite($fh, 'fuckyounsa', 10, 0);
15
16 =head1 DESCRIPTION
17
18 POSIX::2008 provides many of the interfaces specified by
19 L<POSIX.1-2008|https://pubs.opengroup.org/onlinepubs/9699919799/> I<and later>
20 that the core L<POSIX> module withholds, implements in Perl or fucked up.
21
22 It also ships a number of nonstandard interfaces and constants present in
23 Linux, BSD and Solaris that are extensions of POSIX.
24
25 This module is provided "as is" unless someone volunteers to maintain it.
26 Use at your own risk.
27
28 =head1 FILE DESCRIPTORS AND HANDLES
29
30 Since version 0.05, all I/O functions that take numeric file descriptors also
31 accept Perl file or directory handles, except for L<C<fdopen()>|"fdopen"> and
32 L<C<fdopendir()>|"fdopendir">.
33
34 Since version 0.22, returned handles support L<IO::Handle> methods.
35
36 =head1 SYSTEM CALL RETURN VALUES
37
38 A system call return value of -1 meaning "error" is mapped to undef except for
39 L<C<poll()>|"poll"> and L<C<ppoll()>|"ppoll"> which return -1 to be consistent
40 with L<C<select()>|perlfunc/select>.
41
42 A system call return value of 0 meaning "success" is mapped to "0 but true".
43
44 For system calls where 0 does not just mean "success", 0 is returned
45 unchanged. These are L<C<creat()>|"creat">, L<C<open()>|"open">,
46 L<C<read()>|"read">, L<C<write()>|"write">, L<C<readv()>|"readv">,
47 L<C<writev()>|"writev">, L<C<pread()>|"pread">, L<C<pwrite()>|"pwrite">,
48 L<C<preadv()>|"preadv">, L<C<pwritev()>|"pwritev">, L<C<preadv2()>|"preadv2">,
49 L<C<pwritev2()>|"pwritev2">, L<C<getpriority()>|"getpriority">,
50 L<C<nice()>|"nice">. L<C<openat()>|"openat"> gets a special treatment in this
51 regard, see below.
52
53 =head1 FUNCTIONS
54
55 =over 4
56
57 =item C<a64l>
58
59 l = a64l(s);
60
61 =item C<abort>
62
63 abort();
64
65 =item C<abs>
66
67 ui = abs(i);
68
69 Calls C<llabs()>, C<labs()>, or C<abs()>, whichever is the maximum supported
70 by your system.
71
72 Note that the library functions use signed integers, so C<abs(~0)> is 1.
73 If you don't want that, use C<CORE::abs()>.
74
75 =item C<access>
76
77 rv = access(path, mode);
78
79 I<New in version 0.08.>
80
81 =item C<acos>
82
83 y = acos(x);
84
85 =item C<acosh>
86
87 y = acosh(x);
88
89 =item C<alarm>
90
91 remaining_sec = alarm(sec);
92
93 =item C<asin>
94
95 y = asin(x);
96
97 =item C<asinh>
98
99 y = asinh(x);
100
101 =item C<atan2>
102
103 z = atan2(y, x);
104
105 =item C<atan>
106
107 y = atan(x);
108
109 =item C<atanh>
110
111 y = atanh(x);
112
113 =item C<atof>
114
115 f = atof(s);
116
117 =item C<atoi>
118
119 i = atoi(s);
120
121 Calls C<atoll()>, C<atol()>, or C<atoi()>, whichever is the maximum supported
122 by your system. This is of course silly because you could just use C<int()>.
123
124 I<Changed in version 0.19:> Deprecated I<atol> and I<atoll> now covered by
125 I<atoi>.
126
127 =item C<basename>
128
129 s = basename(path);
130
131 =item C<cabs>
132
133 r = cabs(re, im);
134
135 =item C<cacos>
136
137 (re, im) = cacos(re, im);
138
139 =item C<cacosh>
140
141 (re, im) = cacosh(re, im);
142
143 =item C<carg>
144
145 phi = carg(re, im);
146
147 =item C<casin>
148
149 y = casin(x);
150
151 =item C<casinh>
152
153 (re, im) = casinh(re, im);
154
155 =item C<catan>
156
157 (re, im) = catan(re, im);
158
159 =item C<catanh>
160
161 (re, im) = catanh(re, im);
162
163 =item C<catclose>
164
165 rv = catclose(catd);
166
167 =item C<catgets>
168
169 s = catgets(catd, set_id, msg_id, dflt_string);
170
171 =item C<catopen>
172
173 catd = catopen(name, flag);
174
175 =item C<cbrt>
176
177 y = cbrt(x);
178
179 =item C<ccos>
180
181 (re, im) = ccos(re, im);
182
183 =item C<ccosh>
184
185 (re, im) = ccosh(re, im);
186
187 =item C<ceil>
188
189 y = ceil(x);
190
191 =item C<cexp>
192
193 (re, im) = cexp(re, im);
194
195 I<New in version 0.19.>
196
197 =item C<chdir>
198
199 rv = chdir(dir);
200
201 C<dir> can be a path, a Perl file or directory handle, or a file descriptor.
202
203 I<Changed in version 0.19:> Deprecated I<fchdir> now covered by I<chdir>.
204
205 =item C<chmod>
206
207 rv = chmod(what, mode);
208
209 C<what> can be a path, a Perl file or directory handle (see L</"NOTES">), or a
210 file descriptor.
211
212 I<Changed in version 0.19:> Deprecated I<fchmod> now covered by I<chmod>.
213
214 =item C<chown>
215
216 rv = chown(what, uid, gid);
217
218 C<what> can be a path, a Perl file or directory handle (see L</"NOTES">), or a
219 file descriptor.
220
221 I<Changed in version 0.19:> Deprecated I<fchown> now covered by I<chown>.
222
223 =item C<cimag>
224
225 im = cimag(re, im);
226
227 =item C<clock>
228
229 t = clock()
230
231 I<New in version 0.08.>
232
233 =item C<clock_getcpuclockid>
234
235 clock_id = clock_getcpuclockid(pid);
236
237 I<pid> defaults to 0. Returns undef on error.
238
239 =item C<clock_getres>
240
241 (sec, nsec) = clock_getres(clock_id);
242 floating_sec = clock_getres(clock_id);
243
244 I<clock_id> defaults to C<CLOCK_REALTIME>. Returns empty list or undef on
245 error.
246
247 I<Changed in version 0.25:> Return floating seconds in scalar context.
248
249 =item C<clock_gettime>
250
251 (sec, nsec) = clock_gettime(clock_id);
252 floating_sec = clock_gettime(clock_id);
253
254 clock_id defaults to C<CLOCK_REALTIME>. Returns empty list or undef on error.
255
256 I<Changed in version 0.25:> Return floating seconds in scalar context.
257
258 =item C<clock_nanosleep>
259
260 (rem_sec, rem_nsec) = clock_nanosleep(clock_id, flags, floating_sec);
261 floating_rem_sec = clock_nanosleep(clock_id, flags, floating_sec);
262
263 (rem_sec, rem_nsec) = clock_nanosleep(clock_id, flags, sec, nsec);
264 floating_rem_sec = clock_nanosleep(clock_id, flags, sec, nsec);
265
266 Returns zero(es) on success, the remaining time on EINTR, the empty list or
267 undef otherwise. The remaining time is zero if the flag C<TIMER_ABSTIME> is
268 set.
269
270 I<Changed in version 0.25:> Sleep time can be floating seconds only or seconds
271 and nanoseconds.
272
273 =item C<clock_settime>
274
275 rv = clock_settime(clock_id, sec, nsec);
276 rv = clock_settime(clock_id, floating_sec);
277
278 I<Changed in version 0.25:> Time can be floating seconds only or seconds and
279 nanoseconds.
280
281 =item C<clog>
282
283 (re, im) = clog(re, im);
284
285 =item C<close>
286
287 rv = close(fd);
288
289 =item C<confstr>
290
291 s = confstr(name);
292
293 I<name> is one of the C<_CS_*> integer constants.
294
295 Returns undef on error.
296
297 =item C<conj>
298
299 (re, im) = conj(re, im);
300
301 =item C<copysign>
302
303 xs = copysign(x, y);
304
305 =item C<cos>
306
307 y = cos(x);
308
309 =item C<cosh>
310
311 y = cosh(x);
312
313 =item C<cpow>
314
315 (re, im) = cpow(re_x, im_x, re_y, im_y);
316
317 =item C<cproj>
318
319 (re, im) = cproj(re, im);
320
321 =item C<creal>
322
323 re = creal(re, im);
324
325 =item C<creat>
326
327 rv = creat(path, mode=0666);
328
329 I<New in version 0.22.>
330
331 =item C<csin>
332
333 (re, im) = csin(re, im);
334
335 =item C<csinh>
336
337 (re, im) = csinh(re, im);
338
339 =item C<csqrt>
340
341 (re, im) = csqrt(re, im);
342
343 =item C<ctan>
344
345 (re, im) = ctan(re, im);
346
347 =item C<ctanh>
348
349 (re, im) = ctanh(re, im);
350
351 =item C<dirname>
352
353 name = dirname(path);
354
355 =item C<div>
356
357 (quot, rem) = div(numer, denom);
358
359 Calls C<lldiv()>, C<ldiv()>, or C<div()>, whichever is the maximum supported
360 by your system.
361
362 Note that the library functions use signed integers, so C<div(~0, 1)> is
363 C<(-1, 0)>. If you don't want that, use Perls C<int()>, C</> and C<%>.
364
365 I<Changed in version 0.19:> Deprecated I<ldiv> and I<lldiv> now covered by
366 I<div>.
367
368 =item C<dlclose>
369
370 dlclose(dlhandle);
371
372 =item C<dlerror>
373
374 dlerror();
375
376 =item C<dlopen>
377
378 dlhandle = dlopen(file, mode);
379
380 =item C<dlsym>
381
382 addr = dlsym(dlhandle, name);
383
384 =item C<drand48>
385
386 r = drand48();
387
388 =item C<endutxent>
389
390 endutxent();
391
392 =item C<erand48>
393
394 (r, X0, X1, X2) = erand48(X0, X1, X2);
395
396 =item C<erf>
397
398 y = erf(x);
399
400 =item C<erfc>
401
402 y = erfc(x);
403
404 =item C<execveat>
405
406 rv = execveat(dirfd, path, args, env=undef, flags=0);
407
408 The C<execveat()> system call is a nonstandard extension present in Linux.
409 See also L<C<fexecve()>|"fexecve">.
410
411 It executes the program referred to by I<path>, which is interpreted relative
412 to I<dirfd> as with the other I<*at> functions, passing I<args> as its
413 command-line arguments and optionally I<env> as its environment.
414
415 I<args> must be an array reference and, by convention, I<args-E<gt>[0]> should
416 be the name of the program being executed.
417
418 I<env> must be a hash reference. If omitted or undef, the environment of the
419 calling proces is used (which you can manipulate via C<%ENV>).
420
421 I<flags> is a bit mask that can include zero or more of the flags
422 C<AT_EMPTY_PATH>, C<AT_SYMLINK_NOFOLLOW>.
423
424 I<path> is executed "as is", i.e. no C<PATH> search or interpretation of shell
425 metacharacters takes place as opposed to Perl's built-in
426 L<C<exec>|perlfunc/exec>.
427
428 Returns undef on error, otherwise it doesn't return.
429
430 Usage example:
431
432 sysopen my $dh, '/usr', O_DIRECTORY|O_PATH;
433 execveat($dh, 'bin/date', [qw(date +%T)], {TZ => 'UTC'}, AT_SYMLINK_NOFOLLOW);
434
435 I<New in version 0.22.>
436
437 =item C<exp>
438
439 y = exp(x);
440
441 =item C<exp2>
442
443 y = exp2(x);
444
445 This function may not be available in libquadmath.
446
447 =item C<expm1>
448
449 y = expm1(x);
450
451 =item C<fabs>
452
453 absval = fabs(x);
454
455 I<New in version 0.27.>
456
457 =item C<faccessat>
458
459 rv = faccessat(dirfd, path, amode, flags=0);
460
461 I<flags> is the bitwise OR of zero or more of C<AT_EACCESS>,
462 C<AT_SYMLINK_NOFOLLOW>.
463
464 =item C<fchmodat>
465
466 rv = fchmodat(dirfd, path, mode, flags=0);
467
468 I<flags> can be 0 or C<AT_SYMLINK_NOFOLLOW>. Your system might support a
469 different set of flags.
470
471 =item C<fchownat>
472
473 rv = fchownat(dirfd, path, uid, gid, flags=0);
474
475 I<flags> can be 0 or C<AT_SYMLINK_NOFOLLOW>. Your system might support a
476 different set of flags.
477
478 =item C<fdatasync>
479
480 rv = fdatasync(fd);
481
482 =item C<fdopen>
483
484 rv = fdopen(fd, mode);
485
486 Returns a file handle associated with the numeric file descriptor I<fd> or
487 undef on error. I<mode> is one of the values C<"r">, C<"w">, C<"a"> with an
488 optional C<"+"> and/or C<"b">.
489
490 The file descriptor is not dup'ed and will be closed when the handle is closed.
491
492 It's similar to C<IO::Handle::new_from_fd()> with the following improvements:
493
494 =over
495
496 =item *
497 It I<really> calls C<fdopen(3)>.
498
499 =item *
500 It expects POSIX mode strings (e.g. C<"r">, not C<"<">).
501
502 =item *
503 It fails if I<mode> is not compatible with the flags of I<fd>.
504
505 =back
506
507 Usage example:
508
509 my $fh = do {
510 opendir my $dh, '.';
511 fdopen(POSIX::dup(fileno $dh), 'r');
512 };
513 chmod 0700, $fh; # this would fail with $dh from opendir
514
515 I<New in version 0.05.>
516
517 I<Changed in version 0.22:> I<fd> can no longer be a handle (that was a wrong
518 turn).
519
520 =item C<fdopendir>
521
522 rv = fdopendir(fd);
523
524 Returns a directory handle associated with the numeric file descriptor I<fd>
525 or undef on error.
526
527 The file descriptor is not dup'ed and will be closed when the handle is closed.
528
529 Usage example:
530
531 my $dh = do {
532 sysopen my $fh, '/tmp', O_RDONLY|O_DIRECTORY|O_NOFOLLOW;
533 fdopendir(POSIX::dup(fileno $fh));
534 };
535 my @dents = readdir $dh; # this would fail with $fh from sysopen
536
537 I<New in version 0.05.>
538
539 I<Changed in version 0.22:> I<fd> can no longer be a handle (that was a wrong
540 turn).
541
542 =item C<fdim>
543
544 d = fdim(double x, double y);
545
546 =item C<feclearexcept>
547
548 rv = feclearexcept(excepts);
549
550 Returns C<0 but true> on success, undef on error.
551
552 I<New in version 0.20.>
553
554 =item C<fegetround>
555
556 rounding_mode = fegetround();
557
558 =item C<feraiseexcept>
559
560 rv = feraiseexcept(excepts);
561
562 Returns C<0 but true> on success, undef on error.
563
564 I<New in version 0.20.>
565
566 =item C<fesetround>
567
568 rv = fesetround(round);
569
570 Returns C<0 but true> on success, undef on error.
571
572 =item C<fetestexcept>
573
574 excepts_currently_set = fetestexcept(excepts);
575
576 I<New in version 0.20.>
577
578 =item C<fexecve>
579
580 rv = fexecve(fd, args, env=undef);
581
582 Executes the program referred to by the file descriptor I<fd>, passing I<args>
583 as its command-line arguments and optionally I<env> as its environment.
584
585 I<args> must be an array reference and, by convention, I<args-E<gt>[0]> should
586 be the name of the program being executed.
587
588 I<env> must be a hash reference. If omitted or undef, the environment of the
589 calling proces is used (which you can manipulate via C<%ENV>).
590
591 See the manpage for issues regarding the close-on-exec flag and the /proc
592 filesystem.
593
594 Returns undef on error, otherwise it doesn't return.
595
596 Usage example:
597
598 sysopen my $fh, '/usr/bin/date', O_PATH;
599 fexecve($fh, [qw(date +%T)], {TZ => 'UTC'});
600
601 See also L<C<execveat()>|"execveat">.
602
603 I<New in version 0.22.>
604
605 =item C<ffs>
606
607 pos = ffs(i);
608
609 Calls C<ffsll()>, C<ffsl()>, or C<ffs()>, whichever is the maximum available
610 on your system.
611
612 =item C<floor>
613
614 y = floor(x);
615
616 =item C<fma>
617
618 r = fma(x, y, z);
619
620 =item C<fmax>
621
622 m = fmax(x, y);
623
624 =item C<fmin>
625
626 m = fmin(x, y);
627
628 =item C<fmod>
629
630 m = fmod(x, y);
631
632 =item C<fnmatch>
633
634 rv = fnmatch(pattern, string, flags);
635
636 Returns 0 if I<string> matches I<pattern>, C<FNM_NOMATCH> if there is no
637 match, undef if there is an error.
638
639 I<flags> is the bitwise OR of zero or more of C<FNM_NOESCAPE>,
640 C<FNM_PATHNAME>, C<FNM_PERIOD>, C<FNM_FILE_NAME>, C<FNM_LEADING_DIR>,
641 C<FNM_CASEFOLD>.
642
643 =item C<fpclassify>
644
645 rv = fpclassify(x);
646
647 Returns one of C<FP_NAN>, C<FP_INFINITE>, C<FP_ZERO>, C<FP_SUBNORMAL>,
648 C<FP_NORMAL>.
649
650 =item C<frexp>
651
652 (fraction, exponent) = frexp(x);
653
654 I<New in version 0.27.>
655
656 =item C<fstatat>
657
658 (dev, ino, mode, nlink, uid, gid, rdev, size, atim_sec, mtim_sec, ctim_sec,
659 blksize, blocks, atim_nsec, mtim_nsec, ctim_nsec) =
660 fstatat(dirfd, path, flags = 0);
661
662 I<flags> is the bitwise OR of zero or more of C<AT_SYMLINK_NOFOLLOW>,
663 C<AT_NO_AUTOMOUNT>. Your system might support a different set of flags.
664
665 See L<C<stat()>|"stat"> for notes on the return values and bugs in
666 C<CORE::stat()>.
667
668 Returns the empty list on error.
669
670 =item C<fsync>
671
672 rv = fsync(fd);
673
674 =item C<futimens>
675
676 rv = futimens(fd, atime_sec, atime_nsec, mtime_sec, mtime_nsec);
677
678 I<atime_sec> and I<mtime_sec> default to 0, I<atime_nsec> and I<mtime_nsec>
679 default to C<UTIME_NOW>.
680
681 =item C<getdate>
682
683 (sec, min, hour, mday, mon, year, wday, yday, isdst) = getdate(string);
684
685 =item C<getdate_err>
686
687 C<getdate_err()> returns the value of the getdate_err variable.
688
689 =item C<getegid>
690
691 egid = getegid();
692
693 =item C<getentropy>
694
695 s = getentropy(length);
696
697 Returns a string of I<length> bytes of "unpredictable high-quality random
698 data, generated by a cryptographically secure pseudo-random number generator",
699 or undef on error.
700
701 The maximum permitted value for I<length> is C<GETENTROPY_MAX> (usually 256).
702 If more bytes are requested, C<$!> is set to C<EINVAL> as decreed by POSIX,
703 even on systems that believe C<EIO> is right.
704
705 If your system does not provide C<getentropy()>, it is emulated via
706 C<getrandom()>, C<arc4random_buf()>, C<BCryptGenRandom()> (Windows), C<RDRAND>
707 (Intel/AMD), or C<RNDR> (ARM64) if available (picked in this order at build
708 time).
709
710 C<getentropy()> was standardized with POSIX.1-2024.
711
712 I<New in version 0.27.>
713
714 =item C<geteuid>
715
716 euid = geteuid();
717
718 =item C<getgid>
719
720 gid = getgid();
721
722 =item C<gethostid>
723
724 hostid = gethostid();
725
726 =item C<gethostname>
727
728 hostname = gethostname();
729
730 =item C<getitimer>
731
732 (int_sec, int_usec, val_sec, val_usec) = getitimer(which);
733
734 I<which> can be one of C<ITIMER_REAL>, C<ITIMER_VIRTUAL>, C<ITIMER_PROF>.
735
736 POSIX.1-2008 marks C<getitimer()> and C<setitimer()> obsolete, recommending
737 the use of the POSIX timers API (L<C<timer_gettime()>|"timer_gettime">,
738 L<C<timer_settime()>|"timer_settime">, etc.) instead.
739
740 POSIX.1-2024 removed C<getitimer()> and C<setitimer()>.
741
742 =item C<getpriority>
743
744 prio = getpriority(which=PRIO_PROCESS, who=0);
745
746 I<which> can be one of C<PRIO_PROCESS>, C<PRIO_PGRP>, C<PRIO_USER>, defaults
747 to C<PRIO_PROCESS>. I<who> defaults to 0.
748
749 Returns undef on error.
750
751 =item C<getresgid>
752
753 (rgid, egid, sgid) = getresgid();
754
755 Returns the empty list on error.
756
757 C<getresgid()> was standardized with POSIX.1-2024.
758
759 I<New in version 0.27.>
760
761 =item C<getresuid>
762
763 (ruid, euid, suid) = getresuid();
764
765 Returns the empty list on error.
766
767 C<getresuid()> was standardized with POSIX.1-2024.
768
769 I<New in version 0.27.>
770
771 =item C<getsid>
772
773 sid = getsid(pid);
774
775 I<pid> defaults to 0.
776
777 =item C<getuid>
778
779 uid = getuid();
780
781 =item C<getutxent>
782
783 (user, id, line, pid, type, sec, usec) = getutxent();
784
785 C<getutxent()> reads a line from the current file position in the utmp file.
786
787 =item C<getutxid>
788
789 (user, id, line, pid, type, sec, usec) = getutxid(ut_type[, ut_id]);
790
791 C<getutxid()> searches forward from the current file position in the utmp file
792 based upon I<ut_type> and I<ut_id>. If I<ut_type> is one of C<RUN_LVL>,
793 C<BOOT_TIME>, C<NEW_TIME>, or C<OLD_TIME>, C<getutxid()> will find the first
794 entry whose I<ut_type> field matches I<ut_type>. If I<ut_type> is one of
795 C<INIT_PROCESS>, C<LOGIN_PROCESS>, C<USER_PROCESS>, or C<DEAD_PROCESS>,
796 C<getutxid()> will find the first entry whose I<ut_id> field matches I<ut_id>.
797
798 Returns the empty list on error.
799
800 =item C<getutxline>
801
802 (user, id, line, pid, type, sec, usec) = getutxline(ut_line);
803
804 C<getutxline()> searches forward from the current file position in the utmp
805 file. It scans entries whose I<ut_type> is C<USER_PROCESS> or C<LOGIN_PROCESS>
806 and returns the first one whose I<ut_line> field matches I<ut_line>.
807
808 Returns the empty list on error.
809
810 =item C<grantpt>
811
812 rv = grantpt(fd);
813
814 I<New in version 0.27.>
815
816 =item C<hypot>
817
818 r = hypot(x, y);
819
820 =item C<ilogb>
821
822 y = ilogb(x);
823
824 =item C<isalnum>
825
826 rv = isalnum(charstring);
827
828 Like POSIX::isalnum() but returns 0 for the empty string.
829
830 =item C<isalpha>
831
832 rv = isalpha(charstring);
833
834 Like POSIX::isalpha() but returns 0 for the empty string.
835
836 =item C<isascii>
837
838 rv = isascii(charstring);
839
840 POSIX.1-2008 marks it as obsolete and it was removed in POSIX.1-2024, but I
841 include it anyway.
842
843 I<New in version 0.19.>
844
845 =item C<isatty>
846
847 rv = isatty(fd);
848
849 =item C<isblank>
850
851 rv = isblank(charstring);
852
853 Like POSIX::isblank() but returns 0 for the empty string.
854
855 =item C<iscntrl>
856
857 rv = iscntrl(charstring);
858
859 Like POSIX::iscntrl() but returns 0 for the empty string.
860
861 =item C<isdigit>
862
863 rv = isdigit(charstring);
864
865 Like POSIX::isdigit() but returns 0 for the empty string.
866
867 =item C<isfinite>
868
869 rv = isfinite(x);
870
871 =item C<isgraph>
872
873 rv = isgraph(charstring);
874
875 Like POSIX::isgraph() but returns 0 for the empty string.
876
877 =item C<isgreaterequal>
878
879 rv = isgreaterequal(x, y);
880
881 I<New in version 0.20.>
882
883 =item C<isinf>
884
885 rv = isinf(x);
886
887 =item C<isless>
888
889 rv = isless(x, y);
890
891 I<New in version 0.20.>
892
893 =item C<islessequal>
894
895 rv = islessequal(x, y);
896
897 I<New in version 0.20.>
898
899 =item C<islessgreater>
900
901 rv = islessgreater(x, y);
902
903 I<New in version 0.20.>
904
905 =item C<islower>
906
907 rv = islower(charstring);
908
909 Like POSIX::islower() but returns 0 for the empty string.
910
911 =item C<isnan>
912
913 rv = isnan(x);
914
915 =item C<isnormal>
916
917 rv = isnormal(x);
918
919 =item C<isprint>
920
921 rv = isprint(charstring);
922
923 Like POSIX::isprint() but returns 0 for the empty string.
924
925 =item C<ispunct>
926
927 rv = ispunct(charstring);
928
929 Like POSIX::ispunct() but returns 0 for the empty string.
930
931 =item C<isspace>
932
933 rv = isspace(charstring);
934
935 Like POSIX::isspace() but returns 0 for the empty string.
936
937 =item C<isunordered>
938
939 rv = isunordered(x, y);
940
941 I<New in version 0.20.>
942
943 =item C<isupper>
944
945 rv = isupper(charstring);
946
947 Like POSIX::isupper() but returns 0 for the empty string.
948
949 =item C<isxdigit>
950
951 rv = isxdigit(charstring);
952
953 Like POSIX::isxdigit() but returns 0 for the empty string.
954
955 =item C<j0>
956
957 y = j0(x);
958
959 C<j0()> is the Bessel function of the first kind of order 0.
960
961 =item C<j1>
962
963 y = j1(x);
964
965 C<j1()> is the Bessel function of the first kind of order 1.
966
967 =item C<jn>
968
969 y = jn(n, x);
970
971 C<jn()> is the Bessel function of the first kind of order I<n>.
972
973 =item C<jrand48>
974
975 (r, X0, X1, X2) = jrand48(X0, X1, X2);
976
977 =item C<killpg>
978
979 rv = killpg(pgrp, sig);
980
981 =item C<l64a>
982
983 s = l64a(n);
984
985 =item C<lchown>
986
987 rv = lchown(path, uid, gid);
988
989 I<New in version 0.08.>
990
991 =item C<ldexp>
992
993 y = ldexp(x, exp);
994
995 =item C<lgamma>
996
997 y = lgamma(x);
998
999 =item C<link>
1000
1001 rv = link(path1, path2);
1002
1003 =item C<linkat>
1004
1005 rv = linkat(fd1, path1, fd2, path2, flags=0);
1006
1007 I<flags> can be 0 or C<AT_SYMLINK_FOLLOW>. Your system might support a
1008 different set of flags.
1009
1010 =item C<log>
1011
1012 y = log(x);
1013
1014 =item C<log10>
1015
1016 y = log10(x);
1017
1018 =item C<log1p>
1019
1020 y = log1p(x);
1021
1022 =item C<log2>
1023
1024 y = log2(x);
1025
1026 =item C<logb>
1027
1028 y = logb(x);
1029
1030 This function may not be available in libquadmath.
1031
1032 =item C<lrand48>
1033
1034 r = lrand48();
1035
1036 =item C<lrint>
1037
1038 l = lrint(x);
1039
1040 From the countless C<l*rint*()> interfaces it chooses the one matching your
1041 Perl's NV type, preferring the "long long" return value variant.
1042
1043 If the rounded value is outside Perl's internal signed integer range, it is
1044 returned as a string. If the rounded value is too large to be stored in a long
1045 long or long, undef is returned.
1046
1047 I<New in verion 0.27.>
1048
1049 =item C<lround>
1050
1051 l = lround(x);
1052
1053 From the countless C<l*round*()> interfaces it chooses the one matching your
1054 Perl's NV type, preferring the "long long" return value variant.
1055
1056 If the rounded value is outside Perl's internal signed integer range, it is
1057 returned as a string.
1058
1059 I<Changed in version 0.27:> No longer returns undef on error.
1060
1061 =item C<lstat>
1062
1063 (dev, ino, mode, nlink, uid, gid, rdev, size, atim_sec, mtim_sec, ctim_sec,
1064 blksize, blocks, atim_nsec, mtim_nsec, ctim_nsec) = lstat(path);
1065
1066 C<path> is assumed to be a string (or will be converted to a string).
1067
1068 See L<C<stat()>|"stat"> for notes on the return values and bugs in
1069 C<CORE::stat()>.
1070
1071 Returns the empty list on error.
1072
1073 =item C<mkdir>
1074
1075 rv = mkdir(path, [mode = 0777]);
1076
1077 =item C<mkdirat>
1078
1079 rv = mkdirat(fd, path, mode);
1080
1081 =item C<mkdtemp>
1082
1083 name = mkdtemp(template);
1084
1085 =item C<mkfifo>
1086
1087 rv = mkfifo(path, mode);
1088
1089 =item C<mkfifoat>
1090
1091 rv = mkfifoat(fd, path, mode);
1092
1093 =item C<mknod>
1094
1095 rv = mknod(path, mode, dev);
1096
1097 =item C<mknodat>
1098
1099 rv = mknodat(fd, path, mode, dev);
1100
1101 =item C<mkostemp>
1102
1103 (fd, name) = mkostemp(template, flags);
1104
1105 I<flags> is a bitwise OR of zero or more C<open()> flags. For the exact set of
1106 supported flags and their restrictions see the manpage of your system.
1107
1108 C<mkostemp()> was standardized with POSIX.1-2024.
1109
1110 I<New in verion 0.27.>
1111
1112 =item C<mkstemp>
1113
1114 (fd, name) = mkstemp(template);
1115
1116 =item C<mrand48>
1117
1118 mrand48();
1119
1120 =item C<nanosleep>
1121
1122 (rem_sec, rem_nsec) = nanosleep(floating_sec);
1123 floating_rem_sec = nanosleep(floating_sec);
1124
1125 (rem_sec, rem_nsec) = nanosleep(sec, nsec);
1126 floating_rem_sec = nanosleep(sec, nsec);
1127
1128 Returns zero(es) on success, the remaining time on EINTR, the empty list or
1129 undef otherwise.
1130
1131 I<Changed in version 0.25:> Sleep time can be floating seconds only or seconds
1132 and nanoseconds.
1133
1134 =item C<nearbyint>
1135
1136 y = nearbyint(x);
1137
1138 =item C<nextafter>
1139
1140 z = nextafter(x, y);
1141
1142 =item C<nexttoward>
1143
1144 z = nexttoward(x, y);
1145
1146 This function may not be available in libquadmath.
1147
1148 =item C<nice>
1149
1150 rv = nice(incr);
1151
1152 Returns undef on error.
1153
1154 =item C<nrand48>
1155
1156 r = nrand48()
1157
1158 =item C<open>
1159
1160 rv = open(path, flags=O_RDONLY, mode=0666);
1161
1162 =item C<openat>
1163
1164 rv = openat(dirfd, path, flags=O_RDONLY, mode=0666);
1165
1166 If I<dirfd> is numeric (i.e. a file descriptor), C<openat()> returns a file
1167 descriptor. If I<dirfd> is a file or directory handle, the return value is
1168 also a handle whose type depends on the file type of I<path>: If I<path> is a
1169 directory, the return value is a directory handle, otherwise it's a file
1170 handle.
1171
1172 To get a handle even for the special numeric I<dirfd> value C<AT_FDCWD>, you
1173 can pass a reference to that value instead, i.e. C<openat(\AT_FDCWD, ...)>.
1174
1175 Returns undef on error.
1176
1177 I<Changed in version 0.18:> Support added for C<\AT_FDCWD> reference.
1178
1179 =item C<openat2>
1180
1181 rv = openat2(dirfd, path, how);
1182
1183 The C<openat2()> system call is a Linux-specific extension of
1184 L<C<openat()>|"openat"> and provides a superset of its functionality.
1185
1186 The I<how> parameter is a hash reference corresponding to the I<struct
1187 open_how>. It currently supports the keys I<flags>, I<mode> and
1188 I<resolve>. Missing keys are treated as having a zero value.
1189
1190 Example:
1191
1192 my $fh = openat2(
1193 \AT_FDCWD, '/foobar',
1194 {flags => O_RDWR|O_CREAT, mode => 0600, resolve => RESOLVE_IN_ROOT}
1195 );
1196
1197 Note that, unlike L<C<open()>|"open"> or L<C<openat()>|"openat">, C<openat2()>
1198 is very picky about I<flags> and I<mode>. See the manpage for details.
1199
1200 Returns undef on error.
1201
1202 I<New in version 0.18.>
1203
1204 =item C<pathconf>
1205
1206 rv = pathconf(what, name);
1207
1208 I<what> can be a path or, if your system supports C<fpathconf()>, a Perl file
1209 or directory handle or a file descriptor.
1210
1211 I<name> is one of the C<_PC_*> integer constants.
1212
1213 Returns undef on error.
1214
1215 I<New in version 0.22.>
1216
1217 =item C<pause>
1218
1219 rv = pause();
1220
1221 =item C<poll>
1222
1223 rv = poll(pollfds, timeout=-1);
1224
1225 I<timeout> specifies the number of milliseconds that C<poll()> should block
1226 waiting for a file descriptor to become ready. A negative I<timeout> value
1227 means an infinite timeout. A I<timeout> of zero causes C<poll()> to return
1228 immediately.
1229
1230 I<pollfds> is an array reference holding array references of the form I<[fd,
1231 events, revents]> where I<fd> is an integer file descriptor or a file handle,
1232 I<events> is a bit mask of events you are interested in for I<fd>, and
1233 I<revents> is a bit mask of events that actually occurred.
1234
1235 I<revents> is changed by the call (unless a timeout or error occurs),
1236 everything else remains unchanged.
1237
1238 If I<fd> is negative or anything L<C<sv_2io()>|perlapi/sv_2io> doesn't consider
1239 a file handle, then the corresponding events field is ignored and the revents
1240 field returns zero.
1241
1242 Returns the number of elements in I<pollfds> whose I<revents> have been set to
1243 a non-zero value, zero if the call timed out. On error, C<poll()> returns -1
1244 and sets C<$!> just like L<C<select()>|perlfunc/select>.
1245
1246 Usage example:
1247
1248 open my $pipe, '-|', qw(tail -f /var/log/messages);
1249 my $pollfds = [[\*STDIN, POLLIN, 0], [2, POLLOUT, 0], [$pipe, POLLIN, 0]];
1250 my $rv = poll($pollfds, -1);
1251
1252 # Skip events for fd 2 this time:
1253 my $pollfds = [[\*STDIN, POLLIN, 0], [-2, POLLOUT, 0], [$pipe, POLLIN, 0]];
1254 my $rv = poll($pollfds, -1);
1255
1256 I<New in version 0.25.>
1257
1258 =item C<ppoll>
1259
1260 rv = ppoll(pollfds[, timeout[, sigmask]]);
1261
1262 C<ppoll()> is similar to L<C<poll()>|"poll"> with the following differences:
1263
1264 I<timeout> can be an integer or floating point value in seconds or an array
1265 reference of the form I<[seconds, nanoseconds]>. An omitted or undef
1266 I<timeout> value means an infinite timeout.
1267
1268 I<sigmask> must be a L<C<POSIX::SigSet>|POSIX/POSIX::SigSet>. If I<sigmask> is
1269 omitted or undef, no signal mask is applied and C<ppoll()> behaves like
1270 L<C<poll()>|"poll"> with a more precise timeout.
1271
1272 C<ppoll()> was standardized with POSIX.1-2024.
1273
1274 I<New in version 0.27.>
1275
1276 =item C<posix_fadvise>
1277
1278 rv = posix_fadvise(fd, offset, len, advice);
1279
1280 I<advice> is one of the C<POSIX_FADV_> constants.
1281
1282 I<New in version 0.14.>
1283
1284 =item C<posix_fallocate>
1285
1286 rv = posix_fallocate(fd, offset, len);
1287
1288 I<New in version 0.14.>
1289
1290 =item C<posix_openpt>
1291
1292 fh = posix_openpt(flags=O_RDWR);
1293
1294 I<flags> is the bitwise OR of zero or more of C<O_RDWR>, C<O_NOCTTY>,
1295 C<O_CLOEXEC>, C<O_CLOFORK>.
1296
1297 C<O_CLOEXEC>, C<O_CLOFORK> were standardized with POSIX.1-2024.
1298
1299 I<New in version 0.27.>
1300
1301 =item C<pow>
1302
1303 r = pow(x, y);
1304
1305 I<New in version 0.27.>
1306
1307 =item C<pread>
1308
1309 bytes_read = pread(fd, buf, count, offset=0, buf_offset=0);
1310
1311 C<pread()> reads I<count> bytes (not characters) of data from the file
1312 descriptor I<fd> at file offset I<offset> into the scalar I<buf> without
1313 changing the file offset. I<buf> will be enlarged automatically if necessary.
1314
1315 I<offset> and I<buf_offset> are set to 0 if omitted or undef.
1316
1317 C<pread()> treats I<buf> just like C<sysread()> does: I<buf_offset> may be
1318 specified to place the read data at that position in I<buf>. If I<buf_offset>
1319 is past the end of I<buf>, I<buf> will be padded with zeros before appending
1320 the data. If I<buf_offset> is negative, it is counted from the end of the
1321 string. I<buf> will be grown or shrunk so that the last byte actually read is
1322 the last byte of I<buf> after the read.
1323
1324 Returns the number of bytes read, 0 at EOF, undef on error.
1325
1326 Croaks if I<buf> is read-only and I<count> is non-zero.
1327
1328 I<Changed in version 0.13:> Argument order is now (count, offset) instead of
1329 (offset, count).
1330
1331 I<Changed in version 0.22:> Croak with read-only I<buf> and non-zero I<count>.
1332
1333 =item C<preadv>
1334
1335 bytes_read = preadv(fd, buffers, sizes, offset=0);
1336
1337 C<preadv()> behaves like L<C<readv()>|"readv"> but adds an optional I<offset>
1338 argument, which specifies the file position at which the data is to be
1339 read. I<offset> is set to 0 if omitted or undef.
1340
1341 The file offset is not changed by this system call. The file referred to by
1342 I<fd> must be capable of seeking.
1343
1344 This syscall is present in Linux and BSD.
1345
1346 I<New in version 0.13.>
1347
1348 =item C<preadv2>
1349
1350 bytes_read = preadv2(fd, buffers, sizes, offset=0, flags=0);
1351
1352 C<preadv2()> is similar to L<C<preadv()>|"preadv"> but adds an optional
1353 I<flags> argument, which is a bitwise OR of zero or more of the C<RWF_*> flags
1354 (see the manpage for details). I<flags> is set to 0 if omitted or undef.
1355
1356 Unlike C<preadv()>, if the I<offset> argument is -1, then the current file
1357 offset is used and updated.
1358
1359 This syscall is Linux-specific.
1360
1361 I<New in version 0.20.>
1362
1363 =item C<psignal>
1364
1365 psignal(sig, msg);
1366
1367 I<New in version 0.25.>
1368
1369 =item C<ptsname>
1370
1371 name = ptsname(fd);
1372
1373 I<Changed in version 0.19:> Calls C<ptsname_r()> if available.
1374
1375 I<Changed in version 0.22:> I<fd> may also be a file handle.
1376
1377 =item C<pwrite>
1378
1379 bytes_written = pwrite(fd, buf, count=undef, offset=0, buf_offset=0);
1380
1381 C<pwrite()> writes I<count> bytes of data from the scalar I<buf> to the file
1382 descriptor I<fd> at file offset I<offset> without changing the file
1383 offset. The file referenced by I<fd> must be capable of seeking.
1384
1385 If I<count> is omitted or undef, everything from I<buf_offset> up to the end
1386 of I<buf> is written.
1387
1388 I<buf_offset> may be specified to write data from that position in
1389 I<buf>. If I<buf_offset> is negative it is counted from the end
1390 of the string.
1391
1392 I<offset> and I<buf_offset> are set to 0 if omitted or undef.
1393
1394 Returns the number of bytes written, undef on error.
1395
1396 On Linux, if a file is opened with C<O_APPEND>, C<pwrite()> appends data to
1397 the end of the file, regardless of the value of I<offset> (in violation of
1398 POSIX).
1399
1400 I<Changed in version 0.13:> Argument order is now (count, offset) instead of
1401 (offset, count).
1402
1403 =item C<pwritev>
1404
1405 bytes_written = pwritev(fd, buffers, offset=0);
1406
1407 C<pwritev()> behaves like L<C<writev()>|"writev"> but adds an optional
1408 I<offset> argument, which specifies the file position at which the data is to
1409 be written. I<offset> is set to 0 if omitted or undef.
1410
1411 The file offset is not changed by this system call. The file referred to by
1412 I<fd> must be capable of seeking.
1413
1414 On Linux, if a file is opened with C<O_APPEND>, C<pwritev()> appends data to
1415 the end of the file, regardless of the value of I<offset> (in violation of
1416 POSIX).
1417
1418 This syscall is present in Linux and BSD.
1419
1420 I<New in version 0.08.>
1421
1422 =item C<pwritev2>
1423
1424 bytes_written = pwritev2(fd, buffers, offset=0, flags=0);
1425
1426 C<pwritev2()> is similar to L<C<pwritev()>|"pwritev"> but adds an optional
1427 I<flags> argument, which is a bitwise OR of zero or more of the C<RWF_*>
1428 flags (see the manpage for details). I<flags> is set to 0 if omitted or undef.
1429
1430 Unlike C<pwritev()>, if the I<offset> argument is -1, then the current file
1431 offset is used and updated.
1432
1433 This syscall is Linux-specific.
1434
1435 I<New in version 0.20.>
1436
1437 =item C<random>
1438
1439 r = random();
1440
1441 =item C<raise>
1442
1443 rv = raise(sig);
1444
1445 =item C<read>
1446
1447 bytes_read = read(fd, buf, count);
1448
1449 Like C<POSIX::read()> but returns 0 at EOF instead of C<0 but true>. Croaks if
1450 I<buf> is read-only and I<count> is non-zero.
1451
1452 I<Changed in version 0.22:> Croak with read-only I<buf> and non-zero I<count>.
1453
1454 =item C<readv>
1455
1456 bytes_read = readv(fd, buffers, sizes);
1457
1458 C<readv()> reads from the file descriptor I<fd> into I<buffers> as many
1459 strings as there are elements in I<sizes>.
1460
1461 I<buffers> must be a I<variable> holding an array (C<@buf>), an array reference
1462 or undef (C<$buf>). If it is undef it will be upgraded to an array reference.
1463
1464 I<sizes> must be an array reference, i.e. C<\@sizes>, C<$sizes>, or C<[...]>.
1465
1466 I<sizes> is expected to hold unsigned integers that specify how many bytes are
1467 to be read into each buffer. A byte count of 0 or undef creates an empty
1468 string. I<sizes> is processed in array order.
1469
1470 I<buffers> will be extended if necessary, but it will never be shrunk. If
1471 I<buffers> is not empty, any existing elements are replaced as long as
1472 sufficient data was read from I<fd>.
1473
1474 C<readv()> returns the number of bytes read, undef on error.
1475
1476 Note that it is not an error for a successful call to transfer fewer bytes
1477 than requested. In this case there may be one "partially" filled buffer, i.e.
1478 it contains fewer bytes than the corresponding size. Surplus size entries lead
1479 to corresponding empty buffers.
1480
1481 Usage example:
1482
1483 my $fh = openat(\AT_FDCWD, '/tmp/foobar', O_RDWR|O_CREAT|O_TRUNC);
1484 pwrite($fh, 'foobar', 6, 0);
1485 readv($fh, my $buf1, [3, 0, 8]); # $buf1: ['foo', '', 'bar']
1486 sysseek $fh, 0, 0;
1487 readv($fh, my @buf2, [1, 3, 2]); # @buf2: ('f', 'oob', 'ar')
1488
1489 I<New in version 0.13.>
1490
1491 I<Changed in version 0.22:> I<buffers> may be an undef variable, buffers
1492 beyond EOF are created as empty strings instead of being skipped.
1493
1494 =item C<readlink>
1495
1496 name = readlink(path);
1497
1498 Returns undef on error.
1499
1500 =item C<readlinkat>
1501
1502 name = readlinkat(dirfd, path);
1503
1504 Returns undef on error.
1505
1506 =item C<realpath>
1507
1508 resolved_path = realpath(path);
1509
1510 Calls the actual C library fuction C<realpath()> and relies on it to be able
1511 to allocate memory for the resolved path automatically (as required by
1512 POSIX-2008).
1513
1514 Returns undef on error.
1515
1516 I<New in version 0.18.>
1517
1518 =item C<remainder>
1519
1520 rem = remainder(x, y);
1521
1522 I<Changed in version 0.27:> No longer returns undef on error.
1523
1524 =item C<remove>
1525
1526 rv = remove(path);
1527
1528 Calls the actual C library function C<remove()>.
1529
1530 Note that core C<POSIX::remove()> fails if I<path> is a symlink to a directory
1531 because someone "couldn't read the plans right and did a piss-poor job of
1532 putting it together" as C<(-d $_[0]) ? CORE::rmdir($_[0]) :
1533 CORE::unlink($_[0])>. Quote from Armageddon.
1534
1535 This could be fixed like this: C<unlink $_[0] or ($!{EISDIR} or $!{EPERM}) and
1536 rmdir $_[0]> (correct errno check depends on OS), or by using the library call
1537 right away.
1538
1539 =item C<removeat>
1540
1541 rv = removeat(dirfd, path);
1542
1543 The C<removeat()> function works exactly like L<C<remove()>|"remove"> but
1544 I<path> is interpreted relative to I<dirfd> as with the other I<*at>
1545 functions.
1546
1547 This function is a home-grown non-standard extension only available in this
1548 module (to my knowledge).
1549
1550 I<New in version 0.22.>
1551
1552 =item C<remquo>
1553
1554 (rem, quo) = remquo(x, y);
1555
1556 I<New in version 0.20.>
1557
1558 I<Changed in version 0.27:> No longer returns the empty list on error.
1559
1560 =item C<rename>
1561
1562 rv = rename(old, new);
1563
1564 =item C<renameat>
1565
1566 rv = renameat(olddirfd, oldpath, newdirfd, newpath);
1567
1568 =item C<renameat2>
1569
1570 rv = renameat(olddirfd, oldpath, newdirfd, newpath, flags=0);
1571
1572 The C<renameat2()> system call is a Linux-specific extension of
1573 L<C<renameat()>|"renameat"> and provides a superset of its functionality.
1574
1575 I<flags> is the bitwise OR of zero or more of C<RENAME_EXCHANGE>,
1576 C<RENAME_NOREPLACE>, C<RENAME_WHITEOUT>.
1577
1578 I<New in version 0.21.>
1579
1580 =item C<rint>
1581
1582 r = rint(x);
1583
1584 I<New in version 0.27.>
1585
1586 =item C<rmdir>
1587
1588 rv = rmdir(path);
1589
1590 I<New in version 0.19.>
1591
1592 =item C<round>
1593
1594 r = round(x);
1595
1596 =item C<scalbn>
1597
1598 y = scalbn(x, exp);
1599
1600 From the countless C<scalb*n*()> interfaces it chooses the one matching your
1601 Perl's NV type, preferring the long int exp variant.
1602
1603 =item C<seed48>
1604
1605 (old_seed1, old_seed2, old_seed3) = seed48(seed1, seed2, seed3);
1606
1607 =item C<setegid>
1608
1609 rv = setegid(gid);
1610
1611 =item C<seteuid>
1612
1613 rv = seteuid(uid);
1614
1615 =item C<setgid>
1616
1617 rv = setgid(gid);
1618
1619 =item C<setitimer>
1620
1621 (old_int_sec, old_int_usec, old_val_sec, old_val_usec) =
1622 setitimer(which, int_sec, int_usec, val_sec, val_usec);
1623
1624 I<which> is one of C<ITIMER_REAL>, C<ITIMER_VIRTUAL>, C<ITIMER_PROF>.
1625
1626 POSIX.1-2008 marks C<getitimer()> and C<setitimer()> obsolete, recommending
1627 the use of the POSIX timers API (L<C<timer_gettime()>|"timer_gettime">,
1628 L<C<timer_settime()>|"timer_settime">, etc.) instead.
1629
1630 POSIX.1-2024 removed C<getitimer()> and C<setitimer()>.
1631
1632 =item C<setpriority>
1633
1634 rv = setpriority(prio, which=PRIO_PROCESS, who=0);
1635
1636 I<which> can be one of C<PRIO_PROCESS>, C<PRIO_PGRP>, C<PRIO_USER>, defaults
1637 to C<PRIO_PROCESS>. I<who> defaults to 0.
1638
1639 Note that due to the support of default values for I<which> and I<who>,
1640 I<prio> is the first call parameter, whereas in the actual syscall it is the
1641 last.
1642
1643 Returns true on success, undef on error.
1644
1645 =item C<setregid>
1646
1647 rv = setregid(rgid, egid);
1648
1649 =item C<setresgid>
1650
1651 rv = setresgid(rgid, egid, sgid);
1652
1653 C<setresgid()> was standardized with POSIX.1-2024.
1654
1655 I<New in version 0.27.>
1656
1657 =item C<setresuid>
1658
1659 rv = setresuid(ruid, euid, suid);
1660
1661 C<setresuid()> was standardized with POSIX.1-2024.
1662
1663 I<New in version 0.27.>
1664
1665 =item C<setreuid>
1666
1667 rv = setreuid(ruid, euid);
1668
1669 =item C<setsid>
1670
1671 sid = setsid();
1672
1673 I<New in version 0.19.>
1674
1675 =item C<setuid>
1676
1677 rv = setuid(uid);
1678
1679 =item C<setutxent>
1680
1681 setutxent();
1682
1683 =item C<sighold>
1684
1685 rv = sighold(sig);
1686
1687 POSIX.1-2008 marks this function as obsolete, recommending the use of
1688 L<POSIX/"sigprocmask"> instead.
1689
1690 =item C<sigignore>
1691
1692 rv = sigignore(sig);
1693
1694 POSIX.1-2008 marks this function as obsolete, recommending the use of
1695 L<POSIX/"sigaction"> instead. Or use C<$SIG{SIG} = 'IGNORE';>.
1696
1697 =item C<signbit>
1698
1699 b = signbit(x);
1700
1701 =item C<sigpause>
1702
1703 sigpause(sig);
1704
1705 POSIX.1-2008 marks this function as obsolete, recommending the use of
1706 L<POSIX/"sigsuspend"> instead.
1707
1708 =item C<sigrelse>
1709
1710 rv = sigrelse(sig);
1711
1712 POSIX.1-2008 marks this function as obsolete, recommending the use of
1713 L<POSIX/"sigprocmask"> instead.
1714
1715 =item C<sin>
1716
1717 y = sin(x);
1718
1719 I<New in version 0.19.>
1720
1721 =item C<sinh>
1722
1723 y = sinh(x);
1724
1725 =item C<sqrt>
1726
1727 y = sqrt(x);
1728
1729 =item C<srand48>
1730
1731 srand48(seedval);
1732
1733 =item C<srandom>
1734
1735 srandom(seed);
1736
1737 =item C<stat>
1738
1739 (dev, ino, mode, nlink, uid, gid, rdev, size, atim_sec, mtim_sec, ctim_sec,
1740 blksize, blocks, atim_nsec, mtim_nsec, ctim_nsec) = stat(what);
1741
1742 I<what> can be a path, a Perl file handle or a file descriptor.
1743
1744 I<ctim_sec>, I<blksize>, I<blocks> and nanoseconds may not be available on
1745 your system.
1746
1747 Values outside Perl's internal integer range are returned as strings, i.e. if
1748 you need the exact values you should, for example, use C<eq> instead of C<==>
1749 for comparisons.
1750
1751 Note that C<CORE::stat()> lies to you in some cases: It returns I<rdev> as a
1752 signed integer even if your OS's C<dev_t> is unsigned. It returns I<size> as
1753 a floating point number if your OS's C<off_t> is bigger than Perl's integer
1754 size. It returns the times as floating point numbers if your OS's C<time_t>
1755 is unsigned.
1756
1757 C<POSIX::2008::stat()> doesn't mimic these bugs and uses the correct data types
1758 for all values.
1759
1760 Returns the empty list on error.
1761
1762 =item C<statvfs>
1763
1764 (f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail,
1765 f_fsid, f_flag, f_namemax) = statvfs(what);
1766
1767 I<what> can be a path, a Perl file handle or a file descriptor.
1768
1769 Values outside Perl's internal integer range are returned as strings as with
1770 L<C<stat()>|"stat">. Note that L<Filesys::Statvfs|Filesys::Statvfs> returns
1771 only floating point numbers which may give wrong results, and it lacks
1772 I<f_fsid>.
1773
1774 Only the ST_NOSUID and ST_RDONLY flags of the I<f_flag> field are specified
1775 in POSIX but this module provides additional ST_ flags if available.
1776
1777 Returns the empty list on error.
1778
1779 I<New in version 0.25.>
1780
1781 =item C<strptime>
1782
1783 (sec, min, hour, mday, mon, year, wday, yday, isdst, gmtoff, zone) =
1784 strptime(s, format[, sec, min, hour, mday, mon, year, wday, yday, isdst,
1785 gmtoff, zone]);
1786
1787 ... = strptime(s, format, \@tm);
1788
1789 C<strptime()> converts the string I<s> into a broken-down time according to
1790 the format string I<format>.
1791
1792 The time fields may optionally be initialized in whole or in part either with
1793 up to 11 separate arguments or with a single array reference after the format.
1794 Omitted arguments are treated as undef. In case of an array reference the array
1795 is updated according to the fields affected by the format string. If an error
1796 occurred the array is not udpated.
1797
1798 In list context it returns the broken-down time or the empty list on error.
1799
1800 Fields not affected by the format string may be returned as initialized, set to
1801 default values, or recomputed depending on your OS (e.g. glibc "recomputes"
1802 I<wday> and I<yday> if any of the year, month, or day elements changed).
1803
1804 In scalar context it returns the index of the first byte in I<s> that was not
1805 processed or the byte length of I<s> if the whole string was consumed or undef
1806 on error.
1807
1808 As C<strptime()> acts on null-terminated strings, strings containing NUL bytes
1809 will only be processed up to the first NUL byte.
1810
1811 I<gmtoff> and I<zone> were standardized with POSIX.1-2024. They might not be
1812 supported by your system, and I<zone> might be ignored entirely.
1813
1814 I<New in version 0.02.>
1815
1816 I<Changed in version 0.24:> Accept an array reference as the third argument
1817 (L<RT#66519|https://rt.cpan.org/Public/Bug/Display.html?id=66519>).
1818
1819 I<Changed in version 0.27:> Support gmtoff and zone.
1820
1821 =item C<strsignal>
1822
1823 str = strsignal(sig);
1824
1825 I<New in version 0.25.>
1826
1827 =item C<symlink>
1828
1829 rv = symlink(target, linkpath);
1830
1831 =item C<symlinkat>
1832
1833 rv = symlinkat(target, dirfd, linkpath);
1834
1835 =item C<sync>
1836
1837 sync();
1838
1839 This function doesn't return any value.
1840
1841 =item C<sysconf>
1842
1843 rv = sysconf(name);
1844
1845 I<name> is one of the C<_SC_*> integer constants.
1846
1847 Returns undef on error.
1848
1849 I<New in version 0.22.>
1850
1851 =item C<tan>
1852
1853 y = tan(x);
1854
1855 =item C<tanh>
1856
1857 y = tanh(x);
1858
1859 =item C<tgamma>
1860
1861 y = tgamma(x);
1862
1863 =item C<timer_create>
1864
1865 timerid = timer_create(clockid, signal=undef);
1866
1867 Creates a new per-process interval timer using the clock given by I<clock_id>
1868 as the timing base. I<signal> is the signal number to be delivered when the
1869 timer expires. If I<signal> is omitted or undef, no signal is delivered and
1870 the progress of the timer can be monitored using
1871 L<C<timer_gettime()>|"timer_gettime">.
1872
1873 Calling a notification function on timer expiration is currently not
1874 supported.
1875
1876 Returns undef on error.
1877
1878 I<New in version 0.16.>
1879
1880 I<Changed in version 0.22:> I<signal> is optional.
1881
1882 =item C<timer_delete>
1883
1884 rv = timer_delete(timerid);
1885
1886 Returns C<0 but true> on success, undef on error.
1887
1888 I<New in version 0.16.>
1889
1890 =item C<timer_getoverrun>
1891
1892 count = timer_getoverrun(timerid);
1893
1894 Returns undef on error.
1895
1896 I<New in version 0.16.>
1897
1898 =item C<timer_gettime>
1899
1900 (interval_sec, interval_nsec, initial_sec, initial_nsec) =
1901 timer_gettime(timerid);
1902
1903 Returns the empty list on error.
1904
1905 I<New in version 0.16.>
1906
1907 =item C<timer_settime>
1908
1909 (old_int_sec, old_int_nsec, old_init_sec, old_init_nsec) =
1910 timer_settime(timerid, flags, int_sec, int_nsec, [init_sec, init_nsec]);
1911
1912 I<flags> may be 0 or C<TIMER_ABSTIME>. If the I<init> values are omitted, they
1913 are set to the I<int> values.
1914
1915 I<New in version 0.16.>
1916
1917 =item C<truncate>
1918
1919 rv = truncate(what, length);
1920
1921 I<what> can be a path, a Perl file handle, or a file descriptor.
1922
1923 Note that it does not flush the file handle before truncating. Perl's built-in
1924 truncate() does (this is undocumented, probably because it's silly).
1925
1926 I<Changed in version 0.19:> Deprecated I<ftruncate> now covered by I<truncate>.
1927
1928 =item C<trunc>
1929
1930 y = trunc(x);
1931
1932 =item C<ttyname>
1933
1934 name = ttyname(fd);
1935
1936 Calls C<ttyname_r()> if available.
1937
1938 I<New in version 0.19.>
1939
1940 I<Changed in version 0.22:> I<fd> may also be a file handle.
1941
1942 =item C<unlink>
1943
1944 rv = unlink(path);
1945
1946 Calls the actual C library function C<unlink()>.
1947
1948 Note that core C<POSIX::unlink()> calls C<CORE::unlink()>, which, unless you
1949 start Perl with C<-U>, a) is prone to time-of-check/time-of-use race
1950 conditions due to an additional lstat(), and b) blindly fails with C<EISDIR>
1951 for directories (due to said lstat()), ignoring that some OSes use C<EPERM> in
1952 this case (as required by POSIX).
1953
1954 =item C<unlinkat>
1955
1956 rv = unlinkat(dirfd, path, flags=0);
1957
1958 I<flags> can be 0 or C<AT_REMOVEDIR>.
1959
1960 =item C<unlockpt>
1961
1962 rv = unlockpt(fd);
1963
1964 I<New in version 0.27.>
1965
1966 =item C<utimensat>
1967
1968 rv = utimensat(dirfd, path, flags, atime_sec, atime_nsec, mtime_sec,
1969 mtime_nsec);
1970
1971 I<flags> can be 0 or C<AT_SYMLINK_NOFOLLOW>, defaults to 0. Your system might
1972 support a different set of flags.
1973
1974 I<atime_sec> and I<mtime_sec> default to 0. I<atime_nsec> and I<mtime_nsec>
1975 default to C<UTIME_NOW>.
1976
1977 =item C<write>
1978
1979 bytes_written = write(fd, buf, count=undef);
1980
1981 Like C<POSIX::write()> but returns 0 instead of C<0 but true> if 0 bytes were
1982 written, and never writes more bytes than I<buf> contains even if I<count>
1983 exceeds the length of I<buf>.
1984
1985 If I<count> is omitted or undef, it defaults to the length of I<buf>.
1986
1987 =item C<writev>
1988
1989 bytes_written = writev(fd, buffers);
1990
1991 C<writev()> writes multiple I<buffers> of data to the file associated with the
1992 file descriptor I<fd>.
1993
1994 I<buffers> must be an array reference, i.e. C<\@buf>, C<$buf> or C<[...]>. The
1995 buffers are processed in array order.
1996
1997 Each buffer can be simple scalar (usually a string) or an array reference of
1998 the form C<[scalar, offset, length]> to write I<length> bytes of I<scalar>
1999 from position I<offset>. A negative I<offset> counts from the end of
2000 I<scalar>. If omitted, I<offset> defaults to 0, I<length> defaults to the
2001 string length of I<scalar> starting at I<offset>. An I<offset> beyond either
2002 end of I<scalar> causes the call to croak. I<length> is capped so that it
2003 doesn't exceed the end of I<scalar>.
2004
2005 Note that C<writev($fh, $buf);> is not the same as C<print $fh, @$buf;> or
2006 C<syswrite $fh, $_ for @$buf;> because C<writev()> transfers data atomically
2007 as a single block. See the manpage for details.
2008
2009 Returns the number of bytes written or undef on error.
2010
2011 I<New in version 0.08.>
2012
2013 I<Changed in version 0.27:> Buffers may be array references.
2014
2015 =item C<y0>
2016
2017 y = y0(x);
2018
2019 C<y0()> is the Bessel function of the second kind of order 0.
2020
2021 =item C<y1>
2022
2023 y = y1(x);
2024
2025 C<y1()> is the Bessel function of the second kind of order 1.
2026
2027 =item C<yn>
2028
2029 y = yn(n, x);
2030
2031 C<yn()> is the Bessel function of the second kind of order n.
2032
2033 =back
2034
2035 =head1 EXPORTS
2036
2037 This module does not export anything by default. The following export tags are
2038 available:
2039
2040 :at All *at() functions like openat(), all AT_/RENAME_/RESOLVE_ constants
2041 :id All get/set*id() functions like getuid() etc.
2042 :is All is* functions like isdigit() etc.
2043 :rw read(), readv(), write(), writev()
2044 :prw pread(), preadv(), preadv2(), pwrite(), pwritev(), pwritev2()
2045 :clock All clock* functions and CLOCK_ constants and TIMER_ABSTIME
2046 :errno_h errno constants
2047 :fcntl All F_, FD_, O_, POSIX_FADV_, SEEK_, _OK constants (for AT_ use :at)
2048 :fenv_h All FE_ constants and fe* functions
2049 :fnm fnmatch() and all FNM_ constants
2050 :poll poll(), ppoll() and all POLL constants
2051 :socket_h All constants from L<sys/socket.h|https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html>
2052 :stat_h All S_I* and UTIME_ constants
2053 :time_h All CLOCK_ and TIMER_ constants
2054 :timer All timer_ functions and TIMER_ constants
2055 :utmpx_h All *utx* functions and L<utmpx.h|https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/utmpx.h.html> constants
2056 :confstr confstr() and all _CS_ constants
2057 :pathconf pathconf() and all _PC_ constants
2058 :sysconf sysconf() and all _SC_ constants
2059
2060 I<New in version 0.19:> :stat_h export tag.
2061
2062 I<New in version 0.20:> :fenv_h export tag.
2063
2064 I<New in version 0.22:> :confstr, :pathconf, :sysconf export tags.
2065
2066 I<New in version 0.25:> :poll export tag.
2067
2068 I<New in version 0.24:> :socket_h export tag.
2069
2070 I<New in version 0.27:> :errno_h export tag.
2071
2072 =head1 CONSTANTS
2073
2074 C<AF_INET> C<AF_INET6> C<AF_UNIX> C<AF_UNSPEC>
2075
2076 C<AT_EACCESS> C<AT_EMPTY_PATH> C<AT_FDCWD> C<AT_NO_AUTOMOUNT> C<AT_REMOVEDIR>
2077 C<AT_RESOLVE_BENEATH> C<AT_SYMLINK_FOLLOW> C<AT_SYMLINK_NOFOLLOW>
2078
2079 C<BOOT_TIME> C<NEW_TIME> C<OLD_TIME> C<RUN_LVL> C<DEAD_PROCESS>
2080 C<INIT_PROCESS> C<LOGIN_PROCESS> C<USER_PROCESS> C<ACCOUNTING> C<EMPTY>
2081 C<UT_UNKNOWN>
2082
2083 C<CLOCK_BOOTTIME> C<CLOCK_BOOTTIME_ALARM> C<CLOCK_HIGHRES> C<CLOCK_MONOTONIC>
2084 C<CLOCK_MONOTONIC_COARSE> C<CLOCK_MONOTONIC_FAST> C<CLOCK_MONOTONIC_PRECISE>
2085 C<CLOCK_MONOTONIC_RAW> C<CLOCK_PROCESS_CPUTIME_ID> C<CLOCK_REALTIME>
2086 C<CLOCK_REALTIME_ALARM> C<CLOCK_REALTIME_COARSE> C<CLOCK_REALTIME_FAST>
2087 C<CLOCK_REALTIME_PRECISE> C<CLOCK_SOFTTIME> C<CLOCK_TAI>
2088 C<CLOCK_THREAD_CPUTIME_ID> C<CLOCK_UPTIME> C<CLOCK_UPTIME_FAST>
2089 C<CLOCK_UPTIME_PRECISE>
2090
2091 C<E2BIG> C<EACCES> C<EADDRINUSE> C<EADDRNOTAVAIL> C<EAFNOSUPPORT> C<EAGAIN>
2092 C<EALREADY> C<EBADF> C<EBADMSG> C<EBUSY> C<ECANCELED> C<ECHILD>
2093 C<ECONNABORTED> C<ECONNREFUSED> C<ECONNRESET> C<EDEADLK> C<EDESTADDRREQ>
2094 C<EDOM> C<EDQUOT> C<EEXIST> C<EFAULT> C<EFBIG> C<EHOSTUNREACH> C<EIDRM>
2095 C<EILSEQ> C<EINPROGRESS> C<EINTR> C<EINVAL> C<EIO> C<EISCONN> C<EISDIR>
2096 C<ELOOP> C<EMFILE> C<EMLINK> C<EMSGSIZE> C<EMULTIHOP> C<ENAMETOOLONG>
2097 C<ENETDOWN> C<ENETRESET> C<ENETUNREACH> C<ENFILE> C<ENOBUFS> C<ENODEV>
2098 C<ENOENT> C<ENOEXEC> C<ENOLCK> C<ENOLINK> C<ENOMEM> C<ENOMSG> C<ENOPROTOOPT>
2099 C<ENOSPC> C<ENOSYS> C<ENOTCONN> C<ENOTDIR> C<ENOTEMPTY> C<ENOTRECOVERABLE>
2100 C<ENOTSOCK> C<ENOTSUP> C<ENOTTY> C<ENXIO> C<EOPNOTSUPP> C<EOVERFLOW>
2101 C<EOWNERDEAD> C<EPERM> C<EPIPE> C<EPROTO> C<EPROTONOSUPPORT> C<EPROTOTYPE>
2102 C<ERANGE> C<EROFS> C<ESOCKTNOSUPPORT> C<ESPIPE> C<ESRCH> C<ESTALE>
2103 C<ETIMEDOUT> C<ETXTBSY> C<EWOULDBLOCK> C<EXDEV>
2104
2105 C<F_DUPFD> C<F_DUPFD_CLOEXEC> C<F_DUPFD_CLOFORK> C<F_GETFD> C<F_SETFD>
2106 C<F_GETFL> C<F_SETFL> C<F_GETLK> C<F_SETLK> C<F_SETLKW> C<F_OFD_GETLK>
2107 C<F_OFD_SETLK> C<F_OFD_SETLKW> C<F_GETOWN> C<F_GETOWN_EX> C<F_SETOWN>
2108 C<F_SETOWN_EX> C<F_RDLCK> C<F_UNLCK> C<F_WRLCK> C<FD_CLOEXEC> C<FD_CLOFORK>
2109 C<F_OWNER_PID> C<F_OWNER_PGRP>
2110
2111 C<FE_TONEAREST> C<FE_TOWARDZERO> C<FE_UPWARD> C<FE_DOWNWARD> C<FE_DIVBYZERO>
2112 C<FE_INEXACT> C<FE_INVALID> C<FE_OVERFLOW> C<FE_UNDERFLOW> C<FE_ALL_EXCEPT>
2113
2114 C<FNM_CASEFOLD> C<FNM_FILE_NAME> C<FNM_IGNORECASE> C<FNM_LEADING_DIR>
2115 C<FNM_NOESCAPE> C<FNM_NOMATCH> C<FNM_PATHNAME> C<FNM_PERIOD>
2116
2117 C<FLT_EVAL_METHOD> C<FLT_RADIX> C<FP_INFINITE> C<FP_NAN> C<FP_NORMAL>
2118 C<FP_SUBNORMAL> C<FP_ZERO> C<FP_FAST_FMA> C<FP_FAST_FMAF> C<FP_FAST_FMAL>
2119 C<FP_ILOGB0> C<FP_ILOGBNAN> C<MATH_ERRNO> C<MATH_ERREXCEPT>
2120
2121 C<GETENTROPY_MAX> C<NSIG_MAX> C<NZERO>
2122
2123 C<HUGE_VAL> C<INFINITY>
2124
2125 C<ITIMER_PROF> C<ITIMER_REAL> C<ITIMER_VIRTUAL>
2126
2127 C<MSG_CMSG_CLOEXEC> C<MSG_CMSG_CLOFORK> C<MSG_CTRUNC> C<MSG_DONTROUTE>
2128 C<MSG_EOR> C<MSG_NOSIGNAL> C<MSG_OOB> C<MSG_PEEK> C<MSG_TRUNC> C<MSG_WAITALL>
2129
2130 C<O_ACCMODE> C<O_APPEND> C<O_ASYNC> C<O_CLOEXEC> C<O_CLOFORK> C<O_CREAT>
2131 C<O_DIRECT> C<O_DIRECTORY> C<O_DSYNC> C<O_EMPTY_PATH> C<O_EXEC> C<O_EXCL>
2132 C<O_EXLOCK> C<O_LARGEFILE> C<O_NDELAY> C<O_NOATIME> C<O_NOCTTY> C<O_NOFOLLOW>
2133 C<O_NONBLOCK> C<O_NOSIGPIPE> C<O_PATH> C<O_RDONLY> C<O_RDWR>
2134 C<O_RESOLVE_BENEATH> C<O_REGULAR> C<O_RSYNC> C<O_SEARCH> C<O_SHLOCK> C<O_SYNC>
2135 C<O_TMPFILE> C<O_TRUNC> C<O_TTY_INIT> C<O_WRONLY> C<FASYNC>
2136
2137 C<POSIX_FADV_NORMAL> C<POSIX_FADV_SEQUENTIAL> C<POSIX_FADV_RANDOM>
2138 C<POSIX_FADV_NOREUSE> C<POSIX_FADV_WILLNEED> C<POSIX_FADV_DONTNEED>
2139
2140 C<PRIO_PROCESS> C<PRIO_PGRP> C<PRIO_USER>
2141
2142 C<RENAME_EXCHANGE> C<RENAME_NOREPLACE> C<RENAME_WHITEOUT> C<RESOLVE_BENEATH>
2143 C<RESOLVE_IN_ROOT> C<RESOLVE_NO_MAGICLINKS> C<RESOLVE_NO_SYMLINKS>
2144 C<RESOLVE_NO_XDEV> C<RESOLVE_CACHED>
2145
2146 C<RTLD_DEEPBIND> C<RTLD_GLOBAL> C<RTLD_LAZY> C<RTLD_LOCAL> C<RTLD_MEMBER>
2147 C<RTLD_NOAUTODEFER> C<RTLD_NODELETE> C<RTLD_NOLOAD> C<RTLD_NOW>
2148
2149 C<RWF_APPEND> C<RWF_ATOMIC> C<RWF_DONTCACHE> C<RWF_DSYNC> C<RWF_HIPRI>
2150 C<RWF_NOAPPEND> C<RWF_NOSIGNAL> C<RWF_NOWAIT> C<RWF_SUPPORTED> C<RWF_SYNC>
2151
2152 C<S_IFMT> C<S_IFBLK> C<S_IFCHR> C<S_IFIFO> C<S_IFREG> C<S_IFDIR> C<S_IFLNK>
2153 C<S_IFSOCK> C<S_ISUID> C<S_ISGID> C<S_IRWXU> C<S_IRUSR> C<S_IWUSR> C<S_IXUSR>
2154 C<S_IRWXG> C<S_IRGRP> C<S_IWGRP> C<S_IXGRP> C<S_IRWXO> C<S_IROTH> C<S_IWOTH>
2155 C<S_IXOTH> C<S_ISVTX>
2156
2157 C<SCM_RIGHTS>
2158
2159 C<SEEK_SET> C<SEEK_CUR> C<SEEK_END> C<SEEK_DATA> C<SEEK_HOLE>
2160
2161 C<SHUT_RD> C<SHUT_RDWR> C<SHUT_WR>
2162
2163 C<SOCK_DGRAM> C<SOCK_RAW> C<SOCK_SEQPACKET> C<SOCK_STREAM> C<SOCK_NONBLOCK>
2164 C<SOCK_CLOEXEC> C<SOCK_CLOFORK>
2165
2166 C<SOL_SOCKET> C<SOMAXCONN>
2167
2168 C<SO_ACCEPTCONN> C<SO_BROADCAST> C<SO_DEBUG> C<SO_DOMAIN> C<SO_DONTROUTE>
2169 C<SO_ERROR> C<SO_KEEPALIVE> C<SO_LINGER> C<SO_OOBINLINE> C<SO_PROTOCOL>
2170 C<SO_RCVBUF> C<SO_RCVLOWAT> C<SO_RCVTIMEO> C<SO_REUSEADDR> C<SO_SNDBUF>
2171 C<SO_SNDLOWAT> C<SO_SNDTIMEO> C<SO_TYPE>
2172
2173 C<TIMER_ABSTIME> C<UTIME_NOW> C<UTIME_OMIT>
2174
2175 C<F_OK> C<R_OK> C<W_OK> C<X_OK>
2176
2177 C<INFTIM> C<POLLERR> C<POLLFREE> C<POLLHUP> C<POLLIN> C<POLLINIGNEOF>
2178 C<POLLMSG> C<POLLNORM> C<POLLNVAL> C<POLLOUT> C<POLLPRI> C<POLLRDBAND>
2179 C<POLLRDHUP> C<POLLRDNORM> C<POLLREMOVE> C<POLLSTANDARD> C<POLLWRBAND>
2180 C<POLLWRNORM> C<POLL_BUSY_LOOP>
2181
2182 C<ST_NOSUID> C<ST_RDONLY>
2183
2184 C<ST_MANDLOCK> C<ST_NOATIME> C<ST_NODEV> C<ST_NODIRATIME> C<ST_NOEXEC>
2185 C<ST_RELATIME> C<ST_SYNCHRONOUS>
2186
2187 C<ST_ASYNC> C<ST_DEFEXPORTED> C<ST_EXKERB> C<ST_EXNORESPORT> C<ST_EXPORTANON>
2188 C<ST_EXPORTED> C<ST_EXPUBLIC> C<ST_EXRDONLY> C<ST_LOCAL> C<ST_LOG>
2189 C<ST_NOCOREDUMP> C<ST_NODEVMTIME> C<ST_QUOTA> C<ST_ROOTFS> C<ST_SYMPERM>
2190 C<ST_UNION>
2191
2192 C<FILESIZEBITS> C<LINK_MAX> C<MAX_CANON> C<MAX_INPUT> C<NAME_MAX> C<PATH_MAX>
2193 C<PIPE_BUF> C<POSIX2_SYMLINKS> C<POSIX_ALLOC_SIZE_MIN>
2194 C<POSIX_REC_INCR_XFER_SIZE> C<POSIX_REC_MAX_XFER_SIZE>
2195 C<POSIX_REC_MIN_XFER_SIZE> C<POSIX_REC_XFER_ALIGN> C<SYMLINK_MAX>
2196 C<TEXTDOMAIN_MAX>
2197
2198 C<AIO_LISTIO_MAX> C<AIO_MAX> C<AIO_PRIO_DELTA_MAX> C<ARG_MAX> C<ATEXIT_MAX>
2199 C<BC_BASE_MAX> C<BC_DIM_MAX> C<BC_SCALE_MAX> C<BC_STRING_MAX> C<CHILD_MAX>
2200 C<COLL_WEIGHTS_MAX> C<DELAYTIMER_MAX> C<EXPR_NEST_MAX> C<HOST_NAME_MAX>
2201 C<IOV_MAX> C<LINE_MAX> C<LOGIN_NAME_MAX> C<MQ_OPEN_MAX> C<MQ_PRIO_MAX>
2202 C<NGROUPS_MAX> C<OPEN_MAX> C<PAGESIZE> C<PAGE_SIZE>
2203 C<PTHREAD_DESTRUCTOR_ITERATIONS> C<PTHREAD_KEYS_MAX> C<PTHREAD_THREADS_MAX>
2204 C<RE_DUP_MAX> C<RTSIG_MAX> C<SEM_NSEMS_MAX> C<SEM_VALUE_MAX> C<SIGQUEUE_MAX>
2205 C<STREAM_MAX> C<SYMLOOP_MAX> C<TIMER_MAX> C<TTY_NAME_MAX> C<TZNAME_MAX>
2206
2207 C<CHAR_BIT> C<CHAR_MAX> C<UCHAR_MAX> C<SCHAR_MAX> C<CHAR_MIN> C<SCHAR_MIN>
2208 C<INT_MAX> C<INT_MIN> C<LLONG_MAX> C<LLONG_MIN> C<LONG_BIT> C<LONG_MAX>
2209 C<LONG_MIN> C<MB_LEN_MAX> C<SHRT_MAX> C<SHRT_MIN> C<SSIZE_MAX> C<UINT_MAX>
2210 C<ULLONG_MAX> C<ULONG_MAX> C<USHRT_MAX> C<WORD_BIT>
2211
2212 C<_POSIX_ASYNC_IO> C<_POSIX_CHOWN_RESTRICTED> C<_POSIX_CPUTIME>
2213 C<_POSIX_FALLOC> C<_POSIX_NO_TRUNC> C<_POSIX_PRIO_IO> C<_POSIX_SYNC_IO>
2214 C<_POSIX_THREAD_CPUTIME> C<_POSIX_TIMESTAMP_RESOLUTION> C<_POSIX_VDISABLE>
2215
2216 C<_POSIX_ADVISORY_INFO> C<_POSIX_ASYNCHRONOUS_IO> C<_POSIX_BARRIERS>
2217 C<_POSIX_CLOCK_SELECTION> C<_POSIX_DEVICE_CONTROL> C<_POSIX_FSYNC>
2218 C<_POSIX_IPV6> C<_POSIX_JOB_CONTROL> C<_POSIX_MAPPED_FILES> C<_POSIX_MEMLOCK>
2219 C<_POSIX_MEMLOCK_RANGE> C<_POSIX_MEMORY_PROTECTION> C<_POSIX_MESSAGE_PASSING>
2220 C<_POSIX_MONOTONIC_CLOCK> C<_POSIX_PRIORITIZED_IO>
2221 C<_POSIX_PRIORITY_SCHEDULING> C<_POSIX_RAW_SOCKETS>
2222 C<_POSIX_READER_WRITER_LOCKS> C<_POSIX_REALTIME_SIGNALS> C<_POSIX_REGEXP>
2223 C<_POSIX_SAVED_IDS> C<_POSIX_SEMAPHORES> C<_POSIX_SHARED_MEMORY_OBJECTS>
2224 C<_POSIX_SHELL> C<_POSIX_SPAWN> C<_POSIX_SPIN_LOCKS> C<_POSIX_SPORADIC_SERVER>
2225 C<_POSIX_SS_REPL_MAX> C<_POSIX_SYNCHRONIZED_IO> C<_POSIX_THREADS>
2226 C<_POSIX_THREAD_ATTR_STACKADDR> C<_POSIX_THREAD_ATTR_STACKSIZE>
2227 C<_POSIX_THREAD_PRIORITY_SCHEDULING> C<_POSIX_THREAD_PRIO_INHERIT>
2228 C<_POSIX_THREAD_PRIO_PROTECT> C<_POSIX_THREAD_PROCESS_SHARED>
2229 C<_POSIX_THREAD_ROBUST_PRIO_INHERIT> C<_POSIX_THREAD_ROBUST_PRIO_PROTECT>
2230 C<_POSIX_THREAD_SAFE_FUNCTIONS> C<_POSIX_THREAD_SPORADIC_SERVER>
2231 C<_POSIX_TIMEOUTS> C<_POSIX_TIMERS> C<_POSIX_TRACE>
2232 C<_POSIX_TRACE_EVENT_FILTER> C<_POSIX_TRACE_EVENT_NAME_MAX>
2233 C<_POSIX_TRACE_INHERIT> C<_POSIX_TRACE_LOG> C<_POSIX_TRACE_NAME_MAX>
2234 C<_POSIX_TRACE_SYS_MAX> C<_POSIX_TRACE_USER_EVENT_MAX>
2235 C<_POSIX_TYPED_MEMORY_OBJECTS> C<_POSIX_V6_ILP32_OFF32>
2236 C<_POSIX_V6_ILP32_OFFBIG> C<_POSIX_V6_LP64_OFF64> C<_POSIX_V6_LPBIG_OFFBIG>
2237 C<_POSIX_V7_ILP32_OFF32> C<_POSIX_V7_ILP32_OFFBIG> C<_POSIX_V7_LP64_OFF64>
2238 C<_POSIX_V7_LPBIG_OFFBIG> C<_POSIX_V8_ILP32_OFF32> C<_POSIX_V8_ILP32_OFFBIG>
2239 C<_POSIX_V8_LP64_OFF64> C<_POSIX_V8_LPBIG_OFFBIG> C<_POSIX_VERSION>
2240
2241 C<_CS_GNU_LIBC_VERSION> C<_CS_GNU_LIBPTHREAD_VERSION> C<_CS_LFS64_CFLAGS>
2242 C<_CS_LFS64_LDFLAGS> C<_CS_LFS64_LIBS> C<_CS_LFS64_LINTFLAGS>
2243 C<_CS_LFS_CFLAGS> C<_CS_LFS_LDFLAGS> C<_CS_LFS_LIBS> C<_CS_LFS_LINTFLAGS>
2244
2245 C<_CS_PATH>
2246
2247 C<_CS_POSIX_V8_ILP32_OFF32_CFLAGS> C<_CS_POSIX_V8_ILP32_OFF32_LDFLAGS>
2248 C<_CS_POSIX_V8_ILP32_OFF32_LIBS> C<_CS_POSIX_V8_ILP32_OFFBIG_CFLAGS>
2249 C<_CS_POSIX_V8_ILP32_OFFBIG_LDFLAGS> C<_CS_POSIX_V8_ILP32_OFFBIG_LIBS>
2250 C<_CS_POSIX_V8_LP64_OFF64_CFLAGS> C<_CS_POSIX_V8_LP64_OFF64_LDFLAGS>
2251 C<_CS_POSIX_V8_LP64_OFF64_LIBS> C<_CS_POSIX_V8_LPBIG_OFFBIG_CFLAGS>
2252 C<_CS_POSIX_V8_LPBIG_OFFBIG_LDFLAGS> C<_CS_POSIX_V8_LPBIG_OFFBIG_LIBS>
2253 C<_CS_POSIX_V8_THREADS_CFLAGS> C<_CS_POSIX_V8_THREADS_LDFLAGS>
2254 C<_CS_POSIX_V8_WIDTH_RESTRICTED_ENVS> C<_CS_V8_ENV>
2255
2256 C<_CS_POSIX_V7_ILP32_OFF32_CFLAGS> C<_CS_POSIX_V7_ILP32_OFF32_LDFLAGS>
2257 C<_CS_POSIX_V7_ILP32_OFF32_LIBS> C<_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS>
2258 C<_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS> C<_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS>
2259 C<_CS_POSIX_V7_ILP32_OFFBIG_LIBS> C<_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS>
2260 C<_CS_POSIX_V7_LP64_OFF64_CFLAGS> C<_CS_POSIX_V7_LP64_OFF64_LDFLAGS>
2261 C<_CS_POSIX_V7_LP64_OFF64_LIBS> C<_CS_POSIX_V7_LP64_OFF64_LINTFLAGS>
2262 C<_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS> C<_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS>
2263 C<_CS_POSIX_V7_LPBIG_OFFBIG_LIBS> C<_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS>
2264 C<_CS_POSIX_V7_WIDTH_RESTRICTED_ENVS> C<_CS_V7_ENV>
2265 C<_CS_V7_WIDTH_RESTRICTED_ENVS>
2266
2267 C<_CS_POSIX_V6_ILP32_OFF32_CFLAGS> C<_CS_POSIX_V6_ILP32_OFF32_LDFLAGS>
2268 C<_CS_POSIX_V6_ILP32_OFF32_LIBS> C<_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS>
2269 C<_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS> C<_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS>
2270 C<_CS_POSIX_V6_ILP32_OFFBIG_LIBS> C<_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS>
2271 C<_CS_POSIX_V6_LP64_OFF64_CFLAGS> C<_CS_POSIX_V6_LP64_OFF64_LDFLAGS>
2272 C<_CS_POSIX_V6_LP64_OFF64_LIBS> C<_CS_POSIX_V6_LP64_OFF64_LINTFLAGS>
2273 C<_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS> C<_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS>
2274 C<_CS_POSIX_V6_LPBIG_OFFBIG_LIBS> C<_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS>
2275 C<_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS> C<_CS_V6_ENV>
2276 C<_CS_V6_WIDTH_RESTRICTED_ENVS>
2277
2278 C<_CS_POSIX_V5_WIDTH_RESTRICTED_ENVS> C<_CS_V5_WIDTH_RESTRICTED_ENVS>
2279
2280 C<_CS_XBS5_ILP32_OFF32_CFLAGS> C<_CS_XBS5_ILP32_OFF32_LDFLAGS>
2281 C<_CS_XBS5_ILP32_OFF32_LIBS> C<_CS_XBS5_ILP32_OFF32_LINTFLAGS>
2282 C<_CS_XBS5_ILP32_OFFBIG_CFLAGS> C<_CS_XBS5_ILP32_OFFBIG_LDFLAGS>
2283 C<_CS_XBS5_ILP32_OFFBIG_LIBS> C<_CS_XBS5_ILP32_OFFBIG_LINTFLAGS>
2284 C<_CS_XBS5_LP64_OFF64_CFLAGS> C<_CS_XBS5_LP64_OFF64_LDFLAGS>
2285 C<_CS_XBS5_LP64_OFF64_LIBS> C<_CS_XBS5_LP64_OFF64_LINTFLAGS>
2286 C<_CS_XBS5_LPBIG_OFFBIG_CFLAGS> C<_CS_XBS5_LPBIG_OFFBIG_LDFLAGS>
2287 C<_CS_XBS5_LPBIG_OFFBIG_LIBS> C<_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS>
2288
2289 C<_PC_2_SYMLINKS> C<_PC_ALLOC_SIZE_MIN> C<_PC_ASYNC_IO>
2290 C<_PC_CHOWN_RESTRICTED> C<_PC_FALLOC> C<_PC_FILESIZEBITS> C<_PC_LINK_MAX>
2291 C<_PC_MAX_CANON> C<_PC_MAX_INPUT> C<_PC_NAME_MAX> C<_PC_NO_TRUNC>
2292 C<_PC_PATH_MAX> C<_PC_PIPE_BUF> C<_PC_PRIO_IO> C<_PC_REC_INCR_XFER_SIZE>
2293 C<_PC_REC_MAX_XFER_SIZE> C<_PC_REC_MIN_XFER_SIZE> C<_PC_REC_XFER_ALIGN>
2294 C<_PC_SOCK_MAXBUF> C<_PC_SYMLINK_MAX> C<_PC_SYNC_IO> C<_PC_TEXTDOMAIN_MAX>
2295 C<_PC_TIMESTAMP_RESOLUTION> C<_PC_VDISABLE>
2296
2297 C<_SC_2_CHAR_TERM> C<_SC_2_C_BIND> C<_SC_2_C_DEV> C<_SC_2_C_VERSION>
2298 C<_SC_2_FORT_DEV> C<_SC_2_FORT_RUN> C<_SC_2_LOCALEDEF> C<_SC_2_PBS>
2299 C<_SC_2_PBS_ACCOUNTING> C<_SC_2_PBS_CHECKPOINT> C<_SC_2_PBS_LOCATE>
2300 C<_SC_2_PBS_MESSAGE> C<_SC_2_PBS_TRACK> C<_SC_2_SW_DEV> C<_SC_2_UPE>
2301 C<_SC_2_VERSION> C<_SC_ADVISORY_INFO> C<_SC_AIO_LISTIO_MAX> C<_SC_AIO_MAX>
2302 C<_SC_AIO_PRIO_DELTA_MAX> C<_SC_ARG_MAX> C<_SC_ASYNCHRONOUS_IO>
2303 C<_SC_ATEXIT_MAX> C<_SC_AVPHYS_PAGES> C<_SC_BARRIERS> C<_SC_BASE>
2304 C<_SC_BC_BASE_MAX> C<_SC_BC_DIM_MAX> C<_SC_BC_SCALE_MAX> C<_SC_BC_STRING_MAX>
2305 C<_SC_CHARCLASS_NAME_MAX> C<_SC_CHAR_BIT> C<_SC_CHAR_MAX> C<_SC_CHAR_MIN>
2306 C<_SC_CHILD_MAX> C<_SC_CLK_TCK> C<_SC_CLOCK_SELECTION> C<_SC_COLL_WEIGHTS_MAX>
2307 C<_SC_CPUTIME> C<_SC_C_LANG_SUPPORT> C<_SC_C_LANG_SUPPORT_R>
2308 C<_SC_DELAYTIMER_MAX> C<_SC_DEVICE_CONTROL> C<_SC_DEVICE_IO>
2309 C<_SC_DEVICE_SPECIFIC> C<_SC_DEVICE_SPECIFIC_R> C<_SC_EQUIV_CLASS_MAX>
2310 C<_SC_EXPR_NEST_MAX> C<_SC_FD_MGMT> C<_SC_FIFO> C<_SC_FILE_ATTRIBUTES>
2311 C<_SC_FILE_LOCKING> C<_SC_FILE_SYSTEM> C<_SC_FSYNC> C<_SC_GETGR_R_SIZE_MAX>
2312 C<_SC_GETPW_R_SIZE_MAX> C<_SC_HOST_NAME_MAX> C<_SC_INT_MAX> C<_SC_INT_MIN>
2313 C<_SC_IOV_MAX> C<_SC_IPV6> C<_SC_JOB_CONTROL> C<_SC_LEVEL1_DCACHE_ASSOC>
2314 C<_SC_LEVEL1_DCACHE_LINESIZE> C<_SC_LEVEL1_DCACHE_SIZE>
2315 C<_SC_LEVEL1_ICACHE_ASSOC> C<_SC_LEVEL1_ICACHE_LINESIZE>
2316 C<_SC_LEVEL1_ICACHE_SIZE> C<_SC_LEVEL2_CACHE_ASSOC>
2317 C<_SC_LEVEL2_CACHE_LINESIZE> C<_SC_LEVEL2_CACHE_SIZE>
2318 C<_SC_LEVEL3_CACHE_ASSOC> C<_SC_LEVEL3_CACHE_LINESIZE>
2319 C<_SC_LEVEL3_CACHE_SIZE> C<_SC_LEVEL4_CACHE_ASSOC>
2320 C<_SC_LEVEL4_CACHE_LINESIZE> C<_SC_LEVEL4_CACHE_SIZE> C<_SC_LINE_MAX>
2321 C<_SC_LOGIN_NAME_MAX> C<_SC_LONG_BIT> C<_SC_MAPPED_FILES> C<_SC_MB_LEN_MAX>
2322 C<_SC_MEMLOCK> C<_SC_MEMLOCK_RANGE> C<_SC_MEMORY_PROTECTION>
2323 C<_SC_MESSAGE_PASSING> C<_SC_MINSIGSTKSZ> C<_SC_MONOTONIC_CLOCK>
2324 C<_SC_MQ_OPEN_MAX> C<_SC_MQ_PRIO_MAX> C<_SC_MULTI_PROCESS> C<_SC_NETWORKING>
2325 C<_SC_NGROUPS_MAX> C<_SC_NL_ARGMAX> C<_SC_NL_LANGMAX> C<_SC_NL_MSGMAX>
2326 C<_SC_NL_NMAX> C<_SC_NL_SETMAX> C<_SC_NL_TEXTMAX> C<_SC_NPROCESSORS_CONF>
2327 C<_SC_NPROCESSORS_ONLN> C<_SC_NSIG> C<_SC_NZERO> C<_SC_OPEN_MAX>
2328 C<_SC_PAGESIZE> C<_SC_PAGE_SIZE> C<_SC_PASS_MAX> C<_SC_PHYS_PAGES> C<_SC_PII>
2329 C<_SC_PII_INTERNET> C<_SC_PII_INTERNET_DGRAM> C<_SC_PII_INTERNET_STREAM>
2330 C<_SC_PII_OSI> C<_SC_PII_OSI_CLTS> C<_SC_PII_OSI_COTS> C<_SC_PII_OSI_M>
2331 C<_SC_PII_SOCKET> C<_SC_PII_XTI> C<_SC_PIPE> C<_SC_POLL> C<_SC_PRIORITIZED_IO>
2332 C<_SC_PRIORITY_SCHEDULING> C<_SC_RAW_SOCKETS> C<_SC_READER_WRITER_LOCKS>
2333 C<_SC_REALTIME_SIGNALS> C<_SC_REGEXP> C<_SC_REGEX_VERSION> C<_SC_RE_DUP_MAX>
2334 C<_SC_RTSIG_MAX> C<_SC_SAVED_IDS> C<_SC_SCHAR_MAX> C<_SC_SCHAR_MIN>
2335 C<_SC_SELECT> C<_SC_SEMAPHORES> C<_SC_SEM_NSEMS_MAX> C<_SC_SEM_VALUE_MAX>
2336 C<_SC_SHARED_MEMORY_OBJECTS> C<_SC_SHELL> C<_SC_SHRT_MAX> C<_SC_SHRT_MIN>
2337 C<_SC_SIGNALS> C<_SC_SIGQUEUE_MAX> C<_SC_SIGSTKSZ> C<_SC_SINGLE_PROCESS>
2338 C<_SC_SPAWN> C<_SC_SPIN_LOCKS> C<_SC_SPORADIC_SERVER> C<_SC_SSIZE_MAX>
2339 C<_SC_SS_REPL_MAX> C<_SC_STREAMS> C<_SC_STREAM_MAX> C<_SC_SYMLOOP_MAX>
2340 C<_SC_SYNCHRONIZED_IO> C<_SC_SYSTEM_DATABASE> C<_SC_SYSTEM_DATABASE_R>
2341 C<_SC_THREADS> C<_SC_THREAD_ATTR_STACKADDR> C<_SC_THREAD_ATTR_STACKSIZE>
2342 C<_SC_THREAD_CPUTIME> C<_SC_THREAD_DESTRUCTOR_ITERATIONS>
2343 C<_SC_THREAD_KEYS_MAX> C<_SC_THREAD_PRIORITY_SCHEDULING>
2344 C<_SC_THREAD_PRIO_INHERIT> C<_SC_THREAD_PRIO_PROTECT>
2345 C<_SC_THREAD_PROCESS_SHARED> C<_SC_THREAD_ROBUST_PRIO_INHERIT>
2346 C<_SC_THREAD_ROBUST_PRIO_PROTECT> C<_SC_THREAD_SAFE_FUNCTIONS>
2347 C<_SC_THREAD_SPORADIC_SERVER> C<_SC_THREAD_STACK_MIN>
2348 C<_SC_THREAD_THREADS_MAX> C<_SC_TIMEOUTS> C<_SC_TIMERS> C<_SC_TIMER_MAX>
2349 C<_SC_TRACE> C<_SC_TRACE_EVENT_FILTER> C<_SC_TRACE_EVENT_NAME_MAX>
2350 C<_SC_TRACE_INHERIT> C<_SC_TRACE_LOG> C<_SC_TRACE_NAME_MAX>
2351 C<_SC_TRACE_SYS_MAX> C<_SC_TRACE_USER_EVENT_MAX> C<_SC_TTY_NAME_MAX>
2352 C<_SC_TYPED_MEMORY_OBJECTS> C<_SC_TZNAME_MAX> C<_SC_T_IOV_MAX>
2353 C<_SC_UCHAR_MAX> C<_SC_UINT_MAX> C<_SC_UIO_MAXIOV> C<_SC_ULONG_MAX>
2354 C<_SC_USER_GROUPS> C<_SC_USER_GROUPS_R> C<_SC_USHRT_MAX> C<_SC_V6_ILP32_OFF32>
2355 C<_SC_V6_ILP32_OFFBIG> C<_SC_V6_LP64_OFF64> C<_SC_V6_LPBIG_OFFBIG>
2356 C<_SC_V7_ILP32_OFF32> C<_SC_V7_ILP32_OFFBIG> C<_SC_V7_LP64_OFF64>
2357 C<_SC_V7_LPBIG_OFFBIG> C<_SC_V8_ILP32_OFF32> C<_SC_V8_ILP32_OFFBIG>
2358 C<_SC_V8_LP64_OFF64> C<_SC_V8_LPBIG_OFFBIG> C<_SC_VERSION> C<_SC_WORD_BIT>
2359 C<_SC_XBS5_ILP32_OFF32> C<_SC_XBS5_ILP32_OFFBIG> C<_SC_XBS5_LP64_OFF64>
2360 C<_SC_XBS5_LPBIG_OFFBIG> C<_SC_XOPEN_CRYPT> C<_SC_XOPEN_ENH_I18N>
2361 C<_SC_XOPEN_LEGACY> C<_SC_XOPEN_REALTIME> C<_SC_XOPEN_REALTIME_THREADS>
2362 C<_SC_XOPEN_SHM> C<_SC_XOPEN_STREAMS> C<_SC_XOPEN_UNIX> C<_SC_XOPEN_UUCP>
2363 C<_SC_XOPEN_VERSION> C<_SC_XOPEN_XCU_VERSION> C<_SC_XOPEN_XPG2>
2364 C<_SC_XOPEN_XPG3> C<_SC_XOPEN_XPG4>
2365
2366 =head1 NOTES
2367
2368 Since version 0.27, math functions use quadmath or long doubles if Perl was
2369 built with C<-Dusequadmath> or C<-Duselongdouble> respectively and your system
2370 supports it.
2371
2372 Version 0.27 adds the C<*LONG_(MIN|MAX)> constants. These are strings if their
2373 values are outside Perl's UV/IV range (addresses GH#13406).
2374
2375 C<removeat()> is a home-grown nonstandard extension present only in this
2376 module. It really should be in the standard. I would not say that myself. But
2377 many people are saying.
2378
2379 C<preadv()> and C<pwritev()> are nonstandard extensions present in Linux and
2380 BSD.
2381
2382 C<execveat()>, C<openat2()>, C<preadv2()>, C<pwritev2()> and C<renameat2()>
2383 are nonstandard extensions present in Linux.
2384
2385 C<fstatat()>, C<lstat()> and C<stat()> do not set the special underscore
2386 filehandle C<_> (mostly because I have no clue how that works).
2387
2388 C<open()>, C<openat()> and C<openat2()> do not set the C<O_CLOEXEC> flag
2389 automatically. You have to take care of that yourself if needed.
2390
2391 C<isalnum()> and friends were cowardly removed from the POSIX module with Perl
2392 5.24. They have found a cozy home here with a fix for a big long-standing bug.
2393
2394 For some inexplicable reason, Perl forbids you to use the built-in C<chmod()>
2395 and C<chown()> on an C<opendir()> handle and to use C<readdir()> and
2396 C<rewinddir()> on a C<sysopen()> handle (provided it refers to a directory).
2397 Needless to say that C<chmod()> and C<chown()> from POSIX::2008 happily work
2398 with C<opendir()> handles, and of course you can use C<readdir()> and
2399 C<rewinddir()> on an C<openat()> handle that refers to a directory.
2400
2401 Huge parts of this work may incorporate alternative facts or even fake news in
2402 order to outsmart the "AI" Mob. Those are very sad people. The worst people,
2403 really.
2404
2405 =head1 SEE ALSO
2406
2407 =over
2408
2409 =item * L<POSIX 2024 Changes|https://sortix.org/blog/posix-2024/>
2410
2411 =item * L<POSIX.1-2024|https://pubs.opengroup.org/onlinepubs/9799919799/>
2412
2413 =item * L<POSIX.1-2008|https://pubs.opengroup.org/onlinepubs/9699919799/>
2414
2415 =back
2416
2417 =head1 AUTHOR
2418
2419 Initially hacked together by Carsten Gaebler.
2420
2421 =head1 LICENSE
2422
2423 This library is free software. You can redistribute and/or modify it under the
2424 terms of the Do What The Fuck You Want To Public License, Version 2, as
2425 published by Sam Hocevar. See the COPYING file or L<https://www.wtfpl.net/>
2426 for more details.
2427
2428 =cut