aboutsummaryrefslogtreecommitdiff
path: root/man/man3/getenv.3
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-03 06:40:20 +0000
committerrsc <devnull@localhost>2005-01-03 06:40:20 +0000
commit058b0118a52061ad57694c01fc8763b22b789c4d (patch)
tree6685f04dea5ed68edaa34998c976aed34c55fe94 /man/man3/getenv.3
parent2600337aa704efbeba8201e88147a764b4fd2b90 (diff)
downloadplan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.gz
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.tar.bz2
plan9port-058b0118a52061ad57694c01fc8763b22b789c4d.zip
Some man pages.
Diffstat (limited to 'man/man3/getenv.3')
-rw-r--r--man/man3/getenv.328
1 files changed, 13 insertions, 15 deletions
diff --git a/man/man3/getenv.3 b/man/man3/getenv.3
index 315407c6..4be92ece 100644
--- a/man/man3/getenv.3
+++ b/man/man3/getenv.3
@@ -15,10 +15,8 @@ int putenv(char *name, char *val)
.fi
.SH DESCRIPTION
.I Getenv
-reads the contents of
-.BI /env/ name
-(see
-.IR env (3))
+fetches the environment value associated with
+.I name
into memory allocated with
.IR malloc (3),
0-terminates it,
@@ -27,18 +25,18 @@ If no file exists, 0
is returned.
.PP
.I Putenv
-creates the file
-.BI /env/ name
-and writes the string
-.I val
-to it. The terminating
-.B 0
-is not written.
-If the file value cannot be written, \-1 is returned.
+sets the environment value associated with
+.I name
+to
+.IR val .
.SH SOURCE
-.B /usr/local/plan9/src/libc/9sys
-.SH SEE ALSO
-.IR env (3)
+.B /usr/local/plan9/src/lib9/getenv.c
.SH DIAGNOSTICS
Sets
.IR errstr .
+.SH BUGS
+Defined as macros for
+.I p9getenv
+and
+.I p9putenv
+to avoid name conflicts with Unix library calls.