]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
19 years ago * autoload.cc (FindFirstVolumeA): Add.
Corinna Vinschen [Sun, 20 Feb 2005 13:28:23 +0000 (13:28 +0000)]
* autoload.cc (FindFirstVolumeA): Add.
(FindNextVolumeA): Add.
(FindVolumeClose): Add.
(GetVolumePathNamesForVolumeNameA): Add.
* fhandler.h (class fhandler_base): Declare new method fsync.
* fhandler.cc (fhandler_base::fsync): New method.
* syscalls.cc (fsync): Move functionality into fhandler method fsync.
Just call this method from here.
(sync_worker): New static function.
(sync): Fill with life for NT systems.
* wincap.h (wincaps::has_guid_volumes): New element.
* wincap.cc: Implement above element throughout.

19 years ago * fhandler.h (enum query_state): Add query_write_attributes state.
Corinna Vinschen [Sun, 20 Feb 2005 11:44:32 +0000 (11:44 +0000)]
* fhandler.h (enum query_state): Add query_write_attributes state.
(fhandler_base::status.query_open): Add a bit to make room for more
states.
(class fhandler_base): Declare new method utimes.
(class fhandler_socket): Ditto.
(class fhandler_disk_file): Ditto.
(fhandler_disk_file::fhandler_disk_file): Add constructor with
path_conv parameter.
* fhandler.cc (fhandler_base::open): Add query_write_attributes
handling.
(fhandler_base::utimes): New method.
* fhandler_disk_file.cc (fhandler_disk_file::link): Simplify.
Open file with query_write_attributes instead of query_write_control.
(fhandler_disk_file::utimes): New method.
(fhandler_disk_file::fhandler_disk_file): Add constructor with
path_conv parameter setting pc member immediately.
* fhandler_socket.cc (fhandler_socket::fchmod): Use new
fhandler_disk_file constructor.
(fhandler_socket::fchown): Ditto.
(fhandler_socket::facl): Ditto.
(fhandler_socket::link): Ditto.
(fhandler_socket::utimes): New method.
* times.cc: Include dtable.h.
(timeval_to_filetime): Make non-static.
(utimes): Move functionality into fhandler method utimes. Just call
this method from here.
* winsup.h: Simplify declarations of time helper functions.
(timeval_to_filetime): Add extern declaration.

19 years agocopyright
Christopher Faylor [Sun, 20 Feb 2005 04:25:33 +0000 (04:25 +0000)]
copyright

19 years ago * fhandler.h (class fhandler_base): Declare new method link.
Corinna Vinschen [Sat, 19 Feb 2005 21:53:36 +0000 (21:53 +0000)]
* fhandler.h (class fhandler_base): Declare new method link.
(class fhandler_socket): Ditto.
(class fhandler_disk_file): Ditto.
* fhandler.cc (fhandler_base::open): Add FILE_WRITE_ATTRIBUTES
to query_write_control access flags.
(fhandler_base::link): New method.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't try to
open with O_WRONLY since query_write_control includes
FILE_WRITE_ATTRIBUTES.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::link): New method.  Touch st_ctime on successful
link.
* fhandler_socket.cc (fhandler_socket::link): New method.
* syscalls.cc (link): Move functionality into fhandler method link.
Just call this method from here.

19 years ago * fhandler.h (class fhandler_socket): Declare new methods fchown,
Corinna Vinschen [Sat, 19 Feb 2005 20:03:18 +0000 (20:03 +0000)]
* fhandler.h (class fhandler_socket): Declare new methods fchown,
fchmod and facl.
* fhandler_socket.cc (fhandler_socket::fstat): Handle AF_LOCAL
sockets.
(fhandler_socket::fchmod): New method.
(fhandler_socket::fchown): New method.
(fhandler_socket::facl): New method.

19 years ago * localtime.cc: Temporary implementation of setting __tzrule's offset
Corinna Vinschen [Sat, 19 Feb 2005 19:58:38 +0000 (19:58 +0000)]
* localtime.cc: Temporary implementation of setting __tzrule's offset
member to be used by strftime.
(__tzrule): New global variable.
(tzparse): Set __tzrule's offset member appropriately.

