summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * include/math.h (HUGE_VALF, HUGE_VALL, INFINITY, NAN)Danny Smith2005-09-242-5/+9
| | | | Avoid raising FP exceptions.
* * shared.cc (open_shared): Add crucial bit of debugging info.Christopher Faylor2005-09-232-1/+5
|
* Semi-reversion of always-exit-from-sigthread change of 2005-09-15.Christopher Faylor2005-09-235-57/+26
| | | | | | | | | | | | | * exceptions.cc (sigpacket::process): Eliminate return after call to reinstated noreturn function. (signal_exit): Allow function to exit when a captive process has been terminated. * pinfo.cc (pinfo::exit): Enter exit_lock here. Once again exit here under control of exit_lock. * sigproc.cc (sig_send): Don't wait for completion if process is exiting. Remove special __SIGEXIT accommodations. (wait_sig): Just exit the thread when a __SIGEXIT has been detected. Don't exit the process.
* * net.cc (cygwin_gethostbyname): Remove debugging cruft.Christopher Faylor2005-09-232-2/+4
|
* 2005-09-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2005-09-232-0/+11
| | | | | * lib/ddk/newdev.def: Added. Thanks to: Stephan Meyer <ste_meyer at users dot sourceforge dot net>
* * pinfo.cc (pinfo::exit): Call ExitProcess if called from signal thread.Christopher Faylor2005-09-232-1/+9
|
* 2005-09-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2005-09-232-0/+11
| | | | | | * include/commdlg.h (OPENFILENAME): Added WINNT >= 0x0500 component. Thanks to: Gennady Feldman <gena01 at users dot sourceforge dot net>
* * tlsoffsets.h: Regenerate.Christopher Faylor2005-09-232-63/+60
|
* * pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle.Christopher Faylor2005-09-232-10/+6
|
* * enable.m4: New file.Tom Tromey2005-09-233-0/+64
| | | | * tls.m4: New file.
* 2005-09-23 James E Wilson <wilson@specifix.com>Jeff Johnston2005-09-2317-48/+73
| | | | | | | | | * mips/array.ld, mips/cfe.ld, mips/ddb-kseg0.ld, mips/ddb.ld, mips/dve.ld, mips/idt.ld, mips/idt32.ld, mips/idt64.ld, mips/idtecoff.ld, mips/jmr3904app-java.ld, mips/jmr3904app.ld, jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld, mips/nullmon.ld, mips/pmon.ld: Change x* to x.* in existing linkonce lines. Add support for .gnu.linkonce.b.*.
* * cygtls.h (struct _cygtls::thread_handle): Remove/revert.Christopher Faylor2005-09-234-17/+23
| | | | | | | | * sigproc.h (struct sipacket::thread_handle): Put thread_handle here. * sigproc.cc (sigproc_terminate): Move setting of thread_handle... (sig_send): ...to here. Put it in packet being sent. Only close pack.wakeup when we're waiting for completion. (wait_sig): Use thread_handle directly from received packet.
* 2005-09-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2005-09-232-0/+6
| | | | | * lib/shell32.def (SHILCreateFromPath): Add stub. Thanks to: Michael Jung <mjung at iss dot tu-darmstadt dot de>
* * tlsoffsets.h: Regenerate.Christopher Faylor2005-09-232-59/+64
|
* * cygheap.cc (cygheap_fixup_in_child): It's not just for exec.Christopher Faylor2005-09-238-25/+47
| | | | | | | | | | | | | | * cygtls.h (struct _cygtls::thread_handle): New field. * dcrt0.cc (exit_lock): Remove declaration. * winsup.h (exit_lock): Add declaration. * exceptions.cc (sigpacket::process): Properly return after signal_exit. * pinfo.cc (pinfo::exit): Only exit the process if _my_tls.thread_handle has not been filled out -- which should be an impossible event. * sigproc.cc (sigproc_terminate): Fillout _my_tls.thread_handle to provide something for wait_sig to wait for. Use the siginfo_t version of sig_send and fill out the tls argument with _my_tls. (wait_sig): Wait for the thread specified in pack.tls or (for now) complain bitterly if it doesn't exit.
* * pinfo.cc (set_myself): Call strace.hello unconditionally when DEBUGGING.Christopher Faylor2005-09-222-1/+15
| | | | | (pinfo::init): Sleep and issue debugging output before looping when a PID_EXITED is found.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Fix copy/pasteCorinna Vinschen2005-09-222-1/+6
| | | | bug.
* * strace.cc (strace::vsprntf): Avoid accessing myself->pid if !myself.Christopher Faylor2005-09-222-1/+5
|
* * include/sys/strace.h (_STRACE_ON): Remove semicolon from definition.Christopher Faylor2005-09-222-2/+7
| | | | (_STRACE_OFF): Remove semicolon from definition.
* * fhandler.h (fhandler_base::fstat_helper): Declare with additionalCorinna Vinschen2005-09-224-31/+75
| | | | | | | | | | | | | | | | file attributes argument. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Use file attributes evaluated from NtQueryFileInformation or FileInformationByHandle in call to fstat_helper. Set pc.fileattr from just evaluated file attributes here. (fhandler_base::fstat_by_name): Use file attributes evaluated from FindFileFirst or default attribute in call to fstat_helper. Set pc.fileattr from just evaluated file attributes here. (fhandler_base::fstat_helper): Use file attributes given as argument, not file attributes stored in this fhandler, since this information is potentially wrong. Add comment to explain this. * path.h (has_attribute): New global inline function. (path_conv::set_attributes): New method to change fileattr.
* Fix typo.Corinna Vinschen2005-09-211-8/+8
|
* Align error message handling to mkpasswd's error messages throughout.Corinna Vinschen2005-09-213-63/+145
| | | | | | | | | | | | | | | | * mkgroup.c (print_win_error): Create macro calling ... (_print_win_error): ... this function created from former print_win_error. Move up in source. (PDOMAIN_CONTROLLER_INFOW): Define return type of DcGetDcNameW. (dsgetdcname): New function pointer for DcGetDcNameW. (load_netapi): Get DcGetDcNameW address. (main): If DcGetDcNameW is available, use it. * mkpasswd.c (PDOMAIN_CONTROLLER_INFOW): Define return type of DcGetDcNameW. (dsgetdcname): New function pointer for DcGetDcNameW. (load_netapi): Get DcGetDcNameW address. (main): If DcGetDcNameW is available, use it. Rename local variable domain_name_specified to domain_specified as in mkgroup.c.
* * cygthread.cc (cygthread::operator new): Just use getenv() to look forChristopher Faylor2005-09-212-4/+9
| | | | | CYGWIN_FREERANGE_NOCHECK since the Windows environment may be truncated by being previously execed.
* 2005-09-21 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2005-09-213-1/+15
| | | | | | | | | * include/winbase.h (RegisterWaitForSingleObject, RegisterWaitForSingleObjectEx): Define. * lib/kernel32.def (RegisterWaitForSingleObjectEx@20): Define. (RegisterWaitForSingleObject@16): Changed to RegisterWaitForSingleObject@24. Thanks to: Brandon Sneed <nivenh at users dot sourceforge dot net>
* 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-09-202-11/+250
| | | | | * libc/sys/linux/include/stdint.h: Update to match functionality of generic newlib stdint.h.
* 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-09-203-30/+52
| | | | | | | | | | * libc/include/stdint.h (__EXP): Rename to __STDINT_EXP and do not #undef the macro after it is used. Fix typos. Also change 64-bit constants to use the __have_long64 and __have_longlong64 flags to determine if long or long long constants should be used. * libc/include/inttypes.h: Include stddef.h to get wchar_t type defined.
* 2005-09-20 Shaun Jackman <sjackman@gmail.com>Jeff Johnston2005-09-202-12/+17
| | | | | * libc/include/stdint.h: Fix typo in names of LEAST macros.
* 2005-09-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-09-202-0/+5
| | | | | * libc/sys/rtems/include/inttypes.h: Moved to... * libc/include/inttypes.h: ...here.
* * spawn.cc (av::fixup): Just blindly run any file if it has a .bat or .cmdChristopher Faylor2005-09-202-1/+7
| | | | extension.
* 2005-09-19 David Edelsohn <edelsohn@gnu.org>David Edelsohn2005-09-203-62/+92
| | | | | | | | | | | | * configure.in (powerpc-*-aix*): Add target-libssp to noconfigdirs. (rs6000-*-aix*): Same. * configure: Regenerate. 2005-09-14 Francois-Xavier Coudert <coudert@clipper.ens.fr> * configure.in: Recognize f95 in the --enable-languages option, and substitute it for fortran, issuing a warning. * configure: Regenerate.
* * dcrt0.cc (do_exit): Only call sigproc_terminate from one location --Christopher Faylor2005-09-206-21/+45
| | | | | | | | | | | | | | | | | | pinfo::exit. * pinfo.cc (pinfo::exit): Move sigproc_terminate later so that signals can be processed while waiting for hExeced child. (pinfo::maybe_set_exit_code_from_windows): Set exit code from sigExeced if it is non-zero. Set exit_state to ES_EXEC_EXIT prior to waiting for captive process exit code. * exceptions.cc (sigExeced): New global variable. (signal_exit): Remove noreturn attribute from declaration. (signal_exit): Just terminate captive process and return if hExeced on the theory that the exit will be subsequently handled in the main thread. * sigproc.cc (sigproc_terminate): Eliminate test for ES_SIGPROCTERMINATE and use ES_FINAL instead. (sig_send): Use no_signals_available instead of duplicate test. * winsup.h (ES_EXEC_EXIT): New enum. (ES_SIGPROCTERMINATE): Delete.
* 2005-09-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2005-09-192-0/+5
| | | | | * libc/sys/rtems/include/stdint.h: Moved to... * libc/include/stdint.h: ...here.
* white space changes to force new snapshotChristopher Faylor2005-09-191-3/+3
|
* * sigproc.cc (talktome): Take siginfo_t argument. Don't scan all pids tryingChristopher Faylor2005-09-192-7/+12
| | | | | to find one that's talking to me. Just use the pid from siginfo_t. (wait_pid): Pass siginfo_t argument to talktome.
* * include/winsock2.h (SO_EXCLUSIVEADDRUSE): Define.Danny Smith2005-09-192-0/+6
| | | | Thanks to Gisle Vanem <giva at bgnett dot no>
* * include/stdlib.h (strtof): Add prototype. UglifyDanny Smith2005-09-192-6/+25
| | | | | | | | parameter names in inline definition. (wcstof): Likewise. (_Exit): Uglify parameter names in inline definition. (llabs): Add prototype. (_set_error_mode): Add prototype and input defines.
* * pipe.cc (fhandler_pipe::open): Use 'cfree' to free buffer since it is nowChristopher Faylor2005-09-172-1/+6
| | | | allocated by cmalloc.
* * net.cc (cygwin_inet_ntop): Change len argument to socklen_t toCorinna Vinschen2005-09-174-3/+11
| | | | | | follow SUSv3. * include/arpa/inet.h (inet_ntop): Ditto. * include/cygwin/in.h: Include cygwin/socket.h to get socklen_t.
* * environ.cc (build_env): Use "kilo"bytes not "mega"bytes. Return immediatelyChristopher Faylor2005-09-163-2/+11
| | | | | on error. * spawn.cc (spawn_guts): Set return value to -1 on error from build_env.
* * environ.cc (build_env): Clear envblock and return NULL on attempt to use envChristopher Faylor2005-09-163-1/+17
| | | | | var > 32K. * spawn.cc (spawn_guts): Set E2BIG if build_env detects an error.
* * environ.cc (environ_init): Protect with a 'myfault' in caseChristopher Faylor2005-09-162-0/+15
| | | | | | GetEnvironmentStrings misbehaves. * environ.cc (environ_init): Add debugging output with value returned from GetEnvironmentStrings.
* * environ.cc (environ_init): Issue an error if GetEnvironmentStrings fails andChristopher Faylor2005-09-162-0/+11
| | | | return.
* * pinfo.h (EXITCODE_SET): Move out of range of Windows error.Christopher Faylor2005-09-163-19/+23
| | | | | | | | | | | | (EXITCODE_NOSET): Ditto. * sigproc.cc (no_signals_available): Remove check for hwait_sig. Just rely on my_sendsig. Pass in an argument controlling when it is appropriate to test EXITCODE_SET. (proc_can_be_signalled): Remove checks for myself since this function is never called in that context. (sigproc_init): Pre-initialize my_sendsig to non-zero so that proc_can_be_signalled will know that we expect to be signalable soon. (sig_send): Change debugging output.
* * sigproc.cc (no_signals_available): Return true if sending to self from theChristopher Faylor2005-09-165-14/+16
| | | | | | | | signal thread. (wait_sig): Correct so that WaitForSingleObject is called when hMainThread is != 0, rather than the reverse. * cygheap.cc (cygheap_fixup_in_child): Clarify potential error message. * fork.cc (fork_copy): Cosmetic change.
* * sigproc.cc (wait_sig): Reorganize exit case so that ExitProcess is alwaysChristopher Faylor2005-09-152-12/+27
| | | | | called, since that is the intent of sending a __SIGEXIT. Wait forever for main thread to go away since, presumably, the main thread told us it was going away.
* * cygwinenv.sgml (ntea): Add some wording to scare people awayCorinna Vinschen2005-09-152-5/+15
| | | | from using this option.
* * spawn.cc (av::fixup): Avoid breaking out of the wrong "loop".Christopher Faylor2005-09-152-19/+22
|
* * hookapi.cc (hook_or_detect_cygwin): Simplify very slightly.Christopher Faylor2005-09-153-11/+36
| | | | | * spawn.cc (av::fixup): Guard against problems reading an executable which does not match Microsoft's documentation about PE format.
* * spawn.cc (av::error): Eliminate.Christopher Faylor2005-09-142-22/+27
| | | | | | | | | | (av::av): Remove reference to error. (av::replace0_maybe): Ditto. (av::dup_maybe): Ditto. (av::dup_all): Ditto. (av::unshift): Ditto. (spawn_guts): On a fault, return E2BIG only if ENOMEM has been set. Otherwise return EFAULT.
* * cygtls.h (san): New structure.Christopher Faylor2005-09-144-26/+46
| | | | | | | | | | | | (cygtls::andreas): New element. Replaces _myfault and _myfault_errno. (cygtls::fault_guarded): Use andreas. (cygtls::return_from_fault): Ditto. (cygtls::setup_fault): Add a parameter denoting where to store old fault handler, if any and use it to "stack" faults. (cygtls::reset_fault): Restore fault from parameter. (myfault::sebastian): New variable. (myfault::~myfault): Pass sebastian to reset_fault. (myfault::myfault): Store old fault values in sebastian.