]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
20 years ago2004-01-19 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston [Mon, 19 Jan 2004 21:30:34 +0000 (21:30 +0000)]
2004-01-19  Thomas Pfaff  <tpfaff@gmx.net>

        * libc/stdio/fclose.c (fclose): Release FILE as the last step.
        * libc/stdio/freopen.c (freopen): Ditto.

20 years ago* common.h (NT_OPENBSD_IDENT): Define.
Mark Kettenis [Mon, 19 Jan 2004 18:28:58 +0000 (18:28 +0000)]
* common.h (NT_OPENBSD_IDENT): Define.

20 years ago* cygwin/include/signal.h: Add copyright notice.
Christopher Faylor [Mon, 19 Jan 2004 05:46:54 +0000 (05:46 +0000)]
* cygwin/include/signal.h: Add copyright notice.
* cygwin.din: Make clock SIGFE.  Add clock_gettime, sigwaitinfo, timer_create,
timer_delete, timer_settime.
* include/cygwin/version.h: Reflect above additions.
* fork.cc (fork_child): Call fixup_timers_after_fork.
* signal.cc (sigwait): Remove unused variable.
* timer.cc: New file.
(clock_gettime): Define new function.
(timer_tracker): Define new struct used by timer functions.
(timer_tracker::timer_tracker): New function.
(to_us): New function.
(timer_thread): New function.
(timer_tracker::settime): New function.
(timer_create): New function.
(timer_settime): New function.
(timer_delete): New function.
(fixup_timers_after_fork): New function.
* cygthread.cc: Bump thread count.
* signal.cc (sigwaitinfo): Define new function.
(sigwait): Redefine based on sigwaitinfo.
* include/cygwin/signal.h (sigwaitinfo): Declare.
(sigwait): Ditto.
* dtable.cc (dtable::vfork_parent_restore): Avoid double close of ctty when
ctty == ctty_on_hold.
* cygtls.h (_threadinfo::threadkill): New element.
(_threadinfo::set_threadkill): Declare new function.
(_threadinfo::reset_threadkill): Declare new function.
* dcrt0.cc (dcrt0_1): Call here so that it will be possible to attach to
running process with #(*& Windows Me/9x.
(initial_env): Try to initialize strace if uninitialized.
* gendef: Don't zero signal if threadkill is set since that will happen in the
called function.
* signal.cc (sigwait): Ensure cleanup in error conditions.
* sigproc.cc (sig_send): Clear packet mask storage.
(wait_subproc): Fill in child exit code in siginfo_t structure.
* thread.cc (pthread_kill): Set threadkill flag.
* tlsoffsets.h: Regenerate.  Throughout, use siginfo_t to fill out all signal
information for "kernel" signals.
* cygtls.h (_threadinfo::set_siginfo): Declare new function.
* cygtls.cc (_threadinfo::set_siginfo): Define new function.
* dcrt0.cc (do_exit): Accommodate siginfo_t considerations.
* exceptions.cc (handle_exceptions): Ditto.
(sig_handle_tty_stop): Ditto.
(ctrl_c_handler): Use killsys() to send signal.
(sigpacket::process): Rename from sig_handle.  Use siginfo_t field from
sigpacket for everything.
(tty_min::kill_pgrp): Accommodate siginfo_t considerations.
(fhandler_termios::bg_check): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::ioctl): Use killsys() to send signal.
* signal.cc (kill_worker): Rewrite to use siginfo_t second argument.
(kill_pgrp): Ditto.
(kill0): Define new function pulled from kill().
(kill): Rewrite as frontend to kill0.
(killsys): Define new function.
* sigproc.cc (sigelem): Eliminate.
(sigpacket): Move to sigproc.h.  Subsume sigelem.
(pending_signals): Use sigpacket rather than sigelem for everything.
(sig_clear): Ditto.
(wait_sig): Ditto.
(sig_send): Rewrite to use siginfo_t argument.
(sig_send): New function wratpper to sig_send with siginfo_t argument.
(wait_subproc): Accommodate siginfo_t considerations.
* thread.cc (pthread_kill): Ditto.
* sigproc.h (sigpacket): Move here.
(sigpacket::process): Declare "new" function.
(sig_handle): Eliminate declaration.
(sig_send): Declare with new paramaters.
(killsys): Declare new function.
(kill_pgrp): Declare.
* winsup.h: Move some signal-specific stuff to sigproc.h.
* include/cygwin/signal.h: Tweak some siginfo_t stuff.

20 years agoupdate
Christopher Faylor [Mon, 19 Jan 2004 05:23:02 +0000 (05:23 +0000)]
update

20 years ago * include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
Danny Smith [Sat, 17 Jan 2004 07:41:54 +0000 (07:41 +0000)]
* include/stdint.h  Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
types. (Thanks to John Maddock for report.)

20 years ago* dtable.cc (dtable::vfork_parent_restore): Avoid double close of ctty when
Christopher Faylor [Sat, 17 Jan 2004 05:49:42 +0000 (05:49 +0000)]
* dtable.cc (dtable::vfork_parent_restore): Avoid double close of ctty when
ctty == ctty_on_hold.

20 years ago* libc/stdio/vfprintf.c: Add sys/lock.h include.
Christopher Faylor [Sat, 17 Jan 2004 04:29:54 +0000 (04:29 +0000)]
* libc/stdio/vfprintf.c: Add sys/lock.h include.

20 years ago* fhandler_console.cc (fhandler_console::close): Remove obsolete test for
Christopher Faylor [Sat, 17 Jan 2004 03:47:27 +0000 (03:47 +0000)]
* fhandler_console.cc (fhandler_console::close): Remove obsolete test for
vfork_cleanup.
* pipe.cc (fhandler_pipe::close): Add comment.

20 years ago* cygheap.cc (init_cygheap::close_ctty): Don't NULL ctty if it is still active.
Christopher Faylor [Fri, 16 Jan 2004 22:54:14 +0000 (22:54 +0000)]
* cygheap.cc (init_cygheap::close_ctty): Don't NULL ctty if it is still active.

20 years ago* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to calling
Christopher Faylor [Fri, 16 Jan 2004 21:51:30 +0000 (21:51 +0000)]
* dtable.cc (dtable::vfork_parent_restore): Store ctty_on_hold prior to calling
close_all_files since it will be zeroed.

20 years ago2004-01-16 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston [Fri, 16 Jan 2004 19:29:16 +0000 (19:29 +0000)]
2004-01-16  Thomas Pfaff  <tpfaff@gmx.net>

        * libc/stdio/findfp.c (__sfp): Remove unnecessary memset.
        * libc/stdio/vfprintf.c (__sbprintf): Ditto.
        Add calls to __lock_init_recursive and __lock_close_recursive
        instead.

20 years ago * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
Corinna Vinschen [Fri, 16 Jan 2004 13:39:25 +0000 (13:39 +0000)]
* process.h (cleanup_routine::~cleanup_routine): Make pure virtual
function to avoid miscompilation with certain versions of gcc.
* process.cc (cleanup_routine::~cleanup_routine): Remove.

