bcb4223cbc* fhandler_tty.cc (fhandler_tty::ioctl): Semi-revert 2003-09-26 change for TIOCSWINSZ. It is not an error for ioctl_request_event to be missing. * sigproc.cc (pending_signals::save): New function. (pending_signals::restore): Ditto. (sig_clear): Save/restore current queue pointer. (wait_sig): Delete signals marked as such. * sigproc.h (__SIGDELETE): New enum.
Christopher Faylor
2004-01-21 06:28:35 +0000
1284fa137fremove extra entry
Christopher Faylor
2004-01-20 19:36:58 +0000
67fcf127c1* include/cygwin/version.h: Bump DLL minor number to 8. * cygmalloc.h: Make more concessions to attempts to get debugging malloc working. * debug.h: Ditto. * dlmalloc.cc: Ditto. * dlmalloc.h: Ditto. * malloc_wrapper.cc: Ditto. * perthread.h (perthread::create): Use calloc to ensure zeroed memory.
Christopher Faylor
2004-01-20 19:36:35 +0000
69c7680cf72004-01-20 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-01-20 17:20:34 +0000
fb69e3ed46* sec_acl.cc (setacl): Make sure sd_ret is large enough.
Corinna Vinschen
2004-01-20 09:13:20 +0000
2ad4f99232fix typo
Christopher Faylor
2004-01-20 03:11:39 +0000
701c67ff9eDocument new passwd options.
Joshua Daniel Franklin
2004-01-20 01:00:20 +0000
d795119cbe* sigproc.cc (sigproc_terminate): Don't close sendsig handle when execing since we're not closing what we think we're closing. (sig_send): Improve debugging when exiting due to no_signals_available. * wincap.h (wincaps::cant_debug_dll_entry): New element. * wincap.cc: Implement above element throughout. * dcrt0.cc (initial_env): Accommodate changes necessary to allow initial debugging for systems which do not allow debugging in dll_entry. (dll_crt0_0): Add initial_env call back here. * Makefile.in (install-man): Use mandir as target for installation. * include/cygwin/version.h: Bump DLL minor number to 7 (should have been done earlier).
Christopher Faylor
2004-01-19 23:03:43 +0000
403f752cb22004-01-19 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-01-19 21:30:34 +0000
14aecf24eb* common.h (NT_OPENBSD_IDENT): Define.
Mark Kettenis
2004-01-19 18:28:58 +0000
f6936c48f3* cygwin/include/signal.h: Add copyright notice. * cygwin.din: Make clock SIGFE. Add clock_gettime, sigwaitinfo, timer_create, timer_delete, timer_settime. * include/cygwin/version.h: Reflect above additions. * fork.cc (fork_child): Call fixup_timers_after_fork. * signal.cc (sigwait): Remove unused variable. * timer.cc: New file. (clock_gettime): Define new function. (timer_tracker): Define new struct used by timer functions. (timer_tracker::timer_tracker): New function. (to_us): New function. (timer_thread): New function. (timer_tracker::settime): New function. (timer_create): New function. (timer_settime): New function. (timer_delete): New function. (fixup_timers_after_fork): New function. * cygthread.cc: Bump thread count. * signal.cc (sigwaitinfo): Define new function. (sigwait): Redefine based on sigwaitinfo. * include/cygwin/signal.h (sigwaitinfo): Declare. (sigwait): Ditto. * dtable.cc (dtable::vfork_parent_restore): Avoid double close of ctty when ctty == ctty_on_hold. * cygtls.h (_threadinfo::threadkill): New element. (_threadinfo::set_threadkill): Declare new function. (_threadinfo::reset_threadkill): Declare new function. * dcrt0.cc (dcrt0_1): Call here so that it will be possible to attach to running process with #(*& Windows Me/9x. (initial_env): Try to initialize strace if uninitialized. * gendef: Don't zero signal if threadkill is set since that will happen in the called function. * signal.cc (sigwait): Ensure cleanup in error conditions. * sigproc.cc (sig_send): Clear packet mask storage. (wait_subproc): Fill in child exit code in siginfo_t structure. * thread.cc (pthread_kill): Set threadkill flag. * tlsoffsets.h: Regenerate. Throughout, use siginfo_t to fill out all signal information for "kernel" signals. * cygtls.h (_threadinfo::set_siginfo): Declare new function. * cygtls.cc (_threadinfo::set_siginfo): Define new function. * dcrt0.cc (do_exit): Accommodate siginfo_t considerations. * exceptions.cc (handle_exceptions): Ditto. (sig_handle_tty_stop): Ditto. (ctrl_c_handler): Use killsys() to send signal. (sigpacket::process): Rename from sig_handle. Use siginfo_t field from sigpacket for everything. (tty_min::kill_pgrp): Accommodate siginfo_t considerations. (fhandler_termios::bg_check): Ditto. * fhandler_tty.cc (fhandler_tty_slave::ioctl): Use killsys() to send signal. * signal.cc (kill_worker): Rewrite to use siginfo_t second argument. (kill_pgrp): Ditto. (kill0): Define new function pulled from kill(). (kill): Rewrite as frontend to kill0. (killsys): Define new function. * sigproc.cc (sigelem): Eliminate. (sigpacket): Move to sigproc.h. Subsume sigelem. (pending_signals): Use sigpacket rather than sigelem for everything. (sig_clear): Ditto. (wait_sig): Ditto. (sig_send): Rewrite to use siginfo_t argument. (sig_send): New function wratpper to sig_send with siginfo_t argument. (wait_subproc): Accommodate siginfo_t considerations. * thread.cc (pthread_kill): Ditto. * sigproc.h (sigpacket): Move here. (sigpacket::process): Declare "new" function. (sig_handle): Eliminate declaration. (sig_send): Declare with new paramaters. (killsys): Declare new function. (kill_pgrp): Declare. * winsup.h: Move some signal-specific stuff to sigproc.h. * include/cygwin/signal.h: Tweak some siginfo_t stuff.
Christopher Faylor
2004-01-19 05:46:54 +0000
49fec4c011update
Christopher Faylor
2004-01-19 05:23:02 +0000
ff853e0108* include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit types. (Thanks to John Maddock for report.)
Danny Smith
2004-01-17 07:41:54 +0000
42f5993f2d* dtable.cc (dtable::vfork_parent_restore): Avoid double close of ctty when ctty == ctty_on_hold.
Christopher Faylor
2004-01-17 05:49:42 +0000
85b6d63ba4* libc/stdio/vfprintf.c: Add sys/lock.h include.
Christopher Faylor
2004-01-17 04:29:54 +0000
46ee54222e* fhandler_console.cc (fhandler_console::close): Remove obsolete test for vfork_cleanup. * pipe.cc (fhandler_pipe::close): Add comment.
Christopher Faylor
2004-01-17 03:47:27 +0000
49d0c04260* cygheap.cc (init_cygheap::close_ctty): Don't NULL ctty if it is still active.
Christopher Faylor
2004-01-16 22:54:14 +0000
001197aee3* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to calling close_all_files since it will be zeroed.
Christopher Faylor
2004-01-16 21:51:30 +0000
4af71a917c2004-01-16 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-01-16 19:29:16 +0000
8e7014383b* process.h (cleanup_routine::~cleanup_routine): Make pure virtual function to avoid miscompilation with certain versions of gcc. * process.cc (cleanup_routine::~cleanup_routine): Remove.
Corinna Vinschen
2004-01-16 13:39:25 +0000
c0bd9913052004-01-16 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith
2004-01-16 09:25:01 +0000
42fb62041d2004-01-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-01-16 06:31:49 +0000
d398164fe42004-01-15 Andrew Cagney <cagney@redhat.com>
Andrew Cagney
2004-01-15 23:24:29 +0000
ac02533e08* gentls_offsets: Reinstate unlink of temp files. * fhandler_console.cc (fhandler_console::close): Fix debugging output. (fhandler_console::fixup_after_fork): Decrement open_fhs prior to call to fhandler_console::open since this would cause incrementing too much incrementing in child processes. (Probably needs to be handled more elegantly someday) (fhandler_console::fixup_after_exec): Ditto.
Christopher Faylor
2004-01-15 19:51:49 +0000
6a150987932004-01-15 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-01-15 19:12:17 +0000
d4c437af3e2004-01-15 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-15 07:19:20 +0000
8e5d1131de* Makefile.def (target_modules) [libtermcap, libiberty, zlib]: Stage. * Makefile.tpl (configure-target-[+module+]): Support stage. * Makefile.in: Rebuilt.
DJ Delorie
2004-01-14 21:13:34 +0000
2d1d1eb1e4* cygtls.h (_threadinfo::call): Remove regparm declaration to work around compiler bug. * autoload.cc (TryEnterCriticalSection): Remove. * dcrt0.cc (dll_crt0_0): Delete inappropriate setting of _my_tls.stackptr to NULL since it has really bad consequences. Make 'si' an automatic variable. * cygtls.cc (_threadinfo::init_thread): Correct thinko which caused thread list to be allocated every time. * cygtls.h (CYGTLS_PADSIZE): Define as const int. * sync.h: Make multiple inclusion safe. (muto::next): Eliminate. (muto::exiting_thread): New variable. (muto::set_exiting_thread): New function. (new_muto): Change to use different section for mutos since c++ give inexplicable warning in some cases otherwise. (new_muto1): Ditto. * dcrt0.cc (do_exit): Call muto::set_exiting_thread here. * sync.cc (muto_start): Eliminate. (muto::acquire): Always give exiting thread a lock. Never give thread a lock if exiting. (muto::release): Ditto for releasing. * dtable.cc (dtable::init_lock): Unline function and define here. * dtable.h (lock_cs): Define as a muto since critical sections seem to work oddly on Windows Me. (lock): Accommodate switch to muto. (unlock): Ditto. * exceptions.cc (setup_handler): Don't worry about acquiring mutos since that hasn't mattered for a long time. (signal_exit): Ditto: muto stuff will be handled automatically on exit now. * Makefile.in (DLL_IMPORTS): Link advapi32 to ensure proper DLL initialization. * autoload.cc (RegCloseKey): Arbitrarily choose this function as a "seed" to pull the advapi32 link library in. So, comment out the autoloading. * cygtls.cc (_threadinfo::init_thread): Just clear CYGTLS_PADSIZE. (_threadinfo::remove): Add debugging. (_threadinfo::find_tls): Ditto. * cygtls.h (_threadinfo::padding): Make zero length (for now?). * dcrt0.cc (dll_crt0_0): Move more initialization here from dll_crt0_1. (dll_crt0_1): See above. * dtable.h (dtable::lock): Remove commented out critical section locking. * dtable.h (dtable::init_lock): Remove commented out critical section locking. * dtable.h (dtable::unlock): Remove commented out critical section locking. * exceptions.cc (interruptible): bool'ize. * init.cc (threadfunc_fe): Revert to storing threadfunc at stack bottom. (munge_threadfunc): Ditto. Avoid adding overhead to calibration_thread. (prime_threads): Don't initialize tls stuff. (dll_entry): Make minor change to initialization order. * tlsoffsets.h: Regenerate. * sigproc.cc (wait_sig): Add sanity check for end of process thread exit. * select.h: Make minor formatting change. * Makefile.in: Add still more -fomit-frame-pointer functions. * dtable.h (dtable::lock): New function. (dtable::unlock): New function. (dtable::init_lock): New function. * cygheap.h (HEAP_TLS): Declare new enum value. (init_cygheap::threadlist): Declare new array. (init_cygheap::sthreads): Declare new variable. (cygheap_fdmanip::~cygheap_fdmanip): Use new dtable lock/unlock functions. (cygheap_fdnew::cygheap_fdnew): Ditto. (cygheap_fdget::cygheap_fdget): Ditto. * dtable.cc (dtable_init): Initialize fdtab critical section. (dtable::fixup_after_fork): Ditto. (dtable::fixup_after_exec): Ditto. (dtable::dup2): Use lock/unlock calls to protect access to fdtab. (dtable::find_fifo): Ditto. (dtable::fixup_before_fork): Ditto. (dtable::fixup_before_exec): Ditto. (dtable::set_file_pointers_for_exec): Ditto. (dtable::vfork_child_dup): Ditto. (dtable::vfork_parent_restore): Ditto. * syscalls.cc (close_all_files): Ditto. * sync.h (muto::acquired): Declare new function. (new_muto1): Declare new macro used to specify name of muto storage. * sync.cc (muto::acquired): Define new function. * cygthread.cc (cygthread::stub): Remove signal chain removal call since it is handled during initialization now. * cygthread.cc (cygthread::simplestub): Remove signal chain removal call since it is handled during initialization now. * cygtls.cc (sentry): New class used for locking. Use throughout. (_threadinfo::reset_exception): Don't pop stack. (_threadinfo::find_tls): Move from exceptions.cc. (_threadinfo::init_thread): Initialize array of threads rather than linked list. Take second argument indicating thread function for this thread. (_threadinfo::remove): Search thread array rather than linked list. Use sentry to lock. Only unlock if we got the lock. (_threadinfo::find_tls): Ditto for first two. (handle_threadlist_exception): Handle exceptions when manipulating the thread list in case of premature thread termination. (_threadinfo::init_threadlist_exceptions): Ditto. * cygtls.h (TLS_STACK_SIZE): Decrease size. (_threadinfo::padding): Add element to avoid overwriting lower part of stack. (_threadinfo::remove): Add a "wait" argument to control how long we wait for a lock before removing. * exceptions.cc (init_exception_handler): Make global. Take argument to control exception handler being set. (ctrl_c_handler): Wait forever when removing self from signal chain. (_threadinfo::find_tls): Move to cygtls.cc. (sig_handle): Reorganize detection for thread-specific signals. * heap.cc (heap_init): Rework slightly. Make fatal error more verbose. Remove malloc initialization since it can't happen during dll attach. * init.cc (search_for): Move address to search for on stack here. (threadfunc_ix): Ditto for stack offset. Make shared so that stack walk potentially only has to be done once when cygwin processes are running. (threadfunc_fe): Use standard tls to store thread function (may change back later). (calibration_thread): New function. Potentially called to find threadfunc_ix. (munge_threadfunc): Search for "search_for" value on stack. Output warning when thread func not found on stack. Use standard tls to store thread function. (prime_threads): New function. Called to prime thread front end. (dll_entry): Call dll_crt0_0 here when DLL_PROCESS_ATTACH. Call prime_threads here. Try to remove thread from signal list here. * sigproc.cc (wait_sig): Initialize threadlist exception stuff here. * thread.cc (pthread::exit): Pass argument to signal list remove function. * thread.h: Remove obsolete *ResourceLock defines. * tlsoffsets.h: Regenerate. * winsup.h (spf): Define temporary debug macro to be deleted later. * dcrt0.cc (dll_crt0_0): New function, called during DLL initialization. Mainly consists of code pulled from dll_crt0_1. (dll_crt0_1): See above. (_dll_crt0): Wait for initial calibration thread to complete, if appropriate. Move some stuff to dll_crt0_0. (initialize_main_tls): Accommodate argument change to _thread_info::init_thread. * fork.cc (fork_child): Ditto. (sync_with_child): Fix debug message. * external.cc (cygwin_internal): Remove special considerations for uninitialized dll since initialization happens during dll attach now. * dlfcn.cc (dlopen): Remove obsolete *ResourceLock calls. (dlclose): Ditto. * cygheap.h (init_cygheap::close_ctty): Declare new function. * cygheap.cc (init_cygheap::close_ctty): Define new function. * syscalls.cc (close_all_files): Use close_ctty. (setsid): Ditto. * cygthread.cc (cygthread::stub): Remove exception initialization. * cygthread.cc (cygthread::stub): Remove exception initialization. (cygthread::simplestub): Ditto. * thread.cc (pthread::thread_init_wrapper): Ditto. * cygtls.cc (_last_thread): Make static. (_threadinfo::call2): Initialize exception handler here. (_threadinfo::find_tls): Move here. * exceptions.cc (_threadinfo::find_tls): Move. * dcrt0.cc (__api_fatal): Add prefix info to message here rather than including it in every call to function. * winsup.h (api_fatal): Accommodate above change. * debug.cc (add_handle): Don't do anything if cygheap not around. (mark_closed): Ditto. * dll_init.cc (dll_list::detach): Fix debug output. * fork.cc (sync_with_child): Ditto. (vfork): Improve debug output. * heap.cc (heap_init): Ditto. * exceptions.cc (try_to_debug): Clarify message when debugger attaches.
Christopher Faylor
2004-01-14 15:45:37 +0000
d858958426* gettext.m4: Quote names of macros to be defined by AC_DEFUN throughout.
Maciej W. Rozycki
2004-01-14 13:41:37 +0000
461d06f79d2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
Danny Smith
2004-01-14 07:53:43 +0000
f3de50730e* demangle.h: Instead of checking ANSI_PROTOTYPES, just include "libiberty.h".
Ian Lance Taylor
2004-01-13 03:07:16 +0000
b3273a6953Merge from gcc.
Ian Lance Taylor
2004-01-13 01:51:08 +0000
26a526abf0merge from gcc
DJ Delorie
2004-01-12 21:24:18 +0000
6fb20cd212Add support for relaxation of bit manipulation instructions.
Nick Clifton
2004-01-12 15:02:20 +0000
bcc4e18d5f2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-01-11 18:52:50 +0000
ac51da48182004-01-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin
2004-01-11 08:32:09 +0000
83498941ba(BITOP): Dissallow operations on @aa:16 and @aa:32 except for the H8S.
Nick Clifton
2004-01-09 17:47:17 +0000
c9524c0cd82004-01-08 Joel Sherrill <joel@oarcorp.com>
Jeff Johnston
2004-01-08 19:33:13 +0000
9f13ccb3562004-01-08 Joel Sherrill <joel@oarcorp.com>
Jeff Johnston
2004-01-08 19:25:21 +0000
9488c414882004-01-06 Mark Mitchell <mark@codesourcery.com>
Jeff Johnston
2004-01-06 19:27:21 +0000
5125f919102004-01-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-06 19:26:10 +0000
db040b17592003-12-02 Richard Sandiford <rsandifo@redhat.com> * frv/crt0.S (_start): Fix use of FDPIC conditionals. Move the set of gr11 outside the FDPIC conditional. Avoid clobbering gr4 too early. 2003-11-14 Richard Sandiford <rsandifo@redhat.com> * frv/crt0.S: Fix fdpic sp calculation. 2003-11-05 Alexandre Oliva <aoliva@redhat.com> * frv/crt0.S: Use __stacksize, not __stack, to initialize sp on FDPIC. Update comments on computing _GLOBAL_OFFSET_TABLE_. Don't fixup ctors nor dtors on FDPIC. 2003-09-19 Alexandre Oliva <aoliva@redhat.com> * frv/crt0.S (_start): Set up gr15 only for FDPIC. * frv/crt0.S (_start): Save _GLOBAL_OFFSET_TABLE_ in gr17, and set gr15 before function calls. 2003-09-19 DJ Delorie <dj@redhat.com>, Alexandre Oliva <aoliva@redhat.com> * frv/crt0.S (_start): Set up gr15 with _GLOBAL_OFFSET_TABLE_'s value.
Alexandre Oliva
2004-01-06 19:21:35 +0000
e355180ee5Add N_PATCH to DO definition.
Nick Clifton
2004-01-06 17:05:11 +0000
1d1abb620d* configure.in: Use ./config.cache, not config.cache. * configure: Regenerate. * Makefile.tpl: Special-casing not needed for GCC any more. * Makefile.in: Regenerate.
Nathanael Nerode
2004-01-05 04:38:54 +0000
68c6d8acfc* configure.in: Don't share a cache file for host dirs. * configure: Regenerate.
Nathanael Nerode
2004-01-05 00:50:42 +0000
db527460d5* config-ml.in: Don't mess with the cache file.
Nathanael Nerode
2004-01-05 00:42:16 +0000
edee465c9a2004-01-05 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-04 21:35:32 +0000
ae70c6f183* include/mshtml.h (IHTMLDocument2): Correct write, writeln declarations. Thanks to: Rene Nyffenegger <renenyffenegger@users.sf.net>.
Danny Smith
2004-01-04 09:04:19 +0000
ffdd3bba14* include/mshtml.h (IHTMLDocument2): Correct write, writeln declarations. Thanks to: Rene Nyffenegger <renenyffenegger@users.sf.net>.
Danny Smith
2004-01-03 23:18:31 +0000
b01201ec322004-01-03 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-03 22:12:35 +0000
0efff769fd* exceptions.cc (_threadinfo::interrupt_now): Avoid double call to sigdelayed. * pinfo.cc (_pinfo::commune_send): Avoid inexplicable test which caused most pids to be shown as "<defunct>" on Win9x.
Christopher Faylor
2004-01-03 20:57:11 +0000
c0bece84cdadd missing entry
Christopher Faylor
2004-01-03 19:06:21 +0000
05461d63222004 stuff.
Christopher Faylor
2004-01-03 18:55:14 +0000
85dde362ca2004 stuff
Christopher Faylor
2004-01-03 18:53:49 +0000
d50c22461c* Makefile.tpl: Make GCC use a separate config.cache. * Makefile.in: Regenerate.
Nathanael Nerode
2004-01-03 18:31:06 +0000
5b28b6ef34PR bootstrap/11932, PR bootstrap/11933 (I don't know if it will fix either of them, but it relates to them.) * configure.in: Don't use shared config.cache for target directories. * configure: Regenerate.
Nathanael Nerode
2004-01-03 18:24:38 +0000
e80cbe3e52* cygheap.h (init_cygheap): Play more vfork shell games and move ctty_on_hold and open_fhs_on_hold (back) here. * dcrt0.cc (_dll_crt0): Just set impure_ptr_ptr here and let later initialization deal with tls. * dtable.cc (dtable::vfork_child_fixup): Move ctty considerations here. (dtable:vfork_parent_restore): And here. * fork.cc (vfork): Reflect change to ctty handling. * perthread.h (vfork_save::fhctty): Eliminate. * cygwin.din: Make more exports NOSIGFE that will never be interrupted by a signal. * init.cc (dll_entry): Set stackptr to NULL to catch problems earlier.
Christopher Faylor
2004-01-03 18:15:03 +0000
d84514bd0fmerge from gcc
DJ Delorie
2004-01-02 21:11:29 +0000
6febb8f8f0Split ChangeLog files.
Alan Modra
2004-01-02 11:16:20 +0000
8b93d1c1ab2004-01-02 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-02 03:19:52 +0000
c8b0d378a72004-01-01 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-01 22:34:20 +0000
8e2d4325242004-01-01 Filip Navara <xnavara@volny.cz>
Danny Smith
2004-01-01 11:21:48 +0000
855c33f8b72004-01-01 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith
2004-01-01 11:00:43 +0000
54407e06912004-01-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Danny Smith
2004-01-01 10:31:41 +0000
9330626fd4* lib/ddk/cfgmgr32.def: Remove duplicate symbol names.
Danny Smith
2004-01-01 10:21:01 +0000
4f28a0f0fe2004-01-01 Mattia Barbon <mbarbon@users.sourceforge.net>
Danny Smith
2004-01-01 10:16:13 +0000
c8cbb48c30* configure.in (ia64*-*-hpux*): Disable building java libraries. * configure: Regenerated.
DJ Delorie
2004-01-01 00:07:51 +0000
f7cb207b69* cygtls.h (_threadinfo::stack): Increase stack size to accommodate nested signal handlers. Reorganize to cause potential SEGV on stack overflow. * sigproc.cc (no_signals_available): Check sendsig value rather than relying on obsolete sig_loop_wait. (sigproc_terminate): Ditto. (proc_can_be_signalled): Check sendsig value even for myself. * tlsoffsets.h: Regenerate.
Christopher Faylor
2003-12-30 03:59:45 +0000
8ed5c9b629Move open_fhs from fhandler.h to cygheap.h for easier tracking. Accommodate this change throughout. * dtable.cc (dtable::add_archetype): Use correct count when iterating through *active* archetypes. * dtable.cc (dtable::fixup_after_exec): Close handle if close_on_exec and archetype exists since archetype currently does not set windows close-on-exec flag (FIXME). * fhandler_tty.cc (fhandler_tty_slave::open): Change debugging output slightly. (fhandler_tty_slave::close): Ditto. (fhandler_tty_slave::fixup_after_fork): Just report on inherited use counts since since archetype currently does not set windows close-on-exec flag (FIXME). * pinfo.cc (_pinfo::set_ctty): Change debugging output slightly. * cygheap.cc (cygheap_init): Remove open_fhs accommodation and use count reporting. * perthread.h (vfork_save::fhctty): New element. * perthread.h (vfork_save::open_fhs): New element. * fork.cc (vfork): Muck around with ctty and open_fhs stuff, both of which are now saved in the vfork_save structure.
Christopher Faylor
2003-12-30 01:57:16 +0000
e97377932b* fhandler.h (fhandler_tty_slave::archetype): Make public. (report_tty_counts): New macro. Use throughout for reporting tty use counts. * dtable.cc (dtable::vfork_child_dup): Add debugging output for usecount increment. Increment open_fhs if appropriate. (dtable::vfork_parent_restore): "Close" artificially bumped ctty. (dtable::vfork_child_fixup): Close ctty since it was bumped prior to vfork. Save open_fhs around close since the closing of these handles has no effect on the console. * fhandler_tty.cc (fhandler_tty_slave::open): Reorganize calls to allow for easier tracking of usecount modification. (fhandler_tty_slave::open): Ditto.
Christopher Faylor
2003-12-27 17:41:17 +0000
fe861ce934* syscalls.cc (close_all_files): Simplify logic around closing ctty.
Christopher Faylor
2003-12-27 02:41:07 +0000
e35f197f34* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it counts as an opened handle.
Christopher Faylor
2003-12-27 02:20:07 +0000
1df3fbe2db* fhandler.h (fhandler_tty_master::fixup_after_fork): Remove declaration. (fhandler_tty_master::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_master::init): Fix so that children do not inherit master tty handles. (fhandler_tty_master::fixup_after_fork): Remove, since it was never used. (fhandler_tty_master::fixup_after_exec): Ditto. * pinfo.cc (_pinfo::set_ctty): Increment open_fhs when ctty is set. * cygheap.cc (cygheap_init): Ditto. * syscalls.cc (setsid): *Always* call close on opened ctty since the archetype is associated with the ctty and it counts as an opened handle. * tty.cc (tty::common_init): Don't protect input/output mutex since it confuses subsequent fork/execs when CYGWIN=tty.
Christopher Faylor
2003-12-27 01:59:29 +0000
56b5feb639* exceptions.cc (try_to_debug): Fix off-by-one problem when resetting environment variable after error_start detected. * fhandler_tty_slave.cc (fhandler_tty_slave::close): Clarify debug message. * syscalls.cc (setsid): Don't increment usecount here, since it will be automatically decremented on close.
Christopher Faylor
2003-12-27 00:25:02 +0000
6dc18ca4d3* exceptions.cc (setup_handler): Protect against a race.
Christopher Faylor
2003-12-26 18:30:41 +0000
39add36fc3* path.cc (mount_item::build_win32): Backslashify paths in non-managed case.
Christopher Faylor
2003-12-26 18:26:17 +0000
91301b852f* Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include. (CYGWIN_LIB): Delete. (cygserver.exe target): Add -L$(cygwin_build) to the link line to force linker to use build tree version of the library. Remove specific inclusion of libcygwin.a from the link line.
Christopher Faylor
2003-12-26 05:37:54 +0000
76832a5b32* dcrt0.cc (reent_data): Reluctantly resurrect. (__cygwin_user_data::impure_ptr): Ditto. (_dll_crt0): Reluctantly initialize _impure_ptr here. (initialize_main_tls): Eliminate local_clib initialization since it now happens in init_thread. * init.cc (dll_entry): Reluctantly remove code which set _impure_ptr to the main thread's local_clib. * perthread.h (reent_data): Remove obsolete declaration. * sigproc.cc (proc_subproc): Add more debugging output. (get_proc_lock): Ditto. *dcrt0.cc (dll_crt0_1): Allocate argv[0] via malloc since main thread could exit.
Christopher Faylor
2003-12-26 04:40:52 +0000
1f32b7b382* winsup.api/pthread/rwlock7.c (main): Don't assume that result of rand operation is non-zero.
Christopher Faylor
2003-12-24 04:37:19 +0000
05b2a10ba4* fork.cc (fork_child): After a pthread/fork, ensure that impure pointer stuff which resides in parent is propagated to child thread.
Christopher Faylor
2003-12-23 22:24:38 +0000
281e419402add missing file
Christopher Faylor
2003-12-23 16:43:45 +0000
29d52c8a27* exceptions.cc (set_signal_mask): Redefine to not pass by address. Report calculated mask in debugging output. * sigproc.h (set_signal_mask): Reflect above change in declaration. * path.cc (mount_item::build_win32): Take path apart before feeding it to fnmunge. Throughout, change use of _reent_winsup()-> to _my_tls.locals. instead. Throughout, remove obsolete MT_SAFE/_CYG_THREAD_FAILSAFE considerations. Througout, add cygtls.h include. * Makefile.in (DLL_OFILES): Add cygtls.o. Add some more objects to the -fomit-frame-pointer list. * acconfig.h: Remove obsolete settings. * config.h.in: Ditto. * bsdlib.cc: Add cygtls.h include. * configure.in: Remove --enable-extra-threadsafe-checking. * configure: Regenerate. * cygtls.h (_local_storage): New struct renamed from _winsup_t (sic). (_threadinfo:local_clib): Add new field. (_threadinfo::locals): Ditto. (_threadinfo::init_thread): Accept second _reent * argument. (_threadinfo::call): Define as regparm. (CYGTLS_PADSIZE): Remove unnecessary slop. (_getreent): Define as a macro. * thread.h: Remove _CYG_THREAD_FAILSAFE and MT_SAFE stuff. (_winsup_t): Move to cygtls.h. (ResourceLocks::ResourceLocks): Eliminate empty constructor. (MTinterface::reents): Eliminate. (MTinterface::thread_self_key): Eliminate. (MTinterface::MTinterface): Eliminate. * dcrt0.cc: Include stdio.h for _impure_ptr initialization. (do_global_ctors): Remove run_ctors_p (sic) considerations. Don't call atexit here. (__main): Initialize destructors for user here. (dll_crt0_1): Accept a dummy argument. Don't call init_thread here. Don't set _impure_ptr here. Call do_global_ctors after more things have been initialized. (_dll_crt0): Define zeros buffer as max of needed size of CYGTLS_PADSIZE so that it can be used for two purposes while minimizing stack usage. Initialize _impure_ptr specifically, for speed. Call dll_crt0_1 with buffer argument. (cygwin_dll_init): Call dll_crt0_1 with dummy argument. * dtable.cc (dtable::find_unused_handle): Remove call to AssertResourceOwner. * exceptions.cc: Move _threadinfo stuff to new file. * cygtls.cc: New file. * gentls_offsets: Accommodate increasing complexity of cygtls.h. * hires.h (hires_base::~hires_base): Remove. * init.cc (dll_entry): Remove setting of reents. * thread.cc: Remove syslog.h include. (__getreent): Simplify to use _my_tls. (_reent_winsup): Delete. (AssertResourceOwner): Delete. (MTinterface::Init): Remove setting of _clib and _winsup, with all that entails. (MTinterface::fixup_after_fork): Ditto. (pthread::thread_init_wrapper): Ditto. Also remove call to set_tls_self_pointer. (pthread::set_tls_self_pointer): Eliminate. (pthread::get_tls_self_pointer): Just return _my_tls.tid; (__reent_t::init_clib): Eliminate. * tlsoffsets.h: Regenerate.
Christopher Faylor
2003-12-23 16:26:31 +0000
1fb9256d7e* configure.in (*-*-uclinux): Exclude newlib, libgloss and rda. * configure: Regenerated.
DJ Delorie
2003-12-22 00:59:55 +0000
76f1afec34merge from gcc
DJ Delorie
2003-12-19 16:50:48 +0000
2e20d0cc3bAdd support for m32r-linux target, including a RELA ABI and PIC.
Nick Clifton
2003-12-19 11:44:00 +0000
50ce56d06amerge from gcc
DJ Delorie
2003-12-19 04:04:44 +0000
98f56d64c2* sigproc.cc (proc_subproc): Simplify code to just remove all zombies if SIGCHLD == SIG_IGN.
Christopher Faylor
2003-12-18 04:42:31 +0000
1f8331ae8b* pinfo.h (pinfo::operator ==): Add a way to check for _pinfo types. * sigproc.cc (proc_subproc): Ensure that zombie is removed when SIGCHLD == SIG_IGN but still allow wait()ing threads to wake up.
Christopher Faylor
2003-12-17 22:47:32 +0000
1ed95be609* exceptions.cc (set_signal_mask): Report on input argument rather than getsigmask. * fhandler.h (fhandler_base): Make friends with close_all_files. * pinfo.cc (_pinfo::set_ctty): Add more debugging. * sigproc.cc (proc_can_be_signalled): Detect state when signal handler thread is gone in target process as an EPERM situation. Set errno to ESRCH if process doesn't exist. (sigproc_terminate): Set sendsig to illegal value when closed. (sig_send): Rely on proc_can_be_signalled setting the proper errno. * syscalls.cc (close_all_files): Detect when all ttys are closed prior to calling close_all_files. The ctty needs to be closed explicitly in this case.
Christopher Faylor
2003-12-16 23:28:03 +0000
0c3966ac4e* include/cygwin/ipc.h: Include sys/types.h.
Corinna Vinschen
2003-12-16 10:15:28 +0000
11377ba668* bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535. * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql. * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for kern.ipc.msgmnb and kern.ipc.msgtql.
Corinna Vinschen
2003-12-16 10:13:34 +0000
5c07a5745f* thread.cc (pthread::init_main_thread): Make sure that the main thread has valid handles. (pthread::create_cancel_event): Fix error message.
Christopher Faylor
2003-12-15 14:38:12 +0000
5e2a359c44add out-of-date notice.
Christopher Faylor
2003-12-15 04:44:30 +0000
d627d17183Add missing ChangeLog entry.
Christopher Faylor
2003-12-15 04:17:27 +0000
9908d9977b* winsup.h (access_worker): Declare with added fhandler_base parameter. * syscalls.cc (access_worker): Accommodate extra fhandler_base argument. Use it instead of stat_worker to determine stat information, when appropriate. * fhandler.cc (fhandler_base::device_access_denied): Pass fhandler pointer to access_worker so that it can use the proper method for determining stat information. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.
Christopher Faylor
2003-12-15 04:16:42 +0000
228f99a6c1white space
Christopher Faylor
2003-12-15 03:59:32 +0000