OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / clearenv.3
index e7cc177..f9d0ef3 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright 2001 John Levon <moz@compsoc.man.ac.uk>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Additions, aeb, 2001-10-17.
-.TH CLEARENV 3  2010-10-04 "Linux" "Linux Programmer's Manual"
+.TH CLEARENV 3  2014-08-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 clearenv \- clear the environment
 .SH SYNOPSIS
@@ -45,7 +47,7 @@ function clears the environment of all name-value
 pairs and sets the value of the external variable
 .I environ
 to NULL.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 The
 .BR clearenv ()
 function returns zero on success, and a nonzero
@@ -53,9 +55,8 @@ value on failure.
 .\" Most versions of UNIX return -1 on error, or do not even have errors.
 .\" Glibc info and the Watcom C library document "a nonzero value".
 .SH VERSIONS
-Not in libc4, libc5.
-In glibc since glibc 2.0.
-.SH "CONFORMING TO"
+Available since glibc 2.0.
+.SH CONFORMING TO
 Various UNIX variants (DG/UX, HP-UX, QNX, ...).
 POSIX.9 (bindings for FORTRAN77).
 POSIX.1-1996 did not accept
@@ -65,7 +66,7 @@ and
 but changed its mind and scheduled these functions for some
 later issue of this standard (cf. B.4.6.1).
 However, POSIX.1-2001
-only adds
+adds only
 .BR putenv (3),
 and rejected
 .BR clearenv ().
@@ -92,9 +93,18 @@ functions, then
 will return an error and the process environment will remain unchanged.
 .\" .LP
 .\" HP-UX has a ENOMEM error return.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR getenv (3),
 .BR putenv (3),
 .BR setenv (3),
 .BR unsetenv (3),
 .BR environ (7)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.