19 years ago* path.cc (path_conv::check): Set fs flag when a unix-domain socket is
Christopher Faylor [Thu, 17 Feb 2005 17:21:11 +0000 (17:21 +0000)]
* path.cc (path_conv::check): Set fs flag when a unix-domain socket is
detected.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstat): Set st_ctime if
Corinna Vinschen [Thu, 17 Feb 2005 12:41:49 +0000 (12:41 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Set st_ctime if
has_changed flag is set.
(fhandler_disk_file::touch_ctime): Reset has_changed flag on success.

19 years ago * times.cc (utimes): Open files with FILE_WRITE_ATTRIBUTES first,
Corinna Vinschen [Thu, 17 Feb 2005 12:08:16 +0000 (12:08 +0000)]
* times.cc (utimes): Open files with FILE_WRITE_ATTRIBUTES first,
if that fails, try opeing with GENERIC_WRITE.  Fix comments.

19 years ago2005-02-16 Eric Blake <ebb9@byu.net>
Jeff Johnston [Wed, 16 Feb 2005 21:15:37 +0000 (21:15 +0000)]
2005-02-16  Eric Blake  <ebb9@byu.net>

        * libc/time/time.tex: Improve the documentation.
        * libc/time/strftime.c: Improve the documentation.
        (iso_year_adjust): New helper function.
        (strftime): Simplify '%E' and '%O'. Change '%c' to use
        recursion. Fix '%C', '%y', and '%Y' to deal with years with more
        than 4 characters.  Combine '%d' and '%e'. Implement '%D', '%F',
        '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'.
        Avoid core dumps on valid inputs (maxsize == 0, or
        tim_p->tm_isdst > 1).

19 years ago* path.h (path_conv::issocket): Return true if device == FH_UNIX rather than
Christopher Faylor [Wed, 16 Feb 2005 00:24:38 +0000 (00:24 +0000)]
* path.h (path_conv::issocket): Return true if device == FH_UNIX rather than
expecting path_conv to set a flag.

19 years agobfd/:
Maciej W. Rozycki [Tue, 15 Feb 2005 19:57:53 +0000 (19:57 +0000)]
bfd/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
elf_mips16_howto_table_rel.
* elf64-mips.c (mips16_elf64_howto_table_rel): New array for
MIPS16 REL reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16
relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_elf64_howto_table_rela): New array for MIPS16 RELA
reloc howtos.  Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
placeholders.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
* elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
REL reloc howtos.  Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
(elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
(elf_mips16_gprel_howto): Likewise.  Redefine src_mask and
dst_mask.
(mips16_gprel_reloc): Remove bit shuffling; call
_bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
and _bfd_mips16_elf_reloc_shuffle() instead.
(mips16_reloc_map): New reloc map for MIPS16 relocs.
(bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
relocs.
(mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
* elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
handle bit shuffling for MIPS16 relocs.
(_bfd_mips16_elf_reloc_shuffle): Likewise.
(_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
and _bfd_mips16_elf_reloc_shuffle().
(_bfd_mips_elf_generic_reloc): Likewise.
(mips_elf_calculate_relocation): Likewise.  Handle R_MIPS16_HI16
and R_MIPS16_LO16.
(mips_elf_obtain_contents): Remove bit shuffling.
(mips_elf_perform_relocation): Likewise; call
_bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
instead.
(_bfd_mips_elf_relocate_section): Likewise.  Handle R_MIPS16_HI16
and R_MIPS16_LO16.
* elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
(_bfd_mips16_elf_reloc_shuffle): Likewise.
* reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
(BFD_RELOC_MIPS16_HI16_S): Likewise.
(BFD_RELOC_MIPS16_LO16): Likewise.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

gas/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* config/tc-mips.c (reloc_needs_lo_p): Handle
BFD_RELOC_MIPS16_HI16_S.
(fixup_has_matching_lo_p): Handle BFD_RELOC_MIPS16_LO16.
(append_insn): Add BFD_RELOC_MIPS16_GPREL, BFD_RELOC_MIPS16_HI16_S
and BFD_RELOC_MIPS16_LO16 to relocs to suppress overflow
complaints on.
(mips16_ip): Resolve BFD_RELOC_MIPS16_HI16_S,
BFD_RELOC_MIPS16_HI16 and BFD_RELOC_MIPS16_LO16 for constants.
Call my_getSmallExpression() to parse percent operators.
(percent_op_match, mips_percent_op): Separate definitions.
(mips16_percent_op): Define percent operators for the MIPS16 mode.
(parse_relocation): Handle the MIPS16 mode using
mips16_percent_op.
(md_apply_fix3): Handle BFD_RELOC_MIPS16_HI16,
BFD_RELOC_MIPS16_HI16_S and BFD_RELOC_MIPS16_LO16.

gas/testsuite/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* gas/mips/mips16-hilo.d: New test for the R_MIPS16_HI16 and
R_MIPS16_LO16 relocs.
* gas/mips/mips16-hilo-n32.d: Likewise, for the n32 ABI.
* gas/mips/mips16-hilo.s: Source for the new tests.
* gas/mips/mips.exp: Run the new tests.

include/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* elf/mips.h (R_MIPS16_GOT16): New reloc code.
(R_MIPS16_CALL16): Likewise.
(R_MIPS16_HI16): Likewise.
(R_MIPS16_LO16): Likewise.
(R_MIPS16_min): New fake reloc code.
(R_MIPS16_max): Likewise.

ld/testsuite/:
2005-02-15  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

* ld-mips-elf/mips16-hilo.d: New test for the R_MIPS16_HI16 and
R_MIPS16_LO16 relocs.
* ld-mips-elf/mips16-hilo-n32.d: Likewise, for the n32 ABI.
* ld-mips-elf/mips16-hilo.s: Auxiliary source for the new tests.
* ld-mips-elf/mips-elf.exp: Run the new tests.

19 years agomerge from gcc
DJ Delorie [Mon, 14 Feb 2005 12:10:25 +0000 (12:10 +0000)]
merge from gcc

19 years agowhite space
Christopher Faylor [Sun, 13 Feb 2005 18:17:29 +0000 (18:17 +0000)]
white space

19 years agofix typo
Christopher Faylor [Fri, 11 Feb 2005 22:26:20 +0000 (22:26 +0000)]
fix typo

19 years ago* mips.h (R_MIPS_max): Use FAKE_RELOC to define.
Maciej W. Rozycki [Fri, 11 Feb 2005 20:29:29 +0000 (20:29 +0000)]
* mips.h (R_MIPS_max): Use FAKE_RELOC to define.

19 years ago * fhandler.cc (fhandler_base::raw_write): Mark as changed on
Corinna Vinschen [Fri, 11 Feb 2005 15:37:26 +0000 (15:37 +0000)]
* fhandler.cc (fhandler_base::raw_write): Mark as changed on
successful write.
* fhandler.h (fhandler_base::status_flags): Add 'has_changed' flag.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call
fhandler_disk_file's own open and close instead of open_fs and
close_fs.  Mark as changed on success.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
(fhandler_disk_file::ftruncate): Ditto.
(fhandler_base::open_fs): Mark as changed when O_TRUNC flag on existing
file is set.
(fhandler_disk_file::close): Set st_ctime if has_changed flag is set.

19 years ago* cygthread.cc (cygthread::release): Reset ev here if it exists.
Christopher Faylor [Fri, 11 Feb 2005 15:24:15 +0000 (15:24 +0000)]
* cygthread.cc (cygthread::release): Reset ev here if it exists.
(cygthread::terminate_thread): Eliminat racy code which reset ev and
thread_sync.  Remove a few nonsensical inuse checks.  Exit at the bottom.
(cygthread::detach): Rewrite to again try to ensure that we don't say we're
signalled when we are not signalled.
* fhandler.cc (fhandler_base::raw_read): Revert to signalling read success
quickly.
* pipe.cc (fhandler_pipe::close): Use base method to close handle.
* sigproc.h (WAIT_SIG_PRIORITY): Just trundle along at normal priority to allow
the pipe thread to do its thing if possible.
* pinfo.h (pinfo::zap_cwd): Declare new function.
(pinfo::zap_cwd): Move 'cd out of the way code' here.
(pinfo::exit): Use it here.
* spawn.cc (spawn_guts): And here.

19 years ago * times.cc (utimes): Open files with GENERIC_WRITE on file systems
Corinna Vinschen [Fri, 11 Feb 2005 14:27:36 +0000 (14:27 +0000)]
* times.cc (utimes): Open files with GENERIC_WRITE on file systems
not supporting ACLs.

19 years ago * include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
Danny Smith [Fri, 11 Feb 2005 07:23:44 +0000 (07:23 +0000)]
* include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.

19 years ago * include/assert.h; Remove header guard. undef assert macro.
Danny Smith [Fri, 11 Feb 2005 07:17:00 +0000 (07:17 +0000)]
* include/assert.h; Remove header guard.  undef assert macro.
(_assert): Use __MINGW_ATTRIB_NORETURN define.

19 years agoAdd Changelog entry from last commit.
Danny Smith [Fri, 11 Feb 2005 07:15:00 +0000 (07:15 +0000)]
Add Changelog entry from last commit.

19 years ago2005-02-11 Gregory W. Chicares <chicares at cox dot net>
Danny Smith [Fri, 11 Feb 2005 04:15:17 +0000 (04:15 +0000)]
2005-02-11  Gregory W. Chicares  <chicares at cox dot net>
            Danny Smith  <dannysmith@users at sourceforge dot net>

* include/math.h (expm1, expm1f, expmll): Add prototypes.
* mingwex/Makefile.in (MATH_DISTFILES): Add expm1.c,
expm1f.c, expm1l.c.
(MATH_OBJS): Add expm1.o, expm1f.o, expm1l.o.
* mingwex/math/expm1.c: New file.
* mingwex/math/expm1f.c: New file.
* mingwex/math/expm1l.c: New file.

19 years agoadd missing ChangeLog entry
Christopher Faylor [Thu, 10 Feb 2005 18:12:56 +0000 (18:12 +0000)]
add missing ChangeLog entry

19 years ago* winsup.api/known_bugs.tcl: Remove dup05, fcntl07B, lseek04, select03,
Christopher Faylor [Thu, 10 Feb 2005 17:48:30 +0000 (17:48 +0000)]
* winsup.api/known_bugs.tcl: Remove dup05, fcntl07B, lseek04, select03,
unlink06.

19 years ago2005-02-10 Jiri Malak <Jiri.Malak@iol.cz>
Danny Smith [Thu, 10 Feb 2005 01:19:43 +0000 (01:19 +0000)]
2005-02-10  Jiri Malak  <Jiri.Malak@iol.cz>
            Danny Smith  <dannysmith@users.sourceforge.net>

* lib/directx/dinput_private.h (ATTRIBUTE_TEXT_SECTION): New
define for Open Watcom portability.
* lib/directx/(dinput_joy.c, dinput_joy2.c, dinput_kbd.c,
dinput_mouse.c, dinput_mouse2.c): Use new macro in definition
of local c_rgodfDI* objects. Replace .rdata section attribute
with 'const' keyword in definition of global c_dfDI* objects.

19 years ago * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Fix checking
Corinna Vinschen [Wed, 9 Feb 2005 19:28:06 +0000 (19:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Fix checking
lseek return code.

19 years agogas/testsuite/
Jan Beulich [Wed, 9 Feb 2005 08:05:43 +0000 (08:05 +0000)]
gas/testsuite/
2005-02-09  Jan Beulich  <jbeulich@novell.com>

* gas/i386/intelok.s: Remove comments disabling alternative forms of
fbld, fbstp, and fldcw.
* gas/i386/intelok.d: Expect two instances of fbld, fbstp, and fldcw.

include/opcode/
2005-02-09  Jan Beulich  <jbeulich@novell.com>

PR gas/707
* i386.h (i386_optab): Add x_Suf to fbld and fbstp. Add w_Suf and
FloatMF to fldcw, fstcw, fnstcw, and the memory formas of fstsw and
fnstsw.

19 years ago2005-02-08 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Tue, 8 Feb 2005 22:37:35 +0000 (22:37 +0000)]
2005-02-08  Andrew Cagney  <cagney@gnu.org>

* MAINTAINERS: Delete reference to dejagnu/ and mmalloc/ from the
gdb/ section.  Update GDB's URL.

19 years ago * times.cc (timeval_to_filetime): Define first parameter const.
Corinna Vinschen [Tue, 8 Feb 2005 20:59:41 +0000 (20:59 +0000)]
* times.cc (timeval_to_filetime): Define first parameter const.
(utimes): Define second parameter to const according to SUSv3.
(utime): Ditto.
* include/sys/utime.h (utime) : Change declaration accordingly.

19 years ago * libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
Corinna Vinschen [Tue, 8 Feb 2005 20:55:18 +0000 (20:55 +0000)]
* libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid
members to uid_t and gid_t according to SUSv3.
* libc/include/sys/time.h (utimes):  Change second parameter
to const according to SUSv3.

19 years ago2005-02-08 Antony King <antony.king@st.com>
Jeff Johnston [Tue, 8 Feb 2005 19:38:47 +0000 (19:38 +0000)]
2005-02-08  Antony King  <antony.king@st.com>

        * arm/syscalls.c: Change CHECK_INIT to pass reentrant struct
        instead of file pointer.

19 years ago * cygthread.cc (cygthread::detach): Just test thread handle after
Corinna Vinschen [Tue, 8 Feb 2005 16:56:02 +0000 (16:56 +0000)]
* cygthread.cc (cygthread::detach): Just test thread handle after
signal arrived, don't wait infinitely for it.

19 years ago* pipe.cc (fhandler_pipe::read): Remove hold over from old read_state
Christopher Faylor [Tue, 8 Feb 2005 16:19:58 +0000 (16:19 +0000)]
* pipe.cc (fhandler_pipe::read): Remove hold over from old read_state
implementation.

19 years ago2005-02-07 Antony King <antony.king@st.com>
Jeff Johnston [Tue, 8 Feb 2005 01:33:19 +0000 (01:33 +0000)]
2005-02-07  Antony King  <antony.king@st.com>

        * libc/stdio/clearerr.c (clearerr): Ensure CHECK_INIT() is
        called before _flockfile to prevent lock object use before
        initialisation. _REENT_SMALL_CHECK_INIT() and CHECK_INIT()
        take a struct _reent * instead of a FILE *.
        * libc/stdio/fclose.c (_fclose_r): Ditto.
        * libc/stdio/feof.c (feof): Ditto.
        * libc/stdio/ferror.c (ferror): Ditto.
        * libc/stdio/fflush.c (fflush): Ditto.
        * libc/stdio/fgetc.c (fgetc): Ditto.
        * libc/stdio/fgets.c (fgets): Ditto.
        * libc/stdio/fileno.c (fileno): Ditto.
        * libc/stdio/fputc.c (fputc): Ditto.
        * libc/stdio/fputs.c (fputs): Ditto.
        * libc/stdio/fread.c (fread): Ditto.
        * libc/stdio/freopen.c (_freopen_r): Ditto.
        * libc/stdio/fseek.c (_fseek_r): Ditto.
        * libc/stdio/ftell.c (_ftell_r): Ditto.
        * libc/stdio/fwrite.c (fwrite): Ditto.
        * libc/stdio/getc.c (getc): Ditto.
        * libc/stdio/getdelim.c (__getdelim): Ditto.
        * libc/stdio/putc.c (putc): Ditto.
        * libc/stdio/setvbuf.c (setvbuf): Ditto.
        * libc/stdio/ungetc.c (_ungetc_r): Ditto.
        * libc/stdio/vfprintf.c (_VFPRINTF_R): Ditto.
        * libc/stdio64/freopen64.c (_freopen64_r): Ditto.
        * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto.
        * libc/stdio64/ftello64.c (_ftello64_r): Ditto.
        * libc/stdio/local.h (CHECK_INIT): Argument is now a struct
        _reent * instead of a FILE * and so replace incorrect use of
        _REENT with argument.
        * libc/sys/arm/syscalls.c (CHECK_INIT): Ditto.
        * libc/stdio/getchar.c (getchar): _REENT_SMALL_CHECK_INIT() and
        CHECK_INIT() take a struct _reent * instead of a FILE *.
        * libc/stdio/iprintf.c (iprintf, _iprintf_r): Ditto.
        * libc/stdio/iscanf.c (iscanf, _iscanf_r): Ditto.
        * libc/stdio/perror.c (perror): Ditto.
        * libc/stdio/printf.c (printf, _printf_r): Ditto.
        * libc/stdio/putchar.c (putchar): Ditto.
        * libc/stdio/puts.c (puts): Ditto.
        * libc/stdio/refill.c (__srefill): Ditto.
        * libc/stdio/scanf.c (scanf, _scanf_r): Ditto.
        * libc/stdio/vfscanf.c (VFSCANF, _VFSCANF_R): Ditto.
        * libc/stdio/viprintf.c (viprintf, _viprintf_r): Ditto.
        * libc/stdio/viscanf.c (viscanf, _viscanf_r): Ditto.
        * libc/stdio/vprintf.c (vprintf, _vprintf_r): Ditto.
        * libc/stdio/vscanf.c (vscanf, _vscanf_r): Ditto.
        * libc/stdio/wbuf.c (__swbuf): Ditto.
        * libc/stdio/wsetup.c (__swsetup): Ditto.
        * libc/stdlib/mallocr.c (malloc_stats): Ditto.
        * libc/stdlib/mstats.c (_mstats_r): Ditto.
        * libc/include/sys/reent.h (_REENT_SMALL_CHECK_INIT): Ditto.
        * libc/machine/powerpc/vfscanf.c (vfscanf): Ditto.
        * libc/stdio/fgetpos.c (_fgetpos_r): Removed unnecessary calls
        to _flockfile and _funlockfile; rely on locking in _ftell_r.
        * libc/stdio64/fgetpos64.c (_fgetpos64_r): Ditto (_ftello64_r).
        * libc/machine/powerpc/vfprintf.c (__sbprintf): Removed unnecessary
        initialision of _data field in FILE structure.
        * libc/machine/powerpc/vfprintf.c (VFPRINTF): Added CHECK_INIT() call.

19 years ago2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 8 Feb 2005 01:05:50 +0000 (01:05 +0000)]
2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/findfp.c (__sinit): Protect with new lock.
        (__sinit_lock): New lock.
        (__sinit_lock_acquire, __sinit_lock_release): New functions.
        * libc/stdio/local.h: Add reference to new __sinit locking
        functions.

19 years ago2005-02-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 7 Feb 2005 21:04:22 +0000 (21:04 +0000)]
2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/math.h (isfinite, isnormal, isunordered): Change
        input variable names to avoid mixups with nesting macros.

19 years ago2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith [Mon, 7 Feb 2005 20:40:32 +0000 (20:40 +0000)]
2005-02-07  Danny Smith  <dannysmith@users.sourceforge.net>

* include/winioctl.h (IOCTL_VOLUME_BASE,
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, IOCTL_VOLUME_IS_CLUSTERED):
Copy defines from include/ddk/ntdddvol.h.
Bug reported to Debian by Anand Kumria  <wildfire at progsoc dot org>

19 years ago2005-02-07 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith [Mon, 7 Feb 2005 20:18:08 +0000 (20:18 +0000)]
2005-02-07  Danny Smith  <dannysmith@users.sourceforge.net>

* include/sys/stat.h (struct stat): Guard with _NO_OLDNAMES.
* include/wchar.h (struct stat): Likwwise.
Bug reported to Debian by Anand Kumria  <wildfire@progsoc.org>

* include/sys/stat.h: Remove empty __STRICT_ANSI__ guard.

19 years ago* net.cc (cygwin_gethostbyname): Be more picky about what's a numeric address
Christopher Faylor [Mon, 7 Feb 2005 15:27:40 +0000 (15:27 +0000)]
* net.cc (cygwin_gethostbyname): Be more picky about what's a numeric address
string, and use tls in that case too.

19 years ago* exceptions.cc: Make windows_system_directory non-static.
Christopher Faylor [Mon, 7 Feb 2005 05:28:49 +0000 (05:28 +0000)]
* exceptions.cc: Make windows_system_directory non-static.
* pinfo.cc (pinfo::exit): Change innocuous cd'ed location to one that is more
likely to exist.

19 years ago * path.cc (path_conv::check): Leave symlink expansion loop in case
Corinna Vinschen [Sun, 6 Feb 2005 11:15:29 +0000 (11:15 +0000)]
* path.cc (path_conv::check): Leave symlink expansion loop in case
a not-ENOENT error happens.

* cygheap.h (cygheap_fdmanip::fhandler_pipe *): New cast operator.
* pinfo.cc (_pinfo::commune_recv): Add PICOM_PIPE_FHANDLER handling.
(_pinfo::commune_send): Ditto.
(_pinfo::pipe_fhandler): New method.
* pinfo.h (enum picom): Add PICOM_PIPE_FHANDLER.
(_pinfo::pipe_fhandler): Declare.
* pipe.cc (fhandler_pipe::open): Rewrite.  Allow to open foreign
pipe handles.

19 years ago* cygthread.h (cygthread::terminate_thread): Reflect return value.
Christopher Faylor [Sun, 6 Feb 2005 05:04:34 +0000 (05:04 +0000)]
* cygthread.h (cygthread::terminate_thread): Reflect return value.
* cygthread.cc (cygthread::detach): Be more careful about ensuring that sigwait
is properly waited for to avoid later missynchronization.
(cygthread::terminate_thread): Return true if thread was actually terminated
and all handles were closed.
* fhandler_base.cc (fhandler_base::raw_read): Use signal_read_state rather than
raw calls to win32 api.
(fhandler_base::read): Ditto.
* fhandler.h (fhandler_pipe::fixup_after_exec): Use method to create read_state
signalling.
(fhandler_pipe::create): Ditto.
* Makefile.in: Make some more files -fomit-frame-pointer.

19 years agoinclude/
Alan Modra [Thu, 3 Feb 2005 03:30:38 +0000 (03:30 +0000)]
include/
* bfdlink.h (struct bfd_link_hash_entry): Add u.undef.weak.
bfd/
* linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
* elflink.c (elf_smash_syms): Restore symbols that were undefweak
before the as-needed lib was loaded.  Abort on unexpected refs.

19 years ago * fhandler.h (fhandler_base::ftruncate): Define new virtual method.
Corinna Vinschen [Wed, 2 Feb 2005 22:42:06 +0000 (22:42 +0000)]
* fhandler.h (fhandler_base::ftruncate): Define new virtual method.
(fhandler_disk_file::ftruncate): Ditto.
* fhandler.cc (fhandler_base::ftruncate): New method.
* fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Ditto.
* syscalls.cc (ftruncate64): Move functionality into fhandlers.
Call fhandler method from here.

19 years agoImport from FSF mainline
Nick Clifton [Wed, 2 Feb 2005 19:00:30 +0000 (19:00 +0000)]
Import from FSF mainline

19 years ago * pipe.cc (fhandler_pipe::dup): Fix conditionals in case of error.
Corinna Vinschen [Wed, 2 Feb 2005 10:09:51 +0000 (10:09 +0000)]
* pipe.cc (fhandler_pipe::dup): Fix conditionals in case of error.

19 years ago * times.cc (utimes): Mark st_ctime for update according to SUSv3.
Corinna Vinschen [Wed, 2 Feb 2005 09:46:52 +0000 (09:46 +0000)]
* times.cc (utimes): Mark st_ctime for update according to SUSv3.

19 years ago * cris/Makefile.in (ALL_INSTALL_FILES): New macro.
Hans-Peter Nilsson [Tue, 1 Feb 2005 21:22:33 +0000 (21:22 +0000)]
* cris/Makefile.in (ALL_INSTALL_FILES): New macro.
(ALL_INSTALL_FILES_NEWLIB_COPY): New macro.
(all): Use ALL_INSTALL_FILES instead of its contents.  Add
ALL_INSTALL_FILES_NEWLIB_COPY.
($(objroot)/newlib/%, $(objroot)/newlib/libnosys.a): New rules

19 years ago* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check since
Christopher Faylor [Tue, 1 Feb 2005 17:16:14 +0000 (17:16 +0000)]
* fhandler_proc.cc (format_proc_partitions): Remove PartitionType check since
it could skip over partitions that are actually interesting.

19 years ago* cygthread.cc (cygthread::terminate_thread): Wait briefly for notification
Christopher Faylor [Tue, 1 Feb 2005 16:49:13 +0000 (16:49 +0000)]
* cygthread.cc (cygthread::terminate_thread): Wait briefly for notification
event in the event that the thread was actually in the process of exiting.
* pipe.cc (fhandler_pipe::dup): read_state is not supposed to be inheritable.
Fix that.
* path.cc (path_conv::check): Set symlen = 0 to avoid a compiler warning.
* devices.h (devices::parsedisk): Declare new function.
* devices.in (devices::parsedisk): Define new function.
* dtable.cc (dtable::init_std_file_from_handle): Use device numbers rather than
name.
* fhandler_proc.cc (format_proc_partitions): Use parsedisk to generate disk
names from numeric codes.  (This was broken on two of my systems previously and
is still broken now)

19 years ago * pipe.cc (fhandler_pipe::open): Allow re-opening of /proc/<pid>/fd
Corinna Vinschen [Tue, 1 Feb 2005 16:43:29 +0000 (16:43 +0000)]
* pipe.cc (fhandler_pipe::open):  Allow re-opening of /proc/<pid>/fd
pipes of the current process.

19 years ago * fhandler.cc (fhandler_base::get_proc_fd_name): Don't generate
Corinna Vinschen [Tue, 1 Feb 2005 15:11:47 +0000 (15:11 +0000)]
* fhandler.cc (fhandler_base::get_proc_fd_name): Don't generate
"device:" entry.
* fhandler.h (fhandler_socket::open): New method.
(fhandler_pipe::open): New method.
* fhandler_proc.cc (fhandler_proc::exists): Return -2 in case of
/proc/self.
* fhandler_process.cc (fhandler_process::exists): Return -2 in
case of symlinks, -3 for pipes and -4 for sockets.
(fhandler_process::fstat): Handle pipes and sockets.
(fhandler_process::open): Handle opening /proc/<pid>/fd.
(fhandler_process::fill_filebuf): Generate empty names for
non exisiting file descriptors.
* fhandler_socket.cc (fhandler_socket::get_proc_fd_name): Always
generate "socket:[number]" strings as on Linux.
(fhandler_socket::open): New method.
(fhandler_socket::fstat): Always return socket type.
* path.cc (symlink_info::set): Remove unused second parameter.
(path_conv::check): Handle pipes and sockets in /proc.
Set correct device type for AF_LOCAL sockets.
* pinfo.cc (_pinfo::commune_recv): Generate empty names for
non exisiting file descriptors.
(_pinfo::fd): Ditto.
* pipe.cc (fhandler_pipe::open): New method.

19 years ago * mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
Danny Smith [Tue, 1 Feb 2005 03:51:21 +0000 (03:51 +0000)]
* mingwex/strtold.c (__asctoe64): Set endptr to 'e' if exponent
string is not valid.

19 years agoinclude/
Alan Modra [Tue, 1 Feb 2005 01:11:22 +0000 (01:11 +0000)]
include/
* bfdlink.h (bfd_link_repair_undef_list): Declare.
bfd/
* elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
* linker.c (bfd_link_repair_undef_list): ..to new function, but don't
remove anything but new and undefweak.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
existing _DYNAMIC.
(_bfd_elf_create_dynamic_sections): Formatting.
(bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
(_bfd_elf_merge_symbol): Don't handle as-needed syms here.
(struct elf_smash_data): New.
(elf_smash_syms): New function.
(elf_link_add_object_symbols): Call elf_smash_syms.  Don't add
unneeded dynamic objects to loaded list.
(elf_link_output_extsym): Don't handle as-needed here.  Strip
bfd_link_hash_new symbols.
* elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
delref when dynindx is already -1.
* elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
symbols.
* elfxx-mips.c (mips_elf_output_extsym): Likewise.
ld/
* ld.texinfo: Clarify --as-needed operation.

19 years ago* path.h (path_conv::set_name): Declare new function.
Christopher Faylor [Mon, 31 Jan 2005 21:29:59 +0000 (21:29 +0000)]
* path.h (path_conv::set_name): Declare new function.
* path.cc (path_conv::set_name): Define new function.
* fhandler.h (fhandler_dev_null::open): Declare new function.
* fhandler.cc (fhandler_dev_null::open): Define new function.

19 years ago* smallprint.c (rnarg): Use long rather than unsigned long so that we get
Christopher Faylor [Mon, 31 Jan 2005 20:55:33 +0000 (20:55 +0000)]
* smallprint.c (rnarg): Use long rather than unsigned long so that we get
proper sign extension.

19 years ago2005-01-31 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Mon, 31 Jan 2005 20:29:41 +0000 (20:29 +0000)]
2005-01-31  Andrew Cagney  <cagney@gnu.org>

* gettext.m4: Only set ENABLE_NLS when gettext is present.

19 years ago * cygwinenv.sgml: Add words for (no)traverse option.
Corinna Vinschen [Mon, 31 Jan 2005 20:03:20 +0000 (20:03 +0000)]
* cygwinenv.sgml: Add words for (no)traverse option.

19 years ago * environ.cc (set_traverse): New function.
Corinna Vinschen [Mon, 31 Jan 2005 20:02:36 +0000 (20:02 +0000)]
* environ.cc (set_traverse): New function.
(parse_thing): Add "traverse" option.  Sort options alphabetically.
(environ_init): On NT, switch on traverse checking by default.

19 years ago* smallprint.c (__rn): Regparmize.
Christopher Faylor [Mon, 31 Jan 2005 19:57:05 +0000 (19:57 +0000)]
* smallprint.c (__rn): Regparmize.

19 years ago* smallprint.c (rnarg): New macro.
Christopher Faylor [Mon, 31 Jan 2005 19:52:03 +0000 (19:52 +0000)]
* smallprint.c (rnarg): New macro.
(rnargLL): Ditto.
(__rn): Rename from 'rn', add a mask argument, and use the mask argument to
control how many significant digits to care about.
(__small_vsprintf): Use __rn, rnarg, rnargLL, as appropriate.

19 years ago* pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.
Christopher Faylor [Mon, 31 Jan 2005 14:34:07 +0000 (14:34 +0000)]
* pinfo.cc (pinfo::exit): Only return low-order 16 bits when exiting.

19 years ago * fhandler_process.cc (format_process_maps): Get destbuf argument by
Corinna Vinschen [Mon, 31 Jan 2005 12:02:07 +0000 (12:02 +0000)]
* fhandler_process.cc (format_process_maps): Get destbuf argument by
reference.  Allow resizing of destbuf as necessary.  Fix string
handling.

19 years ago * cygheap.h (class cygheap_fdenum): New class to enumerate used
Corinna Vinschen [Mon, 31 Jan 2005 10:28:55 +0000 (10:28 +0000)]
* cygheap.h (class cygheap_fdenum): New class to enumerate used
fhandlers.
* dtable.h (class dtable): Add cygheap_fdenum as friend class.
* fhandler.h (fhandler_base::get_proc_fd_name): New virtual method
to return a name for /proc/<pid>/fd.
(fhandler_socket::get_proc_fd_name): Ditto.
(fhandler_pipe::get_proc_fd_name): Ditto.
(fhandler_virtual::opendir): Make virtual method.
(fhandler_process::opendir): New method.
* fhandler.cc (fhandler_base::get_proc_fd_name): New method.
* fhandler_process.cc: Include ctype.h.
(PROCESS_FD): Define.
(process_listing): Add "fd".
(fhandler_process::exists): Fix comment.  Return 1 in case of "fd"
directory. Handle files below "fd".
(fhandler_process::fstat): Drop "self" handling.  Set correct link
count for directories.
(fhandler_process::opendir): New method to handle "fd" directory.
(fhandler_process::readdir): Add "fd" handling.
(fhandler_process::open): Drop "self" handling.
(fhandler_process::fill_filebuf): Ditto.  Add "fd" handling.  Fix
"maps" output string.
* fhandler_registry.cc (fhandler_registry::fstat): Set correct link
count for directories.
* fhandler_socket.cc (fhandler_socket::get_proc_fd_name): New method.
* path.cc (symlink_info::set): Fix thinko.
* pinfo.cc (_pinfo::commune_recv): Rename pathbuf to path throughout.
Drop local path variable in PICOM_FIFO case.  Fix debug output.
Close handles as early as possible. Add PICOM_FDS and PICOM_FD
handling.
(_pinfo::commune_send): Add PICOM_FDS and PICOM_FD handling.
(_pinfo::fd): New method.
(_pinfo::fds): New method.
* pinfo.h (enum picom): Add PICOM_FDS and PICOM_FD.
(_pinfo::fd): Declare.
(_pinfo::fds): Declare.
* pipe.cc (fhandler_pipe::get_proc_fd_name): New method.

19 years ago* ntsec.sgml: Add Pierre's Windows 2003 text.
Joshua Daniel Franklin [Sat, 29 Jan 2005 22:35:17 +0000 (22:35 +0000)]
* ntsec.sgml: Add Pierre's Windows 2003 text.

19 years ago * smallprint.c (rn): Change uval to unsigned long long to fix 64 bit
Corinna Vinschen [Sat, 29 Jan 2005 13:34:34 +0000 (13:34 +0000)]
* smallprint.c (rn): Change uval to unsigned long long to fix 64 bit
handling.
* fhandler_process.cc (format_process_maps): Print major, minor and
inode numbers correctly.

19 years ago * autoload.cc (GetModuleFileNameExA): Add.
Corinna Vinschen [Sat, 29 Jan 2005 11:23:07 +0000 (11:23 +0000)]
* autoload.cc (GetModuleFileNameExA): Add.
(GetModuleInformation): Add.
(QueryWorkingSet): Add.
* fhandler.h (fhandler_virtual::get_filebuf): New method.
* fhandler_proc.cc (PROC_SELF): Define.
(proc_fhandlers): Change type of self to FH_PROC.
(fhandler_proc::exists): Return -3 if self.
(fhandler_proc::fstat): Handle self as symlink.
(fhandler_proc::fill_filebuf): Handle self.
* fhandler_process.cc: Include psapi.h.
(PROCESS_EXENAME): Remove.
(PROCESS_MAPS): Define.
(PROCESS_ROOT): Define.
(PROCESS_EXE): Define.
(PROCESS_CWD): Define.
(process_listing): Remove "exename", add "maps, "root", "exe" and
"cwd" elements.
(fhandler_process::exists): Return -2 for symlinks.
(fhandler_process::fstat): Handle symlinks.
(fill_filebuf): Evaluate pid if pid is 0.  Use exename handling for
exe.  Handle maps, root and cwd.
(format_process_maps): New function evaluating "maps".
* path.cc (symlink_info::set): New method to fill symlink_info
with data matching virtual symlinks.
(path_conv::check): Handle virtual symlinks.
* pinfo.cc (_pinfo::commune_recv): Add PICOM_CWD and PICOM_ROOT
handling.
(_pinfo::commune_send): Ditto.
(_pinfo::root): New function.
(_pinfo::cwd): New function.
* pinfo.h (enum picom): Add PICOM_CWD and PICOM_ROOT.
(_pinfo::root): Declare.
(_pinfo::cwd): Declare.

19 years ago* cygthread.cc (new): Add a little more debugging.
Christopher Faylor [Sat, 29 Jan 2005 05:39:07 +0000 (05:39 +0000)]
* cygthread.cc (new): Add a little more debugging.
* thread.cc (pthread_null::exit): Add a _my_tls.remove() for safety.

19 years ago * configure.in (noconfigdirs) <crisv32-*-*>: Match like cris-*-*.
Hans-Peter Nilsson [Sat, 29 Jan 2005 04:24:23 +0000 (04:24 +0000)]
* configure.in (noconfigdirs) <crisv32-*-*>: Match like cris-*-*.
<crisv32-*-*, cris-*-*>: Only disable target-newlib and
target-libgloss when not *-*-elf and *-*-aout.
* configure: Regenerate.

19 years ago* cygtls.cc (cygtls::call2): Move socket cleanup.
Christopher Faylor [Sat, 29 Jan 2005 03:09:50 +0000 (03:09 +0000)]
* cygtls.cc (cygtls::call2): Move socket cleanup.
(cygtls::remove): Move socket cleanup here.  Don't use _my_tls to reference it.

19 years ago * how-using.texinfo: Change text about using shortcuts.
Corinna Vinschen [Fri, 28 Jan 2005 09:10:22 +0000 (09:10 +0000)]
* how-using.texinfo: Change text about using shortcuts.

19 years ago.
Christopher Faylor [Fri, 28 Jan 2005 05:53:22 +0000 (05:53 +0000)]
.

19 years ago * callback.h (struct host_callback_struct): New members pipe,
Hans-Peter Nilsson [Fri, 28 Jan 2005 03:39:28 +0000 (03:39 +0000)]
* callback.h (struct host_callback_struct): New members pipe,
pipe_empty, pipe_nonempty, ispipe, pipe_buffer and
target_sizeof_int.
(CB_SYS_pipe): New macro.

19 years ago * callback.h: Include "bfd.h".
Hans-Peter Nilsson [Fri, 28 Jan 2005 03:27:02 +0000 (03:27 +0000)]
* callback.h: Include "bfd.h".
(struct host_callback_struct): New member target_endian.
(cb_store_target_endian): Declare.

19 years ago2005-01-27 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Thu, 27 Jan 2005 23:54:46 +0000 (23:54 +0000)]
2005-01-27  Hans-Peter Nilsson  <hp@axis.com>

        * configure.host: Add support for cris-*-* and crisv32-*-*.
        * libc/include/machine/ieeefp.h: Ditto.
        * libc/include/machine/setjmp.h: Ditto.
        * libc/machine/cris/configure.in, libc/machine/cris/Makefile.am,
        libc/machine/cris/libcdtor.c, libc/machine/cris/setjmp.c,
        libc/machine/cris/memmove.c, libc/machine/cris/memcpy.c,
        libc/machine/cris/memset.c, libc/machine/cris/include/pthread.h,
        libc/machine/cris/sys/signal.h, libc/machine/cris/sys/fcntl.h,
        libc/machine/cris/sys/errno.h, libc/machine/cris/aclocal.m4,
        libc/machine/cris/configure, libc/machine/cris/Makefile.in: New
        files.

19 years ago2005-01-27 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Thu, 27 Jan 2005 22:57:32 +0000 (22:57 +0000)]
2005-01-27  Hans-Peter Nilsson  <hp@axis.com>

        * configure.in: Support cris-*-* and crisv32-*-*.
        * libnosys/configure.in: Ditto.
        * configure, libnosys/configure: Regenerate.
        * cris: New directory.
        * cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h,
        cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c,
        cris/Makefile.in, cris/setup.S, cris/configure: New files.

19 years ago2005-01-27 Oliver Stoeneberg <oliverst@online.de>
Danny Smith [Thu, 27 Jan 2005 21:04:18 +0000 (21:04 +0000)]
2005-01-27  Oliver Stoeneberg  <oliverst@online.de>

* include/winbase.h (PWIN32_FIND_DATA): Add typedef.

19 years ago2005-01-27 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Thu, 27 Jan 2005 20:52:42 +0000 (20:52 +0000)]
2005-01-27  Hans-Peter Nilsson  <hp@axis.com>

* testsuite/newlib.string/memmove1.c: New test.

19 years agoUpdate previous ChangeLog entry with missing info.
Jeff Johnston [Thu, 27 Jan 2005 20:29:49 +0000 (20:29 +0000)]
Update previous ChangeLog entry with missing info.

19 years ago2005-01-27 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Thu, 27 Jan 2005 20:25:54 +0000 (20:25 +0000)]
2005-01-27  Hans-Peter Nilsson  <hp@axis.com>

        * testsuite/include/check.h: Include stdlib.h.