20 years ago2004-01-16 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith [Fri, 16 Jan 2004 09:25:01 +0000 (09:25 +0000)]
2004-01-16 Martin Fuchs  <martin-fuchs@gmx.net>

* include/shlobj.h (SHGDN_INCLUDE_NONFILESYS): Add define.

20 years ago2004-01-15 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin [Fri, 16 Jan 2004 06:31:49 +0000 (06:31 +0000)]
2004-01-15  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

* setup-net.sgml: Add "internet-setup" id anchor.
* overview.sgml: Update "What is it?" section. Add links to
"Is it free software?" section. Update "Brief History" section.
* overview2.sgml: Rewrite "Expectations for {Windows,Unix}"
as "Quick Start for those more experienced with {Windows,Unix}".

20 years ago2004-01-15 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Thu, 15 Jan 2004 23:24:29 +0000 (23:24 +0000)]
2004-01-15  Andrew Cagney  <cagney@redhat.com>

* src-release: Update copyright year.
(do-proto-toplev): Configure using i686-pc-linux-gnu.
(NEWLIB_SUPPORT_DIRS): Delete macro.
(newlib.tar.bz2): Delete rule.

20 years ago* gentls_offsets: Reinstate unlink of temp files.
Christopher Faylor [Thu, 15 Jan 2004 19:51:49 +0000 (19:51 +0000)]
* gentls_offsets: Reinstate unlink of temp files.
* fhandler_console.cc (fhandler_console::close): Fix debugging output.
(fhandler_console::fixup_after_fork): Decrement open_fhs prior to call to
fhandler_console::open since this would cause incrementing too much
incrementing in child processes.  (Probably needs to be handled more elegantly
someday)
(fhandler_console::fixup_after_exec): Ditto.

20 years ago2004-01-15 Thomas Pfaff <tpfaff@gmx.net>
Jeff Johnston [Thu, 15 Jan 2004 19:12:17 +0000 (19:12 +0000)]
2004-01-15  Thomas Pfaff  <tpfaff@gmx.net>

        * libc/stdio/fclose.c: Include sys/lock.h.
        (fclose): Destroy lock when file is closed.
        * libc/stdio/findfp.c (__sfp): Initialize file pointers _lock
        member.
        * libc/stdio/freopen.c: Include sys/lock.h.
        (_freopen_r): Destroy lock when file is closed.
        * libc/stdio/vfprintf.c (__sbprintf): Initialize file pointers
        _lock member.

20 years ago2004-01-15 Filip Navara <xnavara@volny.cz>
Danny Smith [Thu, 15 Jan 2004 07:19:20 +0000 (07:19 +0000)]
2004-01-15  Filip Navara  <xnavara@volny.cz>

* include/ddk/mcd.h: Don't care about value of DBG define.
* include/ddk/srb.h: Ditto.
* include/ddk/storport.h: Ditto.
* include/ddk/video.h: Ditto.
* include/nspapi.h (SetServiceW, GetAddressByNameA,
GetAddressByNameW): Correct protoype.
* include/ntsecapi.h (PCUNICODE_STRING): Define.

20 years ago* Makefile.def (target_modules) [libtermcap, libiberty, zlib]: Stage.
DJ Delorie [Wed, 14 Jan 2004 21:13:34 +0000 (21:13 +0000)]
* Makefile.def (target_modules) [libtermcap, libiberty, zlib]: Stage.
* Makefile.tpl (configure-target-[+module+]): Support stage.
* Makefile.in: Rebuilt.

