diff options
| author | aaron <> | 1999-06-29 18:36:24 +0000 | 
|---|---|---|
| committer | aaron <> | 1999-06-29 18:36:24 +0000 | 
| commit | 5771e6280ed94b6457e5db9facb5899254e4fb7f (patch) | |
| tree | 95397a7ed19a0cddf5a2ebb73dee20cf20fe2c29 /src/lib/libc/stdlib/getenv.3 | |
| parent | 403f5844d16c63a63b8ce33a354e4871cb93df4c (diff) | |
| download | openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.gz openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.bz2 openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.zip  | |
first round of repairs on stdlib
Diffstat (limited to 'src/lib/libc/stdlib/getenv.3')
| -rw-r--r-- | src/lib/libc/stdlib/getenv.3 | 30 | 
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3 index 79556f30e8..c7858b55b0 100644 --- a/src/lib/libc/stdlib/getenv.3 +++ b/src/lib/libc/stdlib/getenv.3  | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 
| 34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. | 
| 35 | .\" | 35 | .\" | 
| 36 | .\" $OpenBSD: getenv.3,v 1.4 1999/05/25 13:06:46 aaron Exp $ | 36 | .\" $OpenBSD: getenv.3,v 1.5 1999/06/29 18:36:20 aaron Exp $ | 
| 37 | .\" | 37 | .\" | 
| 38 | .Dd December 11, 1993 | 38 | .Dd December 11, 1993 | 
| 39 | .Dt GETENV 3 | 39 | .Dt GETENV 3 | 
| @@ -60,10 +60,10 @@ host | |||
| 60 | .Em environment list . | 60 | .Em environment list . | 
| 61 | For compatibility with differing environment conventions, | 61 | For compatibility with differing environment conventions, | 
| 62 | the given arguments | 62 | the given arguments | 
| 63 | .Ar name | 63 | .Fa name | 
| 64 | and | 64 | and | 
| 65 | .Ar value | 65 | .Fa value | 
| 66 | may be appended and prepended, | 66 | may be appended and prepended, | 
| 67 | respectively, | 67 | respectively, | 
| 68 | with an equal sign | 68 | with an equal sign | 
| 69 | .Dq Li \&= . | 69 | .Dq Li \&= . | 
| @@ -71,30 +71,30 @@ with an equal sign | |||
| 71 | The | 71 | The | 
| 72 | .Fn getenv | 72 | .Fn getenv | 
| 73 | function obtains the current value of the environment variable, | 73 | function obtains the current value of the environment variable, | 
| 74 | .Ar name . | 74 | .Fa name . | 
| 75 | If the variable | 75 | If the variable | 
| 76 | .Ar name | 76 | .Fa name | 
| 77 | is not in the current environment, | 77 | is not in the current environment, | 
| 78 | a null pointer is returned. | 78 | a null pointer is returned. | 
| 79 | .Pp | 79 | .Pp | 
| 80 | The | 80 | The | 
| 81 | .Fn setenv | 81 | .Fn setenv | 
| 82 | function inserts or resets the environment variable | 82 | function inserts or resets the environment variable | 
| 83 | .Ar name | 83 | .Fa name | 
| 84 | in the current environment list. | 84 | in the current environment list. | 
| 85 | If the variable | 85 | If the variable | 
| 86 | .Ar name | 86 | .Fa name | 
| 87 | does not exist in the list, | 87 | does not exist in the list, | 
| 88 | it is inserted with the given | 88 | it is inserted with the given | 
| 89 | .Ar value . | 89 | .Fa value . | 
| 90 | If the variable does exist, the argument | 90 | If the variable does exist, the argument | 
| 91 | .Ar overwrite | 91 | .Fa overwrite | 
| 92 | is tested; if | 92 | is tested; if | 
| 93 | .Ar overwrite is | 93 | .Fa overwrite | 
| 94 | zero, the | 94 | is zero, | 
| 95 | variable is not reset, otherwise it is reset | 95 | the variable is not reset, otherwise it is reset | 
| 96 | to the given | 96 | to the given | 
| 97 | .Ar value . | 97 | .Fa value . | 
| 98 | .Pp | 98 | .Pp | 
| 99 | The | 99 | The | 
| 100 | .Fn putenv | 100 | .Fn putenv | 
| @@ -122,7 +122,7 @@ is set to indicate the error and a | |||
| 122 | .Pp | 122 | .Pp | 
| 123 | If | 123 | If | 
| 124 | .Fn getenv | 124 | .Fn getenv | 
| 125 | is succesful, the string returned should be considered read-only. | 125 | is succesful, the string returned should be considered read-only. | 
| 126 | .Sh ERRORS | 126 | .Sh ERRORS | 
| 127 | .Bl -tag -width [ENOMEM] | 127 | .Bl -tag -width [ENOMEM] | 
| 128 | .It Bq Er ENOMEM | 128 | .It Bq Er ENOMEM | 
