]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
19 years ago2005-05-05 Tobias Anderberg <tobias.anderberg@axis.com>
Jeff Johnston [Thu, 5 May 2005 23:15:53 +0000 (23:15 +0000)]
2005-05-05  Tobias Anderberg  <tobias.anderberg@axis.com>

        * arm/syscalls.c (get_errno): Fix output register constraint.

19 years ago2005-05-05 J"orn Rennecke <joern.rennecke@st.com>
Jeff Johnston [Thu, 5 May 2005 23:07:08 +0000 (23:07 +0000)]
2005-05-05  J"orn Rennecke <joern.rennecke@st.com>

        * rs6000/sim-getrusage.S: New file, broken out of:
        (simulator.S).
        * rs6000/Makefile.in (SIM_OBJS): Add sim-getrusage.o.
        (sim-getrusage.o): New rule.

19 years ago * configure.in: Always pass --target to target configures as
Mike Stump [Thu, 5 May 2005 01:36:32 +0000 (01:36 +0000)]
    * configure.in: Always pass --target to target configures as
        otherwise rebuilds that do --recheck will fail.
        * confiugure: Rebuilt.

19 years ago2005-05-04 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 4 May 2005 15:42:05 +0000 (15:42 +0000)]
2005-05-04  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl (POSTSTAGE1_HOST_EXPORTS): Rename from
STAGE_HOST_EXPORTS.
(configure, all): Add bootstrap support.
(Host modules, target modules): Pass post-stage1 flags and exports.
(Top-level bootstrap): Remove bootstrap rules, expanded elsewhere.
* Makefile.in: Regenerate.

19 years ago * cygerrno.h (__set_errno): Remove useless parentheses.
Corinna Vinschen [Wed, 4 May 2005 11:05:11 +0000 (11:05 +0000)]
* cygerrno.h (__set_errno): Remove useless parentheses.

19 years ago * cygerrno.h (__set_errno): Define as inline function here.
Corinna Vinschen [Wed, 4 May 2005 11:00:22 +0000 (11:00 +0000)]
* cygerrno.h (__set_errno): Define as inline function here.
(set_errno): Always define as call to __set_errno.
* debug.cc (__set_errno): Move to cygerrno.h.

19 years ago * include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
Danny Smith [Wed, 4 May 2005 09:29:09 +0000 (09:29 +0000)]
* include/wchar.h (WCHAR_MAX): Define as 0xffff, so preprocessor
#if (WCHAR_MAX <= WCHAR_MIN) is false.
* include/stdint.h (WCHAR_MAX): Likwise.
(WINT_MAX): Likewise.

19 years ago* shared.cc (user_shared_initialize): Rework locking so that nothing is checked
Christopher Faylor [Wed, 4 May 2005 01:20:05 +0000 (01:20 +0000)]
* shared.cc (user_shared_initialize): Rework locking so that nothing is checked
until cb is non-zero.

