This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX.pod: Add cautions about locale use
[perl5.git] / ext / POSIX / lib / POSIX.pod
index 82bc213..712132b 100644 (file)
@@ -21,19 +21,10 @@ The POSIX module permits you to access all (or nearly all) the standard
 POSIX 1003.1 identifiers.  Many of these identifiers have been given Perl-ish
 interfaces.
 
 POSIX 1003.1 identifiers.  Many of these identifiers have been given Perl-ish
 interfaces.
 
-I<Everything is exported by default> with the exception of any POSIX
-functions with the same name as a built-in Perl function, such as
-C<abs>, C<alarm>, C<rmdir>, C<write>, etc.., which will be exported
-only if you ask for them explicitly.  This is an unfortunate backwards
-compatibility feature.  You can stop the exporting by saying S<C<use
-POSIX ()>> and then use the fully qualified names (I<e.g.>, C<POSIX::SEEK_END>),
-or by giving an explicit import list.  If you do neither, and opt for the
-default, S<C<use POSIX;>> has to import I<553 symbols>.
-
 This document gives a condensed list of the features available in the POSIX
 module.  Consult your operating system's manpages for general information on
 most features.  Consult L<perlfunc> for functions which are noted as being
 This document gives a condensed list of the features available in the POSIX
 module.  Consult your operating system's manpages for general information on
 most features.  Consult L<perlfunc> for functions which are noted as being
-identical to Perl's builtin functions.
+identical or almost identical to Perl's builtin functions.
 
 The first section describes POSIX functions from the 1003.1 specification.
 The second section describes some classes for signal objects, TTY objects,
 
 The first section describes POSIX functions from the 1003.1 specification.
 The second section describes some classes for signal objects, TTY objects,
@@ -41,34 +32,17 @@ and other miscellaneous objects.  The remaining sections list various
 constants and macros in an organization which roughly follows IEEE Std
 1003.1b-1993.
 
 constants and macros in an organization which roughly follows IEEE Std
 1003.1b-1993.
 
-=head1 C99 "math" interfaces
-
-Mathematic functions and constants from the C99 standard are available
-on many platforms.  In the below functions list they are marked [C99].
-
-The mathematical constants include:
-
-  M_SQRT2    # the square root of two
-  M_E        # the Euler's (or Napier's) constant
-  M_PI       # the Pi
-
-and other related/similar ones
-
-  M_SQRT1_2  # sqrt(1/2)
-  M_LN10 M_LN2 M_LOG10E M_LOG2E
-  M_1_PI M_2_PI M_2_SQRTPI M_PI_2 M_PI_4  # 1/Pi, ..., Pi/4
-
-and the
-
-  INFINITY
-  NAN
-
-The last two are also available as just Inf and NaN.
-
-The Bessel functions (j0, j1, jn, y0, y1, yn) are also available.
-
 =head1 CAVEATS
 
 =head1 CAVEATS
 
+I<Everything is exported by default> (with a handful of exceptions).
+This is an unfortunate backwards compatibility feature and its use is
+B<strongly L<discouraged|perlpolicy/discouraged>>.
+You should either prevent the exporting (by saying S<C<use POSIX ();>>,
+as usual) and then use fully qualified names (e.g. C<POSIX::SEEK_END>),
+or give an explicit import list.
+If you do neither and opt for the default (as in S<C<use POSIX;>>), you
+will import I<hundreds and hundreds> of symbols into your namespace.
+
 A few functions are not implemented because they are C specific.  If you
 attempt to call these, they will print a message telling you that they
 aren't implemented, and suggest using the Perl equivalent, should one
 A few functions are not implemented because they are C specific.  If you
 attempt to call these, they will print a message telling you that they
 aren't implemented, and suggest using the Perl equivalent, should one
@@ -107,8 +81,13 @@ if the handler does not return normally (it e.g.  does a C<longjmp>).
 
 =item C<abs>
 
 
 =item C<abs>
 
-This is identical to Perl's builtin C<abs()> function, returning
-the absolute value of its numerical argument.
+This is identical to Perl's builtin C<abs()> function, returning the absolute
+value of its numerical argument (except that C<POSIX::abs()> must be provided
+an explicit value (rather than relying on an implicit C<$_>):
+
+    $absolute_value = POSIX::abs(42);   # good
+
+    $absolute_value = POSIX::abs();     # throws exception
 
 =item C<access>
 
 
 =item C<access>
 
@@ -130,14 +109,19 @@ the arcus cosine of its numerical argument.  See also L<Math::Trig>.
 
 =item C<acosh>
 
 
 =item C<acosh>
 
-This is identical to the C function C<acos()>, returning the
+This is identical to the C function C<acosh()>, returning the
 hyperbolic arcus cosine of its numerical argument [C99].  See also
 L<Math::Trig>.
 
 =item C<alarm>
 
 hyperbolic arcus cosine of its numerical argument [C99].  See also
 L<Math::Trig>.
 
 =item C<alarm>
 
-This is identical to Perl's builtin C<alarm()> function,
-either for arming or disarming the C<SIGARLM> timer.
+This is identical to Perl's builtin C<alarm()> function, either for arming or
+disarming the C<SIGARLM> timer, except that C<POSIX::alarm()> must be provided
+an explicit value (rather than relying on an implicit C<$_>):
+
+    POSIX::alarm(3)     # good
+
+    POSIX::alarm()      # throws exception
 
 =item C<asctime>
 
 
 =item C<asctime>
 
@@ -162,7 +146,7 @@ the arcus sine of its numerical argument.  See also L<Math::Trig>.
 
 =item C<asinh>
 
 
 =item C<asinh>
 
-This is identical to the C function C<asin()>, returning the
+This is identical to the C function C<asinh()>, returning the
 hyperbolic arcus sine of its numerical argument [C99].  See also
 L<Math::Trig>.
 
 hyperbolic arcus sine of its numerical argument [C99].  See also
 L<Math::Trig>.
 
@@ -178,7 +162,7 @@ arcus tangent of its numerical argument.  See also L<Math::Trig>.
 
 =item C<atanh>
 
 
 =item C<atanh>
 
-This is identical to the C function C<atan()>, returning the
+This is identical to the C function C<atanh()>, returning the
 hyperbolic arcus tangent of its numerical argument [C99].  See also
 L<Math::Trig>.
 
 hyperbolic arcus tangent of its numerical argument [C99].  See also
 L<Math::Trig>.
 
@@ -190,22 +174,22 @@ coordinate and the I<x> coordinate.  See also L<Math::Trig>.
 
 =item C<atexit>
 
 
 =item C<atexit>
 
-C<atexit()> is C-specific: use C<END {}> instead, see L<perlmod>.
+Not implemented.  C<atexit()> is C-specific: use C<END {}> instead, see L<perlmod>.
 
 =item C<atof>
 
 
 =item C<atof>
 
-C<atof()> is C-specific.  Perl converts strings to numbers transparently.
+Not implemented.  C<atof()> is C-specific.  Perl converts strings to numbers transparently.
 If you need to force a scalar to a number, add a zero to it.
 
 =item C<atoi>
 
 If you need to force a scalar to a number, add a zero to it.
 
 =item C<atoi>
 
-C<atoi()> is C-specific.  Perl converts strings to numbers transparently.
+Not implemented.  C<atoi()> is C-specific.  Perl converts strings to numbers transparently.
 If you need to force a scalar to a number, add a zero to it.
 If you need to have just the integer part, see L<perlfunc/int>.
 
 =item C<atol>
 
 If you need to force a scalar to a number, add a zero to it.
 If you need to have just the integer part, see L<perlfunc/int>.
 
 =item C<atol>
 
-C<atol()> is C-specific.  Perl converts strings to numbers transparently.
+Not implemented.  C<atol()> is C-specific.  Perl converts strings to numbers transparently.
 If you need to force a scalar to a number, add a zero to it.
 If you need to have just the integer part, see L<perlfunc/int>.
 
 If you need to force a scalar to a number, add a zero to it.
 If you need to have just the integer part, see L<perlfunc/int>.
 
@@ -216,7 +200,7 @@ see L<Search::Dict>.
 
 =item C<calloc>
 
 
 =item C<calloc>
 
-C<calloc()> is C-specific.  Perl does memory management transparently.
+Not implemented.  C<calloc()> is C-specific.  Perl does memory management transparently.
 
 =item C<cbrt>
 
 
 =item C<cbrt>
 
@@ -229,13 +213,27 @@ integer value greater than or equal to the given numerical argument.
 
 =item C<chdir>
 
 
 =item C<chdir>
 
-This is identical to Perl's builtin C<chdir()> function, allowing
-one to change the working (default) directory, see L<perlfunc/chdir>.
+This is identical to Perl's builtin C<chdir()> function, allowing one to
+change the working (default) directory -- see L<perlfunc/chdir> -- with the
+exception that C<POSIX::chdir()> must be provided an explicit value (rather
+than relying on an implicit C<$_>):
+
+    $rv = POSIX::chdir('path/to/dir');      # good
+
+    $rv = POSIX::chdir();                   # throws exception
 
 =item C<chmod>
 
 This is identical to Perl's builtin C<chmod()> function, allowing
 
 =item C<chmod>
 
 This is identical to Perl's builtin C<chmod()> function, allowing
-one to change file and directory permissions, see L<perlfunc/chmod>.
+one to change file and directory permissions -- see L<perlfunc/chmod> -- with
+the exception that C<POSIX::chmod()> can only change one file at a time
+(rather than a list of files):
+
+    $c = chmod 0664, $file1, $file2;          # good
+
+    $c = POSIX::chmod 0664, $file1;           # throws exception
+
+    $c = POSIX::chmod 0664, $file1, $file2;   # throws exception
 
 =item C<chown>
 
 
 =item C<chown>
 
@@ -244,7 +242,7 @@ to change file and directory owners and groups, see L<perlfunc/chown>.
 
 =item C<clearerr>
 
 
 =item C<clearerr>
 
-Use the method C<IO::Handle::clearerr()> instead, to reset the error
+Not implemented.  Use the method C<IO::Handle::clearerr()> instead, to reset the error
 state (if any) and EOF state (if any) of the given stream.
 
 =item C<clock>
 state (if any) and EOF state (if any) of the given stream.
 
 =item C<clock>
@@ -282,7 +280,9 @@ the hyperbolic cosine of its numeric argument.  See also L<Math::Trig>.
 
 =item C<copysign>
 
 
 =item C<copysign>
 
-Returns the x but with the sign of y [C99].
+Returns C<x> but with the sign of C<y> [C99].
+
+ $x_with_sign_of_y = POSIX::copysign($x, $y);
 
 See also L</signbit>.
 
 
 See also L</signbit>.
 
@@ -321,7 +321,7 @@ by C<time()>), see L</time>.
 
 =item C<div>
 
 
 =item C<div>
 
