This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/newlib ChangeLog libc/include/stdlib.h lib ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	jjohnstn@sourceware.org	2008-09-25 01:23:08

Modified files:
	newlib         : ChangeLog 
	newlib/libc/include: stdlib.h 
	newlib/libc/stdlib: getenv_r.c setenv.c setenv_r.c 

Log message:
	2008-09-24  Pawel Veselov  <pawel.veselov@gmail.com>
	
	Fix setenv/getenv/unsetenv to be OpenGroup compliant:
	* libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer
	return types.
	* libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with
	names that contain equal chars.
	* libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int.
	* libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to
	EINVAL if name contains an equal sign.  Do not remove any equal signs
	from the value.
	(_unsetenv_r): Modified to return int.  Return -1 and set EINVAL
	if name contains equal sign.  Return -1 if no variable(s) were found
	and return 0 otherwise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1193&r2=1.1194
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/include/stdlib.h.diff?cvsroot=src&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdlib/getenv_r.c.diff?cvsroot=src&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdlib/setenv.c.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/stdlib/setenv_r.c.diff?cvsroot=src&r1=1.6&r2=1.7


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]