]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years ago* net.cc (cygwin_sendto): Use correct socket address when sending
Egor Duda [Thu, 11 Oct 2001 09:46:21 +0000 (09:46 +0000)]
* net.cc (cygwin_sendto): Use correct socket address when sending
data to AF_UNIX socket.

22 years ago * net.cc (get_95_ifconf): Using other registry values pointing to
Corinna Vinschen [Wed, 10 Oct 2001 19:28:19 +0000 (19:28 +0000)]
* net.cc (get_95_ifconf): Using other registry values pointing to
correct networkdevice identification for Windows95.

22 years agoNew entries:
David Starks-Browning [Wed, 10 Oct 2001 09:21:55 +0000 (09:21 +0000)]
New entries:
My application cannot locate cygncurses5.dll!!!
Why is Cygwin suddenly @emph{so} slow?
Modified:
Why doesn't //c (for C:) work anymore?

22 years agoThroughout, rename PROC_FORK1 to PROC_FORK.
Christopher Faylor [Wed, 10 Oct 2001 02:32:12 +0000 (02:32 +0000)]
Throughout, rename PROC_FORK1 to PROC_FORK.
* child_info.h: Rename PROC_* to _PROC_*.  Define PROC_* with additional
testing magic.  Eliminate old PROC_FORK and rename PROC_FORK1 to PROC_FORK.
* dcrt0.cc (_cygwin_testing_magic): New variable.  Added to magic number in
proc_info.
(alloc_stack): Eliminate old PROC_FORK test.
(dll_crt0_1): Ditto.  Use _PROC_* enums for test.  Subtract
_cygwin_testing_magic from child_proc_info->type so that normal cygwin programs
invoked by test suite programs do not consider themselves to be in a cygwin
environment.
(_dll_crt0): Ditto.  Move environment checks to initial_env function to
conserve on stack space.
(initial_env): New function.  Checks for testing and debugging environment
variables.
* init.cc (cygwin_hmodule): Move declaration.
* winsup.h: Declare variables used for cygwin testing.

22 years ago* Makefile.in (MINGW_INCLUDES): Accomodate changes in Makefile.common.
Christopher Faylor [Wed, 10 Oct 2001 01:58:33 +0000 (01:58 +0000)]
* Makefile.in (MINGW_INCLUDES): Accomodate changes in Makefile.common.

22 years ago* Makefile.common: Avoid adding -I options to compile if they already exist in
Christopher Faylor [Wed, 10 Oct 2001 01:57:43 +0000 (01:57 +0000)]
* Makefile.common: Avoid adding -I options to compile if they already exist in
CC or C*FLAGS.  This prevents warnings from newer versions of gcc.

22 years ago* uinfo.cc (internal_getlogin): Reorganize slightly to minimize work in default
Christopher Faylor [Tue, 9 Oct 2001 23:28:24 +0000 (23:28 +0000)]
* uinfo.cc (internal_getlogin): Reorganize slightly to minimize work in default
condition.

22 years agofix typos
Egor Duda [Tue, 9 Oct 2001 18:12:51 +0000 (18:12 +0000)]
fix typos

22 years ago * fhandler.cc (fhandler_disk_file::open): Add missing case clash check.
Corinna Vinschen [Tue, 9 Oct 2001 16:54:18 +0000 (16:54 +0000)]
    * fhandler.cc (fhandler_disk_file::open): Add missing case clash check.

22 years ago * winsup.api/mmaptest01.c: Add several tests on mmaps. Use libltp.
Corinna Vinschen [Mon, 8 Oct 2001 12:18:38 +0000 (12:18 +0000)]
* winsup.api/mmaptest01.c: Add several tests on mmaps.  Use libltp.
* winsup.api/winsup.exp: Link all tests agains libltp.

22 years ago* dtable.cc (dtable::build_fhandler): Allocate correct amount for given
Christopher Faylor [Mon, 8 Oct 2001 05:50:33 +0000 (05:50 +0000)]
* dtable.cc (dtable::build_fhandler): Allocate correct amount for given
fhandler class.
* fhandler.h (fhandler_union): Properly define rather than relying on
fhandler_console being "big enough".

22 years ago* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid
Christopher Faylor [Mon, 8 Oct 2001 04:26:27 +0000 (04:26 +0000)]
* external.cc (fillout_pinfo): Reset counter whenever we initialize the pid
list.

22 years ago* kill.cc (main): Set exit value to 1 on invalid pid. Perform minor cleanup.
Christopher Faylor [Mon, 8 Oct 2001 03:06:25 +0000 (03:06 +0000)]
* kill.cc (main): Set exit value to 1 on invalid pid.  Perform minor cleanup.

22 years ago* path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it has
Christopher Faylor [Sun, 7 Oct 2001 21:16:36 +0000 (21:16 +0000)]
* path.cc (normalize_posix_path): Don't eat a '.' after a '\\' since it has
special meaning on NT.
* syscalls.cc (access): Use stat_worker.

22 years agomerge from gcc
DJ Delorie [Sun, 7 Oct 2001 17:23:43 +0000 (17:23 +0000)]
merge from gcc

22 years agofix typo
Christopher Faylor [Sat, 6 Oct 2001 04:04:14 +0000 (04:04 +0000)]
fix typo

22 years ago* fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record it
Christopher Faylor [Sat, 6 Oct 2001 01:04:24 +0000 (01:04 +0000)]
* fhandler.cc (fhandler_base::fork_fixup): Protect dup'ed handle and record it
as non-inheritable for debugging purposes in case there is a subsequent fork or
exec.
* fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Allow fork_fixup to
call ProtecHandle.

22 years ago* path.cc (get_raw_device_number): Correct length arguments for wdeveqn.
Christopher Faylor [Fri, 5 Oct 2001 18:23:49 +0000 (18:23 +0000)]
* path.cc (get_raw_device_number): Correct length arguments for wdeveqn.