-C<div()> is C-specific, use L<perlfunc/int> on the usual C</> division and
+Not implemented.  C<div()> is C-specific, use L<perlfunc/int> on the usual C</> division and
 the modulus C<%>.
 
 =item C<dup>
 the modulus C<%>.
 
 =item C<dup>
@@ -362,27 +362,27 @@ This identical to the numerical values of the C<$!>, see L<perlvar/$ERRNO>.
 
 =item C<execl>
 
 
 =item C<execl>
 
-C<execl()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execl()> is C-specific, see L<perlfunc/exec>.
 
 =item C<execle>
 
 
 =item C<execle>
 
-C<execle()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execle()> is C-specific, see L<perlfunc/exec>.
 
 =item C<execlp>
 
 
 =item C<execlp>
 
-C<execlp()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execlp()> is C-specific, see L<perlfunc/exec>.
 
 =item C<execv>
 
 
 =item C<execv>
 
-C<execv()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execv()> is C-specific, see L<perlfunc/exec>.
 
 =item C<execve>
 
 
 =item C<execve>
 
-C<execve()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execve()> is C-specific, see L<perlfunc/exec>.
 
 =item C<execvp>
 
 
 =item C<execvp>
 
-C<execvp()> is C-specific, see L<perlfunc/exec>.
+Not implemented.  C<execvp()> is C-specific, see L<perlfunc/exec>.
 
 =item C<exit>
 
 
 =item C<exit>
 
@@ -408,7 +408,7 @@ the absolute value of the numerical argument, see L<perlfunc/abs>.
 
 =item C<fclose>
 
 
 =item C<fclose>
 
-Use method C<IO::Handle::close()> instead, or see L<perlfunc/close>.
+Not implemented.  Use method C<IO::Handle::close()> instead, or see L<perlfunc/close>.
 
 =item C<fcntl>
 
 
 =item C<fcntl>
 
@@ -417,37 +417,37 @@ see L<perlfunc/fcntl>.
 
 =item C<fdopen>
 
 
 =item C<fdopen>
 
-Use method C<IO::Handle::new_from_fd()> instead, or see L<perlfunc/open>.
+Not implemented.  Use method C<IO::Handle::new_from_fd()> instead, or see L<perlfunc/open>.
 
 =item C<feof>
 
 
 =item C<feof>
 
-Use method C<IO::Handle::eof()> instead, or see L<perlfunc/eof>.
+Not implemented.  Use method C<IO::Handle::eof()> instead, or see L<perlfunc/eof>.
 
 =item C<ferror>
 
 
 =item C<ferror>
 
-Use method C<IO::Handle::error()> instead.
+Not implemented.  Use method C<IO::Handle::error()> instead.
 
 =item C<fflush>
 
 
 =item C<fflush>
 
-Use method C<IO::Handle::flush()> instead.
+Not implemented.  Use method C<IO::Handle::flush()> instead.
 See also C<L<perlvar/$OUTPUT_AUTOFLUSH>>.
 
 =item C<fgetc>
 
 See also C<L<perlvar/$OUTPUT_AUTOFLUSH>>.
 
 =item C<fgetc>
 
-Use method C<IO::Handle::getc()> instead, or see L<perlfunc/read>.
+Not implemented.  Use method C<IO::Handle::getc()> instead, or see L<perlfunc/read>.
 
 =item C<fgetpos>
 
 
 =item C<fgetpos>
 
-Use method C<IO::Seekable::getpos()> instead, or see L<perlfunc/seek>.
+Not implemented.  Use method C<IO::Seekable::getpos()> instead, or see L<perlfunc/seek>.
 
 =item C<fgets>
 
 
 =item C<fgets>
 
-Use method C<IO::Handle::gets()> instead.  Similar to E<lt>E<gt>, also known
+Not implemented.  Use method C<IO::Handle::gets()> instead.  Similar to E<lt>E<gt>, also known
 as L<perlfunc/readline>.
 
 =item C<fileno>
 
 as L<perlfunc/readline>.
 
 =item C<fileno>
 
-Use method C<IO::Handle::fileno()> instead, or see L<perlfunc/fileno>.
+Not implemented.  Use method C<IO::Handle::fileno()> instead, or see L<perlfunc/fileno>.
 
 =item C<floor>
 
 
 =item C<floor>
 
@@ -456,7 +456,7 @@ integer value less than or equal to the numerical argument.
 
 =item C<fdim>
 
 
 =item C<fdim>
 
-"Positive difference", x - y if x > y, zero otherwise [C99].
+"Positive difference", S<C<x - y>> if S<C<x E<gt> y>>, zero otherwise [C99].
 
 =item C<fegetround>
 
 
 =item C<fegetround>
 
@@ -464,24 +464,30 @@ Returns the current floating point rounding mode, one of
 
   FE_TONEAREST FE_TOWARDZERO FE_UPWARD FE_UPWARD
 
 
   FE_TONEAREST FE_TOWARDZERO FE_UPWARD FE_UPWARD
 
-FE_TONEAREST is like L</round>, FE_TOWARDZERO is like L</trunc> [C99].
+C<FE_TONEAREST> is like L</round>, C<FE_TOWARDZERO> is like L</trunc> [C99].
 
 =item C<fesetround>
 
 
 =item C<fesetround>
 
-Sets the floating point rounding mode, see L</fegetround>.
+Sets the floating point rounding mode, see L</fegetround> [C99].
 
 =item C<fma>
 
 
 =item C<fma>
 
-"Fused multiply-add", x * y + z, possibly faster (and less lossy)
+"Fused multiply-add", S<C<x * y + z>>, possibly faster (and less lossy)
 than the explicit two operations [C99].
 
 than the explicit two operations [C99].
 
+ my $fused = POSIX::fma($x, $y, $z);
+
 =item C<fmax>
 
 =item C<fmax>
 
-Maximum of x and y, except when either is NaN, returns the other [C99].
+Maximum of C<x> and C<y>, except when either is C<NaN>, returns the other [C99].
+
+ my $min = POSIX::fmax($x, $y);
 
 =item C<fmin>
 
 
 =item C<fmin>
 
-Minimum of x and y, except when either is NaN, returns the other [C99].
+Minimum of C<x> and C<y>, except when either is C<NaN>, returns the other [C99].
+
+ my $min = POSIX::fmin($x, $y);
 
 =item C<fmod>
 
 
 =item C<fmod>
 
@@ -489,13 +495,13 @@ This is identical to the C function C<fmod()>.
 
        $r = fmod($x, $y);
 
 
        $r = fmod($x, $y);
 
-It returns the remainder C<$r = $x - $n*$y>, where C<$n = trunc($x/$y)>.
+It returns the remainder S<C<$r = $x - $n*$y>>, where S<C<$n = trunc($x/$y)>>.
 The C<$r> has the same sign as C<$x> and magnitude (absolute value)
 less than the magnitude of C<$y>.
 
 =item C<fopen>
 
 The C<$r> has the same sign as C<$x> and magnitude (absolute value)
 less than the magnitude of C<$y>.
 
 =item C<fopen>
 
-Use method C<IO::File::open()> instead, or see L<perlfunc/open>.
+Not implemented.  Use method C<IO::File::open()> instead, or see L<perlfunc/open>.
 
 =item C<fork>
 
 
 =item C<fork>
 
@@ -522,31 +528,34 @@ Returns one of
 
   FP_NORMAL FP_ZERO FP_SUBNORMAL FP_INFINITE FP_NAN
 
 
   FP_NORMAL FP_ZERO FP_SUBNORMAL FP_INFINITE FP_NAN
 
-telling the class of the argument [C99].
+telling the class of the argument [C99].  C<FP_INFINITE> is positive
+or negative infinity, C<FP_NAN> is not-a-number.  C<FP_SUBNORMAL>
+means subnormal numbers (also known as denormals), very small numbers
+with low precision. C<FP_ZERO> is zero.  C<FP_NORMAL> is all the rest.
 
 =item C<fprintf>
 
 
 =item C<fprintf>
 
