aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-11-26* child_info.h (child_info_spawn::hexec_proc): Eliminate.Christopher Faylor33-797/+655
* dcrt0.cc (dll_crt0_0): Remove hexec_proc stuff. * fork.cc (fork_child): Remove call to pinfo_fixup_after_fork. * pinfo.cc (set_myself): Close and zero pid_handle if set. (pinfo_fixup_after_fork): Delete. (proc_waiter): Don't close vchild.hProcess here. Do that when we are remove the vchild from procs. Save hProcess as pid_handle only on first reparent operation. (pinfo::wait): Don't set pid_handle here. (pinfo::alert_parent): Always try to send signal. If unsuccessful then close and zero wr_proc_pipe. * pinfo.h (pinfo::pinfo): Make sure that appropriate parts of the class are zeroed on construction. (pinfo::alert_parent): Take char argument. (pinfo_fixup_after_fork): Delete declaration. (hexec_proc): Ditto. * sigproc.cc (remove_proc): Close pid_handle and hProcess if appropriate. * spawn.cc (spawn_guts): Set cygheap->pid_handle on first exec. * cygheap.h (init_cygheap::pid_handle): New element. * pinfo.cc (set_myself): Clear previously existing cygheap->pid_handle when a new process has been started. (pinfo::wait): Make sure that a handle to the newly forked/spawned process is kept around so that the pid will not be reused. * pinfo.h (_pinfo::pid_handle): Move. (pinfo::pid_handle): to here. * spawn.cc (spawn_guts): Create a pid_handle in cygheap prior to spawning to ensure that the pid does not get reused during the lifetime of the "cygwin pid". * pinfo.h (pinfo::alert_parent): New function. * exceptions.cc (sig_handle_tty_stop): Use alert_parent to send "signals" to parent. * fork.cc (fork_parent): Don't close pi.hProcess. Let the waiter thread do that. * pinfo.cc (proc_waiter): Detect case where process exits without setting the exit code and use value from GetExitCodeProcess. Reluctantly implement __SIGREPARENT. (pinfo::alert_parent): Define. * sigproc.h (__SIGREPARENT): New enum. * spawn.cc (spawn_guts): Send reparent signal to parent on exec. Always create process in suspended state to avoid races. Remove cygthread.h in favor of cygtls.h throughout since cygtls now includes cygthread.h. Eliminate ppid_handle usage throughout. * child_info.h: Regenerate magic number (child_info): Remove pppid_handle. * cygthread.h (cygthread::release): New method. Frees thread without waiting. * cygthread.cc (cygthread::stub): Set _ctinfo in _mytls to point to information for executing thread. Don't call SetEvent if thread is no longer in use. (cygthread::simplestub): Ditto. * cygtls.h (_cygtls::_ctinfo): New element contains pointer to information about executing cygthread, if any. * dcrt0.cc: Remove last vestiges of per_thread stuff. (dll_crt0_0): Ditto. Remove accommodation for ppid_handle. (do_exit): Remove obsolete reparenting test. (_exit): Exit with a more SUSv3-like exit value. * dtable.cc (dtable::stdio_init): Check for myself->cygstarted rather than myself->ppid_handle to see if we were started by a cygwin process. * exceptions.cc (open_stackdumpfile): Ditto. (handle_exceptions): Ditto. (ctrl_c_handler): Ditto. (sig_handle_tty_stop): Ditto. Let parent send signal to itself on STOP. (sigpacket::process): Comment out vfork test. (signal_exit): Use more SUSv3-like exit value on signal. * external.cc (fillout_pinfo): Don't set hProcess. * fork.cc: Remove VFORK cruft. (per_thread::set): Delete. (fork_child): Remove perthread stuff. (fork_parent): Remove obsolete subproc_init. Accommodate new method for tracking subprocesses. * pinfo.cc (set_myself): Accommodate new pinfo/_pinfo layout. Set some things here that used to be set in wait_sig. (_pinfo::exit): Set exitcode here. Close process pipe. (_pinfo::commune_send): Accommodeate new pinfo/_pinfo layout. (proc_waiter): New function. Waits, in a thread for subprocess to go away. (pinfo::wait): New function. Initialization for proc_waiter. * pinfo.h (_pinfo::exitcode): New element. (_pinfo::cygstarted): Ditto. (_pinfo::wr_proc_pipe): Ditto. (_pinfo::ppid_handle): Delete. (_pinfo::hProcess): Delete. (_pinfo::lock): Delete. (pinfo::hProcess): New element. (pinfo::lock): Ditto. (pinfo::wait): Declare new function. (pinfo::preserve): Define new function. * sigproc.cc: Remove old stuff from wait_subproc thread based method. (zombies): Remove. (procs): New. (my_parent_is_alive): Just check that the parent pid exists. (mychild): Just use pinfo methods to determine if child is mine. (proc_subproc): Revamp PROC_ADDCHILD to use pinfo::wait. Remove PROC_CHILDTERMINATED logic. Use different method to remove processes from list when SIGCHLD == SIG_IGN. (proc_terminate): Gut. (subproc_init): Delete. (init_child_info): Remove setting of pppid_handle. (checkstate): Revamp to only scan procs array. (remove_proc): Rename from remove_zombie. Don't close hProcess or pid_handle. Don't release memory if it's myself. (stopped_or_terminated): Change logic to handle new consolidated proc/zombie array. (wait_subproc): Delete. * sigproc.h: Remove obsolete EXIT_* defines. (subproc_init): Remove declaration. * spawn.cc (spawn_guts): Remove reparenting stuff. Use standard wait logic to wait for child if started from a non-cygwin process. * tlsoffsets.h: Regenerate. * tty.cc (tty_init): Check for myself->cygstarted rather than myself->ppid_handle to see if we were started by a cygwin process. * include/sys/signal.h (external_pinfo::exitcode): Replace hProcess. * include/sys/wait.h (WCOREDUMP): Define. * fhandler_tty.cc (fhandler_tty_slave::read): Add debugging output for timeout case. * signal.cc (abort): Flag that we are exiting with the ABORT signal.
2004-11-25gas/Jan Beulich2-9/+19
2004-11-25 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (optimize_imm): Adjust immediates to only those permissible for the selected instruction suffix. (process_suffix): For DefaultSize instructions, suppressing the guessing of a 'q' suffix if the instruction doesn't support it is pointless, because only an 'l' suffix can be guessed in this place. gas/testsuite/ 2004-11-25 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-inval.[sl]: Remove sahf/lahf. include/opcode/ 2004-11-25 Jan Beulich <jbeulich@novell.com> * i386.h: CpuNo64 mov can't reasonably have a 'q' suffix. Moves to/from test registers are illegal in 64-bit mode. Add missing NoRex64 to sidt. fxsave/fxrstor now allow for a 'q' suffix (previously one had to explicitly encode a rex64 prefix). Re-enable lahf/sahf in 64-bit mode as at least some Athlon64/Opteron steppings support it there. Add cmpxchg16b as per Intel's 64-bit documentation.
2004-11-242004-11-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-1/+1
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove const for value string parameter to match Single Unix and glibc. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/putenv_r.c: Ditto.
2004-11-242004-11-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston4-4/+11
* libc/include/stdlib.h (putenv, _putenv_r): Change to remove const for value string parameter. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/putenv_r.c: Ditto.
2004-11-242004-11-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-2/+7
* libc/stdio/Makefile.am: Fix missing vfscanf. * libc/stdio/Makefile.in: Regenerated.
2004-11-242004-11-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston23-420/+1445
* libc/include/stdio.h: Add new iprintf and iscanf variants. Also do some reordering. * libc/machine/powerpc/vfscanf.c: Remove __sccl function. * libc/stdio/Makefile.am: Add support for new iprintf and iscanf family functions. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/fiprintf.c: Remove doc to siprintf.c. * libc/stdio/iprintf.c: Ditto. * libc/stdio/local.h (__svfiscanf_r): New prototype. * libc/stdio/siprintf.c: Add docs for various iprintf family functions. * libc/stdio/sniprintf.c: Move docs to siprintf.c. * libc/stdio/stdio.tex: Add new functions. * libc/stdio/vfscanf.c: Split out __sccl function to separate file and add special name defines so this file can be used to build vfiscanf.o. * libc/stdio/asiprintf.c: New file. * libc/stdio/fiscanf.c: Ditto. * libc/stdio/iscanf.c: Ditto. * libc/stdio/sccl.c: Ditto. * libc/stdio/siscanf.c: Ditto. * libc/stdio/vasiprintf.c: Ditto. * libc/stdio/viprintf.c: Ditto. * libc/stdio/viscanf.c: Ditto. * libc/stdio/vsiprintf.c: Ditto. * libc/stdio/vsiscanf.c: Ditto. * libc/stdio/vsniprintf.c: Ditto.
2004-11-23gas/Jan Beulich2-25/+33
2004-11-23 Jan Beulich <jbeulich@novell.com> * config/tc-i386.h (CpuMMX2): Declare. Artificial classifier to indicate the MMX extensions added by both SSE and 3DNow!A. (Cpu3dnowA): Declare. (CpuUnknownFlags): Update. * config/tc-i386.c (cpu_sub_arch_name): Declare. (cpu_arch): i586 and pentium do not imply MMX. i686 and pentiumpro do neither imply SSE nor MMX. k6 implies MMX. k6_2 additionally implies 3DNow!. Athlon additionally implies 3DNow!A. Several new entries (those starting with a dot are for sub-arch specification). (set_cpu_arch): Handle sub-arch specifications. (parse_insn): Distinguish between instructions not supported because of insufficient CPU features and because of 64-bit mode. * doc/c-i386.texi: Describe enhanced .arch directive. include/opcode/ 2004-11-23 Jan Beulich <jbeulich@novell.com> * i386.h (i386_optab): paddq and psubq, even in their MMX form, are available only with SSE2. Change the MMX additions introduced by SSE and 3DNow!A to CpuMMX2 (rather than CpuMMX). Indicate the 3DNow!A instructions by their now designated identifier (since combining i686 and 3DNow! does not really imply 3DNow!A).
2004-11-22* select.cc (select_stuff::test_and_set): Remove extraneous tests ofChristopher Faylor1-0/+5
"window_handle".
2004-11-212004-11-21 Benoit Blanchon <bblanchon@users.sourceforge.net>Danny Smith3-6/+21
* include/wingdi.h (AC_SRC_ALPHA, AC_SRC_NO_ALPHA, AC_DST_NO_ALPHA, ...): Add defines. * include/winuser.h (ULW_COLORKEY,ULW_ALPHA, ULW_OPAQUE): Add defines. Change email address in ChangleLog to sourceforge alias
2004-11-21 * include/winnt.h (VerSetConditionMask): Correct typo in _WIN32_WINNTDanny Smith4-4/+11
guard. * lib/kernel32.def (VerSetConditionMask): Correct stdcall suffix. * lib/ddk/ntoskrnl.def (VerSetConditionMask): Likewise.
2004-11-202004-11-20 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet3-2/+6
* fhandler.cc (fhandler::write): Remove debug_printf. * pipe.cc (fhandler_pipe::create): Edit syscall_printf format.
2004-11-202004-11-20 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet7-39/+55
* cygheap.h (cygheap_user::get_windows_id): New method. * registry.h (get_registry_hive_path): Change argument type. (load_registry_hive): Ditto. * registry.cc (get_registry_hive_path): Change argument type and take Win9x keys into account. (load_registry_hive): Ditto. * uinfo.cc (cygheap_user::env_userprofile): Use get_windows_id, even for SYSTEM. * shared.cc (user_shared_initialize): Use get_windows_id. * syscalls.cc (seteuid32): Load the registry hive and reload the user shared also on Win9x.
2004-11-202004-11-19 Shaun Jackman <sjackman@gmail.com>Jeff Johnston6-11/+168
* libc/include/stdio.h: Add sniprintf. * libc/stdio/Makefile.am: Add sniprintf.c. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/sniprintf.c: New file. * libc/stdio/stdio.tex: Add sniprintf.
2004-11-20 * include/winbase.h (PPROCESS_INFORMATION): Add typedef.Danny Smith2-4/+19
(CreateProcessWithLogonW): Declare. (LOGON_WITH_PROFILE, LOGON_NETCREDENTIALS_ONLY): Add defines. Thanks to: "jkmaki" <jkmaki@users.sourceforge.net> Correct some ChangeLog typos.
2004-11-19include/opcode/Alan Modra2-91/+5
* msp430.h (struct rcodes_s, MSP430_RLC, msp430_rcodes, struct hcodes_s, msp430_hcodes): Move to gas/config/tc-msp430.c. gas/ * config/tc-msp430.c (struct rcodes_s, MSP430_RLC, msp430_rcodes, struct hcodes_s, msp430_hcodes): From include/opcode/msp430.h.
2004-11-19 * include/sspi.h (SecPkgContext_Sizes): Fix typo.Danny Smith2-1/+6
Thanks to: David Leonard <leonard@users,sourceforge.net>
2004-11-19 * include/sspi.h (SecPkgCredentials_Names[AW]): Correct name.Danny Smith2-6/+11
Thanks to: David Leonard <leonard@users,sourceforge.net>
2004-11-192004-11-19 Magnus Olsen <greatlord@sourceforge.users.net>Danny Smith2-0/+12
* include/winuser.h (MSLLHOOKSTRUCT): Add structure.
2004-11-192004-11-19 Magnus Olsen <greatlord@sourceforge.users.net>Danny Smith2-1/+10
* include/winuser.h (LLKHF_EXTENDED, LLKHF_INJECTED, LLKHF_UP): Add defines. (LLKHF_ALTDOWN): Define based on KF_ALTDOWN,
2004-11-192004-11-19 Benoit Blanchon <benoit.blanchon@free.fr>Danny Smith2-1/+10
* include/shellapi.h (NIF_GUID): Add define. Correct my 2004-11-04 Changelog entry
2004-11-18 * include/w32api.h (Windows95, etc. and IE3, etc.): Add definitions.Earnie Boyd2-0/+37
2004-11-182004-11-18 Earnie Boyd <earnie@users.sf.net>Earnie Boyd2-1/+2
* include/wincon.h (AttachConsole): Correct the _WIN32_WINNT filter. Changed it twice due to inconsistent MSDN documentation.
2004-11-182004-11-18 Earnie Boyd <earnie@users.sf.net>Earnie Boyd2-1/+5
* include/wincon.h (AttachConsole): Correct the _WIN32_WINNT filter.
2004-11-18* cygcheck.cc (eprintf): New function.Bas van Gompel2-0/+13
2004-11-17* libc/stdio/refill.c (__srefill): Try again after EOF on Cygwin. Clear EOFChristopher Faylor2-0/+13
flag if successful.
2004-11-16* cygcheck.cc (find_on_path): Clear show_error and/or print_failedBas van Gompel2-6/+14
parameters to display_error. (rva_to_offset): Ditto. (dll_info): Ditto. (track_down): Ditto.
2004-11-162004-11-15 Kelley Cook <kcook@gcc.gnu.org>DJ Delorie5-8/+32
* install-sh, compile: Import from automake. * config.guess, config.sub: Import from savannnah.
2004-11-15bfd/Paul Brook2-1/+10
* elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype. * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument. (_bfd_elf_slurp_version_tables): Add extra argument. Create extra default version definition for unversioned symbols. * elfcode.h (elf_slurp_symbol_table): Pass extra argument. * elflink.c (elf_link_add_object_symbols): Pass extra argument to _bfd_elf_slurp_version_tables. Set default version for unversioned imported symbols. include/ * bfdlink.h (bfd_link_info): Add default_imported_symver. ld/ * ld.texinfo: Document --default-imported-symver. * ldmain.c (main): Set link_info.default_imported_symver. * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER. (ld_options): Add --default-imported-symver. (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
2004-11-13 * Makefile.def: Add html support.Mike Stump4-2/+2289
* Makefile.tpl: Likewise. * Makefile.in: Regenerate.
2004-11-132004-11-13 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2-14/+29
* kill.cc (forcekill): Do not pass negative pids to cygwin_internal. Check if sig == 0. Improve error messages. (main): Make pid a long long and distinguish between pids, gpids (i.e. negative pids) and Win9x pids.
2004-11-13 * include/shlobj.h (SHGFP_TYPE): Add enum.Danny Smith2-1/+11
2004-11-132004-11-12 Lo�c Guilloux (glx@users.sourceforge.net>Danny Smith2-0/+5
* include/winuser.h (WM_THEMECHANGED): Add define.
2004-11-122004-11-12 Bob Wilson <bob.wilson@acm.org>Bob Wilson3-0/+19
include/ChangeLog * xtensa-isa-internal.h (xtensa_interface_internal): Add class_id. * xtensa-isa.h (xtensa_interface_class_id): New prototype. bfd/ChangeLog * xtensa-isa.c (xtensa_interface_class_id): New. gas/ChangeLog * config/tc-xtensa.c (finish_vinsn): Clear pending instruction if there is a conflict. (check_t1_t2_reads_and_writes): Check for both reads and writes to interfaces that are related as determined by xtensa_interface_class_id.
2004-11-12 PR 18423Geoffrey Keating5-84/+87
* configure.in: Remove all instances of build-fixincludes from noconfigdirs. (build_configargs): Supply --target to subdirectories. * configure: Regenerate. * Makefile.def: Make gcc install depend on fixincludes install. * Makefile.in: Regenerate.
2004-11-12 * include/ddk/winddk.h (ExAllocateFromPagedLookasideList,Danny Smith2-20/+44
ExFreeToPagedLookasideList): Guard inline versions with (__USE_NTOSKRNL__) && (_WIN32_WINNT >= 0x0501). Declare as external functions for earlier _WIN32_WINNT.
2004-11-11* include/cygwin/version.h: Bump DLL minor number to 13.Christopher Faylor2-1/+5
2004-11-11* cygcheck.cc: Change "keyeprint" to "display_error" throughout.Christopher Faylor2-40/+44
2004-11-11* cygcheck.cc (main): Allow a '-l' without an additional argument.Christopher Faylor2-10/+8
2004-11-11* cygcheck.cc (keyeprint): New optional parameters: show_error andBas van Gompel2-2/+12
print_failed.
2004-11-10 * include/ras.h (RASCONN[AW]): Remove dwSessionId field.Danny Smith2-4/+6
Fix typos in last ChangeLog entry
2004-11-09 * include/winnls.h (WINBASEAPI): Define as DECLSPEC_IMPORT.Danny Smith2-75/+89
if undefined. and __W32API_USE_DLLIMPORT__. Add WINBASEAPI token to prototypes, throughout.
2004-11-08 * configure.in (noconfigdirs) [mmix-*-*]: DisableHans-Peter Nilsson3-2/+8
target-libgfortran. * configure: Regenerate.
2004-11-08 * config-ml.in: Pass FCFLAGS for multilibs, handle GFORTRANDavid Edelsohn2-1/+20
like CC.
2004-11-08Add support fpr MAXQ processorNick Clifton6-1/+1201
2004-11-08 * include/winnt.h (GetCurrentFiber): Support -masm=intel.Danny Smith2-6/+48
(GetFiberData): Likewise. (NtCurrentTeb): Likewise.
2004-11-08Fix support for PECOFF weak symbolsNick Clifton2-1/+12
2004-11-052004-11-05 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
* i386.h (i386_optab): Put back "movzb".
2004-11-052004-11-05 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini3-92/+21
* Makefile.def (host fixincludes): Specify missing targets. * Makefile.in: Regenerate.
2004-11-052004-11-05 Tomer Levi <Tomer.Levi@nsc.com>Tomer Levi1-0/+4
* opcode/crx.h (enum argtype): Rename types, remove unused types.
2004-11-052004-11-05 Tomer Levi <Tomer.Levi@nsc.com>Tomer Levi1-5/+4
* opcode/crx.h (enum argtype): Rename types, remove unused types.