From 058b0118a52061ad57694c01fc8763b22b789c4d Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 3 Jan 2005 06:40:20 +0000 Subject: Some man pages. --- man/man3/getenv.3 | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'man/man3/getenv.3') 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. -- cgit v1.2.3