20 years ago* cygtls.h (_threadinfo::call): Remove regparm declaration to work around
Christopher Faylor [Wed, 14 Jan 2004 15:45:37 +0000 (15:45 +0000)]
* cygtls.h (_threadinfo::call): Remove regparm declaration to work around
compiler bug.
* autoload.cc (TryEnterCriticalSection): Remove.
* dcrt0.cc (dll_crt0_0): Delete inappropriate setting of _my_tls.stackptr to
NULL since it has really bad consequences.  Make 'si' an automatic variable.
* cygtls.cc (_threadinfo::init_thread): Correct thinko which caused thread list
to be allocated every time.
* cygtls.h (CYGTLS_PADSIZE): Define as const int.
* sync.h: Make multiple inclusion safe.
(muto::next): Eliminate.
(muto::exiting_thread): New variable.
(muto::set_exiting_thread): New function.
(new_muto): Change to use different section for mutos since c++ give
inexplicable warning in some cases otherwise.
(new_muto1): Ditto.
* dcrt0.cc (do_exit): Call muto::set_exiting_thread here.
* sync.cc (muto_start): Eliminate.
(muto::acquire): Always give exiting thread a lock.  Never give thread a lock
if exiting.
(muto::release): Ditto for releasing.
* dtable.cc (dtable::init_lock): Unline function and define here.
* dtable.h (lock_cs): Define as a muto since critical sections seem to work
oddly on Windows Me.
(lock): Accommodate switch to muto.
(unlock): Ditto.
* exceptions.cc (setup_handler): Don't worry about acquiring mutos since that
hasn't mattered for a long time.
(signal_exit): Ditto: muto stuff will be handled automatically on exit now.
* Makefile.in (DLL_IMPORTS): Link advapi32 to ensure proper DLL initialization.
* autoload.cc (RegCloseKey): Arbitrarily choose this function as a "seed" to
pull the advapi32 link library in.  So, comment out the autoloading.
* cygtls.cc (_threadinfo::init_thread): Just clear CYGTLS_PADSIZE.
(_threadinfo::remove): Add debugging.
(_threadinfo::find_tls): Ditto.
* cygtls.h (_threadinfo::padding): Make zero length (for now?).
* dcrt0.cc (dll_crt0_0): Move more initialization here from dll_crt0_1.
(dll_crt0_1): See above.
* dtable.h (dtable::lock): Remove commented out critical section locking.
* dtable.h (dtable::init_lock): Remove commented out critical section locking.
* dtable.h (dtable::unlock): Remove commented out critical section locking.
* exceptions.cc (interruptible): bool'ize.
* init.cc (threadfunc_fe): Revert to storing threadfunc at stack bottom.
(munge_threadfunc): Ditto.  Avoid adding overhead to calibration_thread.
(prime_threads): Don't initialize tls stuff.
(dll_entry): Make minor change to initialization order.
* tlsoffsets.h: Regenerate.
* sigproc.cc (wait_sig): Add sanity check for end of process thread exit.
* select.h: Make minor formatting change.
* Makefile.in: Add still more -fomit-frame-pointer functions.
* dtable.h (dtable::lock): New function.
(dtable::unlock): New function.
(dtable::init_lock): New function.
* cygheap.h (HEAP_TLS): Declare new enum value.
(init_cygheap::threadlist): Declare new array.
(init_cygheap::sthreads): Declare new variable.
(cygheap_fdmanip::~cygheap_fdmanip): Use new dtable lock/unlock functions.
(cygheap_fdnew::cygheap_fdnew): Ditto.
(cygheap_fdget::cygheap_fdget): Ditto.
* dtable.cc (dtable_init): Initialize fdtab critical section.
(dtable::fixup_after_fork): Ditto.
(dtable::fixup_after_exec): Ditto.
(dtable::dup2): Use lock/unlock calls to protect access to fdtab.
(dtable::find_fifo): Ditto.
(dtable::fixup_before_fork): Ditto.
(dtable::fixup_before_exec): Ditto.
(dtable::set_file_pointers_for_exec): Ditto.
(dtable::vfork_child_dup): Ditto.
(dtable::vfork_parent_restore): Ditto.
* syscalls.cc (close_all_files): Ditto.
* sync.h (muto::acquired): Declare new function.
(new_muto1): Declare new macro used to specify name of muto storage.
* sync.cc (muto::acquired): Define new function.
* cygthread.cc (cygthread::stub): Remove signal chain removal call since it is
handled during initialization now.
* cygthread.cc (cygthread::simplestub): Remove signal chain removal call since
it is handled during initialization now.
* cygtls.cc (sentry): New class used for locking.  Use throughout.
(_threadinfo::reset_exception): Don't pop stack.
(_threadinfo::find_tls): Move from exceptions.cc.
(_threadinfo::init_thread): Initialize array of threads rather than linked
list.  Take second argument indicating thread function for this thread.
(_threadinfo::remove): Search thread array rather than linked list.  Use sentry
to lock.  Only unlock if we got the lock.
(_threadinfo::find_tls): Ditto for first two.
(handle_threadlist_exception): Handle exceptions when manipulating the thread
list in case of premature thread termination.
(_threadinfo::init_threadlist_exceptions): Ditto.
* cygtls.h (TLS_STACK_SIZE): Decrease size.
(_threadinfo::padding): Add element to avoid overwriting lower part of stack.
(_threadinfo::remove): Add a "wait" argument to control how long we wait for a
lock before removing.
* exceptions.cc (init_exception_handler): Make global.  Take argument to
control exception handler being set.
(ctrl_c_handler): Wait forever when removing self from signal chain.
(_threadinfo::find_tls): Move to cygtls.cc.
(sig_handle): Reorganize detection for thread-specific signals.
* heap.cc (heap_init): Rework slightly.  Make fatal error more verbose.  Remove
malloc initialization since it can't happen during dll attach.
* init.cc (search_for): Move address to search for on stack here.
(threadfunc_ix): Ditto for stack offset.  Make shared so that stack walk
potentially only has to be done once when cygwin processes are running.
(threadfunc_fe): Use standard tls to store thread function (may change back
later).
(calibration_thread): New function.  Potentially called to find threadfunc_ix.
(munge_threadfunc): Search for "search_for" value on stack.  Output warning
when thread func not found on stack.  Use standard tls to store thread
function.
(prime_threads): New function.  Called to prime thread front end.
(dll_entry): Call dll_crt0_0 here when DLL_PROCESS_ATTACH.  Call prime_threads
here.  Try to remove thread from signal list here.
* sigproc.cc (wait_sig): Initialize threadlist exception stuff here.
* thread.cc (pthread::exit): Pass argument to signal list remove function.
* thread.h: Remove obsolete *ResourceLock defines.
* tlsoffsets.h: Regenerate.
* winsup.h (spf): Define temporary debug macro to be deleted later.
* dcrt0.cc (dll_crt0_0): New function, called during DLL initialization.
Mainly consists of code pulled from dll_crt0_1.
(dll_crt0_1): See above.
(_dll_crt0): Wait for initial calibration thread to complete, if appropriate.
Move some stuff to dll_crt0_0.
(initialize_main_tls): Accommodate argument change to
_thread_info::init_thread.
* fork.cc (fork_child): Ditto.
(sync_with_child): Fix debug message.
* external.cc (cygwin_internal): Remove special considerations for
uninitialized dll since initialization happens during dll attach now.
* dlfcn.cc (dlopen): Remove obsolete *ResourceLock calls.
(dlclose): Ditto.
* cygheap.h (init_cygheap::close_ctty): Declare new function.
* cygheap.cc (init_cygheap::close_ctty): Define new function.
* syscalls.cc (close_all_files): Use close_ctty.
(setsid): Ditto.
* cygthread.cc (cygthread::stub): Remove exception initialization.
* cygthread.cc (cygthread::stub): Remove exception initialization.
(cygthread::simplestub): Ditto.
* thread.cc (pthread::thread_init_wrapper): Ditto.
* cygtls.cc (_last_thread): Make static.
(_threadinfo::call2): Initialize exception handler here.
(_threadinfo::find_tls): Move here.
* exceptions.cc (_threadinfo::find_tls): Move.
* dcrt0.cc (__api_fatal): Add prefix info to message here rather than including
it in every call to function.
* winsup.h (api_fatal): Accommodate above change.
* debug.cc (add_handle): Don't do anything if cygheap not around.
(mark_closed): Ditto.
* dll_init.cc (dll_list::detach): Fix debug output.
* fork.cc (sync_with_child): Ditto.
(vfork): Improve debug output.
* heap.cc (heap_init): Ditto.
* exceptions.cc (try_to_debug): Clarify message when debugger attaches.

20 years ago* gettext.m4: Quote names of macros to be defined by AC_DEFUN
Maciej W. Rozycki [Wed, 14 Jan 2004 13:41:37 +0000 (13:41 +0000)]
* gettext.m4: Quote names of macros to be defined by AC_DEFUN
throughout.

* acinclude.m4: Quote names of macros to be defined by AC_DEFUN
throughout.
* aclocal.m4: Regenerate.
* configure: Regenerate.

20 years ago2004-01-14 Greg Chicares <chicares@users.sourceforge.net>
Danny Smith [Wed, 14 Jan 2004 07:53:43 +0000 (07:53 +0000)]
2004-01-14  Greg Chicares  <chicares@users.sourceforge.net>

* include/tchar.h (_puttchar): Define.

20 years ago * demangle.h: Instead of checking ANSI_PROTOTYPES, just include
Ian Lance Taylor [Tue, 13 Jan 2004 03:07:16 +0000 (03:07 +0000)]
* demangle.h: Instead of checking ANSI_PROTOTYPES, just include
"libiberty.h".

20 years agoMerge from gcc.
Ian Lance Taylor [Tue, 13 Jan 2004 01:51:08 +0000 (01:51 +0000)]
Merge from gcc.

20 years agomerge from gcc
DJ Delorie [Mon, 12 Jan 2004 21:24:18 +0000 (21:24 +0000)]
merge from gcc

20 years agoAdd support for relaxation of bit manipulation instructions.
Nick Clifton [Mon, 12 Jan 2004 15:02:20 +0000 (15:02 +0000)]
Add support for relaxation of bit manipulation instructions.

20 years ago2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin [Sun, 11 Jan 2004 18:52:50 +0000 (18:52 +0000)]
2004-01-12  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

* 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.

