winsup/cygwin ChangeLog cygheap.cc cygheap.h e ...

cgf@cygwin.com cgf@cygwin.com
Tue Jun 11 22:13:00 GMT 2002


CVSROOT:	/cvs/uberbaum
Module name:	winsup
Changes by:	cgf@sources.redhat.com	2002-06-11 22:13:55

Modified files:
	cygwin         : ChangeLog cygheap.cc cygheap.h environ.cc 
	                 environ.h spawn.cc uinfo.cc 

Log message:
	* cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to NULL on
	user name change.
	(cygheap_user::set_logsrv): Allocate enough space for leading \\ so that we can
	put this in the environment, if needed.
	* cygheap.h (homebodies): New enum.
	(cygheap_user::homedrive): New field.
	(cygheap_user::homepath): Ditto.
	(cygheap_user::env_logsrv): New method.
	(cygheap_user::env_homepath): New method.
	(cygheap_user::env_homedrive): New method.
	(cygheap_user::env_userprofile): New method.
	(cygheap_user::ontherange): New method.
	* environ.cc (envsize): Eliminate debugging argument.
	(environ_init): Assume that envc counts number of elments not total size.
	(spenv): New class.
	(spenvs): New array, renamed from forced_winenv_vars, using spenv.
	(spenv::retrieve): New method.
	(build_env): Rename from 'winenv' -- one stop shopping for building new
	environment blocks for both windows and "unix".
	* environ.h (build_env: Declare.
	(winenv): Delete declaration.
	(envsize): Ditto.
	* spawn.cc (spawn_guts): Use build_env to build windows and cygwin environment
	blocks.
	* uinfo.cc (internal_getlogin): Eliminate environment manipulation.  Default to
	info from GetUserName if it exists.  Move HOMEPATH and HOMEDRIVE stuff
	elsewhere.  Move HOME setting elsewhere.  Only set HOME environment variable in
	processes that are not parented by a cygwin process.
	(cygheap_user::ontherange): Define new method.
	(cygheap_user::env_logsrv): Ditto.
	(cygheap_user::env_homepath): Ditto.
	(cygheap_user::env_homedrive): Ditto.
	(cygheap_user::env_userprofile): Ditto.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaum&r1=1.1287&r2=1.1288
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygheap.cc.diff?cvsroot=uberbaum&r1=1.52&r2=1.53
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygheap.h.diff?cvsroot=uberbaum&r1=1.40&r2=1.41
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/environ.cc.diff?cvsroot=uberbaum&r1=1.67&r2=1.68
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/environ.h.diff?cvsroot=uberbaum&r1=1.4&r2=1.5
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/spawn.cc.diff?cvsroot=uberbaum&r1=1.105&r2=1.106
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/uinfo.cc.diff?cvsroot=uberbaum&r1=1.69&r2=1.70



More information about the Cygwin-cvs mailing list