22 years ago* winsup.api/nullgetcwd.c: New file. Check that NULL first argument to getcwd
Christopher Faylor [Fri, 5 Oct 2001 16:52:43 +0000 (16:52 +0000)]
* winsup.api/nullgetcwd.c: New file.  Check that NULL first argument to getcwd
works.

22 years ago* path.cc (getcwd): Allow NULL first argument.
Christopher Faylor [Fri, 5 Oct 2001 15:05:07 +0000 (15:05 +0000)]
* path.cc (getcwd): Allow NULL first argument.

22 years agoRevert incorrect checkins.
Christopher Faylor [Fri, 5 Oct 2001 04:37:33 +0000 (04:37 +0000)]
Revert incorrect checkins.

22 years ago* heap.h (inheap): Check for NULL.
Christopher Faylor [Fri, 5 Oct 2001 04:36:14 +0000 (04:36 +0000)]
* heap.h (inheap): Check for NULL.

22 years agoAdd second path_conv * argument to fstat()s throughout.
Christopher Faylor [Fri, 5 Oct 2001 04:21:41 +0000 (04:21 +0000)]
Add second path_conv * argument to fstat()s throughout.
* fhandler.h: Change read and fstat to regparm/stdcall throughout.
(fhandler_base::fstat): Just declare.  Don't define.
(fhandler_disk_file::fstat_helper): Declare.
* fhandler.cc (fhandler_base::fstat): Move here from fhandler.h, adapt from
former stat_dev().
(fhandler_disk_file::fstat): Move most of the disk-file-specific logic from
stat_worker to here.  Use fstat_helper to derive final fstat output.
(fhandler_disk_file::fstat_helper): New method, renamed from former fstat
method.
(num_entries): Moved here from syscalls.cc.
* fhandler_mem.cc (fhandler_dev_mem::fstat): Use base class to initialize most
stuff.  Invert has_physical_mem_access test for establishing permissions.
* fhandler_raw.cc (fhandler_dev_raw::fstat): Eliminate unneed test and memory
clearing.  Use base class to initialize most stuff.
* syscalls.cc (stat_dev): Eliminate.
(stat_worker): Simply call fstat method to generate fstat output.  Move all
device specific code to appropriate fstats.
* dir.cc (opendir): Pass correct arg to stat_worker to allow following
symlinks.

22 years ago* winsup.api/systemcall.c (main): Change some messages for clarity.
Christopher Faylor [Fri, 5 Oct 2001 02:47:28 +0000 (02:47 +0000)]
* winsup.api/systemcall.c (main): Change some messages for clarity.

22 years ago* winsup.api/systemcall.c: New file. Check for system call problems.
Christopher Faylor [Fri, 5 Oct 2001 02:29:46 +0000 (02:29 +0000)]
* winsup.api/systemcall.c: New file.  Check for system call problems.

22 years ago* spawn.cc (perhaps_suffix): Return NULL on non-existence of file as well as
Christopher Faylor [Fri, 5 Oct 2001 01:39:08 +0000 (01:39 +0000)]
* spawn.cc (perhaps_suffix): Return NULL on non-existence of file as well as
"directoryness".  Previous code modified on 2001/09/30 actually had an arguable
bug which was unmasked by the change on that day.

22 years ago* path.cc (path_conv::check): Return ENOTDIR when leading device and trailing
Christopher Faylor [Fri, 5 Oct 2001 00:52:41 +0000 (00:52 +0000)]
* path.cc (path_conv::check): Return ENOTDIR when leading device and trailing
component.

22 years ago* syscalls.cc (stat_worker): Make global. Accept path_conv parameter for
Christopher Faylor [Fri, 5 Oct 2001 00:17:57 +0000 (00:17 +0000)]
* syscalls.cc (stat_worker): Make global.  Accept path_conv parameter for
passing information back to caller.
* winsup.h: Declare stat_worker.
* dir.cc (opendir): Use stat_worker rather than stat and pass path_conv
parameter to stat_worker for later inspection.
* syslog.cc (syslog): Teach syslog about syslog priorities other than LOG_ERR,
LOG_WARNING and LOG_INFO
* path.cc (path_conv::check): Don't perform file system or rootdir checks on
devices.