-C<fprintf()> is C-specific, see L<perlfunc/printf> instead.
+Not implemented.  C<fprintf()> is C-specific, see L<perlfunc/printf> instead.
 
 =item C<fputc>
 
 
 =item C<fputc>
 
-C<fputc()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<fputc()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<fputs>
 
 
 =item C<fputs>
 
-C<fputs()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<fputs()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<fread>
 
 
 =item C<fread>
 
-C<fread()> is C-specific, see L<perlfunc/read> instead.
+Not implemented.  C<fread()> is C-specific, see L<perlfunc/read> instead.
 
 =item C<free>
 
 
 =item C<free>
 
-C<free()> is C-specific.  Perl does memory management transparently.
+Not implemented.  C<free()> is C-specific.  Perl does memory management transparently.
 
 =item C<freopen>
 
 
 =item C<freopen>
 
-C<freopen()> is C-specific, see L<perlfunc/open> instead.
+Not implemented.  C<freopen()> is C-specific, see L<perlfunc/open> instead.
 
 =item C<frexp>
 
 
 =item C<frexp>
 
@@ -556,15 +565,15 @@ Return the mantissa and exponent of a floating-point number.
 
 =item C<fscanf>
 
 
 =item C<fscanf>
 
-C<fscanf()> is C-specific, use E<lt>E<gt> and regular expressions instead.
+Not implemented.  C<fscanf()> is C-specific, use E<lt>E<gt> and regular expressions instead.
 
 =item C<fseek>
 
 
 =item C<fseek>
 
-Use method C<IO::Seekable::seek()> instead, or see L<perlfunc/seek>.
+Not implemented.  Use method C<IO::Seekable::seek()> instead, or see L<perlfunc/seek>.
 
 =item C<fsetpos>
 
 
 =item C<fsetpos>
 
-Use method C<IO::Seekable::setpos()> instead, or seek L<perlfunc/seek>.
+Not implemented.  Use method C<IO::Seekable::setpos()> instead, or seek L<perlfunc/seek>.
 
 =item C<fstat>
 
 
 =item C<fstat>
 
@@ -577,15 +586,15 @@ Perl's builtin C<stat> function.
 
 =item C<fsync>
 
 
 =item C<fsync>
 
-Use method C<IO::Handle::sync()> instead.
+Not implemented.  Use method C<IO::Handle::sync()> instead.
 
 =item C<ftell>
 
 
 =item C<ftell>
 
-Use method C<IO::Seekable::tell()> instead, or see L<perlfunc/tell>.
+Not implemented.  Use method C<IO::Seekable::tell()> instead, or see L<perlfunc/tell>.
 
 =item C<fwrite>
 
 
 =item C<fwrite>
 
-C<fwrite()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<fwrite()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<getc>
 
 
 =item C<getc>
 
@@ -644,6 +653,17 @@ This is identical to Perl's builtin C<getlogin()> function for
 returning the user name associated with the current session, see
 L<perlfunc/getlogin>.
 
 returning the user name associated with the current session, see
 L<perlfunc/getlogin>.
 
+=item C<getpayload>
+
+       use POSIX ':nan_payload';
+       getpayload($var)
+
+Returns the C<NaN> payload.
+
+Note the API instability warning in L</setpayload>.
+
+See L</nan> for more discussion about C<NaN>.
+
 =item C<getpgrp>
 
 This is identical to Perl's builtin C<getpgrp()> function for
 =item C<getpgrp>
 
 This is identical to Perl's builtin C<getpgrp()> function for
@@ -694,51 +714,38 @@ see L<perlfunc/gmtime>.
 
 =item C<hypot>
 
 
 =item C<hypot>
 
-Equivalent to sqrt(x * x + y * y) except more stable on very large
+Equivalent to C<S<sqrt(x * x + y * y)>> except more stable on very large
 or very small arguments [C99].
 
 =item C<ilogb>
 
 Integer binary logarithm [C99]
 
 or very small arguments [C99].
 
 =item C<ilogb>
 
 Integer binary logarithm [C99]
 
-For example ilogb(20) is 4, as an integer.
+For example C<ilogb(20)> is 4, as an integer.
 
 See also L</logb>.
 
 
 See also L</logb>.
 
-=item C<isalnum>
+=item C<Inf>
 
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:alnum:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
+The infinity as a constant:
 
 
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+   use POSIX qw(Inf);
+   my $pos_inf = +Inf;  # Or just Inf.
+   my $neg_inf = -Inf;
 
 
-You may want to use the C<L<E<sol>\wE<sol>|perlrecharclass/Word
-characters>> construct instead.
+See also L</isinf>, and L</fpclassify>.
 
 
-=item C<isalpha>
+=item C<isalnum>
 
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:alpha:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:alnum:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+=item C<isalpha>
+
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:alpha:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isatty>
 
 
 =item C<isatty>
 
@@ -747,38 +754,15 @@ to a tty.  Similar to the C<-t> operator, see L<perlfunc/-X>.
 
 =item C<iscntrl>
 
 
 =item C<iscntrl>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:cntrl:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:cntrl:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isdigit>
 
 
 =item C<isdigit>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:digit:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
-
-You may want to use the C<L<E<sol>\dE<sol>|perlrecharclass/Digits>>
-construct instead.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:digit:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isfinite>
 
 
 =item C<isfinite>
 
@@ -789,62 +773,40 @@ See also L</isinf>, L</isnan>, and L</fpclassify>.
 
 =item C<isgraph>
 
 
 =item C<isgraph>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:graph:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:graph:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isgreater>
 
 (Also C<isgreaterequal>, C<isless>, C<islessequal>, C<islessgreater>,
 C<isunordered>)
 
 
 =item C<isgreater>
 
 (Also C<isgreaterequal>, C<isless>, C<islessequal>, C<islessgreater>,
 C<isunordered>)
 
-Floating point comparisons which handle the NaN [C99].
+Floating point comparisons which handle the C<NaN> [C99].
 
 =item C<isinf>
 
 Returns true if the argument is an infinity (positive or negative) [C99].
 
 
 =item C<isinf>
 
 Returns true if the argument is an infinity (positive or negative) [C99].
 
-See also L</isnan>, L</isfinite>, and L</fpclassify>.
+See also L</Inf>, L</isnan>, L</isfinite>, and L</fpclassify>.
 
 =item C<islower>
 
 
 =item C<islower>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:lower:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
-
-Do B<not> use C</[a-z]/> unless you don't care about the current locale.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:lower:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isnan>
 
 
 =item C<isnan>
 
-Returns true if the argument is NaN (not-a-number) [C99].
+Returns true if the argument is C<NaN> (not-a-number) [C99].
 
 
-Note that you cannot test for "NaN-ness" with
+Note that you cannot test for "C<NaN>-ness" with
 
    $x == $x
 
 
    $x == $x
 
-since the NaN is not equivalent to anything, B<including itself>.
+since the C<NaN> is not equivalent to anything, B<including itself>.
 
 
-See also L</nan>, L</isinf>, and L</fpclassify>.
+See also L</nan>, L</NaN>, L</isinf>, and L</fpclassify>.
 
 =item C<isnormal>
 
 
 =item C<isnormal>
 
@@ -855,92 +817,56 @@ See also L</isfinite>, and L</fpclassify>.
 
 =item C<isprint>
 
 
 =item C<isprint>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:print:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:print:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<ispunct>
 
 
 =item C<ispunct>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:punct:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:punct:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+=item C<issignaling>
 
 
-=item C<isspace>
+       use POSIX ':nan_payload';
+       issignaling($var, $payload)
 
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:space:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
+Return true if the argument is a I<signaling> NaN.
 
 
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+Note the API instability warning in L</setpayload>.
 
 
-You may want to use the C<L<E<sol>\sE<sol>|perlrecharclass/Whitespace>>
-construct instead.
+See L</nan> for more discussion about C<NaN>.
 
 
-=item C<isupper>
+=item C<isspace>
 
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:upper:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:space:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+=item C<isupper>
 
 
-Do B<not> use C</[A-Z]/> unless you don't care about the current locale.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:upper:]]+ $ /x>>, which you should convert
+to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<isxdigit>
 
 
 =item C<isxdigit>
 
-Deprecated function whose use raises a warning, and which is slated to
-be removed in a future Perl version.  It is very similar to matching
-against S<C<qr/ ^ [[:xdigit:]]+ $ /x>>, which you should convert to use
-instead.  The function is deprecated because 1) it doesn't handle UTF-8
-encoded strings properly; and 2) it returns C<TRUE> even if the input is
-the empty string.  The function return is always based on the current
-locale, whereas using locale rules is optional with the regular
-expression, based on pragmas in effect and pattern modifiers (see
-L<perlre/Character set modifiers> and L<perlre/Which character set
-modifier is in effect?>).
-
-The function returns C<TRUE> if the input string is empty, or if the
-corresponding C function returns C<TRUE> for every byte in the string.
+This function has been removed as of v5.24.  It was very similar to
+matching against S<C<qr/ ^ [[:xdigit:]]+ $ /x>>, which you should
+convert to use instead.  See L<perlrecharclass/POSIX Character Classes>.
 
 =item C<j0>
 
 
 =item C<j0>
 