19 years ago* shared.cc (user_shared_initialize): Rework locking so that nothing is checked
Christopher Faylor [Wed, 4 May 2005 01:14:47 +0000 (01:14 +0000)]
* shared.cc (user_shared_initialize): Rework locking so that nothing is checked
until cb is non-zero.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't treat
Corinna Vinschen [Tue, 3 May 2005 19:03:20 +0000 (19:03 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't treat
inability to open file as failure if only SetFileAttributes is
going to be called.  Only call set_file_attribute if really necessary.

19 years ago * fhandler_socket.cc (get_inet_addr): Add missing __seterrno call.
Corinna Vinschen [Tue, 3 May 2005 14:07:19 +0000 (14:07 +0000)]
* fhandler_socket.cc (get_inet_addr): Add missing __seterrno call.

19 years ago * mingwex/math/signbit.c (__signbit): Make return value
Danny Smith [Tue, 3 May 2005 08:39:19 +0000 (08:39 +0000)]
* mingwex/math/signbit.c (__signbit):  Make return value
consistent with GCC's __builtin_signbit.
* mingwex/math/signbitf.c (__signbitf):  Likewise.
* mingwex/math/signbitf.c (__signbitl):  Likewise.
* include/math.h (__signbit, __signbitf, __signbitl): Likewise
for inlines.

19 years ago * include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
Danny Smith [Mon, 2 May 2005 08:03:34 +0000 (08:03 +0000)]
* include/_mingw.h (__MINGW_ATTRIB_NONNULL): Don't define as
variadic macro.
* mingwex/mbrtowc.c (__mbrtowc_cp): Use __MINGW_ATTRIB_NONNULL.
Remove unused MBTOWC_FLAGS define.

19 years agowhite space and minor comment cleanup.
Christopher Faylor [Mon, 2 May 2005 03:50:11 +0000 (03:50 +0000)]
white space and minor comment cleanup.

19 years ago* fhandler_tty.cc (fhandler_tty_slave::read): Actually read input when vmin ==
Christopher Faylor [Mon, 2 May 2005 00:17:45 +0000 (00:17 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::read): Actually read input when vmin ==
vtime == 0.

19 years ago* mount.cc (usage): Clarify action of -m option.
Christopher Faylor [Sun, 1 May 2005 15:50:02 +0000 (15:50 +0000)]
* mount.cc (usage): Clarify action of -m option.

19 years ago* environ.cc (spenv::force_into_environment): Rename from add_always.
Christopher Faylor [Sat, 30 Apr 2005 17:07:05 +0000 (17:07 +0000)]
* environ.cc (spenv::force_into_environment): Rename from add_always.
(spenv::add_if_exists): Rename from force.
(build_env): Accommodate name changes.  Make sure that stuff that is always
supposed to be in the environment is actually added to the environment.
* shared.cc (open_shared): Restore VirtualFree eliminated by 2005-04-28 change.

19 years ago* errno.cc (errmap): Sort table.
Christopher Faylor [Sat, 30 Apr 2005 04:10:39 +0000 (04:10 +0000)]
* errno.cc (errmap): Sort table.

19 years ago* errno.cc (errmap): Map ERROR_NETNAME_DELETED to ENOSHARE.
Christopher Faylor [Sat, 30 Apr 2005 03:40:26 +0000 (03:40 +0000)]
* errno.cc (errmap): Map ERROR_NETNAME_DELETED to ENOSHARE.

19 years ago* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags to
Dave Korn [Fri, 29 Apr 2005 16:39:34 +0000 (16:39 +0000)]
* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags to
mnt_opts string if present in mount flags.

19 years ago2005-04-29 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Fri, 29 Apr 2005 14:00:03 +0000 (14:00 +0000)]
2005-04-29  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc:

2005-04-22  Bernd Schmidt  <bernd.schmidt@analog.com>

        * config.sub: Update from master copy.

2005-04-19  Hans-Peter Nilsson  <hp@axis.com>

        * configure.in <crisv32-*-*, cris-*-*>: New local variable
        libgcj_ex_libffi.  Have specific match for *-*-linux*.  Separate
        matches for "*-*-aout" and "*-*-elf".  Don't disable libffi for
        "*-*-elf" and "*-*-linux*".
        * configure: Regenerate.

config:
2005-04-29  Paolo Bonzini  <bonzini@gnu.org>

* acx.m4 (ACX_PROG_GNAT): Remove stray break.

19 years ago* shared_info.h (cygwin_shared_address): Bump to a higher value to avoid
Christopher Faylor [Thu, 28 Apr 2005 23:59:44 +0000 (23:59 +0000)]
* shared_info.h (cygwin_shared_address): Bump to a higher value to avoid
collision with large data areas.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Accommodate changes to
open_shared arguments.
* fhandler_tape.cc (mtinfo_init): Ditto.
* pinfo.cc (pinfo::init): Use open_shared rather than win32 mmap calls.
* shared.cc (user_shared_initialize): Ditto.
(memory_init): Ditto.
(open_shared): Change to allow use a smore general mmap handler.
* shared_info.h (shared_locations): Add SH_JUSTCREATE, SH_JUSTOPEN.
(open_shared): Change declaration to match new usage.
* autoload.cc (LoadDLLfuncEx2): Define in terms of LoadDLLfuncEx3.
(LoadDLLfuncEx3): New macro.

19 years ago2005-04-28 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Thu, 28 Apr 2005 18:40:39 +0000 (18:40 +0000)]
2005-04-28  Shaun Jackman  <sjackman@gmail.com>

        * libgloss/syscalls.c (get_errno): Add an output register constraint.

19 years ago2005-04-28 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 28 Apr 2005 18:26:08 +0000 (18:26 +0000)]
2005-04-28  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): Fix code thinko
        when checking for multiple flags.

19 years ago(check in files that should have been checked in previously)
Christopher Faylor [Thu, 28 Apr 2005 03:41:09 +0000 (03:41 +0000)]
(check in files that should have been checked in previously)
* fhandler.cc (fhandler_base::open_9x): Remove (broken) check for
O_CREAT|O_EXCL.
* syscalls.cc (open): Do O_CREAT|O_EXCL check here first.

19 years ago* fhandler.cc (fhandler_base::open_9x): Remove (broken) check for
Christopher Faylor [Thu, 28 Apr 2005 03:33:19 +0000 (03:33 +0000)]
* fhandler.cc (fhandler_base::open_9x): Remove (broken) check for
O_CREAT|O_EXCL.
* syscalls.cc (open): Do O_CREAT|O_EXCL check here first.