22 years ago* dcrt0.cc (dll_crt0_1): Don't close hexec_proc if it is NULL.
Christopher Faylor [Thu, 4 Oct 2001 02:34:20 +0000 (02:34 +0000)]
* dcrt0.cc (dll_crt0_1): Don't close hexec_proc if it is NULL.
* fork.cc (vfork): Add debugging statements.
* path.cc (get_device_number): Make static.  Rewrite to inspect both unix and
windows paths.
(get_raw_device_number): Just check for parts of raw device that we care about.
(get_devn): New function, pulled from get_device_number.
(win32_device_name): Accomodate arg changes to get_device_number.
(mount_info::get_device_number): Call get_device_number on translated Windows
path.
* spawn.cc (spawn_guts): Don't treat P_VFORK differently from P_NOWAIT.  Add
handle to child's shared region to child so that it will be preserved if the
parent goes away.
* fhandler.h: Throughout, simplify to one open method for all fhandler classes,
requiring a path_conv first element.
* fhandler.cc (fhandler_base::open): Remove obsolete method.  Generalize to
require path_conv * as first argument.
(fhandler_disk_file::open): Remove obsolete method.
(fhandler_disk_file::open): Use path_conv pointer rather than reference.
* fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Use new open method.
(fhandler_dev_clipboard::open): Accomodate new argument for open methods.
* fhandler_console.cc (fhandler_console::open): Ditto.
(fhandler_console::dup): Use new open method.
(fhandler_console::fixup_after_fork): Ditto.
(fhandler_console::fixup_after_exec): Ditto.
* fhandler_dsp.cc (fhandler_dev_dsp::open): Accomodate new argument for open
methods.
* fhandler_floppy.cc (fhandler_dev_floppy::open): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_random (fhandler_dev_random::open): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::open): Ditto.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tape.cc (fhandler_dev_tape::open): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
(fhandler_pty_master::open): Ditto.
* fhandler_windows.cc (fhandler_windows::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
* fhandler_socket.cc (fhandler_socket::set_connect_secret): Accomodate new
argument for open methods.
* syscalls.cc (_open): Ditto.
(stat_worker): Ditto.

22 years agoAdd support for -z nocopyreloc.
Alan Modra [Wed, 3 Oct 2001 15:11:47 +0000 (15:11 +0000)]
Add support for -z nocopyreloc.

22 years ago* cygheap.cc (cfree): Remove malloc debugging probe.
Christopher Faylor [Wed, 3 Oct 2001 03:49:26 +0000 (03:49 +0000)]
* cygheap.cc (cfree): Remove malloc debugging probe.
* dlmalloc.c (errprint): Remove abort() call which causes interesting error
message printing to abort prematurely.
* environ.cc: Sprinkle MALLOC_CHECKs liberally throughout.
(_addenv): Allocate two empty elements at end of environ to
(apparently) work around problems with some buggy applications.
(winenv): Avoid calling alloca if no forced environment variable is present.

* exceptions.cc (open_stackdumpfile): Don't print "Dumping stack trace to..."
when running in a cygwin environment (i.e., the parent is a cygwin process).

* dtable.cc (dtable::init_std_file_from_handle): Move device type detection
code from build_fhandler here since it is only used by this function.
(dtable::build_fhandler_from_name): New method.  Renamed from
dtable::build_fhandler.
(dtable::build_fhandler): Use build_fhandler_from_name.
(cygwin_attach_handle_to_fd): Ditto.
* syscalls.cc (_open): Ditto.
(stat_worker): Ditto.
* dtable.h (dtable::build_fhandler_from_name): Rename declaration from
dtable::build_fhandler.

22 years ago * gettext.m4: Test po/POTFILES.in exists before trying to read.
Alan Modra [Wed, 3 Oct 2001 01:46:25 +0000 (01:46 +0000)]
* gettext.m4: Test po/POTFILES.in exists before trying to read.

22 years agoTue Oct 2 22:25:23 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 2 Oct 2001 12:27:03 +0000 (12:27 +0000)]
Tue Oct  2 22:25:23 2001  Robert Collins <rbtcollins@hotmail.com>

        * how-fhandlers-work.txt: New file.

22 years ago * common.h (NLM_CAT, NLM_CAT3): Don't define.
Alan Modra [Tue, 2 Oct 2001 05:59:56 +0000 (05:59 +0000)]
* common.h (NLM_CAT, NLM_CAT3): Don't define.
(NLM_CAT4): Update conditions under which this is defined.  Document
why CONCAT4 can't be used.

22 years ago* dtable.h (dtable::build_fhandler): Make path_conv parameter non-optional.
Christopher Faylor [Tue, 2 Oct 2001 01:58:06 +0000 (01:58 +0000)]
* dtable.h (dtable::build_fhandler): Make path_conv parameter non-optional.
(dtable::init_std_file_from_handle): Eliminate name parameter.
* dtable.cc (stdio_init): Don't pass bogus name to init_std_file_from_handle.
The function will figure out the name itself.
(dtable::init_std_file_from_handle): Eliminate name parameter.  Assume that
we're always called with an appropriate fd.  Pass name as NULL if we can't
simply figure it out from context.
(cygwin_attach_handle_to_fd): Pass path_conv argument to build_fhandler.
(dtable::build_fhandler): Make path_conv argument mandatory.  Eliminate
specific call to get_device_number.  With unknown device names, set name from
handle context for parsing by path_conv.
(dtable::build_fhandler): Pass path_conv argument to build_fhandler.
* path.h (path_conv::set_isdisk): Set disk device type.
(path_conv::is_device): Don't consider FH_DISK a "device".
* syscalls.cc (_open): Pass path_conv argument by reference.
(stat_worker): Ditto.
(_rename): Use path_conv operators.  Add bounds to DeleteFile/MoveFile for
loop.

22 years ago* cygwin.din: export strtoll and strtoull
Christopher Faylor [Mon, 1 Oct 2001 19:47:37 +0000 (19:47 +0000)]
* cygwin.din: export strtoll and strtoull

22 years ago2001-10-01 Charles Wilson <cwilson@ece.gatech.edu>
Jeff Johnston [Mon, 1 Oct 2001 18:05:11 +0000 (18:05 +0000)]
2001-10-01  Charles Wilson  <cwilson@ece.gatech.edu>

        * libc/include/stdlib.h: add declarations for
        _strtoull_r, _strtoll_r, strtoull, and strtoll.
        * libc/stdio/local.h: remove declarations of
        __strtoull_r and __strtoll_r.
        * libc/stdio/vfscanf.c(__svfscanf_r): call
        _strtoull_r instead of __strtoull_r. Ditto
        _strtoll_r vs. __strtoll_r.
        * libc/stdlib/Makefile.am: add new files to
        .c list and .def list
        * libc/stdlib/Makefile.in: regenerate
        * libc/stdlib/strtoll_r.c: rename __strtoll_r
        as _strtoll_r
        * libc/stdlib/strtoull_r.c: rename __strtoull_r
        as _strtoull_r
        * libc/stdlib/strtoull.c: new file
        * libc/stdlib/strtoll.c: new file

