Commit Graph

25 Commits

Author SHA1 Message Date
wiz
83306973da Improve wording after consultation with njoly. 2010-10-26 22:34:33 +00:00
njoly
5d63576039 Make putenv(3) fails with EINVAL for a null pointer, or for a string
that either miss or start with a `=' character.

Adjust man page and testcase accordingly.
2010-10-25 20:35:36 +00:00
njoly
4c968434a3 Make setenv(3) follow the standard, by rejecting invalid strings. It
now fails with EINVAL errno when variable is NULL, empty or contains
an `=' character; or value is NULL.

Adjust the man page accordingly, and exercize them in the existing
environment testcase.
2010-10-16 11:23:41 +00:00
wiz
732dd678dd Fix a typo, remove trailing whitespace. 2010-10-01 20:57:50 +00:00
christos
7acc3301d8 make putenv POSIX compliant. 2010-10-01 20:11:32 +00:00
njoly
abdcf63ade Add empty line in ERRORS section. 2010-09-23 12:49:31 +00:00
wiz
72a37764e0 Punctuation nits; grammar fix. 2005-09-26 10:54:46 +00:00
christos
cc85a7cfd9 add getenv_r and ttyname_r 2005-09-25 20:08:01 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
drochner
1a9947a7d7 unsetenv(3) returns "int" now 2003-04-07 16:29:06 +00:00
kleink
13dee93fb3 1003.1-2001 has introduced unsetenv() which differs from the current
implementation in not permitting a "name=value" argument.
* Add a conforming __unsetenv13() and do function renaming for
  unsetenv(); preserve old symbol with old behavior.
* Make visible setenv() and unsetenv() for 1003.1-2001 feature selection
  macros; resolves PR standards/20479.
2003-04-07 13:41:13 +00:00
yamt
1060c75faa result of getenv should be treated as read-only.
from OpenBSD.
2002-08-10 17:14:50 +00:00
ross
814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz
4e59d26612 Drop unnecessary whitespace and .Pp, sort SEE ALSO, sort sections,
and some minor fixes.
2001-09-16 01:31:51 +00:00
kleink
ee3e47997f Update standards section for putenv(). 1998-02-06 13:53:17 +00:00
perry
312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
perry
5f8a6c06f3 update to lite-2 1998-01-30 23:37:40 +00:00
thorpej
6dda330ef6 New-style RCS ids. 1995-12-28 08:51:55 +00:00
cgd
4fffd61a7f fix it to be the way i *meant* it to be... 1994-04-08 00:58:04 +00:00
mycroft
30a812575e From Mark Weaver: Fix typo. 1994-04-07 16:28:05 +00:00
cgd
75e0f16f1b specify what the args's contents must be 1994-04-01 08:33:59 +00:00
jtc
a66bb8995a Use "Er" for argument to -width in the lists in the ERROR sections so that
formatting is consistant.
1993-11-29 22:06:07 +00:00
mycroft
b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00