19 years ago2005-01-27 Hans-Peter Nilsson <hp@axis.com>
Jeff Johnston [Thu, 27 Jan 2005 19:13:54 +0000 (19:13 +0000)]
2005-01-27  Hans-Peter Nilsson  <hp@axis.com>

        * Makefile.am (stmp-targ-include): Support include header files
        from machine directories.
        * Makefile.in: Regenerate.

19 years ago2005-01-27 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Thu, 27 Jan 2005 14:47:56 +0000 (14:47 +0000)]
2005-01-27  Andrew Cagney  <cagney@gnu.org>

* gettext.m4: Don't use NONE as a default for CATOBJEXT.

19 years ago2005-01-26 Oliver Stoeneberg <oliverst@online.de>
Danny Smith [Thu, 27 Jan 2005 00:34:42 +0000 (00:34 +0000)]
2005-01-26  Oliver Stoeneberg  <oliverst@online.de>

* include/malloc.h: Add missing return code defines for
_heapwalk()

19 years ago* pinfo.cc (pinfo::init): Avoid a compiler warning.
Christopher Faylor [Wed, 26 Jan 2005 18:21:22 +0000 (18:21 +0000)]
* pinfo.cc (pinfo::init): Avoid a compiler warning.

19 years ago * syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and
Corinna Vinschen [Wed, 26 Jan 2005 13:07:48 +0000 (13:07 +0000)]
* syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and
setting priority in other Cygwin processes.
(getpriority): Implement PRIO_PGRP, PRIO_USER and getting nice value
from other processes.