22 years agoAdd "path.h" include throughout, where needed. Use new path_conv methods and
Christopher Faylor [Mon, 1 Oct 2001 04:10:07 +0000 (04:10 +0000)]
Add "path.h" include throughout, where needed.  Use new path_conv methods and
operators to simplify testing for directory and attributes, throughout.
* path.h (path_conv::exists): New method.
(path_conv::has_attribute): Ditto.
(path_conv::isdir): Ditto.
(path_conv::DWORD &): New operator.
(path_conv::int &): Ditto.
* dir.cc (rmdir): Eliminate a goto.
* dtable.cc (dtable::build_fhandler): Accept opt and suffix info for
path_conv.check.  Return fh == NULL on path_conv error.  Pass unit to set_name
as appropriate.
(dtable::reset_unix_path_name): New method.
* dtable.h (dtable): Declare new method.  Reflect arg changes to
build_fhandler.
* fhandler.cc (fhandler_disk_dummy_name): Eliminate.
(fhandler_base::set_name): Expect paths to be NULL.  Build unix_path_name from
win32_path_name when it is a device.
(fhandler_base::reset_unix_path_name): New method.
(fhandler_base::raw_read): Report EISDIR when ERROR_INVALID_FUNCTION or
ERROR_INVALID_PARAMETER and reading a directory.
(fhandler_disk_file::fstat): Don't call stat_dev since we should now never be
calling fhandler_disk_file methods with devices.
(fhandler_base::fhandler_base): Clear {unix,win32}_path_name.
(fhandler_base::~fhandler_base): Always free {unix,win32}_path_name.
(fhandler_disk_file::fhandler_disk_file): Remove set_no_free_names kludge.
(fhandler_disk_file::open): Ditto.
* fhandler.h (fhandler_base::no_free_names): Eliminate.
(fhandler_base::set_no_free_names): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Don't set
unix_path_name here.
* path.cc (fchdir): Lock fd table throughout.  Use new
dtable::reset_unix_path_name method to reset path.
* syscalls.cc (stat_worker): Reorganize to always call fstat method.  Pass
path_conv method to fhandler_*::open.
(chroot): Elminate a goto.

22 years ago* environ.cc (winenv): Allocate exact amount of space needed for forced windows
Christopher Faylor [Sun, 30 Sep 2001 21:37:53 +0000 (21:37 +0000)]
* environ.cc (winenv): Allocate exact amount of space needed for forced windows
environment variable rather than just using MAX_PATH.

22 years ago* Makefile.in: Depend on stamp to ensure rebuilding. Remove stamp file when
Christopher Faylor [Sun, 30 Sep 2001 21:10:38 +0000 (21:10 +0000)]
* Makefile.in: Depend on stamp to ensure rebuilding.  Remove stamp file when
we've just built the DLL.

22 years agoMon Oct 1 00:34:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 30 Sep 2001 14:39:55 +0000 (14:39 +0000)]
Mon Oct  1 00:34:00 2001  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc (pthread_cond_dowait): Hopefully eliminate a race on multiple thread
        wakeups.

22 years ago* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).
Alexandre Oliva [Sat, 29 Sep 2001 19:38:32 +0000 (19:38 +0000)]
* Makefile.in (configure-target-gperf): Depend on $(ALL_GCC_CXX).

22 years agoSat Sep 29 18:26:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 29 Sep 2001 09:01:01 +0000 (09:01 +0000)]
Sat Sep 29 18:26:00 2001  Robert Collins <rbtcollins@hotmail.com>

        * pthread.cc (pthread_cond_timedwait): Deleted - exported from thread.cc.
        (pthread_cond_wait): Deleted - exported from thread.cc.
        * thread.cc (pthread_cond::BroadCast): Update to use the new syntax for
        verifyable_object_isvalid ().
        (pthread_cond::Signal): Ditto. Also attempt to fix the lost signal race
        with pthread_cond::TimedWait().
        (check_valid_pointer): Change definiton to void const *.
        (verifyable_object_isvalid): Add new parameter to allow identification of
        static initializers, and return a enum rather than magic numbers.
        (__pthread_create): Ditto.
        (__pthread_cleanup): Ditto.
        (__pthread_attr_init): Ditto.
        (__pthread_attr_getinheritsched): Ditto.
        (__pthread_attr_getschedparam): Ditto.
        (__pthread_attr_getschedpolicy): Ditto.
        (__pthread_attr_getscope): Ditto.
        (__pthread_attr_setdetachstate): Ditto.
        (__pthread_attr_getdetachstate): Ditto.
        (__pthread_attr_setinheritsched): Ditto.
        (__pthread_attr_setschedparam): Ditto.
        (__pthread_attr_setschedpolicy): Ditto.
        (__pthread_attr_setscope): Ditto.
        (__pthread_attr_setstacksize): Ditto.
        (__pthread_attr_getstacksize): Ditto.
        (__pthread_attr_destroy): Ditto.
        (__pthread_join): Ditto.
        (__pthread_detach): Ditto.
        (__pthread_suspend): Ditto.
        (__pthread_continue): Ditto.
        (__pthread_getschedparam): Ditto.
        (__pthread_getsequence_np): Ditto.
        (__pthread_key_create): Ditto.
        (__pthread_key_delete): Ditto.
        (__pthread_setschedparam): Ditto.
        (__pthread_setspecific): Ditto.
        (__pthread_getspecific): Ditto.
        (__pthread_cond_destroy): Ditto.
        (__pthread_cond_init): Ditto.
        (__pthread_cond_broadcast): Ditto.
        (__pthread_cond_signal): Ditto.
        (__pthread_condattr_init): Ditto.
        (__pthread_condattr_getpshared): Ditto.
        (__pthread_condattr_setpshared): Ditto.
        (__pthread_condattr_destroy): Ditto.
        (__pthread_kill): Ditto.
        (__pthread_mutex_init): Ditto.
        (__pthread_mutex_getprioceiling): Ditto.
        (__pthread_mutex_lock): Ditto.
        (__pthread_mutex_trylock): Ditto.
        (__pthread_mutex_unlock): Ditto.
        (__pthread_mutex_destroy): Ditto.
        (__pthread_mutex_setprioceiling): Ditto.
        (__pthread_mutexattr_getprotocol): Ditto.
        (__pthread_mutexattr_getpshared): Ditto.
        (__pthread_mutexattr_gettype): Ditto.
        (__pthread_mutexattr_init): Ditto.
        (__pthread_mutexattr_destroy): Ditto.
        (__pthread_mutexattr_setprotocol): Ditto.
        (__pthread_mutexattr_setprioceiling): Ditto.
        (__pthread_mutexattr_getprioceiling): Ditto.
        (__pthread_mutexattr_setpshared): Ditto.
        (__pthread_mutexattr_settype): Ditto.
        (__sem_init): Ditto.
        (__sem_destroy): Ditto.
        (__sem_wait): Ditto.
        (__sem_trywait): Ditto.
        (__sem_post): Ditto.
        (__pthread_cond_dowait): New function, contains core logic from
        __pthread_cond_wait and __pthread_cond_timedwait. Decrement (*cond)->waiting
        before reentering the cond access mutex to allow detection of lost signals.
        (__pthread_cond_timedwait): Rename to pthread_cond_timedwait, and call
        __pthread_cond_dowait after calculating the wait length.
        (__pthread_cond_wait): Rename to pthread_cond_wait, and call
        __pthread_cond_dowait.
        * thread.h: New enum for use with verifyable_object_isvalid.
        Remove the extern exporting of __pthread_cond_timedwait and __pthread_cond_wait.