20 years ago2004-01-11 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
Joshua Daniel Franklin [Sun, 11 Jan 2004 08:32:09 +0000 (08:32 +0000)]
2004-01-11  Joshua Daniel Franklin <joshuadfranklin@yahoo.com>

        * Makefile.in: Add new target for single-file User's Guide, use new
        cygwin.dsl for output.
        * cygwin.dsl: New file, DSSSL stylesheet for custom Cygwin output.
        * cygwin-api.in.sgml: Update to DocBook SGML 4.2 DTD.
        * cygwin-ug-net.in.sgml: Update to DocBook SGML 4.2 DTD.
        * cygwin-ug.in.sgml: Update to DocBook SGML 4.2 DTD.
        * cygwinenv.sgml: Correct some tags. Add description of default values
        to ntsec, export, and error_start items.
        * dll.sgml: Add explanation of cyg prefix for DLLs.
        * effectively.sgml: Use systemitem tag for names of Cygwin packages.
        * how-programming.texinfo: Add example to FAQ entry.
        * pathnames.sgml: Add discussion of /proc filesystem.
* setup-net.sgml: Correct some typos and grammar.

20 years ago(BITOP): Dissallow operations on @aa:16 and @aa:32 except for the H8S.
Nick Clifton [Fri, 9 Jan 2004 17:47:17 +0000 (17:47 +0000)]
(BITOP): Dissallow operations on @aa:16 and @aa:32 except for the H8S.

20 years ago2004-01-08 Joel Sherrill <joel@oarcorp.com>
Jeff Johnston [Thu, 8 Jan 2004 19:33:13 +0000 (19:33 +0000)]
2004-01-08  Joel Sherrill  <joel@oarcorp.com>

        * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
        Remove warnings.

20 years ago2004-01-08 Joel Sherrill <joel@oarcorp.com>
Jeff Johnston [Thu, 8 Jan 2004 19:25:21 +0000 (19:25 +0000)]
2004-01-08  Joel Sherrill  <joel@oarcorp.com>

        * libc/sys/rtems/sys/queue.h: New file.
        * libc/include/sys/signal.h: Reflect renumbering of signals to
        fit into 32-bit mask.
        * libc/include/sys/unistd.h: Add fdatasync() prototype.
        * libc/sys/rtems/crt0.c: Add more symbols which may be implicitly
        required.  In particular, add the reentrant variants of libc calls.
        * libc/sys/rtems/sys/dirent.h: Add scandir() prototype.

20 years ago2004-01-06 Mark Mitchell <mark@codesourcery.com>
Jeff Johnston [Tue, 6 Jan 2004 19:27:21 +0000 (19:27 +0000)]
2004-01-06  Mark Mitchell  <mark@codesourcery.com>

        * libc/sys/arm/syscalls.c (unistd.h): Include it.
        (remap_handle): Use STDIN_FILENO instead of __sfileno(stdin).
        Similarly for stdout and stderr.

20 years ago2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 6 Jan 2004 19:26:10 +0000 (19:26 +0000)]
2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/libc.texinfo: Correct escape character for @ sign
        so file will be processed by make info.  Update copyright years.
        * libm/libm.texinfo: Ditto.

20 years ago2003-12-02 Richard Sandiford <rsandifo@redhat.com>
Alexandre Oliva [Tue, 6 Jan 2004 19:21:35 +0000 (19:21 +0000)]
2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
* frv/crt0.S (_start): Fix use of FDPIC conditionals.  Move the set of
gr11 outside the FDPIC conditional.  Avoid clobbering gr4 too early.
2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
* frv/crt0.S: Fix fdpic sp calculation.
2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
* frv/crt0.S: Use __stacksize, not __stack, to initialize sp on
FDPIC.  Update comments on computing _GLOBAL_OFFSET_TABLE_.  Don't
fixup ctors nor dtors on FDPIC.
2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
* frv/crt0.S (_start): Set up gr15 only for FDPIC.
* frv/crt0.S (_start): Save _GLOBAL_OFFSET_TABLE_ in gr17, and set
gr15 before function calls.
2003-09-19  DJ Delorie  <dj@redhat.com>, Alexandre Oliva  <aoliva@redhat.com>
* frv/crt0.S (_start): Set up gr15 with _GLOBAL_OFFSET_TABLE_'s
value.

20 years ago2003-09-18 Alexandre Oliva <aoliva@redhat.com>
Alexandre Oliva [Tue, 6 Jan 2004 19:18:30 +0000 (19:18 +0000)]
2003-09-18  Alexandre Oliva  <aoliva@redhat.com>
* frv.h (EF_FRV_FDPIC): New macro.
(EF_FRV_PIC_FLAGS): Adjust.
2003-08-08  Alexandre Oliva  <aoliva@redhat.com>
* frv.h (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
R_FRV_FUNCDESC_GOTOFFLO, R_FRV_FUNCDESC_GOTOFFHI, R_FRV_GOTOFF12,
R_FRV_GOTOFFLO, R_FRV_GOTOFFHI): New.
2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
* frv.h (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO, R_FRV_FUNCDESC,
R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI, R_FRV_FUNCDESC_GOTLO):
New.

20 years agoAdd N_PATCH to DO definition.
Nick Clifton [Tue, 6 Jan 2004 17:05:11 +0000 (17:05 +0000)]
Add N_PATCH to DO definition.

20 years ago * configure.in: Use ./config.cache, not config.cache.
Nathanael Nerode [Mon, 5 Jan 2004 04:38:54 +0000 (04:38 +0000)]
* configure.in: Use ./config.cache, not config.cache.
* configure: Regenerate.
* Makefile.tpl: Special-casing not needed for GCC any more.
* Makefile.in: Regenerate.

20 years ago * configure.in: Don't share a cache file for host dirs.
Nathanael Nerode [Mon, 5 Jan 2004 00:50:42 +0000 (00:50 +0000)]
* configure.in: Don't share a cache file for host dirs.
* configure: Regenerate.

20 years ago * config-ml.in: Don't mess with the cache file.
Nathanael Nerode [Mon, 5 Jan 2004 00:42:16 +0000 (00:42 +0000)]
* config-ml.in: Don't mess with the cache file.

20 years ago2004-01-05 Filip Navara <xnavara@volny.cz>
Danny Smith [Sun, 4 Jan 2004 21:35:32 +0000 (21:35 +0000)]
2004-01-05  Filip Navara  <xnavara@volny.cz>

* include/prsht.h (LPCPROPSHEETPAGEW): Fix definition.
* include/shlwapi.h (SHRegQueryInfoUSKey[AW]): Fix prototype.
* include/cpl.h (CPL_STARTWPARMS[AW]): Correct.
* include/shellapi.h (ABS_AUTOHIDE, ABS_ALWAYSONTOP,
SEE_MASK_NO_CONSOLE, SEE_MASK_ASYNCOK, SEE_MASK_HMONITOR,
FOF_NOCOPYSECURITYATTRIBS): Add defines.
* include/shlobj.h (BFFM_SETOKTEXT, BFFM_SETEXPANDED,
CSIDL_FLAG_DONT_VERIFY, CSIDL_FLAG_CREATE, CSIDL_FLAG_MASK,
CFSTR_INETURL[AW], SHGDN_FOREDITING, SHGDN_FORADDRESSBAR,
SSF_*): Add defines.
(SHCNF_PATH[AW], SHCNF_PRINTER[AW], CFSTR_FILENAME[AW],
CFSTR_FILENAMEMAP[AW], CFSTR_FILEDESCRIPTOR[AW], CFSTR_SHELLURL,
CMDSTR_NEWFOLDER[AW], CMDSTR_VIEWLIST[AW], CMDSTR_VIEWDETAILS[AW]):
Correct.
(IEnumIDList): Add COBJMACROS.
* include/winuser.h (MIM_*): Add define.

