summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* white spaceChristopher Faylor2003-12-151-1/+1
|
* Remove erroneous entry.Christopher Faylor2003-12-151-1/+0
|
* * exceptions.cc (ctrl_c_handler): Remove this thread from the signal handlerChristopher Faylor2003-12-142-0/+6
| | | | chain.
* * cygthread.cc (cygthread::stub): Revert previous change and again subsumeChristopher Faylor2003-12-1411-54/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cygthread::stub2. Just return from function now since ExitThread is guaranteed by automatic _threadinfo wrapper. Define as per ThreadProc convention. (cygthread::stub2): Remove. (cygthread::simplestub): Perform similar operations to cygthread::stub. (cygthread::simplestub2): Remove. * cygthread.h (cygthread::stub): Declare as per ThreadProc convention. (cygthread::stub2): Remove declaration. (cygthread::simplestub): Declare as per ThreadProc convention. (cygthread::simplestub2): Remove declaration. * cygtls.h (_threadinfo::call): Define first argument as per ThreadProc convention. (_threadinfo::call2): Ditto. (_tlsbase): Define as char * pointer. (_tlstop): New definition. (_main_tls): Define here. * dcrt0.cc (alloc_stack): Revert previous change which called init_thread since information would be overwritten by fork later anyway. (dll_crt0_1): Use _tlsbase and _tlstop for setting stack bottom, top. * exceptions.cc: Move _main_tls declaration to cygtls.h. (_threadinfo::call): Define first argument as per ThreadProc convention. (_threadinfo::call2): Call ExitThread with thread function return value. (_threadinfo::init_thread): Don't initialize cygtls to zero if input arg is NULL. * fork.cc (fork_child): Reset _main_tls here. Reinitialize parts of _my_tls after copying data from parent. * init.cc (threadfunc_fe): New function. Front-end for all threads created in cygwin processes. (munge_threadfunc): New function. (dll_entry): Call munge_threadfunc to force the call of a thread wrapper. * thread.cc (pthread::thread_init_wrapper): Perform similar operations to cygthread::stub. (pthread::thread_init_wrapper2): Remove. * thread.h (pthread::thread_init_wrapper): Declare as per ThreadProc convention. (pthread::thread_init_wrapper2): Remove declaration. * window.cc (Winmain): Just return from function now since ExitThread is guaranteed by automatic _threadinfo wrapper.
* * include/stdio.h:(_fileno): Define macro version after bothDanny Smith2003-12-133-4/+18
| | | | | | | fileno and _fileno functions declared. * include/stdio.h (_rmtmp, rmtmp): Add prototypes. * moldnames.def.in (rmtmp) Add stub.
* * dtable.cc (dtable::delete_archetype): Add debugging.Christopher Faylor2003-12-123-10/+32
| | | | | | | | | | | | | | (dtable::release): Move archetype deletion here. (dtable::vfork_child_dup): Increment ctty usecount to catch later close_all_files case in parent/child. (dtable::vfork_child_fixup): Avoid using cygheap->foo where this should really be using local references. Call close on archetyped handles since the handles haven't had the noninherit flag set. * fhandler_tty.cc (fhandler_tty_slave::close): Remove archetype deletion code. Add defensive error message when DEBUGGING. (fhandler_tty_common::set_close_on_exec): Use more robust method for checking whether to set handles into noninherit if there is an archetype associated with the fhandler.
* * dcrt0.cc (alloc_stack): Move _main_tls if stack is relocated.Christopher Faylor2003-12-122-13/+21
|
* * miscfuncs.cc (low_priority_sleep): Correct thinko which caused SetPriority toChristopher Faylor2003-12-124-15/+34
| | | | | | | | | be called unnecessarily. * thread.cc (pthread::init_main_thread): Call new create_cancel_event function. (pthread::precreate): Ditto. (pthread::postcreate): Remove cancel_event creation. (pthread::create_cancel_event): Define new function. * thread.h (pthread::create_cancel_event): Declare new function.
* * fhandler_serial.cc (fhandler_serial::tcflush): Simplify. RemoveCorinna Vinschen2003-12-112-14/+28
| | | | read polling loop to avoid a hang with streaming devices.
* * pinfo.cc (_pinfo::set_ctty): Correct stupid typo.Christopher Faylor2003-12-112-1/+5
|
* * cygheap.h (cygheap_types): Add HEAP_ARCHETYPES.Christopher Faylor2003-12-1111-44/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (init_cheap::ctty): Change to pointer. * dtable.h (dtable::find_archetype): Declare new function. (dtable::add_archetype): Declare new function. (dtable::delete_archetype): Declare new function. (dtable::narchetypes): Declare. (dtable::farchetypes): Declare. (dtable::initial_archetype_size): Declare. (dtable::dtable): Initialize new fields. (dtable::initial_archetype_size): Declare. * dtable.cc (dtable::find_archetype): Define new function. (dtable::add_archetype): Define new function. (dtable::delete_archetype): Define new function. (dtable::initial_archetype_size): Define. * fhandler.h (fhandler_base::archetype): Declare. (fhandler_base::usecount): Declare. * fhandler.cc (fhandler_base::fhandler_base): Initialize new fields. * fhandler_console.cc (fhandler_console::get_tty_stuff): Pass NULL to third argument of set_ctty. * fhandler_tty.cc (fhandler_tty_slave::open): Accommodate new archetype method to create only one instance of a tty. (fhandler_tty_slave::close): Don't close handles unless archetype usecount is zero. When that happens, close archetype too. (fhandler_tty_slave::dup): Just copy archetype. Set use count appropriately. Set ctty, if appropriate. (fhandler_tty_common::dup): Remove slave considerations. (fhandler_tty_common::set_close_on_exec): Remove cygheap->ctty considerations. * pinfo.cc (_pinfo::set_ctty): Accommodate new archetype methods. * pinfo.h (_pinfo::set_ctty): Make third argument explicit. * syscalls.cc (close_all_files): Decrement controlling tty use count before closing all handles to allow controlling tty to be closed. Remove previous controlling tty considerations.
* remove debug outputChristopher Faylor2003-12-101-1/+0
|
* * fhandler_tty.cc (fhandler_tty_common::dup): Just copy cygheap->ctty to childChristopher Faylor2003-12-105-22/+40
| | | | | | | | | | | | | if duping the current ctty. (fhandler_tty_common::close): Move debugging statement earlier in function. (fhandler_tty_slave::close): Return success when closing ctty. * syscalls.cc (close_all_files): Avoid calling fhandler_tty_slave close method so that open_fhs will not be decremented when closing cygheap ctty. (setsid): Ditto. * dcrt0.cc (do_exit): Reorganize to avoid leaving a critical section active after vfork. * fhandler.h (fhandler_tty_slave::get_unit): Remove regparm parameter since it can't work in a virtualized function.
* * pinfo.cc (_pinfo::set_ctty): Don't copy over existing ctty if it is active.Christopher Faylor2003-12-092-4/+6
|
* 2003-12-08 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2003-12-087-6/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | * include/winuser.h (DISPLAY_DEVICE_*): Remove defines. * include/wingdi.h (DISPLAY_DEVICE_REMOVABLE, DISPLAY_DEVICE_MODESPRINED): Add defines from winuser.h 2003-12-08 Hartmut Honisch <hhonisch@users.sourceforge.net> * include/commctrl.h (ListView_Get_State, ListView_Check_State): Add macros. * include/wingdi.h (DISPLAY_DEVICE_*): Add multi-monitor constants. * include/shlobj.h (SHCOLUMNINIT); Add structure. (SHCOLUMNDAT): Likwise. (SHCOLUMNID): Likewise. (SHCOLUMNINFO): Likewise. (SHCOLSTATE): Add enum. (IColumnProvider): Add COM interface. (IQueryInfo): Likewise. (IShellIconOverlayIdentifier): Likewise. * include/shlguid.h (IID_IColumnProvider) Declare. (IID_IQueryInfo): Likweise. (IID_IShellIconOverlayIdentifier): Likwise. * lib/shell32.c (IID_IColumnProvider) Define. (IID_IQueryInfo): Likweise. (IID_IShellIconOverlayIdentifier): Likwise.
* 2003-12-08 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2003-12-083-2/+7
| | | | | * configure.in (raw_libstdcxx_flags): Remove the leading space. * configure: Regenerate.
* 2003-12-08 Roald Ribe <rrib@users.sourceforge.net>Danny Smith2003-12-083-1/+10
| | | | | | | | * include/winuser.h (RT_MANIFEST): Add define. 2003-12-08 Pascal Buhler <pbuhler@users.sourceforge.net> * include/oleidl.h (IViewObject2): Inherit from IViewObject.
* * thread.cc (pthread::precreate): Delete duplicate setting of cancel_event.Christopher Faylor2003-12-082-9/+5
|
* * fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it isChristopher Faylor2003-12-084-1/+23
| | | | | | | | | | | guaranteed to be accurate. * fhandler_tty.cc (fhandler_tty_slave::open): Increment open_fhs appropriate when copying ctty. (fhandler_tty_slave::close): Remove special case handling for exit_state. Use ctty < 0 check instead. (fhandler_tty_common::close): Set io_handle to NULL after closing. * syscalls.cc (close_all_files): Specifically close cygheap->ctty, if appropriate.
* * wait.cc (wait4): Move sawsig initialization inside loop.Christopher Faylor2003-12-081-0/+1
|
* * spawn.cc (spawn_guts): Change type back to 'int' after erroneous changeChristopher Faylor2003-12-084-14/+18
| | | | below.
* Change use of BOOL, TRUE, FALSE to bool, true, false, as appropriate,Christopher Faylor2003-12-0741-384/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | throughout. * tty.cc (tty::common_init): Remove call to SetKernelObjectSecurity and edit some comments. * cygheap.h (init_cygheap::ctty): Add new element. * devices.in (device::parse): Remove special handling for /dev/tty. * devices.cc: Regenerate. * dtable.cc (build_fh_pc): Don't reset /dev/tty device. Let the device opener do that. * fhandler_termios.cc (tty_min::set_ctty): Redefine to _pinfo class. * fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Avoid setting noninherit flag for ctty. * tty.h: Move BOOLs to bools. (tty_min::set_ctty): Redeclare to _pinfo class. * pinfo.cc (_pinfo::set_ctty): Define new function based on tty_min::set_ctty. Change first argument from tty number to tty_min class. * pinfo.h (_pinfo::set_ctty): Declare. * fhandler_console.cc (fhandler_console::get_tty_stuff): Reflect move of set_ctty to _pinfo class. * fhandler_tty.cc (fhandler_tty_slave::open): Treat FH_TTY specially. Use saved cygheap value if it exists. Otherwise convert to real device and save on first time open. (fhandler_tty_common::dup): Potentially set controlling tty if duping a slave tty. * syscalls.cc (setsid): Close controlling tty in cygheap. * tty.cc: Change some BOOLs to bools.
* * syscalls.cc (locked_append): New.Corinna Vinschen2003-12-072-29/+34
| | | | | (updwtmp): Remove mutex code and call locked_append. (pututline): Ditto.
* * exceptions.cc (_threadinfo::remove): Avoid a linked list walk.Christopher Faylor2003-12-072-9/+11
|
* * cygtls.h (_threadinfo::find_tls): New function.Christopher Faylor2003-12-073-2/+11
| | | | | * exceptions.cc (_threadinfo::find_tls): Rename from find_tls. Use critical section to protect access to linked list.
* * exceptions.cc (_threadinfo::remove): Avoid returning without unlockingChristopher Faylor2003-12-072-7/+14
| | | | critical section in the (hopefully impossible) case of an unrecognized thread.
* * cygtls.h: Add more "don't parse this" guards.Christopher Faylor2003-12-067-12/+56
| | | | | | | | | | | | | | | | | | | (_threadinfo::init_thread): Rename from 'init'. (_threadinfo::init): Declare new function. (_threadinfo::protect_linked_list): Declare new critical section. * dcrt0.cc (dll_crt0_1): Call init_thread to initialize thread stuff. (_dll_crt0): Call _threadinfo::init prior to invoking dll_crt0_1. * exceptions.cc (_threadinfo::init_thread): Rename from 'init'. (_threadinfo::init): Define new function. Protect linked list manipulation with new critical section. (_threadinfo::call): Reflect function name change. (_threadinfo::remove): Protect linked list manipulation with new critical section * gentls_offsets: Rework to allow multi-line "don't parse this" protection. * init.cc (dll_entry): Don't remove threads info stuff here since the remove function uses a critical section which can't be used during thread creation or destruction. * thread.cc (pthread::exit): Call _threadinfo remove function here.
* * common.h (DT_HIOS): Correct value.Alan Modra2003-12-062-1/+6
|
* 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-053-64/+5
| | | | | * libc/include/sys/stat.h: No longer include stat-dj.h. * libc/include/sys/stat-dj.h: Removed.
* 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-052-0/+6
| | | | * libc/include/wchar.h: Include <sys/reent.h>.
* Revert accidental checkin.Christopher Faylor2003-12-054-22/+1
|
* * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors whenChristopher Faylor2003-12-0511-8/+45
| | | | | | | | | | | | | defining _mbrtowc. * libc/stdlib/mbsinit.c: Ditto. * libc/stdlib/mbsrtowcs.c: Ditto. * libc/stdlib/wcrtomb.c: Ditto. * libc/stdlib/wcsrtombs.c: Ditto. * libc/stdlib/wctob.c: Ditto. * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when defining _mbrtowc. * libc/stdlib/mbsinit.c: Ditto. * libc/stdlib/mbsrtowcs.c: Ditto.
* * libc/stdlib/mbrtowc.c: Change include order to prevent compiler errors whenChristopher Faylor2003-12-052-1/+6
| | | | defining _mbrtowc.
* * cygthread.cc (cygthread::stub2): Remove myself from the list of threadsChristopher Faylor2003-12-052-5/+11
| | | | | | monitored by signals since this thread will never call raise or sigwait. (cygthread::simplestub2): Ditto. Set ev here. (cygthread::cygthread): Don't set ev here for freerange thread.
* * path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in aChristopher Faylor2003-12-052-1/+6
| | | | UNC path.
* * exceptions.cc (setup_handler): Remove ill-advised debugging output.Christopher Faylor2003-12-052-4/+4
|
* 2003-12-04 Artem B. Bityuckiy <abitytsky@softminecorp.com>Jeff Johnston2003-12-053-51/+130
| | | | | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Use _r versions of mb routines for %lc and %ls support. * libc/stdio/vfscanf.c (_svfscanf_r): Add %lc, %C, %ls, and %S support. Remove CYGNUS_NEC markers and code within.
* 2003-12-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-12-052-0/+10
| | | | | * libc/include/wchar.h: Add prototypes for _mbrtowc_r, _wcrtomb_r, and _wcsrtombs_r.
* bfd/H.J. Lu2003-12-042-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * elfxx-ia64.c (elfNN_ia64_relax_section): Use the need_relax_finalize field in link_info instead of relax_finalizing to check if the relax finalize pass is being done. include/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Change relax_finalizing to need_relax_finalize. ld/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Set link_info.need_relax_finalize to TRUE. * ldlang.c (lang_process): Use link_info.need_relax_finalize instead of link_info.relax_finalizing. * ldmain.c (main): Likewise.
* * include/cygwin/types.h (struct __fcntl64): Fix datatype of l_start.Corinna Vinschen2003-12-042-1/+5
|
* Add support for the M32R2 processor.Nick Clifton2003-12-032-14/+37
|
* Substitute 0x7fffffff and 0xffffffff by INT32_MAX and UINT32_MAXCorinna Vinschen2003-12-0311-16/+21
| | | | throughout, except in assembler code.
* * fhandler_disk_file.cc (fhandler_disk_file::lock): Use UINT32_MAXCorinna Vinschen2003-12-032-3/+12
| | | | | instead of 0xffffffff. Accomodate Win 9x bug in evaluating length of area to lock when given length is 0.
* * fhandler_disk_file.cc (fhandler_disk_file::lock): InterchangeCorinna Vinschen2003-12-032-2/+7
| | | | values of off_low and off_high.
* * fcntl.cc (fcntl_worker): Remove static storage class.Corinna Vinschen2003-12-034-15/+24
| | | | | | * flock.cc (flock): Use struct __flock64. Call fcntl_worker. Use Cygwin errno functions instead of accessing errno directly. * winsup.h: Declare fcntl_worker.
* * fcntl.cc (_fcntl): Whitespace cleanup.Corinna Vinschen2003-12-032-3/+7
|
* * cygthread.cc (cygthread::stub): Properly establish _threadinfo environment.Christopher Faylor2003-12-039-64/+80
| | | | | | | | | | | | | | | | | | | | | | | (cygthread::stub2): New function. (cygthread::simplestub): Ditto. (cygthread::simplestub2): New function. * cygthread.h (cygthread::stub2): Declare new function. (cygthread::simplestub2): Ditto. * cygtls.h (_threadinfo::call): Declare new function. (_threadinfo::call2): Ditto. * dcrt0.cc (dll_crt0_1): Accommodate new _threadinfo::init which doesn't return pointer to tls. (_dll_crt0): Remove obsolete DECLARE_TLS_STORAGE. (dll_crt0): Ditto. * exceptions.cc (_threadinfo::call): New function. (_threadinfo::call2): Ditto. (_threadinfo::init): Don't return pointer. * thread.cc (pthread::thread_init_wrapper): Properly establish _threadinfo environment. (pthread::thread_init_wrapper2): New function. * thread.h (pthread::thread_init_wrapper): Remove noreturn attribute (pthread::thread_init_wrapper2): Declare new function. * winbase.h: Remove obsolete code.
* * Makefile.in: Change the way that -f options are appended to CFLAGS, slightly.Christopher Faylor2003-12-032-2/+7
|
* * fcntl.cc (_fcntl): Silence a compiler warning.Christopher Faylor2003-12-022-3/+7
|
* Rename bfd_link_hash_entry field "next" -> "und_next".Alan Modra2003-12-022-1/+7
|