19 years ago * include/winuser.h (SW_SMOOTHSCROLL): Add define.
Danny Smith [Wed, 26 Jan 2005 06:25:59 +0000 (06:25 +0000)]
* include/winuser.h (SW_SMOOTHSCROLL): Add define.

19 years ago2005-01-26 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet [Wed, 26 Jan 2005 04:34:19 +0000 (04:34 +0000)]
2005-01-26  Pierre Humblet <pierre.humblet@ieee.org>

* path.cc (path_conv::check): Return ENOTDIR rather than ENOENT
when a component is not a directory. Remove unreachable code.
(digits): Delete.

19 years ago* pinfo.h (pinfo::init): Make third parameter non-optional and propagate change
Christopher Faylor [Wed, 26 Jan 2005 00:15:11 +0000 (00:15 +0000)]
* pinfo.h (pinfo::init): Make third parameter non-optional and propagate change
throughout.
* pinfo.cc (set_myself): Pass INVALID_HANDLE_POINTER if h is NULL.
(pinfo::init): Make third parameter non-optional.  Eliminate use of PID_EXECED
as an argument.  Put setting of handle back inside loop but reorganize to try
to open it only when necessary.

19 years ago * cygwin.din: Export getpriority and setpriority.
Corinna Vinschen [Tue, 25 Jan 2005 22:45:11 +0000 (22:45 +0000)]
* cygwin.din: Export getpriority and setpriority.
* fork.cc (fork_parent): Copy parent's nice value into child.
* spawn.cc (spawn_guts): Ditto.
* miscfuncs.cc (winprio_to_nice): New function.
(nice_to_winprio): Ditto.
* pinfo.cc (pinfo_init): If parent is not a Cygwin process, set
default nice value according to current Win32 priority class.
* pinfo.h (class _pinfo): Add nice member.
* syscalls.cc (setpriority): New function, only implementing
PRIO_PROCESS for now.
(getpriority): Ditto.
(nice): Just call setpriority.
* wincap.h (wincaps::has_extended_priority_class): New element.
* wincap.cc: Implement above element throughout.
* winsup.h: Add prototypes for winprio_to_nice and nice_to_winprio.
* include/limits.h (NZERO): New define.
* include/cygwin/types.h (id_t): New datatype.
* include/cygwin/version.h: Bump API minor version.
* include/sys/resource.h: Add PRIO_XXX defines and prototypes for
getpriority and setpriority.