20 years ago * include/mshtml.h (IHTMLDocument2): Correct write, writeln
Danny Smith [Sun, 4 Jan 2004 09:04:19 +0000 (09:04 +0000)]
* include/mshtml.h (IHTMLDocument2): Correct write, writeln
declarations.
Thanks to: Rene Nyffenegger <renenyffenegger@users.sf.net>.

20 years ago * include/mshtml.h (IHTMLDocument2): Correct write, writeln
Danny Smith [Sat, 3 Jan 2004 23:18:31 +0000 (23:18 +0000)]
* include/mshtml.h (IHTMLDocument2): Correct write, writeln
declarations.
Thanks to: Rene Nyffenegger <renenyffenegger@users.sf.net>.

20 years ago2004-01-03 Filip Navara <xnavara@volny.cz>
Danny Smith [Sat, 3 Jan 2004 22:12:35 +0000 (22:12 +0000)]
2004-01-03  Filip Navara  <xnavara@volny.cz>

* include/cguid.h (CLSID_StdGlobalInterfaceTable): Declare IID.
* include/oaidl.h (ITypeLib2, ITypeInfo2): Define interfaces,
declare IID's.
(IErrorInfo): Add COBJMACROS.
* include/objbase.h (STGM_NOSNAPSHOT): Add define.
(CoGetPSClsid): Add protototype,
(CoRegisterPSClsid): Likewise.
* include/objidl.h (IMarshal): Correct methods.
(IMallocSpy): Likewise,
(LPPSFACTORYBUFFER): Add typedef.
(IGlobalInterfaceTable): Define interface and COBJMACROS. Declare
IID.
(IStorage_CreateStorage, IRpcStubBuffer_Invoke): Fix macros.
* include/ocidl.h (PROPBAG2_TYPE): Define enum.
(PROPBAG2, QACONTAINERFLAGS, QACONTAINER, QACONTROL): Define
structures.
(IPropertyBag2, IPersistPropertyBag2,IAdviseSinkEx, IPointerInactive,
IOleUndoUnit, IOleParentUndoUnit, IEnumOleUndoUnits, IOleUndoManager,
IQuickActivate): Define interfaces. Declare IID's.
(IPersistPropertyBag2): Add COBJMACROS.
(LPOLEUNDOMANAGER): Add typedef.
(LPPROPERTYBAG2): Likewise.
* include/oleidl.h (LPPARSEDISPLAYNAME): Fix definiton.
(BINDSPEED): Add definition.
(IParseDisplayName, IOleItemContainer, IOleObject, IDropSource,
IDropTarget): Add COBJMACROS.
* include/wtypes.h (MEMCTX, MSHCTX): Fix enums.
* include/winerror.h (CO_S_NOTALLINTERFACES): Add define.
* lib/uuid.c (IID_IGlobalInterfaceTable, IID_IOleUndoManager,
IID_IPersistPropertyBag2, IID_IPropertyBag2, IID_IRpcProxyBuffer):
Add definitions.

20 years ago* exceptions.cc (_threadinfo::interrupt_now): Avoid double call to sigdelayed.
Christopher Faylor [Sat, 3 Jan 2004 20:57:11 +0000 (20:57 +0000)]
* exceptions.cc (_threadinfo::interrupt_now): Avoid double call to sigdelayed.
* pinfo.cc (_pinfo::commune_send): Avoid inexplicable test which caused most
pids to be shown as "<defunct>" on Win9x.

20 years agoadd missing entry
Christopher Faylor [Sat, 3 Jan 2004 19:06:21 +0000 (19:06 +0000)]
add missing entry

20 years ago2004 stuff.
Christopher Faylor [Sat, 3 Jan 2004 18:55:14 +0000 (18:55 +0000)]
2004 stuff.

20 years ago2004 stuff
Christopher Faylor [Sat, 3 Jan 2004 18:53:49 +0000 (18:53 +0000)]
2004 stuff

20 years ago * Makefile.tpl: Make GCC use a separate config.cache.
Nathanael Nerode [Sat, 3 Jan 2004 18:31:06 +0000 (18:31 +0000)]
* Makefile.tpl: Make GCC use a separate config.cache.
* Makefile.in: Regenerate.

20 years ago PR bootstrap/11932, PR bootstrap/11933
Nathanael Nerode [Sat, 3 Jan 2004 18:24:38 +0000 (18:24 +0000)]
PR bootstrap/11932, PR bootstrap/11933
(I don't know if it will fix either of them, but it relates
to them.)
* configure.in: Don't use shared config.cache for target
directories.
* configure: Regenerate.

20 years ago* cygheap.h (init_cygheap): Play more vfork shell games and move ctty_on_hold
Christopher Faylor [Sat, 3 Jan 2004 18:15:03 +0000 (18:15 +0000)]
* cygheap.h (init_cygheap): Play more vfork shell games and move ctty_on_hold
and open_fhs_on_hold (back) here.
* dcrt0.cc (_dll_crt0): Just set impure_ptr_ptr here and let later
initialization deal with tls.
* dtable.cc (dtable::vfork_child_fixup): Move ctty considerations here.
(dtable:vfork_parent_restore): And here.
* fork.cc (vfork): Reflect change to ctty handling.
* perthread.h (vfork_save::fhctty): Eliminate.
* cygwin.din: Make more exports NOSIGFE that will never be interrupted by a
signal.
* init.cc (dll_entry): Set stackptr to NULL to catch problems earlier.

20 years agomerge from gcc
DJ Delorie [Fri, 2 Jan 2004 21:11:29 +0000 (21:11 +0000)]
merge from gcc

20 years agoSplit ChangeLog files.
Alan Modra [Fri, 2 Jan 2004 11:16:20 +0000 (11:16 +0000)]
Split ChangeLog files.

20 years ago2004-01-02 Filip Navara <xnavara@volny.cz>
Danny Smith [Fri, 2 Jan 2004 03:19:52 +0000 (03:19 +0000)]
2004-01-02  Filip Navara  <xnavara@volny.cz>

* include/ddk/winddk.h: Don't care about value of
DBG define.

2004-01-02  Danny Smith  <dannysmith@users.sourceforge.net>
    Filip Navara  <xnavara@volny.cz>

* include/ddk/winddk.h (_DDK_DUMMYUNION_MEMBER,
_DDK_DUMMYUNION_N_MEMBER): New macros.
(ExAllocateFromPagedLookasideList,ExFreeToPagedLookasideList,
ExAllocateFromNPagedLookasideList, ExFreeToNPagedLookasideList):
Use them.

20 years ago2004-01-01 Filip Navara <xnavara@volny.cz>
Danny Smith [Thu, 1 Jan 2004 22:34:20 +0000 (22:34 +0000)]
2004-01-01  Filip Navara  <xnavara@volny.cz>

