xref: /titanic_41/usr/src/lib/libast/common/man/setenviron.3 (revision 2e59129a8dc96d4082395c338ad696e29471d4e0)
.fp 5 CW .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

LIBAST 3
NAME
setenviron - set environment value
SYNOPSIS
.EX #include <ast.h> char* setenviron(const char* key);
DESCRIPTION
.L setenviron controls environment name=value pairs. .L setenviron("name=value") adds name to the environment and returns a pointer to a strdup (3) copy of name=value . .L setenviron("name") removes name from the environment and returns the empty string. .L setenviron(0) reserves a few slots in an internal array and is usually called by a parent process that expects many children. 0 is returned on error. .L setenviron preserves the ksh (1) convention of .L _ as the first environment variable name.
"SEE ALSO"
env(1), exec(2)
BUGS
POSIX will eventually settle on an interface. It has already picked a few of the names we did in .2 drafts. This is about the third name change for ours.