summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PR bootstrap/7087Nathanael Nerode2004-02-283-40/+28
| | | | | | | * Makefile.tpl: Guard XFOO sed statements better. * Makefile.tpl: Add dependency for configure-target-libada. * Makefile.in: Regenerate (incidentally fixes broken commit when libada-branch was merged).
* 2004-02-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-02-282-2/+11
| | | | | * src-release (CVS_NAMES): Define. (do-tar, do-tar): Prune $(CVS_NAMES).
* * miscfuncs.cc (check_invalid_virtual_addr): Assure the last pageCorinna Vinschen2004-02-263-3/+9
| | | | | in the range is always tested. Add appropriate const. * mmap.cc (mmap_record::aloc_fh): Remove unused static path_conf object.
* * exceptions.cc (setup_handler): Signal event for any sigwaitinfo if it existsChristopher Faylor2004-02-269-44/+137
| | | | | | | | | | | | | | | | | | | | | to force signal to be handled. Zero event here to prevent races. * signal.cc (sigwaitinfo): Use local handle value for everything since signal thread could zero event element at any time. Detect when awaking due to thread not in mask and set return value and errno accordingly. Don't set signal number to zero unless we've recognized the signal. * sigproc.cc (sigq): Rename from sigqueue throughout. * thread.cc (pthread::join): Handle signals received while waiting for thread to terminate. * cygwin.din: Export sighold, sigqueue. * exceptions.cc (sighold): Define new function. * signal.cc (handle_sigprocmask): Set correct errno for invalid signal. Simplify debugging output. (sigqueue): Define new function. * include/cygwin/signal.h (sighold): Declare new function. (sigqueue): Ditto. * include/cygwin/version.h: Bump API minor version number. * include/limits.h (TIMER_MAX): Define. (_POSIX_TIMER_MAX): Ditto.
* * miscfuncs.cc (check_invalid_virtual_addr): New function.Corinna Vinschen2004-02-254-1/+22
| | | | | | * winsup.h (check_invalid_virtual_addr): Declare. * mmap.cc (munmap): Call check_invalid_virtual_addr instead of IsBadReadPtr.
* * gendef (stabilize_sig_stack): Correctly align this pointer for call toChristopher Faylor2004-02-254-2/+12
| | | | | | _cygtls::call_signal_handler. * gentls_offsets: Output sizeof field. * tlsoffsets.h: Regenerate.
* merge from gccDJ Delorie2004-02-252-1/+5
|
* * cygpath.cc (long_options): Add "mode" option.Christopher Faylor2004-02-253-6/+41
| | | | | | | (options): Ditto. (usage): Report on new option. (report_mode): New function. (main): Implement -M option.
* * dcrt0.cc (_dll_crt0): Don't check sync_startup if threadfunc_ix is set.Christopher Faylor2004-02-254-3/+24
| | | | | * external.cc (cygwin_internal): Implement CW_GET_BINMODE. * include/sys/cygwin.h: Declare CW_GET_BINMODE.
* * dcrt0.cc (_dll_crt0): Add some stern internal errors.Christopher Faylor2004-02-243-2/+12
|
* merge from gccDJ Delorie2004-02-242-29/+5
|
* * thread.cc (pthread::cancelable_wait): Rearrange slightly.Corinna Vinschen2004-02-243-26/+66
| | | | | | | | | | | | | | | Add do_sig_wait parameter. Wait for signal_arrived if set to true. Return WAIT_SIGNALED if signal arrived. (pthread_cond::wait): Accomodate change to pthread::cancelable_wait. (pthread::join): Ditto. (semaphore::_timedwait): Ditto. (semaphore::_wait): Ditto. Change to return int to allow status feedback. (semaphore::wait): Return return value from semaphore::_wait. * thread.h (WAIT_SIGNALED): New definition. (pthread::cancelable_wait): Change declaration. Define do_sig_wait as false by default to not interfere with existing calls accidentally. (semaphore::_wait): Declare int.
* 2004-02-23 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-02-232-2518/+2766
| | | | | * texinfo/texinfo.tex: Update from version 2003-02-03.16 to 2004-02-19.09.
* 2004-02-23 Filip Navara <xnavara@volny.cz>Danny Smith2004-02-232-4/+4
| | | | * include/ddk/video.h: Corrected packing.
* 2004-02-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-02-223-92/+25
| | | | | * Makefile.in: Fix problem links in faq0.html file. * what.texinfo: Remove outdated 'recent' history.
* 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-02-227-32/+32
| | | | | | | | | | * dll_init.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD. * dtable.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD. * external.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD. * path.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD. * pinfo.cc: Update funcsynopsis for DocBook 4.2 SGML DTD. * shared.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD. * stackdump.sgml: Update funcsynopsis for DocBook 4.2 SGML DTD.
* * exceptions.cc (sigpacket::process): Make sure that tls is filled in forChristopher Faylor2004-02-212-3/+12
| | | | | | SIGSTOP condition. (_cygtls::call_signal_handler): Restore signal mask using saved oldmask rather than current oldmask.
* * include/_mingw.h (__UNUSED_PARAM): Define macro.Danny Smith2004-02-213-2/+20
| | | | | * include/wchar.h (fwide): Use it. (mbsinit): Ditto.
* * Makefile.in (build_dumper): Detect missing iconv library.Christopher Faylor2004-02-214-13/+35
| | | | | | * cygpath.cc (dowin): Report on filename conversion errors. (doit): Ditto. * strace.cc (main): Use symbolic constant for _STRACE_ALL when setting mask.
* * path.cc (conv_path_list): Return error condition.Christopher Faylor2004-02-213-45/+119
| | | | | | | | | | | | | | | | (copy1): New function. (copyenc): New function. (mount_item::fnmunge): Return error condition. Use new functions to copy strings. (mount_item::build_win32): Ditto. (mount_info::conv_to_win32_path): Return error condition. (cygwin_conv_to_posix_path): Return result of path conversion. (cygwin_conv_to_full_posix_path): Ditto. (return_with_errno): New macro. (cygwin_win32_to_posix_path_list): Use new macro to potentially set errno. (cygwin_posix_to_win32_path_list): Ditto. * path.h (mount_item::fnmunge): Add size argument. (mount_item::build_win32): Ditto.
* * getopt.c: Avoid useless compiler warnings.Corinna Vinschen2004-02-202-1/+9
|
* * getopt.c: Replace with latest vanilla(!) OpenBSD version 1.16.Corinna Vinschen2004-02-202-251/+298
|
* 2004-02-19 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>Joshua Daniel Franklin2004-02-203-22/+21
| | | | | | * cygwinenv.sgml: Remove incorrect ^Z information. Add some tags to server option description. * textbinary.sgml: Remove incorrect ^Z information.
* PR bootstrap/11932Nathanael Nerode2004-02-203-238/+304
| | | | * mkinstalldirs, install-sh: Import from automake CVS HEAD.
* Index: ChangeLogAndrew Cagney2004-02-193-14/+119
| | | | | | | | | | | | | | | | | | | 2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2003-06-12 to 2004-02-16. * config.sub: Update from version 2003-06-13 to 2004-02-16. Index: dejagnu/ChangeLog 2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2003-06-12 to 2004-02-16. * config.sub: Update from version 2003-06-13 to 2004-02-16. Index: readline/ChangeLog.gdb 2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2003-06-12 to 2004-02-16. * config.sub: Update from version 2003-06-13 to 2004-02-16.
* * include/Gl/glu (GLU_ERROR): Define.Danny Smith2004-02-192-1/+6
| | | | Thanks to Philip Lamb <phil at rave dot co dot nz>
* * include/Gl/glu.h: Include <stddef.h>.Danny Smith2004-02-192-0/+6
| | | | Thanks to Greg Couch <gregcouch@users.sourceforge.net>
* * fork.cc (fork_child): Invert sense of test which defeated correct handling inChristopher Faylor2004-02-183-16/+17
| | | | | | | | a fork from a non-main thread. * dcrt0.cc (initial_env): Eliminate parameter and just send DebugBreak when appropriate. (dll_crt0_0): Reflect parameter change to initial_env. (dll_crt0_1): Don't call initial_env.
* * gendef (stabilize_sig_stack): New function.Christopher Faylor2004-02-183-54/+62
| | | | | | (setjmp): Import, add sig stack handling. Store sig stack info. (longjmp): Call stabilize_sig_stack. Restore sig stack info. * config/i386/setjmp.c: Remove.
* * fork.cc (fork_child): Move fixup_shms_after_fork so thatCorinna Vinschen2004-02-172-4/+9
| | | | signal_arrived is initialized when calling it.
* * Makefile.in (clean): Clean libserver, too.Christopher Faylor2004-02-176-8/+21
| | | | | | | | * fhandler.cc (fhandler_base::~fhandler_base): Remove path_conv cleanup. * syscalls.cc (chroot): Ditto. * path.cc (path_conv::~path_conv): Define new destructor. (conv_path_list_buf_size): Remove explicit path_conv cleanup. * path.h (path_conv::~path_conv): Declare new destructor.
* * Makefile.in: Compile flock.o with -fomit-frame-pointer.Christopher Faylor2004-02-172-0/+5
|
* * Makefile.in: Compile dlfcn.o with -fomit-frame-pointer.Christopher Faylor2004-02-162-0/+5
|
* * Makefile.in: Compile delqueue.o with -fomit-frame-pointer.Christopher Faylor2004-02-162-0/+5
|
* * cygwinenv.sgml: Add server option description.Corinna Vinschen2004-02-162-0/+8
|
* * syscalls.cc (rename): Do not test the MoveFile error codeCorinna Vinschen2004-02-162-6/+9
| | | | where MoveFileEx exists.
* correct changelogChristopher Faylor2004-02-161-2/+2
|
* * cygheap.cc (_csbrk): Report failing condition to stderr rather than strace.Christopher Faylor2004-02-163-7/+7
|
* * include/w32api.h: Increment version to 3.0.Earnie Boyd2004-02-153-88/+13
| | | | | | * Makefile.in: Ditto. * README.win32api: Modify license to Public Domain per agreement as found in the mingw-dvlpr list archive.
* * Makefile.in: Compile syscalls.o with -fomit-frame-pointer.Christopher Faylor2004-02-153-1/+7
| | | | * sigproc.cc: Eliminate unused variable.
* * getopt.c: Replace with latest NetBSD version 1.16. Keep CygwinCorinna Vinschen2004-02-142-47/+49
| | | | specific changes as minimal as possible.
* * ssp.c (opts): Add leading '+' to force posixly correct behaviour.Corinna Vinschen2004-02-142-1/+5
|
* * sigproc.cc (proc_subproc): Change warning back to silent debug output.Christopher Faylor2004-02-142-1/+6
|
* * dcrt0.cc (alloc_stack_hard_way): Revert to previous implementation.Christopher Faylor2004-02-145-14/+22
| | | | | (alloc_stack): Ditto. * exceptions.cc (ctrl_c_handler): Add debugging output.
* * include/ddk/winddk.h (DIRECTORY_QUERY): Add define.Earnie Boyd2004-02-142-0/+15
| | | | | | | | (DIRECTORY_TRAVERSE): Ditto. (DIRECTORY_CREATE_OBJECT): Ditto. (DIRECTORY_CREATE_SUBDIRECTORY): Ditto. (DIRECTORY_ALL_ACCESS): Ditto. Thanks to Konstantin Stepaniuk <skostia@users.sourceforge.net>
* * Makefile.in (clean): Remove sigfe.s.Christopher Faylor2004-02-1312-100/+134
| | | | | | | | | | | | | | | | | | | | | | | (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.
* * gendef (_sigbe): Zero location on pop.Christopher Faylor2004-02-122-4/+7
| | | | (_cygtls::pop): Ditto.
* * dcrt0.cc (alloc_stack_hard_way): Eliminate second argument.Christopher Faylor2004-02-122-3/+7
| | | | (alloc_stack): Remove use of 'b' throughout.
* Rename _threadinfo to _cygtls, throughout.Christopher Faylor2004-02-1223-209/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * include/basetypes.h (_REFIID_DEFINED): Correct typo.Danny Smith2004-02-123-1/+12
| | | | | * include/winuser.h (NCCALCSIZE_PARAMS): Define structure. Thanks to Mike Nordell <tamlin at algonet dot se>.