edc4f86ad2* Makefile.in (clean): Remove sigfe.s. (sigfe.s): Ensure that sigfe.s will be regenerated if it does not exist. * dll_init.cc (dll_dllcrt0): Simplify initializing tests. * exceptions.cc (setup_handler): Detect when stub caller is either spinning or has acquired the lock after being suspended to avoid windows problems with suspending a win32 API call. * cygtls.h (_cygtls::spinning): Declare new element. * gendef: Remove unused _siglist_index and _siglist declaration. (_sigfe): Set spinning element when potentially looping, waiting for lock. (_sigbe): Ditto. (_cygtls::lock): Ditto. (_longjmp): Ditto. * tlsoffsets.h: Regenerate. * pinfo.cc (_pinfo::exit): Set final exit state here. Call sigproc_terminate if invoked with 'norecord'. Clear any residual _cygtls stuff. * winsup.h (exit_states): Define ES_FINAL. * spawn.cc (spawn_guts): Don't call proc_terminate specifically when execing. Let _pinfo::exit handle that case. * sigproc.cc (wait_subproc): Always exit loop early when proc_loop_wait. * init.cc (munge_threadfunc): Eliminate unused argument. (dll_entry): Reflect above change in call to munge_threadfunc.
Christopher Faylor
2004-02-13 19:34:32 +0000
b3535c2730* gendef (_sigbe): Zero location on pop. (_cygtls::pop): Ditto.
Christopher Faylor
2004-02-12 04:55:29 +0000
b91faaabea* dcrt0.cc (alloc_stack_hard_way): Eliminate second argument. (alloc_stack): Remove use of 'b' throughout.
Christopher Faylor
2004-02-12 03:07:35 +0000
e431827c7cRename _threadinfo to _cygtls, throughout. * cygtls.h (_cygtls::call_signal_handler): Rename from call_signal_handler_now. (_cygtls::push): Make second argument mandatory. (_cygtls::fixup_after_fork): Declare new function. (_cygtls::lock): Ditto. * cygtls.cc (_cygtls::fixup_after_fork): Define new function. * dcrt0.cc (cygwin_finished_initializing): Define as bool. (alloc_stack): Use _tlstop rather than arbitrary variable in probably vain attempt to avoid strange fork problem on CTRL-C. (dll_crt0_0): Remove obsolete winpids::init call. * dll_init.cc (dll_dllcrt0): Detect forkee condition as equivalent to initializing. * winsup.h (cygwin_finished_initializing): Declare as bool. * exceptions.cc (handle_exceptions): Rely on cygwin_finished_initializing to determine how to handle exception during process startup. (_cygtls::call_signal_handler): Rename from call_signal_handler_now. (_cygtls::interrupt_now): Fill in second argument to push. (signal_fixup_after_fork): Eliminate. (setup_handler): Initialize locked to avoid potential inappropriate unlock. Resume thread if it has acquired the stack lock. (ctrl_c_handler): Just exit if ctrl-c is hit before cygiwn has finished initializing. * fork.cc (sync_with_child): Don't call abort since it can cause exit deadlocks. (sync_with_child): Change debugging output slightly. (fork_child): Set cygwin_finished_initializing here. Call _cygtls fork fixup and explicitly call sigproc_init. (fork_parent): Release malloc lock on fork failure. (vfork): Call signal handler via _my_tls. * sigproc.cc (sig_send): Ditto. * syscalls.cc (readv): Ditto. * termios.cc (tcsetattr): Ditto. * wait.cc (wait4): Ditto. * signal.cc (nanosleep): Ditto. (abort): Ditto. (kill_pgrp): Avoid killing self if exiting. * sync.cc (muto::acquire): Remove (temporarily?) ill-advised exiting_thread check. * gendef (_sigfe): Be more agressive in protecting stack pointer from other access by signal thread. (_cygtls::locked): Define new function. (_sigbe): Ditto. (_cygtls::pop): Protect edx. (_cygtls::lock): Use guaranteed method to set eax to 1. (longjmp): Aggressively protect signal stack. * miscfuncs.cc (low_priority_sleep): Reduce "sleep time" for secs == 0. * pinfo.cc (winpids::set): Counterintuitively use malloc's lock to protect simultaneous access to the pids list since there are pathological conditions which can cause malloc to call winpid. (winpids::init): Eliminate. * pinfo.h (winpids::cs): Eliminate declaration. * pinfo.h (winpids::init): Eliminate definition.
Christopher Faylor
2004-02-12 03:01:58 +0000
2bc01fb1f5* include/basetypes.h (_REFIID_DEFINED): Correct typo.
Danny Smith
2004-02-12 00:20:30 +0000
c904424d70* lib/dnsapi.a: New file. * lib/test.c: Include windns,h.
Danny Smith
2004-02-11 19:57:58 +0000
efdce2bd3b2004-02-11 Pierre A. Humblet <Pierre.Humblet@ieee.org>
Danny Smith
2004-02-11 19:54:28 +0000
be6f31e7b7* include/sqlucode.h (SQLGetStmtAttr[AW]): Remove duplicate defines. (SQLSetStmtAttr[AW]): Move into ODBCVER >= 0x0300 block. (SQLSetDescFieldW): Correct prototype. (SQLSetDescFieldA): Add prototype. (SQLGetDescFieldW): Add prototype.
Danny Smith
2004-02-11 19:48:22 +0000
00813155422004-02-11 Pat Thoyts <patthoyts@users.sourceforge.net>
Danny Smith
2004-02-11 19:46:21 +0000
733309f576* libc/include/sys/features.h: Add _POSIX_TIMERS define for __CYGWIN__. * libc/include/sys/reent.h (__getreent): Protect against possibly being defined. * libc/include/sys/unistd.h (fdatasync): Don't define for __CYGWIN__.
Christopher Faylor
2004-02-09 02:22:01 +0000
6946073e78* localtime.cc (localtime_r): Call tzset. * Makefile.in: Make version.h/cygwin.din version check a warning since it is not foolproof. * cygheap.h (CYGHEAPSIZE): Bump size down. * cygtls.h (_threadinfo::stacklock): New element. (_threadinfo::pop): Make regparm. (_threadinfo::lock): New function. (_threadinfo::unlock): New function. * cygtls.cc (_threadinfo::push): Wait for a lock on the stack before performing the operation. (_threadinfo::pop): Move to another file. * cygwin.din: More SIGFE changes. * exceptions.cc (try_to_debug): Always display messages on console. (handle_exceptions): Unwind stack only when actually about to call sig_send. (setup_handler): Lock stack prior to performing any operations. * gendef (_sigfe): Ditto. (_sigbe): Ditto. (_threadinfo::pop): Ditto. Move here. * gen_tlsoffsets: Generate positive offsets. * tlsoffsets.h: Regenerate.
Christopher Faylor
2004-02-08 19:59:27 +0000
043878df18* uinfo.cc (cygheap_user::init): Use sec_user_nih to build a security descriptor. Set both the process and the default DACLs. * fork.cc (fork_parent): Use sec_none_nih security attributes. * spawn.cc (spawn_guts): Ditto.
Corinna Vinschen
2004-02-06 10:37:37 +0000
8db3ebc0eaRemove fixme comment for __arm__ added with last patch.
Jeff Johnston
2004-02-05 20:21:03 +0000
b4a84c66952004-02-05 Paul Brook <paul@codesourcery.com>
Jeff Johnston
2004-02-05 20:08:52 +0000
656a999a33* cygwin.din: Make many more functions SIGFE. * include/cygwin/version.h (CYGWIN_VERSION_SHARED_DATA): Bump.
Christopher Faylor
2004-02-05 19:57:03 +0000
d82c6f474d* security.h (SID): New macro. (well_known_*_sid): Change type to cygpsid. (cygsid::init): Delete declaration. * sec_helper.cc (well_known_*_sid): Define using above SID macro. (cygsid::init): Delete. * dcrt0.cc (dll_crt0_0): Do not call cygsid::init. * security.cc (get_user_local_groups): Change the second argument type to cygpsid.
Corinna Vinschen
2004-02-05 17:23:19 +0000
0d902e61d12004-02-04 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * Makefile.in: Generate monolithic faq0.html file.
Joshua Daniel Franklin
2004-02-05 05:00:34 +0000
b5ce07f714* mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per NetBSD getopt_long.c.
Danny Smith
2004-02-05 03:17:46 +0000
d11508dd22* mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error codes and handling of special chars.
Danny Smith
2004-02-05 03:12:15 +0000
120023b090update copyright
Christopher Faylor
2004-02-04 22:40:50 +0000
9e8c2fadf7* tlsoffsets.h: Regenerate.
Christopher Faylor
2004-02-03 22:05:02 +0000
06615351b1* cygtls.h (_local_storage::signamebuf): Increase size to prevent overflow on really odd values.
Christopher Faylor
2004-02-03 22:04:27 +0000
c571716c64* Makefile.in (DLL_OFILES): Add strsig.o. * cygtls.h (_local_storage::signamebuf) New element. * sysconf.cc (sysconf): Implement _SC_RTSIG_MAX. * tlsoffset.h: Regenerate. * include/limits.h (_POSIX_RTSIG_MAX): New define. (RTSIG_MAX): Ditto. * include/cygwin/signal.h (SIGRTMIN): New define. (SIGRTMAX): Ditto. (NSIG): Bump. * strsig.cc: New file.
Christopher Faylor
2004-02-03 21:59:27 +0000
50be1d78d9* window.cc (Winmain): Show windows error code in error output when RegisterClass fails.
Christopher Faylor
2004-02-03 19:41:28 +0000
ac39cfccbd2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-02-03 00:05:49 +0000
4669438fba2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-02-02 22:51:39 +0000
528060195c* fhandler.h (*::fixup_after_exec): Eliminate unused handle argument. * fhandler.h (dtable::fixup_after_exec): Eliminate unused handle argument. * dcrt0.cc (dll_crt0_1): Reflect elimination of unused handle argument to fixup_after_exec. * dtable.cc (dtable::fixup_after_exec): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_exec): Ditto. * fhandler_dsp.cc (fhandler_dsp::fixup_after_exec): Ditto. * fhandler_raw.cc (fhandler_raw::fixup_after_exec): Ditto. * fhandler_socket.cc (fhandler_socket::fixup_after_exec): Ditto. * fhandler_virtual.cc (fhandler_virtual::fixup_after_exec): Ditto. * pipe.cc (fhandler_pipe::fixup_after_exec): Ditto. * spawn.cc (spawn_guts): Do not set ciresrv.parent. * child_info.h (child_info_spawn::~child_info_spawn): Do not close parent. Update CURR_CHILD_INFO_MAGIC. * dcrt0.cc (dll_crt0_0): Do not close spawn_info->parent. Pass NULL to cygheap->fdtab.fixup_after_exec().
Christopher Faylor
2004-02-02 21:00:07 +0000
6027d26d8bThroughout, change name from set_inheritance to set_no_inheritance to better reflect input arguments of this function. * cygheap.h (CYGHEAPSIZE): Increase size of cygheap to something closer to the 21st century.
Christopher Faylor
2004-02-02 20:33:09 +0000
94d61fcb762004-02-02 Joel Sherrill <joel@oarcorp.com>
Jeff Johnston
2004-02-02 16:59:53 +0000
8d9bbb5092* cygerrno.h (set_errno): Replace semicolon with comma in non-DEBUGGING version to avoid compile time error.
Corinna Vinschen
2004-02-02 10:47:29 +0000
a37903bc43* include/stdio.h (feof): Add inlined definition. (ferror): Ditto.
Danny Smith
2004-02-02 09:18:40 +0000
9512474d4d* include/oleacc.h (LIBID_Accessibility): Declare. * lib/uuid.c (LIBID_Accessibility): Define.
Danny Smith
2004-02-02 05:59:45 +0000
5773d89b94* include/winioctl.h ( NTFS_VOLUME_DATA_BUFFER): Add structure. (FSCTL_GET_NTFS_VOLUME_DATA): Add macro.
Danny Smith
2004-02-02 05:48:16 +0000
75b0412ba8* include/commctrl.h (ICC_STANDARD_CLASSES, ICC_LINK_CLASS): Add defines.
Danny Smith
2004-02-02 05:43:32 +0000
9e1ad59de6* cygerrno.h (set_errno): Set global errno whenever setting thread specific version. * debug.cc (__set_errno): Ditto. * exceptions.cc (handle_sigsuspend): Remove spurious sig_dispatch_pending call. (set_signal_mask): When there seem to be pending signals to dispatch, tell signal_dispatch_pending/sig_send not to specifically call any handlers. * sigproc.h (sig_dispatch_pending): Change declaration to void. * sigproc.cc (sig_dispatch_pending): Change definition to void. Take an argument to determine whether to tell sig_send to wait for handler to be called. * sigproc.cc (sig_send): Don't call signal handler when sig == __SIGFLUSHFAST. (wait_sig): Honor __SIGFLUSHFAST. Guard against sigpacket::process nuking si_signo. * sigproc.h (__SIGFLUSHFAST): Define new special signal. (sig_dispatch_pending): Change declaration to void. Take optional boolean argument. * fork.cc (vfork): Add debugging output.
Christopher Faylor
2004-02-01 18:29:12 +0000
f6565cd1a6* mingwex/math/ldexpl.c (ldexpl): Call __asm__("fscale") directly, rather than via scabnl.
Danny Smith
2004-02-01 02:52:21 +0000
416bc45060* mingwex/math/powl.c (powl): Return infinity if extended precision multiplication of x by log2(y) overflows.
Danny Smith
2004-02-01 00:10:17 +0000
fff0b496a02004-01-31 Jiri Malak <Jiri.Malak@geac.cz>
Danny Smith
2004-01-31 09:08:15 +0000
d2c7ccfc5f* mingwex/math/cephes_emath.h (__enan_64): Fix thinko. (__enan_NI16): Fix another one. (__enan_NBITS): Tidy.
Danny Smith
2004-01-31 08:44:01 +0000
c730e0e7ca2004-01-30 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-31 00:39:07 +0000
2892ec68002004-01-30 Artem B. Bityuckiy <abitytsky@softminecorp.com> Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-30 20:44:05 +0000
ff41498a192004-01-30 Thomas Pfaff <tpfaff@gmx.net> Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-30 20:32:04 +0000
1a4f1aef1f2004-01-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
Jeff Johnston
2004-01-29 17:12:36 +0000
abb74903ce.
Roland McGrath
2004-01-29 02:41:25 +0000
23e684686b2004-01-28 Roland McGrath <roland@redhat.com>
Roland McGrath
2004-01-29 02:41:18 +0000
8b6b3a1dd7.
Roland McGrath
2004-01-29 00:37:46 +0000
62fbcebfb32004-01-21 Roland McGrath <roland@redhat.com>
Roland McGrath
2004-01-29 00:37:41 +0000
d5b6c234832004-01-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-28 01:00:37 +0000
01e0a777492004-01-27 Artem B. Bityuckiy <abitytsky@softminecorp.com>
Jeff Johnston
2004-01-27 23:26:26 +0000
ef33379be8* exceptions.cc (sig_handle_tty_stop): Avoid races by waiting for both signal_arrived and for sigCONT. (sigpacket::process): Enforce sending of both signal_arrived and sigCONT, where appropriate. * gendef (sigreturn): Save tls pointer in ebx so that it can jump into sigdelayed and use the same register.
Christopher Faylor
2004-01-26 22:25:57 +0000
5e0f482f2c* cygtls.cc (_threadinfo::init_thread): Add more local reent stdio initialization. * dcrt0.cc (initial_env): Can it really be true that XP doesn't allow attaching a debugger during DLL attach? Add temporary workaround. (dll_crt0_0): Ensure that _impure_ptr stdio is initialized before any threads. (dll_crt0_1): Move _impure_ptr initialization to dll_crt0_0. * exceptions.cc (try_to_debug): Reinstate old method for looping while debugging. * syscalls.cc (_cygwin_istext_for_stdio): Regularize debugging output. Remove hopefully extraneous check. (setmode_helper): Add debugging output for improbable case. Use "binary" rather "raw" for consistency.
Christopher Faylor
2004-01-26 18:52:02 +0000
d7231d7224* fhandler.cc (fhandler_base::fhaccess): Avoid always setting errno to EACCESS when return value is < 0. Rely on errno being set properly.
Christopher Faylor
2004-01-25 23:39:26 +0000
9157f0f3ec* fhandler.h (fhandler_base::fhaccess): Return int for compatibility with access. * fhandler.cc (fhandler_base::fhaccess): Return int. Use consistent variable name for exit value. Exit at bottom, printing debugging information, like other cygwin functions.
Christopher Faylor
2004-01-24 20:34:27 +0000
d5f60b41f4Cleanup minor markup problems.
Joshua Daniel Franklin
2004-01-24 08:10:27 +0000
aff8b4f9aa2004-01-24 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * cygwinenv.sgml: Cleanup minor markup problems. * dll.sgml: Cleanup minor markup problems. * effectively.sgml: Cleanup minor markup problems. * gcc.sgml: Cleanup minor markup problems. * ntsec.sgml: Cleanup minor markup problems. * pathnames.sgml: Cleanup minor markup problems. * setup-net.sgml: Cleanup minor markup problems. * textbinary.sgml: Cleanup minor markup problems. * windres.sgml: Cleanup minor markup problems.
Joshua Daniel Franklin
2004-01-24 08:09:45 +0000
f4e815bc30* cygheap.cc (init_cygheap::close_ctty): Protect YA vforkism. * fhandler.h (fhandler_base::has_acls): Make pass through for path_conv method. (fhandler_base::isremote): Ditto. (fhandler_base::is_fs_special): Ditto. (fhandler_base::has_attribute): Ditto. Define new function. (fhandler_base::fhaccess): Declare new function based on access_worker. (fhandler_base::set_has_acls): Eliminate obsolete function. (fhandler_base::set_isremote): Ditto. * fhandler.cc (fhandler_base::fhaccess): Move from syscalls.cc and into fhandler_base class. Use fhandler methods to access data rather than path_conv stuff. (fhandler_base::device_access_denied): Use fhaccess method. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto. (fhandler_base::open_fs): Remove calls to obsolete functions. * fhandler_virtual.cc (fhandler_virtual::open): Ditto. * winsup.h (access_worker): Remove obsolete access_worker declaration. *syscalls.cc (access_worker): Move function to fhandler.cc. (access): Use fhaccess method. * pinfo.cc (_pinfo::set_ctty): Clarify debugging output. * sigproc.cc (sig_dispatch_pending): Ditto. * syscalls.cc (setsid): Perform minor rearrangement.
Christopher Faylor
2004-01-24 03:40:33 +0000
b9a766427b2004-01-23 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet
2004-01-24 00:14:27 +0000
f723909038* configure.in: Remove NEWVFORK default. * configure: Regenerate. * dcrt0.cc: Conditionalize vfork stuff throughout. * dtable.cc: Ditto. * perthread.h: Ditto. * pipe.cc (fhandler_pipe::close): Ditto. * spawn.cc (spawnve): Ditto. * syscalls.cc (setsid): Ditto. * exceptions.cc (sigpacket::process): Use macro to refer to vfork pid. * debug.cc (verify_handle): Define new function. * debug.h (VerifyHandle): Define new macro. (verify_handle): Declare new function * fhandler.cc (fhandler_base::dup): Verify that dup'ed handle is not supposed to be in use. (fhandler_base::set_inheritance): Ditto. (fhandler_base::fork_fixup): Ditto. * fhandler_socket.cc (fhandler_socket::dup): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. * net.cc (set_socket_inheritance): Ditto. * pinfo.cc (pinfo_fixup_after_exec): Ditto. * sigproc.cc (proc_subproc): Ditto. (sig_send): Ditto. * spawn.cc (spawn_guts): Ditto. * thread.cc (pthread::init_mainthread): Ditto. * pipe.cc (fhandler_pipe::close): Close read_state with ForceCloseHandle since it was protected. (fhandler_pipe::fixup_after_exec): Protect read_state handle. (fhandler_pipe::dup): Correctly close open handles on error condition. Verify that dup'ed handle is not supposed to be in use. (fhandler_pipe::create): Protect read_state.
Christopher Faylor
2004-01-23 23:05:33 +0000
7dddf53f5c* cygcheck.cc (pretty_id): Make more robust in absence of id.exe.
Christopher Faylor
2004-01-23 23:04:27 +0000
f892e763462004-01-23 G�bor L�ki <loki@inf.u-szeged.hu>
Jeff Johnston
2004-01-23 22:10:48 +0000
75342567382004-01-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-23 22:05:44 +0000
786ab12ce22004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
Jeff Johnston
2004-01-23 21:37:46 +0000
35b7fc6c00* exceptions.cc (sig_handle_tty_stop): Fix boneheaded mistake by using correct check for parent state rather than inverted check mistakenly introduced on 2003-09-15.
Christopher Faylor
2004-01-23 15:44:15 +0000
a33df42223* fhandler_serial.cc (fhandler_serial::raw_write): Prevent a deadlock when the input buffer overflows. (fhandler_serial::raw_read): Correct to print the actual error and only call PurgeComm when necessary.
Christopher Faylor
2004-01-23 15:22:48 +0000
ed1a95dc252004-01-22 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston
2004-01-22 22:06:57 +0000
fba870ac94change comment.
Christopher Faylor
2004-01-22 19:16:17 +0000
35711de753* dcrt0.cc (reent_data): Make global. * cygwin.din: Reexport reent_data.
Christopher Faylor
2004-01-22 19:14:07 +0000
39d06d71ff* cygtls.cc (_threadinfo::remove): Don't assume that we are removing _my_tls. * exceptions.cc (setup_handler): Improve debugging output. (call_signal_handler_now): Remove ill-advised debugger call. * sigproc.cc (sigcomplete_main): Delete. (sig_send): Honor FIXME and avoid using main thread's completion event for everything or suffer races. (pending_signals::add): Default stored mask to current process mask rather than mask at time of signal send. (wait_sig): Add debugging output. * sigproc.h (sigpacket::mask_storage): Delete.
Christopher Faylor
2004-01-22 19:03:19 +0000
7d4be1efd52004-01-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2004-01-21 20:09:16 +0000
a1dcf5d848* devices.in: Change raw com device to more correct form.
Christopher Faylor
2004-01-21 19:14:19 +0000
918f634fed* fhandler.cc (fhandler_base::open): Use major numbers rather than device numbers to control special behavior for devices which take units. * fhandler_raw.cc (fhandler_dev_raw::writebuf): Ditto. (fhandler_dev_raw::fstat): Ditto. (fhandler_dev_raw::open): Ditto. (fhandler_dev_raw::ioctl): Ditto.
Christopher Faylor
2004-01-21 18:19:29 +0000