aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2002-06-15 * include/_mingw.h: Increment to version 2.1.Earnie Boyd3-3/+8
* Makefile.in: Ditto.
2002-06-15 * Makefile.in (conf_prefix): New variable.Earnie Boyd2-1/+14
(dist_prefix): Ditto. Conditionally set to $(conf_prefix). (bindist): Use dist_prefix.
2002-06-15* uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH unlessChristopher Faylor2-0/+6
one or the other is specified.
2002-06-14* cygheap.h (cygheap_user::userprofile_env_buf): New static member.Christopher Faylor5-7/+20
* environ.cc (build_env): Add debugging statement. (spenvs): Switch functions for USERDOMAIN and USERNAME. * spawn.cc (spawn_guts): Move environment initialization prior to cygheap_setup_for_child or environment info will never be copied to child.
2002-06-14* cygheap.h (cygheap_user): Add static members to hold home{drive,path} info.Christopher Faylor3-24/+38
* uinfo.cc (cygheap_user::ontherange): Use static class members for local HOME* storage.
2002-06-14* cygheap.cc (cygheap_user::set_logsrv): Remove.Christopher Faylor8-265/+164
(cygheap_user::set_domain): Ditto. * cygheap.h (cygheap_user::set_logsrv): Remove declaration. (cygheap_user::set_domain): Ditto. (cygheap_user::env_domain): Declare new method. (cygheap_user::env_name): Ditto. * environ.cc (spenvs): Add two environment variables. * spawn.cc (spawn_guts): Call build_env after RevertToSelf. Always set ciresrv.mount_h. (cygheap_user::ontherange): Recalculate homedrive/homepath if they are empty. Use env_logsrv to get logon server. (cygheap_user::env_logsrv): Calculate server name here rather than relying on it having been previously calculated. (cygheap_user::env_domain): Ditto for domain name. (cygheap-user::env_name): New method. * syscalls.cc (seteuid32): Do not get or set the environment. Do not call LookupAccountSid nor internal_getlogin. Set cygheap->user name and sid from the passwd entry. * uinfo.cc (uinfo_init): Only call internal_getlogin when starting from a non Cygwin process and use the values returned in user. (internal_getlogin): Simplify to case where starting from a non Cygwin process. Store return values in user and return void. Do not set the Windows default environment. * dcrt0.cc (dll_crt0_1): Call uinfo_init only when needed. Do not set myself->uid nor reset user.sid. * spawn.cc (spawn_guts): Get the sid from cygheap->user. Always RevertToSelf(). Don't set uid in impersonated case. * cygheap.cc (cygheap_user::set_sid): Do not set orig_sig. (cygheap_user::set_orig_sid): New. * cygheap.h: Declare cygheap_user::set_sid. * winsup.h: Add argument to uinfo_init().
2002-06-14 * environ.cc (build_env): If realloc moves envblock, move s with it.Corinna Vinschen2-1/+14
2002-06-14 * include/w32api.h: Change to version 2.0 to reflect the changeEarnie Boyd4-20/+29
in the license. * README: Renamed. * README.w32api: Renamed from README. Modified license to remove the restriction of notifying the author based on the fact that the author is unreachable at the notified address. * Makefile.in (VERSION): Change to 2.0.
2002-06-14 * Makefile.in (bindist): Correct the MinGW distribution.Earnie Boyd2-1/+8
2002-06-14Add pthread callsCorinna Vinschen1-9/+9
2002-06-14 * passwd.c: Rearrange includes to avoid unnecessary warnings.Corinna Vinschen2-15/+50
(GetPW): Add parameter to (dis)allow printing of Windows username. Use defines instead of numerical constants where possible. Try avoiding impersonation problem. Rearrange to print Windows username only if it's different from Cygwin username. (ChangePW): Use defines instead of numerical constants where possible. (main): Call GetPW with additional parameter. Change error text. * passwd.c (GetPW): Handle case of user-edited /etc/passwd with cygwin_internal (CW_EXTRACT_DOMAIN_AND_USER, ...).
2002-06-14 * include/wingdi.h (GetEnhMetaFileBits): Correct typo.Earnie Boyd2-2/+6
2002-06-13 * include/wingdi.h: (GetEnhMetaFileBits): Define prototype.Earnie Boyd2-0/+2
2002-06-13fix typoChristopher Faylor1-1/+1
2002-06-13* winver.rc: Add more words to copyright.Christopher Faylor7-6/+9
2002-06-13 * cygheap.cc (cygheap_user::set_name): Revert previous change.Corinna Vinschen3-1/+10
* environ.cc (spenv::retrieve): Check return value of call to cygheap->user.*from_cygheap().
2002-06-13 * include/winuser.h (MOUSEHOOKSTRUCT): Define structure.Earnie Boyd2-0/+10
2002-06-13 * cygheap.cc (cygheap_user::set_name): Remove setting homedrive andCorinna Vinschen3-4/+11
homepath to NULL. (cygheap_user::set_logsrv): Fix free'ing of plogsrv. * cygheap.h (cygheap_user::cygheap_user): Initialize homedrive and homepath to NULL.
2002-06-13 * include/_mingw.h: Increment version to 2.0.Danny Smith120-1177/+6602
* Makefile.in: Ditto. Merge in mingwex branch.
2002-06-13* security.cc (get_logon_server): Use strcasematch rather than strcasecmp.Christopher Faylor2-5/+10
2002-06-13* path.cc (chdir): Minor cleanup.Christopher Faylor3-4/+8
2002-06-13* environ.cc (build_env): Correctly fill out windows environment block withChristopher Faylor2-29/+64
win32 paths rather than posix paths.
2002-06-132002-06-13 John K. Hohm <jhohm@acm.org>Danny Smith3-0/+180
* include/comcat.h: New file.
2002-06-12Add dumper.exe words from Egor Duda.Christopher Faylor1-0/+46
2002-06-12* cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to NULL onChristopher Faylor7-179/+344
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.
2002-06-11fix commentChristopher Faylor1-8/+1
2002-06-11* spawn.cc (spawn_guts): More hToken removal cleanup.Christopher Faylor4-31/+30
2002-06-11* spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih() only once.Christopher Faylor2-11/+14
2002-06-11* Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGSChristopher Faylor8-170/+55
command-line setting. * cygwin.din: Export sexec* functions as function which returns ENOSYS (i.e., sexec* is deprecated). * dtable.cc (dtable::vfork_child_dup): Ensure that impersonation is restored even on failure. * exec.cc: Throughout, remove references to sexec* and _spawnve. * pinfo.h: Remove _spawnve declaration. * spawn.cc: Rename _spawnve to spawnve and use throughout. (spawn_guts): Eliminate hToken argument and processing of same. Just perform special actions if impersonating. (spawnve): Rename from _spawnve.
2002-06-10revert erroneous checkinChristopher Faylor1-1/+1
2002-06-10* include/sys/strace.h (strace): Avoid use of constructor.Christopher Faylor4-3/+6
2002-06-10* dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before runningChristopher Faylor4-4/+12
global ctors. * wincap.h (wincap): Eliminate constructor. Default is to zero memory, anyway. * wincap.cc (wincap): Copy this on fork to avoid initialization in forked processes.
2002-06-10 * fhandler.h (fhandler_socket::fixup_after_fork): Revert patch fromCorinna Vinschen4-15/+17
2002-06-04. * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Ditto. (fhandler_socket::dup): Ditto. * net.cc (fdsock): Make sockets explicitely noninheritable on NT.
2002-06-10/tmp/cvs610a0a90.1Robert Collins3-42/+90
2002-06-10* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Correctly setChristopher Faylor2-11/+17
number of links for directory, if appropriate.
2002-06-102002-06-10 Robert Collins <rbtcollins@hotmail.com>Robert Collins6-34/+142
* cygwin.din: Add _pthread_cleanup_push and _pthread_cleanup_pop. * pthread.cc: Change __pthread_self to pthread::self() thruoghout. (_pthread_cleanup_push): New function. (_pthread_cleanup_pop): Ditto. * thread.cc: Thanks to Thomas Pfaff for the pthread cleanup_push,_pop patch, this work is derived from that. Change __pthread_self to pthread::self() thruoghout. (__pthread_self): Rename to pthread::self. (pthread::self): New method. (pthread::pthread): Initialize new member. (pthread::push_cleanup_handler): New method. (pthread::pop_cleanup_handler): New method. (pthread::pop_all_cleanup_handlers): New method. (__pthread_exit): Pop all cleanup handlers. * thread.h (pthread::push_cleanup_handler): Declare. (pthread::pop_cleanup_handler): Ditto. (pthread::pop_all_cleanup_handlers): Ditto. (pthread::self): New static method. (__pthread_exit): Give C++ linkage. (__pthread_join): Ditto. (__pthread_detach): Ditto. (__pthread_self): Remove. 2002-04-24 Thomas Pfaff <tpfaff@gmx.net> * include/pthread.h (__pthread_cleanup_handler): New structure (pthread_cleanup_push): Rewritten . (pthread_cleanup_pop): Ditto. (_pthread_cleanup_push): New prototype. (_pthread_cleanup_pop) Ditto. 2002-04-24 Thomas Pfaff <tpfaff@gmx.net> * thread.cc (thread_init_wrapper): Check if thread is already joined. (__pthread_join): Set joiner first. (__pthread_detach): Ditto.
2002-06-092002-06-10 Robert Collins <rbtcollins@hotmail.com>Robert Collins3-2/+8
* cygserver_transport.cc (create_server_transport): Finish the split out of sockets code from transport_layer_base. Thanks to Nicholas Wourms and Conrad Scott for catching this.
2002-06-09* path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.Christopher Faylor2-3/+8
(getmntent): Ditto.
2002-06-092002-06-09 Gunnar Degnbol <gdegnbol@users.sourceforge.net>Danny Smith2-0/+23
* include/richedit.h (EM_*, TM_*, GT_*): Add new defines. (GETTEXTEX): Add structure definition.
2002-06-09* mount.cc (main): Use default system/user flag for cygdrive stuff, too.Christopher Faylor3-4/+12
(change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
2002-06-09* pinfo.cc (pinfo_dummy): Initialize to correct size.Christopher Faylor2-1/+5
2002-06-09 * include/windows.h (ole2.h): #include if !__OBJC__ andDanny Smith2-0/+10
__GNUC__ >=3 and !WIN32_LEAN_AND_MEAN.
2002-06-09* path.cc: Change MOUNT_AUTO to MOUNT_CYGDRIVE throughout.Christopher Faylor3-11/+16
* shared_info.h (CURR_MOUNT_MAGIC): Update.
2002-06-09* mount.cc (opts): Remove '-i' option.Christopher Faylor2-17/+8
(usage): Ditto. (main): Ditto. (longopts): Remove --import-old-mounts option.
2002-06-09* external.cc (cygwin_internal): Make v1 mount table access invalid.Christopher Faylor5-89/+17
* path.cc (mount_info::init): Remove had_to_create_mount_areas initialization. (mount_info::from_registry): Remove v1 table import. (mount_info::read_v1_mounts): Eliminate. (mount_info::import_v1_mounts): Ditto. * shared_info.h (mount_info): Ditto for both of above. * sys/mount.h (MOUNT_DEVFS): New enum. (MOUNT_PROC): Ditto.
2002-06-08* include/wchar.h: Define __need_size_t.Christopher Faylor2-0/+5
2002-06-08coerceChristopher Faylor1-1/+1
2002-06-08* fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket isChristopher Faylor3-4/+23
unix-domain socket. * times.cc (hires_ms::prime): Set init flag. * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to 1970.
2002-06-07* cygpath.cc: Add option to output windows paths in different formats: "dos"Christopher Faylor3-6/+69
and "mixed". (main): Process options. (doit): Check new options flags.
2002-06-07 * regtool.cc (Fail): Be more verbose.Corinna Vinschen3-20/+70
(find_key): Add support for remote registry access. (usage): Document it. * utils.sgml: Document it.