22 years ago* pipe.cc (fhandler_pipe::fixup_after_fork): New method.
Christopher Faylor [Sat, 29 Sep 2001 01:23:06 +0000 (01:23 +0000)]
* pipe.cc (fhandler_pipe::fixup_after_fork): New method.
* fhandler.h (fhandler_pipe::fixup_after_fork): Declare new method.

22 years ago * config.sub, config.guess: Import latest from subversions.
Hans-Peter Nilsson [Fri, 28 Sep 2001 21:04:51 +0000 (21:04 +0000)]
* config.sub, config.guess: Import latest from subversions.

22 years ago* passwd.cc (read_etc_passwd): Bother with unlocking when not in cygwin
Christopher Faylor [Fri, 28 Sep 2001 07:23:18 +0000 (07:23 +0000)]
* passwd.cc (read_etc_passwd): Bother with unlocking when not in cygwin
initialization.
* grp.cc (read_etc_group): Ditto.

22 years ago* passwd.cc (read_etc_passwd): Don't bother with locking when
Christopher Faylor [Fri, 28 Sep 2001 07:01:22 +0000 (07:01 +0000)]
* passwd.cc (read_etc_passwd): Don't bother with locking when
in cygwin initialization since there is only one thread.
* grp.cc (read_etc_group): Ditto.

22 years ago* pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is no EOF
Christopher Faylor [Fri, 28 Sep 2001 06:06:45 +0000 (06:06 +0000)]
* pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is no EOF
event available.

22 years ago * mmap.cc (mmap): Move setting the access after evaluating fd.
Corinna Vinschen [Thu, 27 Sep 2001 22:39:50 +0000 (22:39 +0000)]
    * mmap.cc (mmap): Move setting the access after evaluating fd.
        Remove useless comment.  Explain copy-on-write problem of 9x
        more detailed.  Don't set access to FILE_MAP_COPY on 9x only
        when anonymous mapping is requested.
        (fhandler_disk_file::mmap): Remove useless device check.
        Add debug output.

22 years agoThu Sep 27 22:00:00 2001 Robert Collins rbtcollins@itdomain.com.au
Robert Collins [Thu, 27 Sep 2001 21:35:16 +0000 (21:35 +0000)]
Thu Sep 27 22:00:00 2001 Robert Collins rbtcollins@itdomain.com.au

* Makefile.in: Only stamp winver_stamp on success.

22 years agoRemove spurious comment
Nick Clifton [Thu, 27 Sep 2001 07:45:32 +0000 (07:45 +0000)]
Remove spurious comment

22 years ago* select.cc (peek_pipe): REALLY only grab mutex when we actually got something
Christopher Faylor [Wed, 26 Sep 2001 22:24:09 +0000 (22:24 +0000)]
* select.cc (peek_pipe): REALLY only grab mutex when we actually got something
from the pipe.

22 years agoTue Sep 25 21:25:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 25 Sep 2001 11:45:26 +0000 (11:45 +0000)]
Tue Sep 25 21:25:00 2001  Robert Collins <rbtcollins@hotmail.com>

        * thread.cc (pthread_cond::BroadCast): Use address with verifyable_object_isvalid().
        (pthread_cond::Signal): Ditto.
        (__pthread_create): Ditto.
        (__pthread_cleanup): Ditto.
        (__pthread_attr_init): Ditto.
        (__pthread_attr_getinheritsched): Ditto.
        (__pthread_attr_getschedparam): Ditto.
        (__pthread_attr_getschedpolicy): Ditto.
        (__pthread_attr_getscope): Ditto.
        (__pthread_attr_setdetachstate): Ditto.
        (__pthread_attr_getdetachstate): Ditto.
        (__pthread_attr_setinheritsched): Ditto.
        (__pthread_attr_setschedparam): Ditto.
        (__pthread_attr_setschedpolicy): Ditto.
        (__pthread_attr_setscope): Ditto.
        (__pthread_attr_setstacksize): Ditto.
        (__pthread_attr_getstacksize): Ditto.
        (__pthread_attr_destroy): Ditto.
        (__pthread_join): Ditto.
        (__pthread_detach): Ditto.
        (__pthread_suspend): Ditto.
        (__pthread_continue): Ditto.
        (__pthread_getschedparam): Ditto.
        (__pthread_getsequence_np): Ditto.
        (__pthread_key_create): Ditto.
        (__pthread_key_delete): Ditto.
        (__pthread_setschedparam): Ditto.
        (__pthread_setspecific): Ditto.
        (__pthread_getspecific): Ditto.
        (__pthread_cond_destroy): Ditto.
        (__pthread_cond_init): Ditto.
        (__pthread_cond_broadcast): Ditto.
        (__pthread_cond_signal): Ditto.
        (__pthread_cond_timedwait): Ditto.
        (__pthread_cond_wait): Ditto.
        (__pthread_condattr_init): Ditto.
        (__pthread_condattr_getpshared): Ditto.
        (__pthread_condattr_setpshared): Ditto.
        (__pthread_condattr_destroy): Ditto.
        (__pthread_kill): Ditto.
        (__pthread_mutex_init): Ditto.
        (__pthread_mutex_getprioceiling): Ditto.
        (__pthread_mutex_lock): Ditto.
        (__pthread_mutex_trylock): Ditto.
        (__pthread_mutex_unlock): Ditto.
        (__pthread_mutex_destroy): Ditto.
        (__pthread_mutex_setprioceiling): Ditto.
        (__pthread_mutexattr_getprotocol): Ditto.
        (__pthread_mutexattr_getpshared): Ditto.
        (__pthread_mutexattr_gettype): Ditto.
        (__pthread_mutexattr_init): Ditto.
        (__pthread_mutexattr_destroy): Ditto.
        (__pthread_mutexattr_setprotocol): Ditto.
        (__pthread_mutexattr_setprioceiling): Ditto.
        (__pthread_mutexattr_getprioceiling): Ditto.
        (__pthread_mutexattr_setpshared): Ditto.
        (__pthread_mutexattr_settype): Ditto.
        (__sem_init): Ditto.
        (__sem_destroy): Ditto.
        (__sem_wait): Ditto.
        (__sem_trywait): Ditto.
        (__sem_post): Ditto.
        (verifyable_object_isvalid): Recieve a pointer to a pointer for verification.
        (__pthread_mutexattr_getprotocol): Fix typo in magic number.
        (__pthread_mutexattr_getpshared): Ditto.
        (__pthread_mutexattr_gettype): Ditto.
        * thread.h (verifyable_object_isvalid): Change prototype to recieve a pointer to a
        pointer for verification.
        * include/pthread.h: Fix typo for __cleanup_routine_type typedef. (Contrib from Net).