-(Also C<j1>, C<jn>, C<y0>, C<y1>, C<yn>)
+=item C<j1>
+
+=item C<jn>
+
+=item C<y0>
+
+=item C<y1>
+
+=item C<yn>
 
 The Bessel function of the first kind of the order zero.
 
 
 The Bessel function of the first kind of the order zero.
 
@@ -951,17 +877,19 @@ signals to processes (often to terminate them), see L<perlfunc/kill>.
 
 =item C<labs>
 
 
 =item C<labs>
 
-(For returning absolute values of long integers.)
+Not implemented.  (For returning absolute values of long integers.)
 C<labs()> is C-specific, see L<perlfunc/abs> instead.
 
 =item C<lchown>
 
 This is identical to the C function, except the order of arguments is
 consistent with Perl's builtin C<chown()> with the added restriction
 C<labs()> is C-specific, see L<perlfunc/abs> instead.
 
 =item C<lchown>
 
 This is identical to the C function, except the order of arguments is
 consistent with Perl's builtin C<chown()> with the added restriction
-of only one path, not an list of paths.  Does the same thing as the 
-C<chown()> function but changes the owner of a symbolic link instead 
+of only one path, not a list of paths.  Does the same thing as the
+C<chown()> function but changes the owner of a symbolic link instead
 of the file the symbolic link points to.
 
 of the file the symbolic link points to.
 
+ POSIX::lchown($uid, $gid, $file_path);
+
 =item C<ldexp>
 
 This is identical to the C function C<ldexp()>
 =item C<ldexp>
 
 This is identical to the C function C<ldexp()>
@@ -971,7 +899,7 @@ for multiplying floating point numbers with powers of two.
 
 =item C<ldiv>
 
 
 =item C<ldiv>
 
-(For computing dividends of long integers.)
+Not implemented.  (For computing dividends of long integers.)
 C<ldiv()> is C-specific, use C</> and C<int()> instead.
 
 =item C<lgamma>
 C<ldiv()> is C-specific, use C</> and C<int()> instead.
 
 =item C<lgamma>
@@ -982,7 +910,7 @@ See also L</tgamma>.
 
 =item C<log1p>
 
 
 =item C<log1p>
 
-Equivalent to log(1 + x), but more stable results for small argument
+Equivalent to S<C<log(1 + x)>>, but more stable results for small argument
 values [C99].
 
 =item C<log2>
 values [C99].
 
 =item C<log2>
@@ -995,7 +923,7 @@ See also L</expm1>.
 
 Integer binary logarithm [C99].
 
 
 Integer binary logarithm [C99].
 
-For example logb(20) is 4, as a floating point number.
+For example C<logb(20)> is 4, as a floating point number.
 
 See also L</ilogb>.
 
 
 See also L</ilogb>.
 
@@ -1011,6 +939,9 @@ containing the current underlying locale's formatting values.  Users of this fun
 should also read L<perllocale>, which provides a comprehensive
 discussion of Perl locale handling, including
 L<a section devoted to this function|perllocale/The localeconv function>.
 should also read L<perllocale>, which provides a comprehensive
 discussion of Perl locale handling, including
 L<a section devoted to this function|perllocale/The localeconv function>.
+It should not be used in a threaded application unless it's certain that
+the underlying locale is C or POSIX.  This is because it otherwise
+changes the locale, which globally affects all threads simultaneously.
 
 Here is how to query the database for the B<de> (Deutsch or German) locale.
 
 
 Here is how to query the database for the B<de> (Deutsch or German) locale.
 
@@ -1036,16 +967,33 @@ Here is how to query the database for the B<de> (Deutsch or German) locale.
                n_sep_by_space
                p_sign_posn
                n_sign_posn
                n_sep_by_space
                p_sign_posn
                n_sign_posn
+               int_p_cs_precedes
+               int_p_sep_by_space
+               int_n_cs_precedes
+               int_n_sep_by_space
+               int_p_sign_posn
+               int_n_sign_posn
        ))
        {
                printf qq(%s: "%s",\n),
                        $property, $lconv->{$property};
        }
 
        ))
        {
                printf qq(%s: "%s",\n),
                        $property, $lconv->{$property};
        }
 
+The members whose names begin with C<int_p_> and C<int_n_> were added by
+POSIX.1-2008 and are only available on systems that support them.
+
 =item C<localtime>
 
 This is identical to Perl's builtin C<localtime()> function for
 =item C<localtime>
 
 This is identical to Perl's builtin C<localtime()> function for
-converting seconds since the epoch to a date see L<perlfunc/localtime>.
+converting seconds since the epoch to a date see L<perlfunc/localtime> except
+that C<POSIX::localtime()> must be provided an explicit value (rather than
+relying on an implicit C<$_>):
+
+    @localtime = POSIX::localtime(time);    # good
+
+    @localtime = localtime();               # good
+
+    @localtime = POSIX::localtime();        # throws exception
 
 =item C<log>
 
 
 =item C<log>
 
@@ -1071,7 +1019,7 @@ or
 
 =item C<longjmp>
 
 
 =item C<longjmp>
 
-C<longjmp()> is C-specific: use L<perlfunc/die> instead.
+Not implemented.  C<longjmp()> is C-specific: use L<perlfunc/die> instead.
 
 =item C<lseek>
 
 
 =item C<lseek>
 
@@ -1098,17 +1046,21 @@ Like L</round>, but as integer, as opposed to floating point [C99].
 
 See also L</ceil>, L</floor>, L</trunc>.
 
 
 See also L</ceil>, L</floor>, L</trunc>.
 
+Owing to an oversight, this is not currently exported by default, or as part of
+the C<:math_h_c99> export tag; importing it must therefore be done by explicit
+name.
+
 =item C<malloc>
 
 =item C<malloc>
 
-C<malloc()> is C-specific.  Perl does memory management transparently.
+Not implemented.  C<malloc()> is C-specific.  Perl does memory management transparently.
 
 =item C<mblen>
 
 This is identical to the C function C<mblen()>.
 
 Core Perl does not have any support for the wide and multibyte
 
 =item C<mblen>
 
 This is identical to the C function C<mblen()>.
 
 Core Perl does not have any support for the wide and multibyte
-characters of the C standards, so this might be a rather useless
-function.
+characters of the C standards, except under UTF-8 locales, so this might
+be a rather useless function.
 
 However, Perl supports Unicode, see L<perluniintro>.
 
 
 However, Perl supports Unicode, see L<perluniintro>.
 
@@ -1126,23 +1078,23 @@ See L</mblen>.
 
 =item C<memchr>
 
 
 =item C<memchr>
 
-C<memchr()> is C-specific, see L<perlfunc/index> instead.
+Not implemented.  C<memchr()> is C-specific, see L<perlfunc/index> instead.
 
 =item C<memcmp>
 
 
 =item C<memcmp>
 
-C<memcmp()> is C-specific, use C<eq> instead, see L<perlop>.
+Not implemented.  C<memcmp()> is C-specific, use C<eq> instead, see L<perlop>.
 
 =item C<memcpy>
 
 
 =item C<memcpy>
 
-C<memcpy()> is C-specific, use C<=>, see L<perlop>, or see L<perlfunc/substr>.
+Not implemented.  C<memcpy()> is C-specific, use C<=>, see L<perlop>, or see L<perlfunc/substr>.
 
 =item C<memmove>
 
 
 =item C<memmove>
 
-C<memmove()> is C-specific, use C<=>, see L<perlop>, or see L<perlfunc/substr>.
+Not implemented.  C<memmove()> is C-specific, use C<=>, see L<perlop>, or see L<perlfunc/substr>.
 
 =item C<memset>
 
 
 =item C<memset>
 
-C<memset()> is C-specific, use C<x> instead, see L<perlop>.
+Not implemented.  C<memset()> is C-specific, use C<x> instead, see L<perlop>.
 
 =item C<mkdir>
 
 
 =item C<mkdir>
 
@@ -1169,9 +1121,9 @@ Synopsis:
        mktime(sec, min, hour, mday, mon, year, wday = 0,
               yday = 0, isdst = -1)
 
        mktime(sec, min, hour, mday, mon, year, wday = 0,
               yday = 0, isdst = -1)
 
-The month (C<mon>), weekday (C<wday>), and yearday (C<yday>) begin at zero.
-I.e. January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
-year (C<year>) is given in years since 1900.  I.e. The year 1995 is 95; the
+The month (C<mon>), weekday (C<wday>), and yearday (C<yday>) begin at zero,
+I<i.e.>, January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
+year (C<year>) is given in years since 1900; I<i.e.>, the year 1995 is 95; the
 year 2001 is 101.  Consult your system's C<mktime()> manpage for details
 about these and the other arguments.
 
 year 2001 is 101.  Consult your system's C<mktime()> manpage for details
 about these and the other arguments.
 
@@ -1190,11 +1142,51 @@ Return the integral and fractional parts of a floating-point number.
 
 See also L</round>.
 
 
 See also L</round>.
 
+=item C<NaN>
+
+The not-a-number as a constant:
+
+   use POSIX qw(NaN);
+   my $nan = NaN;
+
+See also L</nan>, C</isnan>, and L</fpclassify>.
+
 =item C<nan>
 
 =item C<nan>
 