* include/objbase.h:  Don't care about value of DBG define.
* include/objidl.h: Add some COBJMACROS.
* include/ocidl.h: Ditto.
* include/oleidl.h: Ditto.
* include/servprov.h: Ditto.
* include/shlobj.h: Ditto.
* include/shlobj.h (IContextMenu2): Correct parent in
DECLARE_INTERFACE.
* include/oleidl.h (IOleCache, IOleCache2, IOleCacheControl):
Define interfaces.
* include/setupapi.h (SetupGetLineTextA): Correct prototype.
Add new constants for _SETUPAPI_VER >= 0x501.

20 years ago2004-01-01 Filip Navara <xnavara@volny.cz>
Danny Smith [Thu, 1 Jan 2004 11:21:48 +0000 (11:21 +0000)]
2004-01-01  Filip Navara  <xnavara@volny.cz>

* include/winnt.h (NtCurrentTeb): Add inline definition.

20 years ago2004-01-01 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith [Thu, 1 Jan 2004 11:00:43 +0000 (11:00 +0000)]
2004-01-01  Martin Fuchs  <martin-fuchs@gmx.net>

* include/shlobj.h (SHCoCreateInstance): Add prototype..
* lib/shell32.def (SHCoCreateInstance): Add export stub.

20 years ago2004-01-01 Igor Pechtchanski <pechtcha@cs.nyu.edu>
Danny Smith [Thu, 1 Jan 2004 10:31:41 +0000 (10:31 +0000)]
2004-01-01  Igor Pechtchanski  <pechtcha@cs.nyu.edu>

* lib/setupapi.def (CM_Request_Device_Eject[AW]): Add export.
(CM_Request_Device_Eject_Ex[AW]): Likwise.
* include/ddk/cfg.h (DN_*): Add defines.

20 years ago* lib/ddk/cfgmgr32.def: Remove duplicate symbol names.
Danny Smith [Thu, 1 Jan 2004 10:21:01 +0000 (10:21 +0000)]
* lib/ddk/cfgmgr32.def: Remove duplicate symbol names.

20 years ago2004-01-01 Mattia Barbon <mbarbon@users.sourceforge.net>
Danny Smith [Thu, 1 Jan 2004 10:16:13 +0000 (10:16 +0000)]
2004-01-01  Mattia Barbon  <mbarbon@users.sourceforge.net>

* include/commctrl.h (TVN_GETINFOTIP): Add UNICODE mappings.
(NMTVGETINFOTIP): Add structure.

20 years ago* configure.in (ia64*-*-hpux*): Disable building java libraries.
DJ Delorie [Thu, 1 Jan 2004 00:07:51 +0000 (00:07 +0000)]
* configure.in (ia64*-*-hpux*): Disable building java libraries.
* configure: Regenerated.

20 years ago* cygwin.din: Make crt0 functions NOSIGFE.
Christopher Faylor [Wed, 31 Dec 2003 06:30:48 +0000 (06:30 +0000)]
* cygwin.din: Make crt0 functions NOSIGFE.
* include/cygwin/version.h: Gratuitous comment change.
* lib/_cygwin_crt0_common.cc: Remove unneeded declaration.

20 years ago* cygtls.h (_threadinfo::stack): Increase stack size to accommodate nested
Christopher Faylor [Tue, 30 Dec 2003 03:59:45 +0000 (03:59 +0000)]
* cygtls.h (_threadinfo::stack): Increase stack size to accommodate nested
signal handlers.  Reorganize to cause potential SEGV on stack overflow.
* sigproc.cc (no_signals_available): Check sendsig value rather than relying on
obsolete sig_loop_wait.
(sigproc_terminate): Ditto.
(proc_can_be_signalled): Check sendsig value even for myself.
* tlsoffsets.h: Regenerate.

20 years agoMove open_fhs from fhandler.h to cygheap.h for easier tracking. Accommodate
Christopher Faylor [Tue, 30 Dec 2003 01:57:16 +0000 (01:57 +0000)]
Move open_fhs from fhandler.h to cygheap.h for easier tracking.  Accommodate
this change throughout.
* dtable.cc (dtable::add_archetype): Use correct count when iterating through
*active* archetypes.
* dtable.cc (dtable::fixup_after_exec): Close handle if close_on_exec and
archetype exists since archetype currently does not set windows close-on-exec
flag (FIXME).
* fhandler_tty.cc (fhandler_tty_slave::open): Change debugging output slightly.
(fhandler_tty_slave::close): Ditto.
(fhandler_tty_slave::fixup_after_fork): Just report on inherited use counts
since since archetype currently does not set windows close-on-exec flag
(FIXME).
* pinfo.cc (_pinfo::set_ctty): Change debugging output slightly.
* cygheap.cc (cygheap_init): Remove open_fhs accommodation and use count
reporting.
* perthread.h (vfork_save::fhctty): New element.
* perthread.h (vfork_save::open_fhs): New element.
* fork.cc (vfork): Muck around with ctty and open_fhs stuff, both of which are
now saved in the vfork_save structure.

20 years ago* fhandler.h (fhandler_tty_slave::archetype): Make public.
Christopher Faylor [Sat, 27 Dec 2003 17:41:17 +0000 (17:41 +0000)]
* fhandler.h (fhandler_tty_slave::archetype): Make public.
(report_tty_counts): New macro.  Use throughout for reporting tty use counts.
* dtable.cc (dtable::vfork_child_dup): Add debugging output for usecount
increment.  Increment open_fhs if appropriate.
(dtable::vfork_parent_restore): "Close" artificially bumped ctty.
(dtable::vfork_child_fixup): Close ctty since it was bumped prior to vfork.
Save open_fhs around close since the closing of these handles has no effect on
the console.
* fhandler_tty.cc (fhandler_tty_slave::open): Reorganize calls to allow for
easier tracking of usecount modification.
(fhandler_tty_slave::open): Ditto.

20 years ago* syscalls.cc (close_all_files): Simplify logic around closing ctty.
Christopher Faylor [Sat, 27 Dec 2003 02:41:07 +0000 (02:41 +0000)]
* syscalls.cc (close_all_files): Simplify logic around closing ctty.

20 years ago* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
Christopher Faylor [Sat, 27 Dec 2003 02:20:07 +0000 (02:20 +0000)]
* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
counts as an opened handle.

20 years ago* fhandler.h (fhandler_tty_master::fixup_after_fork): Remove declaration.
Christopher Faylor [Sat, 27 Dec 2003 01:59:29 +0000 (01:59 +0000)]
* fhandler.h (fhandler_tty_master::fixup_after_fork): Remove declaration.
(fhandler_tty_master::fixup_after_exec): Ditto.
* fhandler_tty.cc (fhandler_tty_master::init): Fix so that children do not
inherit master tty handles.
(fhandler_tty_master::fixup_after_fork): Remove, since it was never used.
(fhandler_tty_master::fixup_after_exec): Ditto.
* pinfo.cc (_pinfo::set_ctty): Increment open_fhs when ctty is set.
* cygheap.cc (cygheap_init): Ditto.
* syscalls.cc (setsid): *Always* call close on opened ctty since the archetype
is associated with the ctty and it counts as an opened handle.
* tty.cc (tty::common_init): Don't protect input/output mutex since it confuses
subsequent fork/execs when CYGWIN=tty.