22 years ago* select.cc (fhandler_tty_common::ready_for_read): Rewrite to correctly
Christopher Faylor [Tue, 25 Sep 2001 06:19:10 +0000 (06:19 +0000)]
* select.cc (fhandler_tty_common::ready_for_read): Rewrite to correctly
call peek_pipe.

22 years agomerge from gcc
DJ Delorie [Mon, 24 Sep 2001 23:37:30 +0000 (23:37 +0000)]
merge from gcc

22 years ago* select.cc (peek_pipe): Only grab mutex when we actually got something from
Christopher Faylor [Mon, 24 Sep 2001 22:49:12 +0000 (22:49 +0000)]
* select.cc (peek_pipe): Only grab mutex when we actually got something from
the pipe.

22 years ago* fhandler.h (fhandler_pipe::hit_eof): New method.
Christopher Faylor [Mon, 24 Sep 2001 21:50:44 +0000 (21:50 +0000)]
* fhandler.h (fhandler_pipe::hit_eof): New method.
(writepipe_exists): New class element.
(orig_pid): Ditto.
(id): Ditto.
(is_slow): Eliminate.
* pipe.cc (fhandler_pipe::set_close_on_exec): Set inheritance on
writepipe_exists, if it exists.
(fhandler_pipe::hit_eof): New method, modelled after tty.
(fhandler_pipe::dup): Duplicate writepipe_exists, if it exists.
(make_pipe): Set up a dummy event for pipes on windows 9x.  The nonexistence
of this event means that the write side of the pipe has closed.
(_dup): Move to syscalls.cc
(_dup2): Ditto.

* dtable.cc (dtable::build_fhandler): Fill out set_names here, if appropriate.
* syscalls.cc (_open): Call set_names in build_fhandler.

22 years ago * syscalls.cc (_open): Set name in fhandler object after successful
Corinna Vinschen [Sun, 23 Sep 2001 15:35:02 +0000 (15:35 +0000)]
    * syscalls.cc (_open): Set name in fhandler object after successful
        creation.
        (stat_dev): Set device type to block device in FH_FLOPPY case.

22 years ago * dtable.cc (dtable::build_fhandler): Initialize unit when using
Corinna Vinschen [Sun, 23 Sep 2001 14:39:16 +0000 (14:39 +0000)]
    * dtable.cc (dtable::build_fhandler): Initialize unit when using
        optional path_conv argument.

22 years agoexpand entry "How can I get bash filename completion to be case insensitive?"
David Starks-Browning [Sun, 23 Sep 2001 11:19:13 +0000 (11:19 +0000)]
expand entry "How can I get bash filename completion to be case insensitive?"

22 years agonew entry "What versions of Windows are supported?"
David Starks-Browning [Sun, 23 Sep 2001 11:13:08 +0000 (11:13 +0000)]
new entry "What versions of Windows are supported?"

22 years ago1.1.x -> 1.3.x in "recent history"
David Starks-Browning [Sun, 23 Sep 2001 10:06:32 +0000 (10:06 +0000)]
1.1.x -> 1.3.x in "recent history"

22 years ago* dtable.cc (dtable::build_fhandler): Accept an optional path_conv argument.
Christopher Faylor [Sat, 22 Sep 2001 21:44:07 +0000 (21:44 +0000)]
* dtable.cc (dtable::build_fhandler): Accept an optional path_conv argument.
If available, use this to calculate path name and device number.
* dtable.h (dtable): Reflect above change.
* fhandler.h (fhandler_base): Declare virtual method which accepts path_conv
rather than path string as first argument.
* fhandler.cc (fhandler_base::open): Define above new method.
* syscalls.cc (_open): Set aside a path_conv variable for use in build_fhandler
and subsequent call to open.

22 years agonew entry "How much disk space does Cygwin require?"
David Starks-Browning [Sat, 22 Sep 2001 19:47:17 +0000 (19:47 +0000)]
new entry "How much disk space does Cygwin require?"

22 years agoagain revise license terms
David Starks-Browning [Sat, 22 Sep 2001 19:32:47 +0000 (19:32 +0000)]
again revise license terms