19 years ago* environ.cc (build_env): Ensure that win32 array is properly filled in when a
Christopher Faylor [Wed, 27 Apr 2005 03:09:59 +0000 (03:09 +0000)]
* environ.cc (build_env): Ensure that win32 array is properly filled in when a
missing value has to be generated.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 17.
Christopher Faylor [Tue, 26 Apr 2005 17:27:40 +0000 (17:27 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 17.

19 years ago * include/wininet.h (FtpGetFileSize): Add prototype.
Danny Smith [Tue, 26 Apr 2005 08:18:27 +0000 (08:18 +0000)]
* include/wininet.h (FtpGetFileSize): Add prototype.
(FtpCommand[AW]): Correct prototypes.
Reported by <siger at users dot sf dot net>

19 years agomerge from gcc
DJ Delorie [Tue, 26 Apr 2005 01:01:49 +0000 (01:01 +0000)]
merge from gcc

19 years ago* mount.cc (mount_commands): Display "-X" option when appropriate.
Christopher Faylor [Mon, 25 Apr 2005 14:40:53 +0000 (14:40 +0000)]
* mount.cc (mount_commands): Display "-X" option when appropriate.

19 years ago * include/vfw.h (capCreateCaptureWindow[AW]): Add prototypes.
Danny Smith [Mon, 25 Apr 2005 07:08:22 +0000 (07:08 +0000)]
* include/vfw.h (capCreateCaptureWindow[AW]): Add prototypes.
(capGetDriverDescription[AW]): Likewise.

ChangeLog: Typo fixes.

19 years ago* how-to-debug-cygwin.txt: Fix typo.
Joshua Daniel Franklin [Mon, 25 Apr 2005 05:03:53 +0000 (05:03 +0000)]
* how-to-debug-cygwin.txt: Fix typo.

19 years ago * mingwex/mbrtowc.c: New file.
Danny Smith [Sun, 24 Apr 2005 11:30:27 +0000 (11:30 +0000)]
* mingwex/mbrtowc.c: New file.
* mingwex/wcrtomb.c: New file.
* mingwex/btowc.c: New file.
* mingwex/wctob.c: New file.
* mingwex/mb_wc_common.h: New file.
* mingwex/Makefile.in (DISTFILES): Add new files.
(Q8_OBJS): Add new objects.
* include/wchar.h: Adjust comment about mbrtowc() and related
funcions. Add __restrict__ to pointer params in prototypes.
(wmemset. wmemchr, wmemcpy, wmemmove, wcstoll, wcstoull): Remove
arg names from protototypes.

19 years ago2005-04-23 Wu Yongwei <adah@sh163.net>
Danny Smith [Sun, 24 Apr 2005 10:26:37 +0000 (10:26 +0000)]
2005-04-23  Wu Yongwei  <adah@sh163.net>

mingwex/dirent.c: Formatting changes.

mingwex/dirent.c (_topendir): Make the end-of-path slash check
MBCS-safe.

19 years ago* shared.cc (user_shared_initialize): Implement locking similar to shared_info
Christopher Faylor [Sat, 23 Apr 2005 03:24:21 +0000 (03:24 +0000)]
* shared.cc (user_shared_initialize): Implement locking similar to shared_info
when initializing shared region.

19 years ago* fhandler.h (dev_console::set_color): Define new function.
Christopher Faylor [Fri, 22 Apr 2005 17:03:38 +0000 (17:03 +0000)]
* fhandler.h (dev_console::set_color): Define new function.
(dev_console::set_default_attr): Ditto, moved from fhandler_console.
(dev_console::fillin_info): Ditto.  Accommodate this change throughout this
file.
(fhandler_console::get_win32_attr): Eliminate.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Properly set default
attributes on initialization.
(fhandler_console::open): Set current attributes rather than default color on
open.
(fhandler_console::get_win32_attr): Eliminate.
(dev_console::set_color): New function.  Move get_win32_attr stuff here.
(dev_console::set_default_attr): New function, moved from fhandler_console.
(dev_console::fillin_info): Ditto.
(fhandler_console::char_command): Call set_color to set screen characteristics.

19 years ago* fhandler.cc (fhandler_base::read): Remove unused signal state tweaks.
Christopher Faylor [Fri, 22 Apr 2005 13:58:09 +0000 (13:58 +0000)]
* fhandler.cc (fhandler_base::read): Remove unused signal state tweaks.
* fhandler.h (fhandler_pipe::create_selectable): Declare.
(fhandler_fifo::close_one_end): Declare.
* fhandler_fifo.cc (fhandler_fifo::close_one_end): Define.
(fhandler_fifo::open_not_mine): Use close_one_end to close appropriate end of
pipe.
* pinfo.cc (_pinfo::commune_recv): Ditto.
* pipe.cc (fhandler_pipe::create_selectable): Rename from
create_selectable_pipe.  Reorganize.
(fhandler_pipe::create): Use create_selectable.

19 years ago* shared.cc (shared_info::initialize): Test previous version of shared memory
Christopher Faylor [Thu, 21 Apr 2005 23:53:49 +0000 (23:53 +0000)]
* shared.cc (shared_info::initialize): Test previous version of shared memory
magic rather than current version when determining if there has been a shared
memory mismatch.

19 years agorevert erroneous checkin
Christopher Faylor [Wed, 20 Apr 2005 20:50:57 +0000 (20:50 +0000)]
revert erroneous checkin

19 years ago* sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero value.
Christopher Faylor [Wed, 20 Apr 2005 20:43:36 +0000 (20:43 +0000)]
* sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero value.
* strace.cc (strace::hello): Report parent pid of executing process.

19 years ago* path.cc (path_conv::check): Fix problem reading symlinks introduced in below
Christopher Faylor [Wed, 20 Apr 2005 18:25:14 +0000 (18:25 +0000)]
* path.cc (path_conv::check): Fix problem reading symlinks introduced in below
change by reverting the change and adding an additional test for nonexistent
files in /proc.

19 years ago * pathnames.sgml (mount-table): Indicate that user-specific
Corinna Vinschen [Wed, 20 Apr 2005 12:26:45 +0000 (12:26 +0000)]
* pathnames.sgml (mount-table): Indicate that user-specific
mounts override system-wide.

19 years ago * utils.sgml (mount): Clarify setting cygdrive prefix for user
Corinna Vinschen [Wed, 20 Apr 2005 12:25:43 +0000 (12:25 +0000)]
* utils.sgml (mount): Clarify setting cygdrive prefix for user
and system-wide.

19 years ago* fhandler-tut.txt: Update description to cygwin 1.5.13
Christopher Faylor [Wed, 20 Apr 2005 04:26:34 +0000 (04:26 +0000)]
* fhandler-tut.txt: Update description to cygwin 1.5.13

19 years ago* path.cc (path_conv::check): Punt when attempting to access a nonexistent
Christopher Faylor [Wed, 20 Apr 2005 04:06:25 +0000 (04:06 +0000)]
* path.cc (path_conv::check): Punt when attempting to access a nonexistent
directory or file in /proc.

19 years agomerge from gcc
DJ Delorie [Tue, 19 Apr 2005 19:09:30 +0000 (19:09 +0000)]
merge from gcc

19 years ago2005-04-19 Eric Christopher <echristo@redhat.com>
Eric Christopher [Tue, 19 Apr 2005 18:03:18 +0000 (18:03 +0000)]
2005-04-19  Eric Christopher  <echristo@redhat.com>

* mips/regs.S: Sign extend constants for mips64 and unify
        address handling.

19 years ago * cygwinenv.sgml: Mention that check_case is deprecated.
Corinna Vinschen [Tue, 19 Apr 2005 14:45:54 +0000 (14:45 +0000)]
* cygwinenv.sgml: Mention that check_case is deprecated.

19 years ago * security.cc (alloc_sd): Remove DELETE bit from user's ACE if
Corinna Vinschen [Tue, 19 Apr 2005 10:10:13 +0000 (10:10 +0000)]
* security.cc (alloc_sd): Remove DELETE bit from user's ACE if
allow_traverse is set.

19 years ago * cygwin.din (pselect): Export.
Corinna Vinschen [Tue, 19 Apr 2005 08:32:59 +0000 (08:32 +0000)]
* cygwin.din (pselect): Export.
* select.cc (pselect): New function.
* include/cygwin/version.h: Bump API minor number.
* include/sys/select.h: Include signal.h.  Declare pselect.

19 years agogas/ChangeLog:
Mark Kettenis [Mon, 18 Apr 2005 20:59:19 +0000 (20:59 +0000)]
gas/ChangeLog:
* config/tc-i386.c (md_begin): Allow hyphens in mnemonics.
include/opcode/ChangeLog:
* i386.h: Insert hyphens into selected VIA PadLock extensions.
Add xcrypt-ctr.  Provide aliases without hyphens.
opcodes/ChangeLog:
* i386-dis.c: Insert hyphens into selected VIA PadLock extensions.
Add xcrypt-ctr.

19 years ago * fhandler.h (enum conn_state): Add connect_failed state.
Corinna Vinschen [Mon, 18 Apr 2005 18:56:52 +0000 (18:56 +0000)]
* fhandler.h (enum conn_state): Add connect_failed state.
* fhandler_socket.cc (fhandler_socket::connect): Set connect_state to
connect_failed when connect failed.
* poll.cc (poll): Change errno to EINVAL if allocating memory fails,
according to SUSv3. Add socket descriptors always to except_fds. Test
for failed connect and set revents flags appropriately.
* select.cc (set_bits): Set connect_state to connect_failed when
select indicates failed nonblocking connect.
(fhandler_dev_null::select_except): Set except_ready to false so that
/dev/null is not always in except state.
(peek_socket): Fix bogus conditional.
(fhandler_socket::select_write): Treat all connect_states except
unconnected equivalent to return consistent results.
(fhandler_windows::select_except): Set except_ready to false so that
/dev/windows is not always in except state.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 16.
Christopher Faylor [Mon, 18 Apr 2005 17:25:04 +0000 (17:25 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 16.

19 years ago * grp.cc (initgroups32): Return the correct value.
Corinna Vinschen [Mon, 18 Apr 2005 16:03:08 +0000 (16:03 +0000)]
* grp.cc (initgroups32): Return the correct value.

19 years ago * configure.host <cris-*-* | crisv32-*-*>: Set
Hans-Peter Nilsson [Mon, 18 Apr 2005 02:52:21 +0000 (02:52 +0000)]
* configure.host <cris-*-* | crisv32-*-*>: Set
        default_newlib_io_long_long="yes".

19 years agoActually check in files.
Christopher Faylor [Sun, 17 Apr 2005 00:12:14 +0000 (00:12 +0000)]
Actually check in files.

19 years agomerge from gcc
DJ Delorie [Sat, 16 Apr 2005 21:49:07 +0000 (21:49 +0000)]
merge from gcc

19 years ago * fhandler_disk_file.cc (fhandler_base::utimes_fs): Ignore
Corinna Vinschen [Sat, 16 Apr 2005 17:17:33 +0000 (17:17 +0000)]
* fhandler_disk_file.cc (fhandler_base::utimes_fs): Ignore
ERROR_NOT_SUPPORTED to workaround Win9x weirdness.
* path.cc (symlink_info::check): Remap ERROR_INVALID_FUNTION to
ERROR_FILE_NOT_FOUND for the same reason.

19 years ago * security.h (cygsidlist::addfromgr): Allow duplicate entries.
Corinna Vinschen [Sat, 16 Apr 2005 15:21:47 +0000 (15:21 +0000)]
* security.h (cygsidlist::addfromgr): Allow duplicate entries.
(get_server_groups): Declare new function.
* security.cc (is_group_member): Simplify.
(get_server_groups): New function.
(get_initgroups_sidlist): Call get_server_groups.
(verify_token): Allow token when supplementary sids are not in
/etc/group but are in the token.
Streamline the code.
* grp.cc (initgroups32): New implementation.
(getgroups32): Handle case where the supplementary groups are set.

19 years ago * cygwinenv.sgml: Add new words for (no)traverse option.
Corinna Vinschen [Sat, 16 Apr 2005 13:16:25 +0000 (13:16 +0000)]
* cygwinenv.sgml: Add new words for (no)traverse option.

19 years ago * environ.cc (environ_init): Don't set traverse checking as default.
Corinna Vinschen [Sat, 16 Apr 2005 13:11:40 +0000 (13:11 +0000)]
* environ.cc (environ_init): Don't set traverse checking as default.

19 years ago * fhandler_disk_file.cc (fhandler_base::utimes_fs): Drop touching
Corinna Vinschen [Sat, 16 Apr 2005 12:53:48 +0000 (12:53 +0000)]
* fhandler_disk_file.cc (fhandler_base::utimes_fs): Drop touching
ChangeTime.

19 years ago* fhandler.cc (fhandler::dup): Duplicate flags, too.
Christopher Faylor [Sat, 16 Apr 2005 05:20:01 +0000 (05:20 +0000)]
* fhandler.cc (fhandler::dup): Duplicate flags, too.
* fhandler.h (fhandler_fifo::owner): Eliminate.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Handle on-disk devices
better.
(fhandler_base::fstat_helper): Ditto.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Don't initialize obsolete
"owner".
(fhandler_fifo::open_not_mine): Add some debugging.  Duplicate correct handle
when we own it.
(fhandler_fifo::open): Set flags from input, not from first pipe.  Flag that
fork fixup is needed.
(fhandler_fifo::dup): Set errno correctly when DuplicateHandle fails.
* pinfo.cc (commune_send): Add debugging for fifo.
* cygwin/version.h: Bump API minor version to 127 to reflect exporting of
sigrelese.

19 years ago * syscalls.cc (setuid32): Correct debugging output.
Corinna Vinschen [Fri, 15 Apr 2005 08:19:07 +0000 (08:19 +0000)]
* syscalls.cc (setuid32): Correct debugging output.

19 years ago* dcrt0.cc (do_global_dtors): Run DLL dtors.
Christopher Faylor [Thu, 14 Apr 2005 17:34:03 +0000 (17:34 +0000)]
* dcrt0.cc (do_global_dtors): Run DLL dtors.
(__main): Don't rely on atexit to run dtors.
(do_exit): Specifically call do_global_dtors here.
(cygwin_exit): Ditto.
* dll_init.cc (dll_global_dtors): Make global.  Only run dtors once.
(dll_list::init): Just set flag that dtors should be run.  Don't rely on
atexit.
* dll_init.h (dll_global_dtors): Declare.
* exceptions.cc (sigrelse): Define.
* path.h (is_fs_device): New method.
(is_lnk_special): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::link): Use "is_lnk_special" rather
than "is_lnk_symlink".
* syscalls.cc (rename): Ditto.
* hookapi.cc (ld_preload): Use colon as a separator rather than space.

19 years ago.
Christopher Faylor [Thu, 14 Apr 2005 17:08:02 +0000 (17:08 +0000)]
.

19 years agomerge from gcc
DJ Delorie [Thu, 14 Apr 2005 02:22:07 +0000 (02:22 +0000)]
merge from gcc

19 years agoMove entries in ChangeLog-9103 to appropriate */ChangeLog-9103.
H.J. Lu [Wed, 13 Apr 2005 17:33:48 +0000 (17:33 +0000)]
Move entries in ChangeLog-9103 to appropriate */ChangeLog-9103.

19 years ago * fhandler.h (class fhandler_socket): Remove utimes.
Corinna Vinschen [Wed, 13 Apr 2005 17:13:41 +0000 (17:13 +0000)]
* fhandler.h (class fhandler_socket): Remove utimes.
* fhandler_socket.cc (fhandler_socket::utimes): Remove.

19 years agoMove entries to appropriate ChangeLog files.
H.J. Lu [Wed, 13 Apr 2005 16:53:25 +0000 (16:53 +0000)]
Move entries to appropriate ChangeLog files.

19 years ago * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32
Corinna Vinschen [Wed, 13 Apr 2005 16:41:33 +0000 (16:41 +0000)]
* cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32
error code as well as errno. Use throughout where errno is set from
NT status.
(set_errno): Evaluate val only once.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fix typo in
debug output.
* fhandler_mem.cc (fhandler_dev_mem::open): Rely on
__seterrno_from_nt_status setting Win32 error code in debug output.
* fhandler_proc.cc (format_proc_uptime): Ditto.
(format_proc_stat): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
* sysconf.cc (sysconf): Ditto.

19 years ago* fhandler.h (fhandler_base::utimes_fs): New method.
Christopher Faylor [Wed, 13 Apr 2005 16:17:37 +0000 (16:17 +0000)]
* fhandler.h (fhandler_base::utimes_fs): New method.
* fhandler.cc (fhandler_base::utimes): Call utimes_fs if on-disk special file.
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Use utimes_fs.
(fhandler_base::utimes_fs): Handle on-disk device files.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errno
Corinna Vinschen [Wed, 13 Apr 2005 11:07:44 +0000 (11:07 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errno
if open fails, it has already been set by open.

19 years ago2005-04-12 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Wed, 13 Apr 2005 00:01:40 +0000 (00:01 +0000)]
2005-04-12  Shaun Jackman  <sjackman@gmail.com>

        * libgloss/arm/Makefile.in (RDPMON_BSP): librdpmon.a was empty due
        to a typo. Fixed.
        (RDIMON_BSP): Ditto.

19 years ago2005-04-12 Paul Brook <paul@codesourcery.com>
Paul Brook [Tue, 12 Apr 2005 19:35:53 +0000 (19:35 +0000)]
2005-04-12  Paul Brook  <paul@codesourcery.com>

* opcode/m88k.h: Rename psr macros to avoid conflicts.

19 years agoinclude/opcode/ChangeLog:
Mark Kettenis [Tue, 12 Apr 2005 17:12:30 +0000 (17:12 +0000)]
include/opcode/ChangeLog:
* i386.h (i386_optab): Mark VIA PadLock instructions as ImmExt and
adjust them accordingly.
gas/ChangeLog:
* config/tc-i386.c (output_insn): Handle VIA PadLock instructions
similar to other instructions now that they're marked as ImmExt.

19 years ago * autoload.cc (NtQueryVolumeInformationFile): Add.
Corinna Vinschen [Tue, 12 Apr 2005 14:26:31 +0000 (14:26 +0000)]
* autoload.cc (NtQueryVolumeInformationFile): Add.
* fhandler.cc (fhandler_base::raw_write): Don't touch has_changed flag.
* fhandler.h (enum change_state): Remove.
(fhandler_base::status): Revert has_changed to a simple bit.
(fhandler_base::fstat_helper): Add nAllocSize parameter.  Rename
ftCreationTime to ftChangeTime.
* fhandler_disk_file.cc:
Call fstat_helper with additional
allocation size throughout.
(fhandler_base::fstat_by_handle): Use NT native functions to get
full file information on NT.  Call fstat_helper with LastWriteTime
as ctime, if ChangeTime is not available.
(fhandler_base::fstat_by_name): Call fstat_helper with LastWriteTime
as ctime.
(fhandler_base::fstat_helper): Add comment. Drop special FAT
handling since it's useless. Use nAllocSize for st_blocks if available.
(fhandler_disk_file::touch_ctime): Only touch LastWriteTime.
(fhandler_disk_file::fchmod): Set has_changed on 9x only.
(fhandler_disk_file::fchown): Don't set has_changed.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::ftruncate): Ditto.
(fhandler_disk_file::link): Set has_changed on 9x only and on original
file only.
(fhandler_base::open_fs): Don't set has_changed in O_TRUNC case.
* ntdll.h (FILE_BASIC_INFORMATION): Define.
(FILE_STANDARD_INFORMATION): Define.
(FILE_INTERNAL_INFORMATION): Define.
(FILE_EA_INFORMATION): Define.
(FILE_ACCESS_INFORMATION): Define.
(FILE_POSITION_INFORMATION): Define.
(FILE_MODE_INFORMATION): Define.
(FILE_ALIGNMENT_INFORMATION): Define.
(FILE_NAME_INFORMATION): Don't define with arbitrary FileName size.
(FILE_ALL_INFORMATION): Define.
(FILE_INFORMATION_CLASS): Add FileAllInformation.
(FILE_FS_VOLUME_INFORMATION): Define.
(FS_INFORMATION_CLASS): Define.
(NtQueryVolumeInformationFile): Define.

19 years ago * mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,
Richard Sandiford [Tue, 12 Apr 2005 08:06:40 +0000 (08:06 +0000)]
* mips/array.ld, mips/cfe.ld, mips/dve.ld, mips/idt32.ld,
* mips/idt64.ld, mips/idtecoff.ld, mips/idt.ld,
* mips/jmr3904app-java.ld, mips/jmr3904app.ld,
* mips/jmr3904dram-java.ld, mips/jmr3904dram.ld, mips/lsi.ld,
* mips/nullmon.ld, mips/pmon.ld: Keep .init and .fini.

19 years ago Fix ChangeLog entry.
Corinna Vinschen [Mon, 11 Apr 2005 21:56:08 +0000 (21:56 +0000)]
Fix ChangeLog entry.

19 years ago Revert previous patch.
Corinna Vinschen [Mon, 11 Apr 2005 21:54:54 +0000 (21:54 +0000)]
Revert previous patch.
* autoload.cc (GetVolumePathNamesForVolumeNameA): Remove.
* autoload.cc (GetVolumeNameForVolumeMountPointA): Add.
* syscalls.cc (sync): Rewrite guid case to skip floppies also on
Windows 2000.

19 years ago * syscalls.cc (sync): Use renamed has_get_volume_pathnames wincap.
Corinna Vinschen [Mon, 11 Apr 2005 20:44:45 +0000 (20:44 +0000)]
* syscalls.cc (sync): Use renamed has_get_volume_pathnames wincap.
* wincap.h (wincaps::has_get_volume_pathnames): Rename from
has_guid_volumes
* wincap.cc: Accomodate above rename throughout.  Set to false on
Windows 2000.

19 years agomerge from gcc
DJ Delorie [Mon, 11 Apr 2005 19:31:50 +0000 (19:31 +0000)]
merge from gcc

19 years ago2005-04-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 8 Apr 2005 20:48:40 +0000 (20:48 +0000)]
2005-04-08  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/libgen.h: New file.

2005-04-08  Shaun Jackman  <sjackman@gmail.com>

        * libc/unix/Makefile.am: Add support for basename and dirname.
        * libc/unix/Makefile.in: Regenerated.
        * libc/unix/basename.c: New file.
        * libc/unix/dirname.c: New file.

19 years ago * bsd_mutex.cc (msleep_cnt): Remove.
Corinna Vinschen [Fri, 8 Apr 2005 20:31:43 +0000 (20:31 +0000)]
* bsd_mutex.cc (msleep_cnt): Remove.
(msleep_max_cnt): Remove.
(msleep_arr): Remove.
(class msleep_sync_array): New class to encapsulate msleep/wakeup
thread synchronization.
(msleep_sync): New object pointer.
(msleep_init): Initialize new msleep_sync object.
(_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for
thread synchronization. Improve debug output a bit more.
(wakeup): Just call msleep_sync->wakeup().
(wakeup_all): Whitespace fix.

19 years ago* pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.
Christopher Faylor [Fri, 8 Apr 2005 19:57:36 +0000 (19:57 +0000)]
* pipe.cc (fhandler_pipe::open): Remove O_CREAT limitation.

19 years ago2005-04-07 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Thu, 7 Apr 2005 23:40:42 +0000 (23:40 +0000)]
2005-04-07  Shaun Jackman  <sjackman@gmail.com>

        * libc/sys/linux/inode.c (lchown): New function.

19 years ago2005-04-07 Shaun Jackman <sjackman@gmail.com>
Jeff Johnston [Thu, 7 Apr 2005 23:37:06 +0000 (23:37 +0000)]
2005-04-07  Shaun Jackman  <sjackman@gmail.com>

        * libc/unix/Makefile.am (LIB_OBJS): Include all the ELIX objects if no
        ELIX level is defined.
        * libc/unix/Makefile.in: Regenerated.

19 years ago * syslog.cc (try_connect_guard): Remove useless conditionalized code.
Corinna Vinschen [Thu, 7 Apr 2005 20:42:20 +0000 (20:42 +0000)]
* syslog.cc (try_connect_guard): Remove useless conditionalized code.

19 years ago * syslog.cc: Include sys/socket.h.
Corinna Vinschen [Thu, 7 Apr 2005 20:16:46 +0000 (20:16 +0000)]
* syslog.cc: Include sys/socket.h.
(try_connect_guard): New static variable.
(syslogd_inited): Ditto.
(syslogd_sock): Ditto.
(try_connect_syslogd): New function to connect and write syslog to
local syslogd.
(vsyslog): Log to stderr if LOG_PERROR flag has been given to openlog.
Try logging to syslogd.  Use Event Log resp. log file as fallback.
(closelog): Close socket to syslogd.
* include/sys/syslog.h (_PATH_LOG): Define.
(INTERNAL_NOPRI): Define if SYSLOG_NAMES is defined.
(INTERNAL_MARK): Ditto.
(struct _code): Ditto.
(prioritynames): Ditto.
(facilitynames): Ditto.

19 years ago * fhandler_socket.cc (get_inet_addr): Add type parameter to return
Corinna Vinschen [Wed, 6 Apr 2005 18:50:13 +0000 (18:50 +0000)]
* fhandler_socket.cc (get_inet_addr): Add type parameter to return
unix socket type.  Read socket type from unix socket file.
(fhandler_socket::bind): Write socket type to unix socket file.
(fhandler_socket::connect): Return with errno EPROTOTYPE if
socket type of socket doesn't match socket type of unix socket
trying to connect to.

19 years ago * security.h (cygsidlist::addfromgr): Avoid duplicate entries.
Corinna Vinschen [Wed, 6 Apr 2005 12:35:52 +0000 (12:35 +0000)]
* security.h (cygsidlist::addfromgr): Avoid duplicate entries.
* grp.cc (initgrousp): Add syscall_printf.
(setgroups): Add syscall_printf and make sure sids are added only once.

19 years ago * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
Corinna Vinschen [Wed, 6 Apr 2005 11:11:07 +0000 (11:11 +0000)]
* bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
* bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
(mtx_init): Initialize lock counter to 0.
(_mtx_lock): Increment and log mutex lock counter.
(mtx_owned): Add winpid argument. Return true only if mutex is
actually owned by process winpid.
(_mtx_assert): Add winpid argument accordingly.
(_mtx_unlock): Log owner and lock count.
(MSLEEP_MUTEX): Remove.
(MSLEEP_SEM): Ditto.
(MSLEEP_EVENT): Ditto.
(msleep_event_name): Ditto.
(msleep_cs): New global critical section.
(msleep_cnt): New global variable indicating msleep record usage.
(msleep_max_cnt): New global variable indicating msleep record size.
(msleep_arr): New global pointer to msleep records.
(msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
(_msleep): Rewrite using new msleep_cs/msleep_arr based thread
synchronization. Don't be shy with debug output.
(wakeup): Rewrite using new msleep_cs/msleep_arr based thread
synchronization.
* bsd_mutex.h (struct mtx): Add lock counter for better debugging.
(mtx_owned): Declare with winpid argument.
(_mtx_assert): Ditto.
(mtx_assert): Define with winpid argument.
* cygserver.cc (version): Remove.
(SERVER_VERSION): New define, decoupling server version information
from source code control system.
(print_version): Simplify printing server version.
* process.cc (process::process): Fix wrong bracketing (and handle leak).
(process::~process): Only try to close _signal_arrived if valid.
* sysv_sem.cc: Include sys/smallprint.h.
(semundo_clear): Define with additional struct thread pointer argument.
Accomodate throughout.
(SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
throughout.
(struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
throughout.
(seminit): Improve debugging by adding the semid to the mutex name.
(semget): Correctly print key value as 64 bit hex value in debug
output.
(semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
by exiting process.  Keep semaphore global lock throughout whole
function to avoid races.
* sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
Giant is locked.

19 years ago2005-04-06 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 6 Apr 2005 06:23:22 +0000 (06:23 +0000)]
2005-04-06  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
(TARGET_CONFIGARGS): Include --with-target-subdir.
(configure, all): New macros.  Use them throughout.

19 years ago* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
Christopher Faylor [Wed, 6 Apr 2005 05:48:55 +0000 (05:48 +0000)]
* net.cc (cygwin_getservbyname): Return (possibly NULL) return value of dup_ent
rather than assuming that tls buffer is valid.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto.
(cygwin_gethostbyaddr): Ditto.

19 years ago2005-04-05 Dave Korn <dave.korn@artimi.com>
Jeff Johnston [Tue, 5 Apr 2005 18:38:09 +0000 (18:38 +0000)]
2005-04-05  Dave Korn  <dave.korn@artimi.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): If an error occurs processing
        something that looks like a "NaN", put back the characters processed.

19 years ago* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
Christopher Faylor [Tue, 5 Apr 2005 17:13:35 +0000 (17:13 +0000)]
* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
in a "non-standard" way.

19 years ago2005-04-05 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 5 Apr 2005 08:16:33 +0000 (08:16 +0000)]
2005-04-05  Paolo Bonzini  <bonzini@gnu.org>

* Makefile.tpl: Sync with gcc.
* Makefile.in: Regenerate.

19 years ago* sync.h (muto::initforce): Delete flawed implementation.
Christopher Faylor [Tue, 5 Apr 2005 06:04:57 +0000 (06:04 +0000)]
* sync.h (muto::initforce): Delete flawed implementation.
* pwdgrp.h (pwdgrp::pglock): Make static.
* grp.cc (pwdgrp::pwdgrp): Eliminate use of initforce.

19 years ago* sync.h (muto::initforce): Force initialization even when name != NULL.
Christopher Faylor [Tue, 5 Apr 2005 04:48:02 +0000 (04:48 +0000)]
* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is
!NO_COPY.

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