20 years ago* exceptions.cc (try_to_debug): Fix off-by-one problem when resetting
Christopher Faylor [Sat, 27 Dec 2003 00:25:02 +0000 (00:25 +0000)]
* exceptions.cc (try_to_debug): Fix off-by-one problem when resetting
environment variable after error_start detected.
* fhandler_tty_slave.cc (fhandler_tty_slave::close): Clarify debug message.
* syscalls.cc (setsid): Don't increment usecount here, since it will be
automatically decremented on close.

20 years ago* exceptions.cc (setup_handler): Protect against a race.
Christopher Faylor [Fri, 26 Dec 2003 18:30:41 +0000 (18:30 +0000)]
* exceptions.cc (setup_handler): Protect against a race.

20 years ago* path.cc (mount_item::build_win32): Backslashify paths in non-managed case.
Christopher Faylor [Fri, 26 Dec 2003 18:26:17 +0000 (18:26 +0000)]
* path.cc (mount_item::build_win32): Backslashify paths in non-managed case.

20 years ago* Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
Christopher Faylor [Fri, 26 Dec 2003 05:37:54 +0000 (05:37 +0000)]
* Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
(CYGWIN_LIB): Delete.
(cygserver.exe target): Add -L$(cygwin_build) to the link line to force linker
to use build tree version of the library.  Remove specific inclusion of
libcygwin.a from the link line.

20 years ago* dcrt0.cc (reent_data): Reluctantly resurrect.
Christopher Faylor [Fri, 26 Dec 2003 04:40:52 +0000 (04:40 +0000)]
* dcrt0.cc (reent_data): Reluctantly resurrect.
(__cygwin_user_data::impure_ptr): Ditto.
(_dll_crt0): Reluctantly initialize _impure_ptr here.
(initialize_main_tls): Eliminate local_clib initialization since it now happens
in init_thread.
* init.cc (dll_entry): Reluctantly remove code which set _impure_ptr to the
main thread's local_clib.
* perthread.h (reent_data): Remove obsolete declaration.
* sigproc.cc (proc_subproc): Add more debugging output.
(get_proc_lock): Ditto.
*dcrt0.cc (dll_crt0_1): Allocate argv[0] via malloc since main thread could
exit.

20 years ago* winsup.api/pthread/rwlock7.c (main): Don't assume that result of rand
Christopher Faylor [Wed, 24 Dec 2003 04:37:19 +0000 (04:37 +0000)]
* winsup.api/pthread/rwlock7.c (main): Don't assume that result of rand
operation is non-zero.

20 years ago* fork.cc (fork_child): After a pthread/fork, ensure that impure pointer stuff
Christopher Faylor [Tue, 23 Dec 2003 22:24:38 +0000 (22:24 +0000)]
* fork.cc (fork_child): After a pthread/fork, ensure that impure pointer stuff
which resides in parent is propagated to child thread.

20 years agoadd missing file
Christopher Faylor [Tue, 23 Dec 2003 16:43:45 +0000 (16:43 +0000)]
add missing file

20 years ago* exceptions.cc (set_signal_mask): Redefine to not pass by address. Report
Christopher Faylor [Tue, 23 Dec 2003 16:26:31 +0000 (16:26 +0000)]
* exceptions.cc (set_signal_mask): Redefine to not pass by address.  Report
calculated mask in debugging output.
* sigproc.h (set_signal_mask): Reflect above change in declaration.
* path.cc (mount_item::build_win32): Take path apart before feeding it to
fnmunge.  Throughout, change use of _reent_winsup()-> to _my_tls.locals.
instead.  Throughout, remove obsolete MT_SAFE/_CYG_THREAD_FAILSAFE
considerations.  Througout, add cygtls.h include.
* Makefile.in (DLL_OFILES): Add cygtls.o.  Add some more objects to the
-fomit-frame-pointer list.
* acconfig.h: Remove obsolete settings.
* config.h.in: Ditto.
* bsdlib.cc: Add cygtls.h include.
* configure.in: Remove --enable-extra-threadsafe-checking.
* configure: Regenerate.
* cygtls.h (_local_storage): New struct renamed from _winsup_t (sic).
(_threadinfo:local_clib): Add new field.
(_threadinfo::locals): Ditto.
(_threadinfo::init_thread): Accept second _reent * argument.
(_threadinfo::call): Define as regparm.
(CYGTLS_PADSIZE): Remove unnecessary slop.
(_getreent): Define as a macro.
* thread.h: Remove _CYG_THREAD_FAILSAFE and MT_SAFE stuff.
(_winsup_t): Move to cygtls.h.
(ResourceLocks::ResourceLocks): Eliminate empty constructor.
(MTinterface::reents): Eliminate.
(MTinterface::thread_self_key): Eliminate.
(MTinterface::MTinterface): Eliminate.
* dcrt0.cc: Include stdio.h for _impure_ptr initialization.
(do_global_ctors): Remove run_ctors_p (sic) considerations.  Don't call atexit
here.
(__main): Initialize destructors for user here.
(dll_crt0_1): Accept a dummy argument.  Don't call init_thread here.  Don't set
_impure_ptr here.  Call do_global_ctors after more things have been
initialized.
(_dll_crt0): Define zeros buffer as max of needed size of CYGTLS_PADSIZE so
that it can be used for two purposes while minimizing stack usage.  Initialize
_impure_ptr specifically, for speed.  Call dll_crt0_1 with buffer argument.
(cygwin_dll_init): Call dll_crt0_1 with dummy argument.
* dtable.cc (dtable::find_unused_handle): Remove call to AssertResourceOwner.
* exceptions.cc: Move _threadinfo stuff to new file.
* cygtls.cc: New file.
* gentls_offsets: Accommodate increasing complexity of cygtls.h.
* hires.h (hires_base::~hires_base): Remove.
* init.cc (dll_entry): Remove setting of reents.
* thread.cc: Remove syslog.h include.
(__getreent): Simplify to use _my_tls.
(_reent_winsup): Delete.
(AssertResourceOwner): Delete.
(MTinterface::Init): Remove setting of _clib and _winsup, with all that
entails.
(MTinterface::fixup_after_fork): Ditto.
(pthread::thread_init_wrapper): Ditto.  Also remove call to
set_tls_self_pointer.
(pthread::set_tls_self_pointer): Eliminate.
(pthread::get_tls_self_pointer): Just return _my_tls.tid;
(__reent_t::init_clib): Eliminate.
* tlsoffsets.h: Regenerate.

20 years ago* configure.in (*-*-uclinux): Exclude newlib, libgloss and rda.
DJ Delorie [Mon, 22 Dec 2003 00:59:55 +0000 (00:59 +0000)]
* configure.in (*-*-uclinux): Exclude newlib, libgloss and rda.
* configure: Regenerated.

20 years agomerge from gcc
DJ Delorie [Fri, 19 Dec 2003 16:50:48 +0000 (16:50 +0000)]
merge from gcc

