summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * shared.cc (shared_info::initialize): Use correct value for versionChristopher Faylor2002-10-233-2/+9
| | | | | | comparison. * include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD for magic calculation.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only do theChristopher Faylor2002-10-222-28/+34
| | | | | executable thing for #! scripts since .exe files wouldn't be executable in ntsec case regardless.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always considerChristopher Faylor2002-10-222-26/+34
| | | | .exe files and '#!' shell scripts to be executable.
* * cygthread.cc (cygthread::exiting): New variable.Christopher Faylor2002-10-225-105/+65
| | | | | | | | | | | | | | | | | | (cygthread::initialized): Delete. (cygthread::stub): Use exiting variable to determine when to exit. (cygthread::runner): Delete. (cygthread_protect): New variable. (cygthread::init): Don't start runner thread. Initialize muto for list protection. (cygthread::freerange): Return pointer to cygthread. (cygthread::operator new): Change logic to start threads on an as-needed basis. (cygthread::detach): Don't zero id. (cygthread::terminate): Don't kill any executing threads. Just set exiting flag. * cygthread.h (cygthread): Reflect above changes. * dcrt0.cc (dll_crt0_1): Move cygthread initialization later. * fork.cc (fork_child): Do fdtab fixup after dll fixup or (apparently) winsock may allocate memory in dll load address.
* * sec_helper.cc (cygsid::get_id): If the sid matches a sid stored inChristopher Faylor2002-10-223-25/+42
| | | | | | | cygheap->user, return the uid or gid from myself. * security.cc (alloc_sd): If gid == myself->gid, return the group sid from cygheap->user. Remove the test for uid == original_uid, which is counter-productive.
* * cygheap.cc (cygheap_fixup_in_child): Use user_heap element in cygheap.Christopher Faylor2002-10-2211-89/+142
| | | | | | | | | | | | | | | | (init_cheap): Ditto for declaration. * fork.cc (fork_parent): Use user_heap element in cygheap. * heap.h (inheap): Ditto. * heap.cc (sbrk): Ditto. (heap_init): Ditto. Reorganize to shrink heap chunk as required and record new value in cygheap. * dcrt0.cc (dll_crt0_1): More "move the cygthread init" games. * shared.cc (open_shared): Rework memory protection to properly deal with relocated shared segment. (shared_info::heap_chunk_size): Rename element to 'heap_chunk'. * shared_info.h (shared_info): Ditto for declaration. * strace.cc (strace::hello): Report on heap chunk size from cygheap since it may shrink.
* Change _function() to function() throughout.Christopher Faylor2002-10-2117-126/+164
| | | | | | | | | | | | | | | | | | * cygwin.din: Remove last vestiges (?) of newlib wrappers. * cygthread.cc (cygthread::detach): Always wait for event or suffer an apparently inavoidable race. * dcrt0.cc (dll_crt0_1): Allocate threads after stack has been relocated. * debub.cc (lock_debug): Don't acquire lock on exit. * fork.cc (fork_child): Recreate mmaps before doing anything else since Windows has a habit of using blocks of memory in the child that could previously have been occupied by shared memory in the parent. * mmap.cc (fhandler_disk_file::fixup_mmap_after_fork): Issue error here and provide some details about what went wrong. (fixup_mmaps_after_fork): Remove error message. * shared.cc (open_shared): Move warning message so that more detail is possible. * sigproc.cc (sigproc_init): Initialize sync_proc_subproc to avoid a race. (sigproc_terminate): Specifically wait for process thread to terminate.
* * cygthread.cc (cygthread::stub): Fix typo.Christopher Faylor2002-10-202-3/+9
| | | | (cygthread::terminate): Don't zero thread handle prior to using it.
* fix typoChristopher Faylor2002-10-201-1/+1
|
* missed checkinChristopher Faylor2002-10-201-1/+1
|
* force checkinChristopher Faylor2002-10-200-0/+0
|
* fix typoChristopher Faylor2002-10-201-1/+1
|
* 2002-10-19 Kang Li <rubylith@users.sourceforge.net>Danny Smith2002-10-202-1/+5
| | | | * include/fcntl.h (O_SEQUENTIAL): Correct typo.
* 2002-10-19 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2002-10-203-5/+26
| | | | | | | | | | | | * crt1.c: Define new macro __IN_MINGW_RUNTIME before including stdlib.h. Comment on reason. Define WIN32_MEAN_AND_LEAN before including windows.h * include/stdlib.h (_fmode): Protect declaration as dllimported variable with __IN_MINGW_RUNTIME. 2002-10-19 Igor Pechtchanski <pechtcha@cs.nyu.edu> * crt1.c: Include stdlib.h.
* * sigproc.cc (wait_sig): Remove obsolete sigchld logic.Christopher Faylor2002-10-202-4/+5
|
* Rename _kill() to kill() throughout. Rename _raise() to raise() throughout.Christopher Faylor2002-10-208-26/+48
| | | | | | | | | Rename _pid() to pid() throughout. * Makefile.in: Compile some objects with -fomit-frame-pointer. * cygwin.din: Reverse aliasing for _kill. * syscalls.cc (_getpid_r): New function, implemented for newlib compatibility. * shared.cc (open_shared): Remove reserving of memory since previous change eliminate the need for this hack.
* * Makefile.in (CRT0S): Add txtmode.o binmode.o.Danny Smith2002-10-197-7/+82
| | | | | | | | | | | | | | (MINGW_OBJS): Add txtmode.o. (SRCDIST_FILES): Add txtmode.c binmode.c. crt1.c: Don't include fcntrl.h, stdlib.h. (_fmode): Declare, without dllimport attribute. (__p__fmode): Declare access function for dll's _fmode. (_mingw32_init_fmode): Sync dll _fmode with staticly linked _fmode for app. * txtmode.c: New file. * binmode.c: New file. * samples/fmode/test2.c: New file. * samples/fmode/jamfile: Add test2.exe target.
* * fork.cc (fork_child): Move pinfo fixup later to attempt some minor gains fromChristopher Faylor2002-10-192-2/+6
| | | | concurrency from cythread::init.
* fix changelogChristopher Faylor2002-10-191-0/+1
|
* * mount.cc (usage): Correctly report default mode.Christopher Faylor2002-10-193-4/+8
|
* * dcrt0.cc (dll_crt0_1): Initialize cygwin threads here only when not forking.Christopher Faylor2002-10-194-4/+22
| | | | | | * fork.cc (fork_child): Initialize cygwin thread later in process to avoid allocating memory for thread stacks. * shared.cc (open_shared): Issue warning if NT and shared segment is relocated.
* * cygthread.cc: Bump number of cygthreads up to accommodate applications whichChristopher Faylor2002-10-193-2/+7
| | | | use ttys.
* * fork.cc (fork_child): Move mmap initialization.Christopher Faylor2002-10-185-13/+32
| | | | | | | | * shared.cc (shared_info::heap_chunk_size): Store info as megabytes. Search HKEY_LOCAL_MACHINE as well as HKEY_CURRENT_USER. * shared_info.h (shared_info::initial_heap_size): Change element name to reflect new functionality. * strace.cc (strace::hello): Report on initial heap size.
* 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-10-183-0/+89
| | | | | * testsuite/newlib.wctype/tiswctype.c: New test case. * testsuite/newlib.wctype/twctrans.c: Ditto.
* 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-10-183-0/+299
| | | | | * libc/sys/linux/machine/i386/include/endian.h: New file. * libc/sys/linux/machine/i386/include/param.h: Ditto.
* 2002-10-04 Michael Snyder <msnyder@redhat.com>Jeff Johnston2002-10-182-9/+20
| | | | | | * m32r/m32r-lib.c (exceptionHandler): Fix computation of exception vector address, as suggested by Mitsubishi. (getExceptionVector): Ditto.
* 2002-10-18 Stephane Carrez <stcarrez@nerim.fr>Jeff Johnston2002-10-182-1/+5
| | | | * m68hc11/syscalls.c (sbrk): Use ptrdiff_t for increment parameter.
* 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-10-183-76/+172
| | | | | * libm/machine/i386/aclocal.m4: Regenerated. * libm/machine/i386/configure: Ditto.
* 2002-10-18 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-10-185-0/+95
| | | | | | | | | * testsuite/include/check.h: New header file to use with test cases. * testsuite/lib/newlib.exp: Add testsuite/include directory to list of header files to use. * testsuite/newlib.wctype/twctype.c: New test case for iswctype fns. * testsuite/newlib.wctype/wctype.exp: New file.
* * thread.cc (verifyable_object_isvalid): Test for a valid object pointer beforeChristopher Faylor2002-10-182-3/+8
| | | | testing for static ptr.
* * dtable.cc (dtable::init_std_file_from_handle): Force "devices" to always beChristopher Faylor2002-10-182-5/+16
| | | | in binary mode. Temporary fix until ssh is rebuilt?
* * dtable.cc (dtable::set_file_pointers_for_exec): New function.Christopher Faylor2002-10-174-0/+20
| | | | | | * dtable.h (dtable::set_file_pointers_for_exec): Declare new function. * spawn.cc (spawn_guts): Call dtable::set_file_pointers_for_exec to set pointers to EOF when execing non-cygwin applications.
* 2002-10-17 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-10-173-2/+18
| | | | | | | * thread.h (pthread_mutex::isGoodInitializerOrBadObject): Declare. * thread.cc (pthread_mutex::isGoodInitializerOrBadObject): Implement. (pthread_mutex::init): Use isGoodInitializerOrBadObject to avoid unneeded SEGV's during debugging.
* 2002-10-17 Thomas Pfaff <tpfaff@gmx.net>Robert Collins2002-10-172-2/+6
| | | | * thread.cc (verifyable_object_isvalid): Test for static object first.
* * include/winuser.h (MONITORINFOEX[AW]): Add structureDanny Smith2002-10-162-9/+32
| | | | | definitions and ANSI/UNICODE mappings. Cleanup whitespace.
* merge from gccDJ Delorie2002-10-162-1/+5
|
* * fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properlyChristopher Faylor2002-10-162-15/+42
| | | | implement VMIN/VTIME.
* * shared.cc (open_shared): Revert to "old" method for shared memory location ifChristopher Faylor2002-10-154-11/+42
| | | | | | !wincap.needs_memory_protection. * wincap.cc: Implement needs_memory_protection throughout. * wincap.h: Ditto.
* * child_info.h (CURR_CHILD_INFO_MAGIC): Reset.Christopher Faylor2002-10-159-43/+96
| | | | | | | | | | | | | | | | | | (child_info_fork::mount_table): Remove. (child_info_fork::myself_addr): Remove. * fork.cc (fork_child): Don't set either of the above. * dcrt0.cc (dll_crt0_1): Call memory_init as early as possible. * fhandler_console.cc (console_state): Move to shared_info.h. (fhandler_console::get_tty_stuff): Reflect open_shared arg change. * pinfo.cc (myself_addr): Remove definition. (pinfo::init): Get myself address from open_shared. * pinfo.h (myself_addr): Remove declaration. * shared.cc (open_shared): Rework so that known shared memory locations are protected. Take shared memory type as fifth argument. (memory_init): Reflect open_shared arg change. * shared_info.h (shared_locations): New enum. (console_state): Move here. (open_shared): Reflect open_shared arg change in declaration.
* * child_info.h (CURR_CHILD_INFO_MAGIC): Reset.Christopher Faylor2002-10-1415-32/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (child_info_fork::heaptop): Remove obsolete element. (child_info_fork::heabbase): Ditto. (child_info_fork::heapptr): Ditto. (child_info_fork::mount_table): New element. (child_info_fork::myself_addr): Ditto. * dcrt0.cc (dll_crt0_1): Set mount_table and myself_addr when forking. (initial_env): Add newline to "sleeping" message. * dll_init.cc (reserve_upto): Accommodate cygwin heap when freeing memory. Make debugging output a little more descriptive. * fork.cc (fork_parent): Save mount_table and myself_addr. * pinfo.cc (myself_addr): New variable. (set_myself): Pass PID_MYSELF flag to init. (pinfo::Init): Honor PID_MYSELF. Save address where myself shared memory resides in myself_addr, for fork. * pinfo.h (myself_addr): Declare. * shared.cc (memory_init): On fork, use previously saved address for location of mount table. * include/sys/cygwin.h (PID_MYSELF): New value. * dtable.cc (dtable::stdio_init): Don't pass access type to init_std_file_from_handle. It's always the same. (dtable::init_std_file_from_handle): Remove access type argument. Assume read/write. * dtable.h (dtable::init_std_file_from_handle): Ditto for declaration. * exceptions.cc (try_to_debug): Don't try to debug if already being debugged. * fhandler_console.cc (shared_console_info_save): New variable. (fhandler_console::get_tty_stuff): Save address of shared console stuff for fork.
* * Makefile.in: Add components for lib/ddk. Adjust for autoconf-2.53.Earnie Boyd2002-10-146-894/+2184
| | | | | | | | * configure.in: Ditto. * lib/Makefile.in: Ditto. * lib/ddk/Makefile.in: Correct installation procedure. Adjust for autoconf-2.53. * configure: Regenerate.
* * cgen.h: Test __BFD_H_SEEN__ rather than BFD_VERSION_DATE.Alan Modra2002-10-142-8/+12
|
* * cygthread.cc (cygthread::stub): Reintroduce clearing of __name but do itChristopher Faylor2002-10-144-8/+31
| | | | | | | | | | | before SetEvent to eliminate a race. (cygthread::terminate): Accumulate list of threads to check for termination and call WaitForMultipleObjects on list rather than waiting for each thread individually. * sigproc.cc (subproc_init): Zap hwait_subproc thread handle since it is no longer used. * spawn.cc (spawn_guts): Fix so that cygthread::terminate is *really* called only for exec.
* * cygthread.cc (cygthread::stub): Don't zero __name here. That introduces aChristopher Faylor2002-10-142-8/+18
| | | | race.
* * include/windows.h: Don't include basetyps.h.Danny Smith2002-10-143-1/+7
| | | | * include/objfwd.h: Do include basetyps.h.
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2002-10-142-4/+6
|
* * cygthread.cc (cygthread::stub): Don't create event for long-running threads.Christopher Faylor2002-10-1311-77/+141
| | | | | | | | | | | | | | | | | | | | | | | | | Initialize thread_sync event here which is used to Suspend using an event rather than relying on SuspendThread/ResumeThread. (cygthread::init): Save handle to runner thread for future termination. (cygthread::cygthread): Only resume thread when it is actually suspended. Otherwise signal thread completion event. (cygthread::terminate): Forcibly terminate runner thread and any helper threads. Call DisableThreadLibrary calls if execing. * cygthread.h (cygthread::thread_sync): Declare. * dcrt0.cc (do_exit): Eliminate calls to obsolete window_terminate and shared_terminate. * exceptions.cc (events_terminate): Don't bother closing title_mutex since it is going away anyway. * pinfo.cc (_pinfo::exit): Call cygthread::terminate to ensure that threads are shut down before process exit or otherwise strange races seem to occur. * shared.cc (shared_terminate): Eliminate. * shared.h (shared_terminate): Eliminate declaration. * winsup.h (window_terminate): Eliminate declaration. * spawn.cc (spawn_guts): Call cygthread::terminate early in process if execing. Call DisableThreadLibrary calls if execing. * window.cc (Winmain): Call ExitThread to force exit. (window_terminate): Eliminate. * dcrt0.cc (do_exit): Track exit state more closely.
* * include/objbase.h: Include rpc.h and rpcndr.hDanny Smith2002-10-132-2/+10
| | | | before header guard.
* * sh.h: Add SH TLS relocs.Kaz Kojima2002-10-112-3/+17
|
* Fix attribution. (Tsk, tsk. Force of habit, sorry.)Richard Sandiford2002-10-111-1/+2
|