-Returns not-a-number [C99].
+   my $nan = nan();
+
+Returns C<NaN>, not-a-number [C99].
+
+The returned NaN is always a I<quiet> NaN, as opposed to I<signaling>.
+
+With an argument, can be used to generate a NaN with I<payload>.
+The argument is first interpreted as a floating point number,
+but then any fractional parts are truncated (towards zero),
+and the value is interpreted as an unsigned integer.
+The bits of this integer are stored in the unused bits of the NaN.
+
+The result has a dual nature: it is a NaN, but it also carries
+the integer inside it.  The integer can be retrieved with L</getpayload>.
+Note, though, that the payload is not propagated, not even on copies,
+and definitely not in arithmetic operations.
+
+How many bits fit in the NaN depends on what kind of floating points
+are being used, but on the most common platforms (64-bit IEEE 754,
+or the x86 80-bit long doubles) there are 51 and 61 bits available,
+respectively.  (There would be 52 and 62, but the quiet/signaling
+bit of NaNs takes away one.)  However, because of the floating-point-to-
+integer-and-back conversions, please test carefully whether you get back
+what you put in.  If your integers are only 32 bits wide, you probably
+should not rely on more than 32 bits of payload.
 
 
-See also L</isnan>.
+Whether a "signaling" NaN is in any way different from a "quiet" NaN,
+depends on the platform.  Also note that the payload of the default
+NaN (no argument to nan()) is not necessarily zero, use C<setpayload>
+to explicitly set the payload.  On some platforms like the 32-bit x86,
+(unless using the 80-bit long doubles) the signaling bit is not supported
+at all.
+
+See also L</isnan>, L</NaN>, L</setpayload> and L</issignaling>.
 
 =item C<nearbyint>
 
 
 =item C<nearbyint>
 
@@ -1203,15 +1195,19 @@ rounding mode (see L</fegetround>) [C99].
 
 =item C<nextafter>
 
 
 =item C<nextafter>
 
-Returns the next representable floating point number after x in the
-direction of y [C99].
+Returns the next representable floating point number after C<x> in the
+direction of C<y> [C99].
+
+ my $nextafter = POSIX::nextafter($x, $y);
 
 Like L</nexttoward>, but potentially less accurate.
 
 =item C<nexttoward>
 
 
 Like L</nexttoward>, but potentially less accurate.
 
 =item C<nexttoward>
 
-Returns the next representable floating point number after x in the
-direction of y [C99].
+Returns the next representable floating point number after C<x> in the
+direction of C<y> [C99].
+
+ my $nexttoward = POSIX::nexttoward($x, $y);
 
 Like L</nextafter>, but potentially more accurate.
 
 
 Like L</nextafter>, but potentially more accurate.
 
@@ -1219,14 +1215,15 @@ Like L</nextafter>, but potentially more accurate.
 
 This is similar to the C function C<nice()>, for changing
 the scheduling preference of the current process.  Positive
 
 This is similar to the C function C<nice()>, for changing
 the scheduling preference of the current process.  Positive
-arguments mean more polite process, negative values more
-needy process.  Normal user processes can only be more polite.
+arguments mean a more polite process, negative values a more
+needy process.  Normal (non-root) user processes can only change towards
+being more polite.
 
 Returns C<undef> on failure.
 
 =item C<offsetof>
 
 
 Returns C<undef> on failure.
 
 =item C<offsetof>
 
-C<offsetof()> is C-specific, you probably want to see L<perlfunc/pack> instead.
+Not implemented.  C<offsetof()> is C-specific, you probably want to see L<perlfunc/pack> instead.
 
 =item C<open>
 
 
 =item C<open>
 
@@ -1314,24 +1311,24 @@ You can also use the C<**> operator, see L<perlop>.
 
 =item C<printf>
 
 
 =item C<printf>
 
-Formats and prints the specified arguments to STDOUT.
+Formats and prints the specified arguments to C<STDOUT>.
 See also L<perlfunc/printf>.
 
 =item C<putc>
 
 See also L<perlfunc/printf>.
 
 =item C<putc>
 
-C<putc()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<putc()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<putchar>
 
 
 =item C<putchar>
 
-C<putchar()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<putchar()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<puts>
 
 
 =item C<puts>
 
-C<puts()> is C-specific, see L<perlfunc/print> instead.
+Not implemented.  C<puts()> is C-specific, see L<perlfunc/print> instead.
 
 =item C<qsort>
 
 
 =item C<qsort>
 
-C<qsort()> is C-specific, see L<perlfunc/sort> instead.
+Not implemented.  C<qsort()> is C-specific, see L<perlfunc/sort> instead.
 
 =item C<raise>
 
 
 =item C<raise>
 
@@ -1340,7 +1337,7 @@ See also L<perlfunc/kill> and the C<$$> in L<perlvar/$PID>.
 
 =item C<rand>
 
 
 =item C<rand>
 
-C<rand()> is non-portable, see L<perlfunc/rand> instead.
+Not implemented.  C<rand()> is non-portable, see L<perlfunc/rand> instead.
 
 =item C<read>
 
 
 =item C<read>
 
@@ -1362,12 +1359,14 @@ for reading directory entries, see L<perlfunc/readdir>.
 
 =item C<realloc>
 
 
 =item C<realloc>
 
-C<realloc()> is C-specific.  Perl does memory management transparently.
+Not implemented.  C<realloc()> is C-specific.  Perl does memory management transparently.
 
 =item C<remainder>
 
 
 =item C<remainder>
 
-Given x and y, returns the value x - n*y, where n is the integer
-closest to x/y. [C99]
+Given C<x> and C<y>, returns the value S<C<x - n*y>>, where C<n> is the integer
+closest to C<x>/C<y>. [C99]
+
+ my $remainder = POSIX::remainder($x, $y)
 
 See also L</remquo>.
 
 
 See also L</remquo>.
 
@@ -1416,13 +1415,13 @@ See also L</ceil>, L</floor>, L</lround>, L</modf>, and L</trunc>.
 
 =item C<scalbn>
 
 
 =item C<scalbn>
 
-Returns x * 2**y [C99].
+Returns S<C<x * 2**y>> [C99].
 
 See also L</frexp> and L</ldexp>.
 
 =item C<scanf>
 
 
 See also L</frexp> and L</ldexp>.
 
 =item C<scanf>
 
-C<scanf()> is C-specific, use E<lt>E<gt> and regular expressions instead,
+Not implemented.  C<scanf()> is C-specific, use E<lt>E<gt> and regular expressions instead,
 see L<perlre>.
 
 =item C<setgid>
 see L<perlre>.
 
 =item C<setgid>
@@ -1436,11 +1435,18 @@ list of numbers.
 
 =item C<setjmp>
 
 
 =item C<setjmp>
 
-C<setjmp()> is C-specific: use C<eval {}> instead,
+Not implemented.  C<setjmp()> is C-specific: use C<eval {}> instead,
 see L<perlfunc/eval>.
 
 =item C<setlocale>
 
 see L<perlfunc/eval>.
 
 =item C<setlocale>
 
+WARNING!  Do NOT use this function in a L<thread|threads>.  The locale
+will change in all other threads at the same time, and should your
+thread get paused by the operating system, and another started, that
+thread will not have the locale it is expecting.  On some platforms,
+there can be a race leading to segfaults if two threads call this
+function nearly simultaneously.
+
 Modifies and queries the program's underlying locale.  Users of this
 function should read L<perllocale>, whch provides a comprehensive
 discussion of Perl locale handling, knowledge of which is necessary to
 Modifies and queries the program's underlying locale.  Users of this
 function should read L<perllocale>, whch provides a comprehensive
 discussion of Perl locale handling, knowledge of which is necessary to
@@ -1481,6 +1487,38 @@ out which locales are available in your system.
 
        $loc = setlocale( LC_COLLATE, "es_AR.ISO8859-1" );
 
 
        $loc = setlocale( LC_COLLATE, "es_AR.ISO8859-1" );
 
+=item C<setpayload>
+
+       use POSIX ':nan_payload';
+       setpayload($var, $payload);
+
+Sets the C<NaN> payload of var.
+
+NOTE: the NaN payload APIs are based on the latest (as of June 2015)
+proposed ISO C interfaces, but they are not yet a standard.  Things
+may change.
+
+See L</nan> for more discussion about C<NaN>.
+
+See also L</setpayloadsig>, L</isnan>, L</getpayload>, and L</issignaling>.
+
+=item C<setpayloadsig>
+
+       use POSIX ':nan_payload';
+       setpayloadsig($var, $payload);
+
+Like L</setpayload> but also makes the NaN I<signaling>.
+
+Depending on the platform the NaN may or may not behave differently.
+
+Note the API instability warning in L</setpayload>.
+
+Note that because how the floating point formats work out, on the most
+common platforms signaling payload of zero is best avoided,
+since it might end up being identical to C<+Inf>.
+
+See also L</nan>, L</isnan>, L</getpayload>, and L</issignaling>.
+
 =item C<setpgid>
 
 This is similar to the C function C<setpgid()> for
 =item C<setpgid>
 
 This is similar to the C function C<setpgid()> for
@@ -1526,6 +1564,9 @@ semantics, as defined by POSIX/SUSv3:
                 a user process and the uid and pid make sense,
                 otherwise the signal was sent by the kernel
 
                 a user process and the uid and pid make sense,
                 otherwise the signal was sent by the kernel
 