19 years ago * path.cc (realpath): Allow to expand with .exe suffix.
Corinna Vinschen [Tue, 25 Jan 2005 20:28:40 +0000 (20:28 +0000)]
* path.cc (realpath): Allow to expand with .exe suffix.

19 years agobfd/ChangeLog:
Alexandre Oliva [Tue, 25 Jan 2005 20:22:35 +0000 (20:22 +0000)]
bfd/ChangeLog:
2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
* elf32-frv.c (elf32_frv_relocate_section): Force local binding
for TLSMOFF.
* reloc.c: Add R_FRV_TLSMOFF.
* elf32-frv.c (elf32_frv_howto_table): Likewise.
(frv_reloc_map, frv_reloc_type_lookup): Map it.
(elf32_frv_relocate_section): Handle it.
(elf32_frv_check_relocs): Likewise.
* libbfd.h, bfd-in2.h: Rebuilt.
2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
* elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
when given an undefweak TLS symbol.  Fix constant TLS PLT entries
such that they return the constant in gr9.
(_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
symbols.
(_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
too, such that they shrink on relaxation.
(elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
(_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
if we can guarantee the use of 16-bit constants.
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
Introduce TLS support for FR-V FDPIC.
* reloc.c: Add TLS relocations.
* elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
(elf32_frv_rel_tlsdesc_value_howto): New.
(elf32_frv_rel_tlsoff_howto): New.
(frv_reloc_map): Add new mappings.
(struct frvfdpic_elf_link_hash_table): Add pointer to summary
reloc information.
(frvfdpic_dynamic_got_plt_info): New.
(frvfdpic_plt_tls_ret_offset): New.
(ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
(struct _frvfdpic_dynamic_got_info): Likewise.  Add TLS members.
(struct _frvfdpic_dynamic_got_plt_info): Likewise.
(FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
section as local.
(struct frvfdpic_relocs_info): Add TLS fields.
(frvfdpic_relocs_info_hash): Warning clean up.
(frvfdpic_relocs_info_find): Initialize tlsplt_entry.
(frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
(FRVFDPIC_TLS_BIAS): Define.
(tls_biased_base): New.
(_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
relocations.
(frv_reloc_type_lookup): Likewise.
(frvfdpic_info_to_howto_rel): Likewise.
(elf32_frv_relocate_section): Likewise.
(_frv_create_got_section): Create the PLT section here.
(elf32_frvfdpic_create_dynamic_sections): Not here.
(_frvfdpic_count_nontls_entries): Move out of...
(_frvfdpic_count_got_plt_entries): ... here.
(_frvfdpic_count_tls_entries): Likewise.  Add TLS support.
(_frvfdpic_count_relocs_fixups): Likewise.  Add relaxation
support.
(_frvfdpic_relax_tls_entries): New.
(_frvfdpic_compute_got_alloc_data): Add TLS support.
(_frvfdpic_get_tlsdesc_entry): New.
(_frvfdpic_assign_got_entries): Add TLS support.
(_frvfdpic_assign_plt_entries): Likewise.
(_frvfdpic_reset_got_plt_entries): New.
(_frvfdpic_size_got_plt): Move out of...
(elf32_frvfdpic_size_dynamic_sections): ... here.
(_frvfdpic_relax_got_plt_entries): New.
(elf32_frvfdpic_relax_section): New.
(elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
(elf32_frv_check_relocs): Add TLS support.
(bfd_elf32_bfd_relax_section): Define for FDPIC.
* libbfd.h, bfd-in2.h: Rebuilt.
cpu/ChangeLog:
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* frv.cpu: Add support for TLS annotations in loads and calll.
* frv.opc (parse_symbolic_address): New.
(parse_ldd_annotation): New.
(parse_call_annotation): New.
(parse_ld_annotation): New.
(parse_ulo16, parse_uslo16): Use parse_symbolic_address.
Introduce TLS relocations.
(parse_d12, parse_s12, parse_u12): Likewise.
(parse_uhi16): Likewise.  Fix constant checking on 64-bit host.
(parse_call_label, print_at): New.
gas/ChangeLog:
* config/tc-frv.c (md_apply_fix3): Mark TLS symbols as such.
2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
* config/tc-frv.c (frv_pic_ptr): Add tlsmoff support.
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* cgen.c (gas_cgen_parse_operand): Handle
CGEN_PARSE_OPERAND_SYMBOLIC.
* config/tc-frv.c (md_cgen_lookup_reloc): Handle TLS relocations.
(frv_force_relocation): Likewise.  Fix handling of PIC
relocations.
(md_apply_fix3): Likewise.
include/elf/ChangeLog:
2004-12-10  Alexandre Oliva  <aoliva@redhat.com>
* frv.h: Add R_FRV_TLSMOFF.
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* frv.h: Add TLS relocations.
include/opcode/ChangeLog:
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* cgen.h (enum cgen_parse_operand_type): Add
CGEN_PARSE_OPERAND_SYMBOLIC.
ld/testsuite/ChangeLog:
* ld-frv/fdpic.exp: Add -mfdpic to ASFLAGS.
* ld-frv/tls.exp: Likewise.
2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
* ld-frv/tls-3.s: New.
* ld-frv/tls-static-3.d: New.
* ld-frv/tls-dynamic-3.d: New.
* ld-frv/tls-pie-3.d: New.
* ld-frv/tls-shared-3.d: New.
* ld-frv/tls-relax-static-3.d: New.
* ld-frv/tls-relax-dynamic-3.d: New.
* ld-frv/tls-relax-pie-3.d: New.
* ld-frv/tls-relax-shared-3.d: New.
* ld-frv/tls.exp: Run the new tests.
* ld-frv/tls-dynamic-2.d: Adjust for improved relaxation.
* ld-frv/tls-relax-dynamic-2.d: Likewise.
* ld-frv/tls-relax-initial-shared-2.d: Likewise.
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* ld-frv/tls-1-dep.s: New.
* ld-frv/tls-1-shared.lds: New.
* ld-frv/tls-1.s: New.
* ld-frv/tls-2.s: New.
* ld-frv/tls-dynamic-1.d: New.
* ld-frv/tls-dynamic-2.d: New.
* ld-frv/tls-initial-shared-2.d: New.
* ld-frv/tls-pie-1.d: New.
* ld-frv/tls-relax-dynamic-1.d: New.
* ld-frv/tls-relax-dynamic-2.d: New.
* ld-frv/tls-relax-initial-shared-2.d: New.
* ld-frv/tls-relax-pie-1.d: New.
* ld-frv/tls-relax-shared-1.d: New.
* ld-frv/tls-relax-shared-2.d: New.
* ld-frv/tls-relax-static-1.d: New.
* ld-frv/tls-shared-1-fail.d: New.
* ld-frv/tls-shared-1.d: New.
* ld-frv/tls-shared-2.d: New.
* ld-frv/tls-static-1.d: New.
* ld-frv/tls.exp: New.
* ld-frv/fdpic-pie-1.d: Adjust for 64-bit host.
* ld-frv/fdpic-pie-2.d: Likewise.
* ld-frv/fdpic-pie-6.d: Likewise.
* ld-frv/fdpic-pie-7.d: Likewise.
* ld-frv/fdpic-pie-8.d: Likewise.
* ld-frv/fdpic-shared-1.d: Likewise.
* ld-frv/fdpic-shared-2.d: Likewise.
* ld-frv/fdpic-shared-3.d: Likewise.
* ld-frv/fdpic-shared-4.d: Likewise.
* ld-frv/fdpic-shared-5.d: Likewise.
* ld-frv/fdpic-shared-6.d: Likewise.
* ld-frv/fdpic-shared-7.d: Likewise.
* ld-frv/fdpic-shared-8.d: Likewise.
* ld-frv/fdpic-shared-local-2.d: Likewise.
* ld-frv/fdpic-shared-local-8.d: Likewise.
* ld-frv/fdpic-static-1.d: Likewise.
* ld-frv/fdpic-static-2.d: Likewise.
* ld-frv/fdpic-static-6.d: Likewise.
* ld-frv/fdpic-static-7.d: Likewise.
* ld-frv/fdpic-static-8.d: Likewise.
opcodes/ChangeLog:
2004-11-10  Alexandre Oliva  <aoliva@redhat.com>
* frv-asm.c: Rebuilt.
* frv-desc.c: Rebuilt.
* frv-desc.h: Rebuilt.
* frv-dis.c: Rebuilt.
* frv-ibld.c: Rebuilt.
* frv-opc.c: Rebuilt.
* frv-opc.h: Rebuilt.

19 years ago2005-01-24 Andrew Cagney <cagney@gnu.org>
Andrew Cagney [Mon, 24 Jan 2005 20:00:49 +0000 (20:00 +0000)]
2005-01-24  Andrew Cagney  <cagney@gnu.org>

* gettext.m4: Only fall back to ../intl/ when it's present.

19 years ago2005-01-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 24 Jan 2005 18:46:09 +0000 (18:46 +0000)]
2005-01-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/string.h: Remove Linux-specific declaration of
        strsignal and add #include <sys/string.h>.
        * libc/include/sys/string.h: New file.
        * libc/include/sys/linux/sys/string.h: New file with strsignal
        declaration deleted above.

19 years ago * warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do
Joseph Myers [Sun, 23 Jan 2005 21:05:46 +0000 (21:05 +0000)]
* warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Don't do
anything for non-GCC compilers.

19 years ago* install.texinfo: Add live CD, registry information.
Joshua Daniel Franklin [Sat, 22 Jan 2005 23:39:37 +0000 (23:39 +0000)]
* install.texinfo: Add live CD, registry information.

19 years ago* spawn.cc (spawn_guts): Perform same "cd" as in pinfo::exit below to make sure
Christopher Faylor [Sat, 22 Jan 2005 21:47:04 +0000 (21:47 +0000)]
* spawn.cc (spawn_guts): Perform same "cd" as in pinfo::exit below to make sure
that a stub process does not keep the current working directory busy after the
"execed" process has exited.

19 years ago* pinfo.cc (pinfo::init): Move everything but the MapViewOfFileEx out of the
Christopher Faylor [Sat, 22 Jan 2005 21:17:53 +0000 (21:17 +0000)]
* pinfo.cc (pinfo::init): Move everything but the MapViewOfFileEx out of the
loop since trying multiple times to call CreateFileMapping doesn't make much
sense.  Try to structure the loop a little better so that exiting with a break
does the right thing.
(pinfo::release): Release shared memory area if it exists and close handle if
it exists.

19 years ago* how-programming.texinfo: Add details about building a debugging version of the...
Joshua Daniel Franklin [Sat, 22 Jan 2005 19:12:33 +0000 (19:12 +0000)]
* how-programming.texinfo: Add details about building a debugging version of the DLL.
* how-using.texinfo: Correct rxvt README location.
* install.texinfo: Add mount -m note to uninstall instructions.

19 years ago* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Make sure that process
Christopher Faylor [Sat, 22 Jan 2005 18:07:10 +0000 (18:07 +0000)]
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Make sure that process
has exited before getting an error code.
(pinfo::exit): "cd" to innocuous location before exiting to make sure that
process does not keep the current working directory busy while it is in the
process of really exiting.

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