22 years ago* exceptions.cc (setup_handler): Always relinquish lock after we've
Christopher Faylor [Sat, 22 Sep 2001 16:55:02 +0000 (16:55 +0000)]
* exceptions.cc (setup_handler): Always relinquish lock after we've
interrupted.
* fhandler.cc: Move pipe methods to pipe.cc.
* fhandler.h (fhandler_pipe): Add new methods.
* fork.cc (sync_with_parent): Make error messages more informative.
* pipe.cc (fhandler_pipe::fhandler_pipe): Move here from fhandler.cc.
(fhandler_pipe::lseek): Ditto.
(fhandler_pipe::set_close_on_exec): New method.
(fhandler_pipe::read): Ditto.
(fhandler_pipe::close): Ditto.
(fhandler_pipe::dup): Ditto.
(make_pipe): Create the guard mutex on the read side of the pipe.
* select.cc (peek_pipe): Use guard_mutex to discover if we have the right to
read on this pipe.
(fhandler_pipe::readh_for_read): Pass the read pipe guard mutex to peek_pipe.
* syscalls.cc (_read): Always detect signal catchers, for now.
* debug.cc (makethread): Eliminate hack to make thread inheritable.
* sigproc.cc (subproc_init): Don't use hack to make thread inheritable.

22 years agorevise license explanation
David Starks-Browning [Sat, 22 Sep 2001 08:45:27 +0000 (08:45 +0000)]
revise license explanation

22 years agoAdd recent developments.
Christopher Faylor [Sat, 22 Sep 2001 01:37:47 +0000 (01:37 +0000)]
Add recent developments.

22 years agotypo, words.
Christopher Faylor [Sat, 22 Sep 2001 01:29:07 +0000 (01:29 +0000)]
typo, words.

22 years ago* Makefile.in (mingw_getopt.o): Ensure that newlib include directories are not
Christopher Faylor [Sat, 22 Sep 2001 00:40:37 +0000 (00:40 +0000)]
* Makefile.in (mingw_getopt.o): Ensure that newlib include directories are not
searched.

22 years agofix error
David Starks-Browning [Fri, 21 Sep 2001 20:42:47 +0000 (20:42 +0000)]
fix error

22 years agoUpdate contents.
David Starks-Browning [Fri, 21 Sep 2001 20:40:50 +0000 (20:40 +0000)]
Update contents.
Expanded anti-virus information.
How to uninstall a package.

22 years agonew entry "Can I build a Cygwin program that does not require cygwin1.dll at runtime?"
David Starks-Browning [Fri, 21 Sep 2001 18:20:21 +0000 (18:20 +0000)]
new entry "Can I build a Cygwin program that does not require cygwin1.dll at runtime?"

22 years agoFix compile time warnings
Nick Clifton [Fri, 21 Sep 2001 14:25:09 +0000 (14:25 +0000)]
Fix compile time warnings

22 years agofix compile time warning messages
Nick Clifton [Fri, 21 Sep 2001 06:52:20 +0000 (06:52 +0000)]
fix compile time warning messages

22 years ago* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET,
Alexandre Oliva [Fri, 21 Sep 2001 05:14:32 +0000 (05:14 +0000)]
* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET,
DLLTOOL_FOR_TARGET, WINDRES_FOR_TARGET, AR_FOR_TARGET,
RANLIB_FOR_TARGET, NM_FOR_TARGET): Don't use double quotes to
avoid quotes nesting problems.
(NATIVE_CHECK_MODULES): Ditto, just for consistency.
(DO_X): Export only variables that are set.

22 years ago* Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.
Christopher Faylor [Fri, 21 Sep 2001 01:01:27 +0000 (01:01 +0000)]
* Makefile.in (MINGW_INCLUDES): Still need cygwin/include directory.

22 years agoNew entry "Why doesn't //c (for C:) work anymore?"
David Starks-Browning [Thu, 20 Sep 2001 21:23:17 +0000 (21:23 +0000)]
New entry "Why doesn't //c (for C:) work anymore?"

22 years ago* fhandler.cc (fhandler_base::set_inheritance): Just use DUPLICATE_CLOSE_SOURCE
Christopher Faylor [Thu, 20 Sep 2001 20:58:29 +0000 (20:58 +0000)]
* fhandler.cc (fhandler_base::set_inheritance): Just use DUPLICATE_CLOSE_SOURCE
to change inheritance.  Eliminate all other logic dealing with closed handles.
* fhandler.h (fhandler_base::set_inheritance): Reflect above change.
* fhandler_tty.cc (fhandler_tty_common::set_close_on_exec): Ditto.

22 years ago* libltp/lib/get_high_address.c (get_high_address): Get inaccessible
Egor Duda [Thu, 20 Sep 2001 15:44:41 +0000 (15:44 +0000)]
* libltp/lib/get_high_address.c (get_high_address): Get inaccessible
address more robustly.
* winsup.api/ltp/stat06.c (high_address_setup): Use generic function
from ltp library to obtain inaccessible address.

22 years ago * fhandler_socket.cc (fhandler_socket::fixup_after_exec): Close
Corinna Vinschen [Thu, 20 Sep 2001 11:35:49 +0000 (11:35 +0000)]
    * fhandler_socket.cc (fhandler_socket::fixup_after_exec): Close
        socket only when not using Winsock2.

22 years ago * fhandler.h (fhandler_socket::fixup_after_exec): Remove inline
Corinna Vinschen [Thu, 20 Sep 2001 11:29:48 +0000 (11:29 +0000)]
    * fhandler.h (fhandler_socket::fixup_after_exec): Remove inline
        implementation.
        (fhandler_dev_raw::fixup_after_exec): Ditto.
        * fhandler_raw.cc (fhandler_dev_raw::fixup_after_fork): Don't
        duplicate buffer on fork to avoid memory leak.
        (fhandler_dev_raw::fixup_after_exec): New implementation equal to
        former fixup_after_fork() implementation.
        * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Do
        nothing when not using Winsock2.
        (fhandler_socket::fixup_after_exec): New implementation.
        (fhandler_socket::set_close_on_exec): Never call set_inheritance().

22 years ago * fhandler.cc (fhandler_base::set_inheritance): If available,
Corinna Vinschen [Thu, 20 Sep 2001 08:02:01 +0000 (08:02 +0000)]
    * fhandler.cc (fhandler_base::set_inheritance): If available,
        use SetHandleInformation() to set inheritance.
        * wincap.cc: Set flag has_set_handle_information_on_console_handles
        appropriately.
        * wincap.h: Add flag has_set_handle_information_on_console_handles.