+The constants for specific C<code> values can be imported individually
+or using the C<:signal_h_si_code> tag.
+
 The following are also defined by POSIX/SUSv3, but unfortunately
 not very widely implemented:
 
 The following are also defined by POSIX/SUSv3, but unfortunately
 not very widely implemented:
 
@@ -1533,6 +1574,8 @@ not very widely implemented:
     uid         the uid of the process id generating the signal
     status      exit value or signal for SIGCHLD
     band        band event for SIGPOLL
     uid         the uid of the process id generating the signal
     status      exit value or signal for SIGCHLD
     band        band event for SIGPOLL
+    addr        address of faulting instruction or memory
+                reference for SIGILL, SIGFPE, SIGSEGV or SIGBUS
 
 A third argument is also passed to the handler, which contains a copy
 of the raw binary contents of the C<siginfo> structure: if a system has
 
 A third argument is also passed to the handler, which contains a copy
 of the raw binary contents of the C<siginfo> structure: if a system has
@@ -1546,7 +1589,7 @@ C<sigaction> and possibly also C<siginfo> documentation.
 
 =item C<siglongjmp>
 
 
 =item C<siglongjmp>
 
-C<siglongjmp()> is C-specific: use L<perlfunc/die> instead.
+Not implemented.  C<siglongjmp()> is C-specific: use L<perlfunc/die> instead.
 
 =item C<signbit>
 
 
 =item C<signbit>
 
@@ -1582,7 +1625,7 @@ reliably.
 
 =item C<sigsetjmp>
 
 
 =item C<sigsetjmp>
 
-C<sigsetjmp()> is C-specific: use C<eval {}> instead,
+Not implemented.  C<sigsetjmp()> is C-specific: use C<eval {}> instead,
 see L<perlfunc/eval>.
 
 =item C<sigsuspend>
 see L<perlfunc/eval>.
 
 =item C<sigsuspend>
@@ -1636,7 +1679,7 @@ Give a seed the pseudorandom number generator, see L<perlfunc/srand>.
 
 =item C<sscanf>
 
 
 =item C<sscanf>
 
-C<sscanf()> is C-specific, use regular expressions instead,
+Not implemented.  C<sscanf()> is C-specific, use regular expressions instead,
 see L<perlre>.
 
 =item C<stat>
 see L<perlre>.
 
 =item C<stat>
@@ -1646,15 +1689,15 @@ for returning information about files and directories.
 
 =item C<strcat>
 
 
 =item C<strcat>
 
-C<strcat()> is C-specific, use C<.=> instead, see L<perlop>.
+Not implemented.  C<strcat()> is C-specific, use C<.=> instead, see L<perlop>.
 
 =item C<strchr>
 
 
 =item C<strchr>
 
-C<strchr()> is C-specific, see L<perlfunc/index> instead.
+Not implemented.  C<strchr()> is C-specific, see L<perlfunc/index> instead.
 
 =item C<strcmp>
 
 
 =item C<strcmp>
 
-C<strcmp()> is C-specific, use C<eq> or C<cmp> instead, see L<perlop>.
+Not implemented.  C<strcmp()> is C-specific, use C<eq> or C<cmp> instead, see L<perlop>.
 
 =item C<strcoll>
 
 
 =item C<strcoll>
 
@@ -1663,19 +1706,23 @@ for collating (comparing) strings transformed using
 the C<strxfrm()> function.  Not really needed since
 Perl can do this transparently, see L<perllocale>.
 
 the C<strxfrm()> function.  Not really needed since
 Perl can do this transparently, see L<perllocale>.
 
+Beware that in a UTF-8 locale, anything you pass to this function must
+be in UTF-8; and when not in a UTF-8 locale, anything passed must not be
+UTF-8 encoded.
+
 =item C<strcpy>
 
 =item C<strcpy>
 
-C<strcpy()> is C-specific, use C<=> instead, see L<perlop>.
+Not implemented.  C<strcpy()> is C-specific, use C<=> instead, see L<perlop>.
 
 =item C<strcspn>
 
 
 =item C<strcspn>
 
-C<strcspn()> is C-specific, use regular expressions instead,
+Not implemented.  C<strcspn()> is C-specific, use regular expressions instead,
 see L<perlre>.
 
 =item C<strerror>
 
 Returns the error string for the specified errno.
 see L<perlre>.
 
 =item C<strerror>
 
 Returns the error string for the specified errno.
-Identical to the string form of the C<$!>, see L<perlvar/$ERRNO>.
+Identical to the string form of C<$!>, see L<perlvar/$ERRNO>.
 
 =item C<strftime>
 
 
 =item C<strftime>
 
@@ -1686,9 +1733,9 @@ Synopsis:
        strftime(fmt, sec, min, hour, mday, mon, year,
                 wday = -1, yday = -1, isdst = -1)
 
        strftime(fmt, sec, min, hour, mday, mon, year,
                 wday = -1, yday = -1, isdst = -1)
 
-The month (C<mon>), weekday (C<wday>), and yearday (C<yday>) begin at zero.
-I.e. January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
-year (C<year>) is given in years since 1900.  I.e., the year 1995 is 95; the
+The month (C<mon>), weekday (C<wday>), and yearday (C<yday>) begin at zero,
+I<i.e.>, January is 0, not 1; Sunday is 0, not 1; January 1st is 0, not 1.  The
+year (C<year>) is given in years since 1900, I<i.e.>, the year 1995 is 95; the
 year 2001 is 101.  Consult your system's C<strftime()> manpage for details
 about these and the other arguments.
 
 year 2001 is 101.  Consult your system's C<strftime()> manpage for details
 about these and the other arguments.
 
@@ -1717,32 +1764,32 @@ The string for Tuesday, December 12, 1995.
 
 =item C<strlen>
 
 
 =item C<strlen>
 
-C<strlen()> is C-specific, use C<length()> instead, see L<perlfunc/length>.
+Not implemented.  C<strlen()> is C-specific, use C<length()> instead, see L<perlfunc/length>.
 
 =item C<strncat>
 
 
 =item C<strncat>
 
-C<strncat()> is C-specific, use C<.=> instead, see L<perlop>.
+Not implemented.  C<strncat()> is C-specific, use C<.=> instead, see L<perlop>.
 
 =item C<strncmp>
 
 
 =item C<strncmp>
 
-C<strncmp()> is C-specific, use C<eq> instead, see L<perlop>.
+Not implemented.  C<strncmp()> is C-specific, use C<eq> instead, see L<perlop>.
 
 =item C<strncpy>
 
 
 =item C<strncpy>
 
-C<strncpy()> is C-specific, use C<=> instead, see L<perlop>.
+Not implemented.  C<strncpy()> is C-specific, use C<=> instead, see L<perlop>.
 
 =item C<strpbrk>
 
 
 =item C<strpbrk>
 
-C<strpbrk()> is C-specific, use regular expressions instead,
+Not implemented.  C<strpbrk()> is C-specific, use regular expressions instead,
 see L<perlre>.
 
 =item C<strrchr>
 
 see L<perlre>.
 
 =item C<strrchr>
 
-C<strrchr()> is C-specific, see L<perlfunc/rindex> instead.
+Not implemented.  C<strrchr()> is C-specific, see L<perlfunc/rindex> instead.
 
 =item C<strspn>
 
 
 =item C<strspn>
 
-C<strspn()> is C-specific, use regular expressions instead,
+Not implemented.  C<strspn()> is C-specific, use regular expressions instead,
 see L<perlre>.
 
 =item C<strstr>
 see L<perlre>.
 
 =item C<strstr>
@@ -1755,12 +1802,15 @@ see L<perlfunc/index>.
 String to double translation. Returns the parsed number and the number
 of characters in the unparsed portion of the string.  Truly
 POSIX-compliant systems set C<$!> (C<$ERRNO>) to indicate a translation
 String to double translation. Returns the parsed number and the number
 of characters in the unparsed portion of the string.  Truly
 POSIX-compliant systems set C<$!> (C<$ERRNO>) to indicate a translation
-error, so clear C<$!> before calling strtod.  However, non-POSIX systems
+error, so clear C<$!> before calling C<strtod>.  However, non-POSIX systems
 may not check for overflow, and therefore will never set C<$!>.
 
 may not check for overflow, and therefore will never set C<$!>.
 
-strtod respects any POSIX I<setlocale()> C<LC_TIME> settings,
+C<strtod> respects any POSIX C<setlocale()> C<LC_TIME> settings,
 regardless of whether or not it is called from Perl code that is within
 regardless of whether or not it is called from Perl code that is within
-the scope of S<C<use locale>>.
+the scope of S<C<use locale>>.  This means it should not be used in a
+threaded application unless it's certain that the underlying locale is C
+or POSIX.  This is because it otherwise changes the locale, which
+globally affects all threads simultaneously.
 
 To parse a string C<$str> as a floating point number use
 
 
 To parse a string C<$str> as a floating point number use
 
@@ -1773,11 +1823,11 @@ The second returned item and C<$!> can be used to check for valid input:
         die "Non-numeric input $str" . ($! ? ": $!\n" : "\n");
     }
 
         die "Non-numeric input $str" . ($! ? ": $!\n" : "\n");
     }
 
-When called in a scalar context strtod returns the parsed number.
+When called in a scalar context C<strtod> returns the parsed number.
 
 =item C<strtok>
 
 
 =item C<strtok>
 