20 years ago2003-12-19 Nathanael Nerode <neroden@gcc.gnu.org>
Nathanael Nerode [Fri, 19 Dec 2003 15:13:56 +0000 (15:13 +0000)]
2003-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>

Port change over from GCC:
2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
* Makefile.tpl (BASE_FLAGS_TO_PASS): Pass along CONFIG_SHELL.
(configure-build-[+module+], configure-[+module+]): Likewise.
(configure-target-[+module+], configure-gcc, config.status): Likewise.
* Makefile.in: Regenerate.

20 years agoAdd support for m32r-linux target, including a RELA ABI and PIC.
Nick Clifton [Fri, 19 Dec 2003 11:44:00 +0000 (11:44 +0000)]
Add support for m32r-linux target, including a RELA ABI and PIC.

20 years agomerge from gcc
DJ Delorie [Fri, 19 Dec 2003 04:04:44 +0000 (04:04 +0000)]
merge from gcc

20 years ago* sigproc.cc (proc_subproc): Simplify code to just remove all zombies if
Christopher Faylor [Thu, 18 Dec 2003 04:42:31 +0000 (04:42 +0000)]
* sigproc.cc (proc_subproc): Simplify code to just remove all zombies if
SIGCHLD == SIG_IGN.

20 years ago* pinfo.h (pinfo::operator ==): Add a way to check for _pinfo types.
Christopher Faylor [Wed, 17 Dec 2003 22:47:32 +0000 (22:47 +0000)]
* pinfo.h (pinfo::operator ==): Add a way to check for _pinfo types.
* sigproc.cc (proc_subproc): Ensure that zombie is removed when SIGCHLD ==
SIG_IGN but still allow wait()ing threads to wake up.

20 years ago* exceptions.cc (set_signal_mask): Report on input argument rather than
Christopher Faylor [Tue, 16 Dec 2003 23:28:03 +0000 (23:28 +0000)]
* exceptions.cc (set_signal_mask): Report on input argument rather than
getsigmask.
* fhandler.h (fhandler_base): Make friends with close_all_files.
* pinfo.cc (_pinfo::set_ctty): Add more debugging.
* sigproc.cc (proc_can_be_signalled): Detect state when signal handler thread
is gone in target process as an EPERM situation.  Set errno to ESRCH if process
doesn't exist.
(sigproc_terminate): Set sendsig to illegal value when closed.
(sig_send): Rely on proc_can_be_signalled setting the proper errno.
* syscalls.cc (close_all_files): Detect when all ttys are closed prior to
calling close_all_files.  The ctty needs to be closed explicitly in this case.

20 years ago * include/cygwin/ipc.h: Include sys/types.h.
Corinna Vinschen [Tue, 16 Dec 2003 10:15:28 +0000 (10:15 +0000)]
* include/cygwin/ipc.h: Include sys/types.h.

20 years ago * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
Corinna Vinschen [Tue, 16 Dec 2003 10:13:34 +0000 (10:13 +0000)]
* bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
kern.ipc.msgtql.  Raise max value for kern.ipc.msgseg to 65535.
* cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
* sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
kern.ipc.msgmnb and kern.ipc.msgtql.

20 years ago* thread.cc (pthread::init_main_thread): Make sure that the main thread has
Christopher Faylor [Mon, 15 Dec 2003 14:38:12 +0000 (14:38 +0000)]
* thread.cc (pthread::init_main_thread): Make sure that the main thread has
valid handles.
(pthread::create_cancel_event): Fix error message.

20 years agoadd out-of-date notice.
Christopher Faylor [Mon, 15 Dec 2003 04:44:30 +0000 (04:44 +0000)]
add out-of-date notice.

20 years agoAdd missing ChangeLog entry.
Christopher Faylor [Mon, 15 Dec 2003 04:17:27 +0000 (04:17 +0000)]
Add missing ChangeLog entry.

20 years ago* winsup.h (access_worker): Declare with added fhandler_base parameter.
Christopher Faylor [Mon, 15 Dec 2003 04:16:42 +0000 (04:16 +0000)]
* winsup.h (access_worker): Declare with added fhandler_base parameter.
* syscalls.cc (access_worker): Accommodate extra fhandler_base argument.  Use
it instead of stat_worker to determine stat information, when appropriate.
* fhandler.cc (fhandler_base::device_access_denied): Pass fhandler pointer to
access_worker so that it can use the proper method for determining stat
information.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.

20 years agowhite space
Christopher Faylor [Mon, 15 Dec 2003 03:59:32 +0000 (03:59 +0000)]
white space

20 years agoRemove erroneous entry.
Christopher Faylor [Mon, 15 Dec 2003 03:10:38 +0000 (03:10 +0000)]
Remove erroneous entry.

20 years ago* exceptions.cc (ctrl_c_handler): Remove this thread from the signal handler
Christopher Faylor [Sun, 14 Dec 2003 16:55:24 +0000 (16:55 +0000)]
* exceptions.cc (ctrl_c_handler): Remove this thread from the signal handler
chain.

20 years ago* cygthread.cc (cygthread::stub): Revert previous change and again subsume
Christopher Faylor [Sun, 14 Dec 2003 07:09:22 +0000 (07:09 +0000)]
* cygthread.cc (cygthread::stub): Revert previous change and again subsume
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.

20 years ago * include/stdio.h:(_fileno): Define macro version after both
Danny Smith [Sat, 13 Dec 2003 21:22:34 +0000 (21:22 +0000)]
* include/stdio.h:(_fileno): Define macro version after both
fileno and _fileno functions declared.

* include/stdio.h (_rmtmp, rmtmp): Add prototypes.
* moldnames.def.in (rmtmp) Add stub.

20 years ago* dtable.cc (dtable::delete_archetype): Add debugging.
Christopher Faylor [Fri, 12 Dec 2003 20:46:03 +0000 (20:46 +0000)]
* dtable.cc (dtable::delete_archetype): Add debugging.
(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.

20 years ago* dcrt0.cc (alloc_stack): Move _main_tls if stack is relocated.
Christopher Faylor [Fri, 12 Dec 2003 05:04:47 +0000 (05:04 +0000)]
* dcrt0.cc (alloc_stack): Move _main_tls if stack is relocated.

20 years ago* miscfuncs.cc (low_priority_sleep): Correct thinko which caused SetPriority to
Christopher Faylor [Fri, 12 Dec 2003 04:15:32 +0000 (04:15 +0000)]
* miscfuncs.cc (low_priority_sleep): Correct thinko which caused SetPriority to
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.

20 years ago * fhandler_serial.cc (fhandler_serial::tcflush): Simplify. Remove
Corinna Vinschen [Thu, 11 Dec 2003 18:07:42 +0000 (18:07 +0000)]
* fhandler_serial.cc (fhandler_serial::tcflush): Simplify.  Remove
read polling loop to avoid a hang with streaming devices.

20 years ago* pinfo.cc (_pinfo::set_ctty): Correct stupid typo.
Christopher Faylor [Thu, 11 Dec 2003 06:19:36 +0000 (06:19 +0000)]
* pinfo.cc (_pinfo::set_ctty): Correct stupid typo.

This page took 0.069488 seconds and 5 git commands to generate.