#
9199c09a |
| 06-Jan-2010 |
Warner Losh <imp@FreeBSD.org> |
Merge from head at r201628.
# This hasn't been tested, and there are at least three bad commits # that need to be backed out before the branch will be stable again.
|
#
ef6ccfb5 |
| 07-Dec-2009 |
Sean Farley <scf@FreeBSD.org> |
Update the getenv(3) man page to reflect the recent change to the behavior of setenv(), putenv() and unsetenv() when dealing with corrupt entries in environ. They now output a warning and complete t
Update the getenv(3) man page to reflect the recent change to the behavior of setenv(), putenv() and unsetenv() when dealing with corrupt entries in environ. They now output a warning and complete their task without error.
MFC after: 1 week
show more ...
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0 |
|
#
2966d28c |
| 04-Jul-2007 |
Sean Farley <scf@FreeBSD.org> |
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX fr
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT.
Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv().
New regression module for tools/regression/environ to test these functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826 Approved by: wes Approved by: re (kensmith)
show more ...
|
#
ba174a5e |
| 01-May-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and r
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
show more ...
|
#
fad69179 |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Bump .Dd
Suggested by: Henrik Brix Andersen <henrik@brixandersen.dk>
|
#
a7b27253 |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Add phrase "so altering the argument shall change the environment." into putenv description.
|
#
15fdb055 |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Make putenv() fully conforms to Open Group specs Issue 6 (also IEEE Std 1003.1-2001)
The specs explicitly says that altering passed string should change the environment, i.e. putenv() directly puts
Make putenv() fully conforms to Open Group specs Issue 6 (also IEEE Std 1003.1-2001)
The specs explicitly says that altering passed string should change the environment, i.e. putenv() directly puts its arg into environment (unlike setenv() which just copies it there). It means that putenv() can't be implemented via setenv() (like we have before) at all. Putenv() value lives (allows modifying) up to the next putenv() or setenv() call.
show more ...
|
#
00f86522 |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Remove special case skipping initial '=' of the setenv() value "for compatibility with the different environment conventions" (man page). With the standards, we don't have them different anymore and
Remove special case skipping initial '=' of the setenv() value "for compatibility with the different environment conventions" (man page). With the standards, we don't have them different anymore and IEEE Std 1003.1-2001 says that
"The values that the environment variables may be assigned are not restricted except that they are considered to end with a null byte"
show more ...
|
#
bdda8934 |
| 30-Apr-2007 |
Andrey A. Chernov <ache@FreeBSD.org> |
Make setenv, putenv, getenv and unsetenv conforming to Open Group specs Issue 6 (also IEEE Std 1003.1-2001) in following areas: args, return, errors.
Putenv still needs rewriting because specs expli
Make setenv, putenv, getenv and unsetenv conforming to Open Group specs Issue 6 (also IEEE Std 1003.1-2001) in following areas: args, return, errors.
Putenv still needs rewriting because specs explicitly says that altering passed string later should change the environment (currently we copy the string so can't provide that).
show more ...
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
#
c879ae35 |
| 09-Jan-2007 |
Warner Losh <imp@FreeBSD.org> |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
79d9a182 |
| 12-Oct-2006 |
Tom Rhodes <trhodes@FreeBSD.org> |
Note that the value from getenv() should not be modified by applications.
PR: 60544 Reviewed by: ru
|
#
0b0ea948 |
| 07-Oct-2006 |
Tom Rhodes <trhodes@FreeBSD.org> |
getenv.3: Put "is" on a line with other words getobjformat.3: "takes precedence over" is not an envrionment variable.
PR: 75545 Submitted by: n-kogane@syd.odn.ne.jp MFC after: 3 days
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0 |
|
#
24a0682c |
| 20-Jan-2005 |
Ruslan Ermilov <ru@FreeBSD.org> |
Sort sections.
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
2410103c |
| 07-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) fixes.
|
#
af73aa7c |
| 07-Jul-2004 |
Hiten Pandya <hmp@FreeBSD.org> |
Move the return value information about the getenv(3) library function under the RETURN VALUES section so it is consistent with others.
Cleanup the return value text for getenv(3) a little while I a
Move the return value information about the getenv(3) library function under the RETURN VALUES section so it is consistent with others.
Cleanup the return value text for getenv(3) a little while I am here.
PR: docs/58033 MFC after: 3 days
show more ...
|
#
1a0a9345 |
| 03-Jul-2004 |
Ruslan Ermilov <ru@FreeBSD.org> |
Mechanically kill hard sentence breaks.
|
Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0 |
|
#
5c564bae |
| 18-Dec-2002 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
|
Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs, release/4.5.0_cvs, release/4.4.0_cvs |
|
#
8aefde06 |
| 07-Sep-2001 |
Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> |
Move to using .In instead of .Fd #include <> for include mark-up.
Inspired by comment from: dd
|
#
d6002fef |
| 31-Aug-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
Use ``.Rv -std'' wherever possible.
Submitted by: yar
|
#
7ebcc426 |
| 15-Jul-2001 |
Dima Dorfman <dd@FreeBSD.org> |
Remove whitespace at EOL.
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
588a200c |
| 26-Feb-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
.St -ansiC -> .St -isoC
|
#
d0353b83 |
| 01-Feb-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
mdoc(7) police: split punctuation characters + misc fixes.
|
Revision tags: release/4.2.0 |
|
#
b5c508fb |
| 14-Nov-2000 |
Ruslan Ermilov <ru@FreeBSD.org> |
Use Fx macro wherever possible.
|
Revision tags: release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs |
|
#
274b6244 |
| 06-May-2000 |
Alexey Zelkin <phantom@FreeBSD.org> |
Use `Er' variable to define first column width in ERRORS section.
|
#
25bb73e0 |
| 21-Apr-2000 |
Alexey Zelkin <phantom@FreeBSD.org> |
Introduce ".Lb" macro to libc manpages.
More libraries manpages updates following.
|