-C<strtok()> is C-specific, use regular expressions instead, see
+Not implemented.  C<strtok()> is C-specific, use regular expressions instead, see
 L<perlre>, or L<perlfunc/split>.
 
 =item C<strtol>
 L<perlre>, or L<perlfunc/split>.
 
 =item C<strtol>
@@ -1796,7 +1846,7 @@ To parse a string C<$str> as a number in some base C<$base> use
     ($num, $n_unparsed) = POSIX::strtol($str, $base);
 
 The base should be zero or between 2 and 36, inclusive.  When the base
     ($num, $n_unparsed) = POSIX::strtol($str, $base);
 
 The base should be zero or between 2 and 36, inclusive.  When the base
-is zero or omitted strtol will use the string itself to determine the
+is zero or omitted C<strtol> will use the string itself to determine the
 base: a leading "0x" or "0X" means hexadecimal; a leading "0" means
 octal; any other leading characters mean decimal.  Thus, "1234" is
 parsed as a decimal number, "01234" as an octal number, and "0x1234"
 base: a leading "0x" or "0X" means hexadecimal; a leading "0" means
 octal; any other leading characters mean decimal.  Thus, "1234" is
 parsed as a decimal number, "01234" as an octal number, and "0x1234"
@@ -1808,7 +1858,7 @@ The second returned item and C<$!> can be used to check for valid input:
         die "Non-numeric input $str" . $! ? ": $!\n" : "\n";
     }
 
         die "Non-numeric input $str" . $! ? ": $!\n" : "\n";
     }
 
-When called in a scalar context strtol returns the parsed number.
+When called in a scalar context C<strtol> returns the parsed number.
 
 =item C<strtold>
 
 
 =item C<strtold>
 
@@ -1835,6 +1885,10 @@ Used in conjunction with the C<strcoll()> function, see L</strcoll>.
 Not really needed since Perl can do this transparently, see
 L<perllocale>.
 
 Not really needed since Perl can do this transparently, see
 L<perllocale>.
 
+Beware that in a UTF-8 locale, anything you pass to this function must
+be in UTF-8; and when not in a UTF-8 locale, anything passed must not be
+UTF-8 encoded.
+
 =item C<sysconf>
 
 Retrieves values of system configurable variables.
 =item C<sysconf>
 
 Retrieves values of system configurable variables.
@@ -1921,7 +1975,7 @@ The C<times()> function returns elapsed realtime since some point in the past
 and system times used by child processes.  All times are returned in clock
 ticks.
 
 and system times used by child processes.  All times are returned in clock
 ticks.
 
-    ($realtime, $user, $system, $cuser, $csystem) 
+    ($realtime, $user, $system, $cuser, $csystem)
        = POSIX::times();
 
 Note: Perl's builtin C<times()> function returns four values, measured in
        = POSIX::times();
 
 Note: Perl's builtin C<times()> function returns four values, measured in
@@ -1929,31 +1983,28 @@ seconds.
 
 =item C<tmpfile>
 
 
 =item C<tmpfile>
 
-Use method C<IO::File::new_tmpfile()> instead, or see L<File::Temp>.
+Not implemented.  Use method C<IO::File::new_tmpfile()> instead, or see L<File::Temp>.
 
 =item C<tmpnam>
 
 
 =item C<tmpnam>
 
-Returns a name for a temporary file.
-
-       $tmpfile = POSIX::tmpnam();
-
 For security reasons, which are probably detailed in your system's
 documentation for the C library C<tmpnam()> function, this interface
 For security reasons, which are probably detailed in your system's
 documentation for the C library C<tmpnam()> function, this interface
-should not be used; instead see L<File::Temp>.
+is no longer available; instead use L<File::Temp>.
 
 =item C<tolower>
 
 This is identical to the C function, except that it can apply to a single
 
 =item C<tolower>
 
 This is identical to the C function, except that it can apply to a single
-character or to a whole string.  Consider using the C<lc()> function,
+character or to a whole string, and currently operates as if the locale
+always is "C".  Consider using the C<lc()> function, see L<perlfunc/lc>,
 see L<perlfunc/lc>, or the equivalent C<\L> operator inside doublequotish
 strings.
 
 =item C<toupper>
 
 see L<perlfunc/lc>, or the equivalent C<\L> operator inside doublequotish
 strings.
 
 =item C<toupper>
 
-This is identical to the C function, except that it can apply to a single
-character or to a whole string.  Consider using the C<uc()> function,
-see L<perlfunc/uc>, or the equivalent C<\U> operator inside doublequotish
-strings.
+This is similar to the C function, except that it can apply to a single
+character or to a whole string, and currently operates as if the locale
+always is "C".  Consider using the C<uc()> function, see L<perlfunc/uc>,
+or the equivalent C<\U> operator inside doublequotish strings.
 
 =item C<trunc>
 
 
 =item C<trunc>
 
@@ -2004,7 +2055,7 @@ Maybe.
 
 =item C<ungetc>
 
 
 =item C<ungetc>
 
-Use method C<IO::Handle::ungetc()> instead.
+Not implemented.  Use method C<IO::Handle::ungetc()> instead.
 
 =item C<unlink>
 
 
 =item C<unlink>
 
@@ -2019,15 +2070,15 @@ see L<perlfunc/utime>.
 
 =item C<vfprintf>
 
 
 =item C<vfprintf>
 
-C<vfprintf()> is C-specific, see L<perlfunc/printf> instead.
+Not implemented.  C<vfprintf()> is C-specific, see L<perlfunc/printf> instead.
 
 =item C<vprintf>
 
 
 =item C<vprintf>
 
-C<vprintf()> is C-specific, see L<perlfunc/printf> instead.
+Not implemented.  C<vprintf()> is C-specific, see L<perlfunc/printf> instead.
 
 =item C<vsprintf>
 
 
 =item C<vsprintf>
 
-C<vsprintf()> is C-specific, see L<perlfunc/sprintf> instead.
+Not implemented.  C<vsprintf()> is C-specific, see L<perlfunc/sprintf> instead.
 
 =item C<wait>
 
 
 =item C<wait>
 
@@ -2244,7 +2295,7 @@ Tests the SigSet object to see if it contains a specific signal.
 =item C<new>
 
 Create a new Termios object.  This object will be destroyed automatically
 =item C<new>
 
 Create a new Termios object.  This object will be destroyed automatically
-when it is no longer needed.  A Termios object corresponds to the termios
+when it is no longer needed.  A Termios object corresponds to the C<termios>
 C struct.  C<new()> mallocs a new one, C<getattr()> fills it from a file descriptor,
 and C<setattr()> sets a file descriptor's parameters to match Termios' contents.
 
 C struct.  C<new()> mallocs a new one, C<getattr()> fills it from a file descriptor,
 and C<setattr()> sets a file descriptor's parameters to match Termios' contents.
 
@@ -2254,7 +2305,7 @@ and C<setattr()> sets a file descriptor's parameters to match Termios' contents.
 
 Get terminal control attributes.
 
 
 Get terminal control attributes.
 
-Obtain the attributes for stdin.
+Obtain the attributes for C<stdin>.
 
        $termios->getattr( 0 ) # Recommended for clarity.
        $termios->getattr()
 
        $termios->getattr( 0 ) # Recommended for clarity.
        $termios->getattr()
@@ -2267,20 +2318,20 @@ Returns C<undef> on failure.
 
 =item C<getcc>
 
 
 =item C<getcc>
 
-Retrieve a value from the c_cc field of a termios object.  The c_cc field is
+Retrieve a value from the C<c_cc> field of a C<termios> object.  The C<c_cc> field is
 an array so an index must be specified.
 
        $c_cc[1] = $termios->getcc(1);
 
 =item C<getcflag>
 
 an array so an index must be specified.
 
        $c_cc[1] = $termios->getcc(1);
 
 =item C<getcflag>
 
-Retrieve the c_cflag field of a termios object.
+Retrieve the C<c_cflag> field of a C<termios> object.
 
        $c_cflag = $termios->getcflag;
 
 =item C<getiflag>
 
 
        $c_cflag = $termios->getcflag;
 
 =item C<getiflag>
 
-Retrieve the c_iflag field of a termios object.
+Retrieve the C<c_iflag> field of a C<termios> object.
 
        $c_iflag = $termios->getiflag;
 
 
        $c_iflag = $termios->getiflag;
 
@@ -2292,13 +2343,13 @@ Retrieve the input baud rate.
 
 =item C<getlflag>
 
 
 =item C<getlflag>
 
-Retrieve the c_lflag field of a termios object.
+Retrieve the C<c_lflag> field of a C<termios> object.
 
        $c_lflag = $termios->getlflag;
 
 =item C<getoflag>
 
 
        $c_lflag = $termios->getlflag;
 
 =item C<getoflag>
 
-Retrieve the c_oflag field of a termios object.
+Retrieve the C<c_oflag> field of a C<termios> object.
 
        $c_oflag = $termios->getoflag;
 
 
        $c_oflag = $termios->getoflag;
 
@@ -2320,20 +2371,20 @@ Returns C<undef> on failure.
 
 =item C<setcc>
 
 
 =item C<setcc>
 
