summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygheap.h (cygheap_user::userprofile_env_buf): New static member.Christopher Faylor2002-06-145-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.
* * libc/argz: New directory.Thomas Fitzsimmons2002-06-1431-12/+1274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/argz/*: New files. * libc/argz/argz_add.c: New file. * libc/argz/argz_add_sep.c: New file. * libc/argz/argz_append.c: New file. * libc/argz/argz_count.c: New file. * libc/argz/argz_create.c: New file. * libc/argz/argz_create_sep.c: New file. * libc/argz/argz_delete.c: New file. * libc/argz/argz_extract.c: New file. * libc/argz/argz_insert.c: New file. * libc/argz/argz_next.c: New file. * libc/argz/argz_replace.c: New file. * libc/argz/argz_stringify.c: New file. * libc/argz/buf_findstr.c: New file. * libc/argz/envz_add.c: New file. * libc/argz/envz_entry.c: New file. * libc/argz/envz_get.c: New file. * libc/argz/envz_merge.c: New file. * libc/argz/envz_remove.c: New file. * libc/argz/envz_strip.c: New file. * libc/include/argz.h: New file. * libc/include/envz.h: New file. * Makefile.am (LIBC_OBJECTLISTS): Add libc/argz/objectlist.awk.in. * libc/Makefile.am (SUBDIRS): Add argz. (SUBLIBS): Add argz/libargz.la. * libc/configure.in (AC_OUTPUT): Add argz/Makefile. * libc/include/errno.h: Add error_t typedef.
* * cygheap.h (cygheap_user): Add static members to hold home{drive,path} info.Christopher Faylor2002-06-143-24/+38
| | | | | * uinfo.cc (cygheap_user::ontherange): Use static class members for local HOME* storage.
* * cygheap.cc (cygheap_user::set_logsrv): Remove.Christopher Faylor2002-06-148-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().
* * environ.cc (build_env): If realloc moves envblock, move s with it.Corinna Vinschen2002-06-142-1/+14
|
* * include/w32api.h: Change to version 2.0 to reflect the changeEarnie Boyd2002-06-144-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.
* * Makefile.in (bindist): Correct the MinGW distribution.Earnie Boyd2002-06-142-1/+8
|
* Add pthread callsCorinna Vinschen2002-06-141-9/+9
|
* * passwd.c: Rearrange includes to avoid unnecessary warnings.Corinna Vinschen2002-06-142-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, ...).
* * include/wingdi.h (GetEnhMetaFileBits): Correct typo.Earnie Boyd2002-06-142-2/+6
|
* 2002-06-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-06-135-22/+81
| | | | | | | * libc/include/stdlib.h: Add _Exit prototype. * libc/stdlib/Makefile.am: Add _Exit.c support. * libc/stdlib/Makefile.in: Ditto. * libc/stdlib/_Exit.c: New file.
* Fix typo.Jeff Johnston2002-06-131-2/+0
|
* 2002-06-13 Stephen L. Moshier <steve@moshier.net>Jeff Johnston2002-06-133-2/+11
| | | | | | | * libm/math/e_pow.c (__ieee754_pow): Fix case whereby x is close to -1.0 and y is very large to use ax (absolute value) instead of x. * libm/math/ef_pow.c (__ieee754_powf): Ditto.
* * include/wingdi.h: (GetEnhMetaFileBits): Define prototype.Earnie Boyd2002-06-132-0/+2
|
* * libc/machine/sh/strcpy.S (strcpy, __SHMEDIA__ code):Joern Rennecke2002-06-132-3/+11
| | | | | Fix clobbering bytes before destination if src and dst have same non-zero misalignment.
* fix typoChristopher Faylor2002-06-131-1/+1
|
* * winver.rc: Add more words to copyright.Christopher Faylor2002-06-137-6/+9
|
* * cygheap.cc (cygheap_user::set_name): Revert previous change.Corinna Vinschen2002-06-133-1/+10
| | | | | * environ.cc (spenv::retrieve): Check return value of call to cygheap->user.*from_cygheap().
* * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):Joern Rennecke2002-06-132-2/+9
| | | | Fixed bug in writing end of set region.
* * include/winuser.h (MOUSEHOOKSTRUCT): Define structure.Earnie Boyd2002-06-132-0/+10
|
* * cygheap.cc (cygheap_user::set_name): Remove setting homedrive andCorinna Vinschen2002-06-133-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.
* * include/_mingw.h: Increment version to 2.0.Danny Smith2002-06-13120-1177/+6602
| | | | | * Makefile.in: Ditto. Merge in mingwex branch.
* * security.cc (get_logon_server): Use strcasematch rather than strcasecmp.Christopher Faylor2002-06-132-5/+10
|
* * path.cc (chdir): Minor cleanup.Christopher Faylor2002-06-133-4/+8
|
* * environ.cc (build_env): Correctly fill out windows environment block withChristopher Faylor2002-06-132-29/+64
| | | | win32 paths rather than posix paths.
* 2002-06-13 John K. Hohm <jhohm@acm.org>Danny Smith2002-06-133-0/+180
| | | | * include/comcat.h: New file.
* Add the file include/gdb/sim-arm.h defining an enum that specifies theAndrew Cagney2002-06-122-0/+69
| | | | register numbering used by the GDB<->SIM interface.
* Add dumper.exe words from Egor Duda.Christopher Faylor2002-06-121-0/+46
|
* * Makefile.in (CFLAGS_FOR_TARGET): Add -O2.DJ Delorie2002-06-122-1/+9
|
* * cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to NULL onChristopher Faylor2002-06-127-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.
* fix commentChristopher Faylor2002-06-111-8/+1
|
* * spawn.cc (spawn_guts): More hToken removal cleanup.Christopher Faylor2002-06-114-31/+30
|
* Import latest version of texi2pod.pl from FSF GCC sources.Nick Clifton2002-06-112-45/+125
|
* Revoke adding mh-s390xpic. Doesn't make any sense because it is notMartin Schwidefsky2002-06-112-5/+0
| | | | referenced from anywhere.
* 2002-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com>Martin Schwidefsky2002-06-112-0/+5
| | | | * mh-s390xpic: New file.
* * libc/include/process.h: Remove cygwin-only sexec* declarations. Fix spawnveChristopher Faylor2002-06-112-18/+6
| | | | declaration.
* * spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih() only once.Christopher Faylor2002-06-112-11/+14
|
* * Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGSChristopher Faylor2002-06-118-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.
* revert erroneous checkinChristopher Faylor2002-06-101-1/+1
|
* * include/sys/strace.h (strace): Avoid use of constructor.Christopher Faylor2002-06-104-3/+6
|
* * dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before runningChristopher Faylor2002-06-104-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.
* * fhandler.h (fhandler_socket::fixup_after_fork): Revert patch fromCorinna Vinschen2002-06-104-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.
* /tmp/cvs610a0a90.1Robert Collins2002-06-103-42/+90
|
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Correctly setChristopher Faylor2002-06-102-11/+17
| | | | number of links for directory, if appropriate.
* 2002-06-10 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-06-106-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-10 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-06-093-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.
* Move include/callback.h and include/remote-sim.h to include/gdb/.Andrew Cagney2002-06-094-0/+10
| | | | Update accordingly.
* * path.cc (cygpath): Change MOUNT_AUTO to MOUNT_CYGDRIVE.Christopher Faylor2002-06-092-3/+8
| | | | (getmntent): Ditto.
* 2002-06-09 Gunnar Degnbol <gdegnbol@users.sourceforge.net>Danny Smith2002-06-092-0/+23
| | | | | * include/richedit.h (EM_*, TM_*, GT_*): Add new defines. (GETTEXTEX): Add structure definition.
* * mount.cc (main): Use default system/user flag for cygdrive stuff, too.Christopher Faylor2002-06-093-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.