diff options
Diffstat (limited to 'man3/clearenv.3')
-rw-r--r-- | man3/clearenv.3 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/man3/clearenv.3 b/man3/clearenv.3 index 49bd8c2f5..488d0d3f4 100644 --- a/man3/clearenv.3 +++ b/man3/clearenv.3 @@ -19,7 +19,7 @@ Standard C library .P .RS -4 Feature Test Macro Requirements for glibc (see -.BR feature_test_macros (7)): +.MR feature_test_macros 7 ): .RE .P .BR clearenv (): @@ -35,9 +35,9 @@ pairs and sets the value of the external variable .I environ to NULL. After this call, new variables can be added to the environment using -.BR putenv (3) +.MR putenv 3 and -.BR setenv (3). +.MR setenv 3 . .SH RETURN VALUE The .BR clearenv () @@ -47,7 +47,7 @@ value on failure. .\" glibc info and the Watcom C library document "a nonzero value". .SH ATTRIBUTES For an explanation of the terms used in this section, see -.BR attributes (7). +.MR attributes 7 . .TS allbox; lbx lb lb @@ -80,12 +80,12 @@ POSIX.9 (bindings for FORTRAN77). POSIX.1-1996 did not accept .BR clearenv () and -.BR putenv (3), +.MR putenv 3 , but changed its mind and scheduled these functions for some later issue of this standard (see \[sc]B.4.6.1). However, POSIX.1-2001 adds only -.BR putenv (3), +.MR putenv 3 , and rejected .BR clearenv (). .SH NOTES @@ -106,22 +106,22 @@ The function may be useful in security-conscious applications that want to precisely control the environment that is passed to programs executed using -.BR exec (3). +.MR exec 3 . The application would do this by first clearing the environment and then adding select environment variables. .P Note that the main effect of .BR clearenv () is to adjust the value of the pointer -.BR environ (7); +.MR environ 7 ; this function does not erase the contents of the buffers containing the environment definitions. .P The DG/UX and Tru64 man pages write: If .I environ has been modified by anything other than the -.BR putenv (3), -.BR getenv (3), +.MR putenv 3 , +.MR getenv 3 , or .BR clearenv () functions, then @@ -130,8 +130,8 @@ will return an error and the process environment will remain unchanged. .\" .P .\" HP-UX has a ENOMEM error return. .SH SEE ALSO -.BR getenv (3), -.BR putenv (3), -.BR setenv (3), -.BR unsetenv (3), -.BR environ (7) +.MR getenv 3 , +.MR putenv 3 , +.MR setenv 3 , +.MR unsetenv 3 , +.MR environ 7 |