-Set a value in the c_cc field of a termios object.  The c_cc field is an
+Set a value in the C<c_cc> field of a C<termios> object.  The C<c_cc> field is an
 array so an index must be specified.
 
        $termios->setcc( &POSIX::VEOF, 1 );
 
 =item C<setcflag>
 
 array so an index must be specified.
 
        $termios->setcc( &POSIX::VEOF, 1 );
 
 =item C<setcflag>
 
-Set the c_cflag field of a termios object.
+Set the C<c_cflag> field of a C<termios> object.
 
        $termios->setcflag( $c_cflag | &POSIX::CLOCAL );
 
 =item C<setiflag>
 
 
        $termios->setcflag( $c_cflag | &POSIX::CLOCAL );
 
 =item C<setiflag>
 
-Set the c_iflag field of a termios object.
+Set the C<c_iflag> field of a C<termios> object.
 
        $termios->setiflag( $c_iflag | &POSIX::BRKINT );
 
 
        $termios->setiflag( $c_iflag | &POSIX::BRKINT );
 
@@ -2347,13 +2398,13 @@ Returns C<undef> on failure.
 
 =item C<setlflag>
 
 
 =item C<setlflag>
 
-Set the c_lflag field of a termios object.
+Set the C<c_lflag> field of a C<termios> object.
 
        $termios->setlflag( $c_lflag | &POSIX::ECHO );
 
 =item C<setoflag>
 
 
        $termios->setlflag( $c_lflag | &POSIX::ECHO );
 
 =item C<setoflag>
 
-Set the c_oflag field of a termios object.
+Set the C<c_oflag> field of a C<termios> object.
 
        $termios->setoflag( $c_oflag | &POSIX::OPOST );
 
 
        $termios->setoflag( $c_oflag | &POSIX::OPOST );
 
@@ -2420,6 +2471,18 @@ C<_POSIX_TZNAME_MAX> C<_POSIX_VDISABLE> C<_POSIX_VERSION>
 
 =back
 
 
 =back
 
+=head1 RESOURCE CONSTANTS
+
+Imported with the C<:sys_resource_h> tag.
+
+=over 8
+
+=item Constants
+
+C<PRIO_PROCESS> C<PRIO_PGRP> C<PRIO_USER>
+
+=back
+
 =head1 SYSTEM CONFIGURATION
 
 =over 8
 =head1 SYSTEM CONFIGURATION
 
 =over 8
@@ -2478,6 +2541,17 @@ C<LDBL_MAX_EXP> C<LDBL_MIN> C<LDBL_MIN_10_EXP> C<LDBL_MIN_EXP>
 
 =back
 
 
 =back
 
+=head1 FLOATING-POINT ENVIRONMENT
+
+=over 8
+
+=item Constants
+
+C<FE_DOWNWARD> C<FE_TONEAREST> C<FE_TOWARDZERO> C<FE_UPWARD>
+on systems that support them.
+
+=back
+
 =head1 LIMITS
 
 =over 8
 =head1 LIMITS
 
 =over 8
@@ -2497,7 +2571,8 @@ C<UCHAR_MAX> C<UINT_MAX> C<ULONG_MAX> C<USHRT_MAX>
 
 =item Constants
 
 
 =item Constants
 
-C<LC_ALL> C<LC_COLLATE> C<LC_CTYPE> C<LC_MONETARY> C<LC_NUMERIC> C<LC_TIME>
+C<LC_ALL> C<LC_COLLATE> C<LC_CTYPE> C<LC_MONETARY> C<LC_NUMERIC> C<LC_TIME> C<LC_MESSAGES>
+on systems that support them.
 
 =back
 
 
 =back
 
@@ -2509,6 +2584,12 @@ C<LC_ALL> C<LC_COLLATE> C<LC_CTYPE> C<LC_MONETARY> C<LC_NUMERIC> C<LC_TIME>
 
 C<HUGE_VAL>
 
 
 C<HUGE_VAL>
 
+C<FP_ILOGB0> C<FP_ILOGBNAN> C<FP_INFINITE> C<FP_NAN> C<FP_NORMAL> C<FP_SUBNORMAL> C<FP_ZERO>
+C<INFINITY> C<NAN> C<Inf> C<NaN>
+C<M_1_PI> C<M_2_PI> C<M_2_SQRTPI> C<M_E> C<M_LN10> C<M_LN2> C<M_LOG10E> C<M_LOG2E> C<M_PI>
+C<M_PI_2> C<M_PI_4> C<M_SQRT1_2> C<M_SQRT2>
+on systems with C99 support.
+
 =back
 
 =head1 SIGNAL
 =back
 
 =head1 SIGNAL
@@ -2522,6 +2603,12 @@ C<SA_SIGINFO> C<SIGABRT> C<SIGALRM> C<SIGCHLD> C<SIGCONT> C<SIGFPE> C<SIGHUP> C<
 C<SIGKILL> C<SIGPIPE> C<SIGQUIT> C<SIGSEGV> C<SIGSTOP> C<SIGTERM> C<SIGTSTP> C<SIGTTIN> C<SIGTTOU>
 C<SIGUSR1> C<SIGUSR2> C<SIG_BLOCK> C<SIG_DFL> C<SIG_ERR> C<SIG_IGN> C<SIG_SETMASK>
 C<SIG_UNBLOCK>
 C<SIGKILL> C<SIGPIPE> C<SIGQUIT> C<SIGSEGV> C<SIGSTOP> C<SIGTERM> C<SIGTSTP> C<SIGTTIN> C<SIGTTOU>
 C<SIGUSR1> C<SIGUSR2> C<SIG_BLOCK> C<SIG_DFL> C<SIG_ERR> C<SIG_IGN> C<SIG_SETMASK>
 C<SIG_UNBLOCK>
+C<ILL_ILLOPC> C<ILL_ILLOPN> C<ILL_ILLADR> C<ILL_ILLTRP> C<ILL_PRVOPC> C<ILL_PRVREG> C<ILL_COPROC>
+C<ILL_BADSTK> C<FPE_INTDIV> C<FPE_INTOVF> C<FPE_FLTDIV> C<FPE_FLTOVF> C<FPE_FLTUND> C<FPE_FLTRES>
+C<FPE_FLTINV> C<FPE_FLTSUB> C<SEGV_MAPERR> C<SEGV_ACCERR> C<BUS_ADRALN> C<BUS_ADRERR>
+C<BUS_OBJERR> C<TRAP_BRKPT> C<TRAP_TRACE> C<CLD_EXITED> C<CLD_KILLED> C<CLD_DUMPED> C<CLD_TRAPPED>
+C<CLD_STOPPED> C<CLD_CONTINUED> C<POLL_IN> C<POLL_OUT> C<POLL_MSG> C<POLL_ERR> C<POLL_PRI>
+C<POLL_HUP> C<SI_USER> C<SI_QUEUE> C<SI_TIMER> C<SI_ASYNCIO> C<SI_MESGQ>
 
 =back
 
 
 =back
 
@@ -2556,7 +2643,7 @@ C<EXIT_FAILURE> C<EXIT_SUCCESS> C<MB_CUR_MAX> C<RAND_MAX>
 
 =item Constants
 
 
 =item Constants
 
-C<BUFSIZ> C<EOF> C<FILENAME_MAX> C<L_ctermid> C<L_cuserid> C<L_tmpname> C<TMP_MAX>
+C<BUFSIZ> C<EOF> C<FILENAME_MAX> C<L_ctermid> C<L_cuserid> C<TMP_MAX>
 
 =back
 
 
 =back
 
@@ -2647,3 +2734,25 @@ is true)
 
 =back
 
 
 =back
 
+=head1 WINSOCK
+
+(Windows only.)
+
+=over 8
+
+=item Constants
+
+C<WSAEINTR> C<WSAEBADF> C<WSAEACCES> C<WSAEFAULT> C<WSAEINVAL> C<WSAEMFILE> C<WSAEWOULDBLOCK>
+C<WSAEINPROGRESS> C<WSAEALREADY> C<WSAENOTSOCK> C<WSAEDESTADDRREQ> C<WSAEMSGSIZE>
+C<WSAEPROTOTYPE> C<WSAENOPROTOOPT> C<WSAEPROTONOSUPPORT> C<WSAESOCKTNOSUPPORT>
+C<WSAEOPNOTSUPP> C<WSAEPFNOSUPPORT> C<WSAEAFNOSUPPORT> C<WSAEADDRINUSE>
+C<WSAEADDRNOTAVAIL> C<WSAENETDOWN> C<WSAENETUNREACH> C<WSAENETRESET> C<WSAECONNABORTED>
+C<WSAECONNRESET> C<WSAENOBUFS> C<WSAEISCONN> C<WSAENOTCONN> C<WSAESHUTDOWN>
+C<WSAETOOMANYREFS> C<WSAETIMEDOUT> C<WSAECONNREFUSED> C<WSAELOOP> C<WSAENAMETOOLONG>
+C<WSAEHOSTDOWN> C<WSAEHOSTUNREACH> C<WSAENOTEMPTY> C<WSAEPROCLIM> C<WSAEUSERS>
+C<WSAEDQUOT> C<WSAESTALE> C<WSAEREMOTE> C<WSAEDISCON> C<WSAENOMORE> C<WSAECANCELLED>
+C<WSAEINVALIDPROCTABLE> C<WSAEINVALIDPROVIDER> C<WSAEPROVIDERFAILEDINIT>
+C<WSAEREFUSED>
+
+=back
+