22 years ago2001-09-18 Danny Smith <dannysmith@users.sourceforge.net>
Earnie Boyd [Wed, 19 Sep 2001 23:56:12 +0000 (23:56 +0000)]
2001-09-18  Danny Smith  <dannysmith@users.sourceforge.net>

* include/winnt.h (_[U]LARGE_INTEGER): Mark nameless structure
field as _ANONYMOUS_STRUCT.
* include/setupapi.h (SP_DEVINSTALL_PARAMS): Add missing typedef
for UNICODE.
* include/ipexport.h (icmp_echo_reply): Remove extra ';'.
* lib/makefile.in: Add -pedantic switch to TEST_OPTIONS for header
test.

2001-09-17  Mattia Barbon  <mbarbon@dsi.unive.it>

* include/commctrl.h: Add some ListView constants.

2001-09-17  Earnie Boyd  <earnie@sf.net>

* lib/Makefile.in (inst_includedir): Add FIXME and remove the usr/
portion of the directory from the install.
(inst_libdir): Ditto.
* Makefile.in (VERSION): Increment.
* include/w32api.h: Increment version.

22 years agoAdd -t option.
Christopher Faylor [Wed, 19 Sep 2001 22:06:33 +0000 (22:06 +0000)]
Add -t option.

22 years ago* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.
Christopher Faylor [Wed, 19 Sep 2001 16:24:10 +0000 (16:24 +0000)]
* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.

22 years ago* Makefile.in: Filter newlib includes from mingw compilation.
Christopher Faylor [Wed, 19 Sep 2001 16:22:47 +0000 (16:22 +0000)]
* Makefile.in: Filter newlib includes from mingw compilation.

22 years ago * lib/getopt.c (getopt_long): Avoid compiler warning.
Corinna Vinschen [Wed, 19 Sep 2001 16:08:33 +0000 (16:08 +0000)]
    * lib/getopt.c (getopt_long): Avoid compiler warning.

22 years ago* lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin.
Christopher Faylor [Wed, 19 Sep 2001 15:54:12 +0000 (15:54 +0000)]
* lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin.
* scandir.cc (scandir): Use correct default when compar == NULL.

22 years ago * fhandler_socket.cc (fhandler_socket::fhandler_socket): Revert
Corinna Vinschen [Wed, 19 Sep 2001 15:50:54 +0000 (15:50 +0000)]
    * fhandler_socket.cc (fhandler_socket::fhandler_socket): Revert
        memory allocation to use cmalloc again.

22 years ago2001-09-19 Earnie Boyd <earnie@SF.net>
Earnie Boyd [Wed, 19 Sep 2001 15:37:19 +0000 (15:37 +0000)]
2001-09-19  Earnie Boyd  <earnie@SF.net>

* Makefile.in: Remove the /usr from the install target.
(VERSION): Increment.
include/_mingw.h: Ditto.

22 years ago2001-09-19 Ben Elliston <bje@redhat.com>
Ben Elliston [Wed, 19 Sep 2001 06:07:36 +0000 (06:07 +0000)]
2001-09-19  Ben Elliston  <bje@redhat.com>

* configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on
Solaris when testing for the /usr/ucb/cc compiler; it has incorrect
semantics.  Use the shell built-in "type" command instead.

22 years ago* cygwin.din (__argv): Export.
Christopher Faylor [Wed, 19 Sep 2001 01:07:11 +0000 (01:07 +0000)]
* cygwin.din (__argv): Export.
(__argc): Ditto.
(__progname): Ditto.
* include/getopt.h (getopt_long): constify arguments.
* lib/getopt.c: Import new file from NetBSD.

22 years agomerge from gcc
DJ Delorie [Tue, 18 Sep 2001 21:02:02 +0000 (21:02 +0000)]
merge from gcc

22 years ago * mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.
Corinna Vinschen [Tue, 18 Sep 2001 17:10:09 +0000 (17:10 +0000)]
    * mmap.cc (mmap): Don't reuse anonymous memory in MAP_FIXED case.

22 years agooops omitted in previous delta
Nick Clifton [Tue, 18 Sep 2001 15:42:41 +0000 (15:42 +0000)]
oops omitted in previous delta

22 years ago * internal.h (elf_internal_rela): Make r_addend a bfd_vma.
Alan Modra [Tue, 18 Sep 2001 10:01:41 +0000 (10:01 +0000)]
* internal.h (elf_internal_rela): Make r_addend a bfd_vma.

22 years ago * external.h (GET_LINENO_LNNO): Use H_GET_32/16.
Alan Modra [Tue, 18 Sep 2001 10:01:08 +0000 (10:01 +0000)]
* external.h (GET_LINENO_LNNO): Use H_GET_32/16.
(PUT_LINENO_LNNO): Use H_PUT_32/16.
* m88k.h (GET_LNSZ_SIZE, GET_LNSZ_LNNO, GET_SCN_NRELOC,
GET_SCN_NLINNO): Use H_GET_32.
(PUT_LNSZ_LNNO, PUT_LNSZ_SIZE, PUT_SCN_NRELOC, PUT_SCN_NLINNO):
Use H_PUT_32.
* ti.h: Formatting fixes.  Make use of H_GET_* and H_PUT_* throughout.
* xcoff.h: White space changes.

22 years ago * aout64.h: Formatting fixes.
Alan Modra [Tue, 18 Sep 2001 10:00:23 +0000 (10:00 +0000)]
* aout64.h: Formatting fixes.
(N_TXTADDR): Evaluate to a bfd_vma.
(N_DATADDR): Avoid negative unsigned warning.
* hp300hpux.h: Formatting fixes.
(N_DATADDR): As above.

22 years ago * objalloc.h (OBJALLOC_ALIGN): Define using offsetof.
Alan Modra [Tue, 18 Sep 2001 09:59:28 +0000 (09:59 +0000)]
* objalloc.h (OBJALLOC_ALIGN): Define using offsetof.

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