]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
19 years ago * fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
Corinna Vinschen [Wed, 2 Mar 2005 08:28:54 +0000 (08:28 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Replace
GetSystemTime/SystemTimeToFileTime with GetSystemTimeAsFileTime.
* times.cc (time_as_timestruc_t): Ditto.
(time): Ditto.

19 years agoPR libgcj/20160
Alexandre Oliva [Tue, 1 Mar 2005 22:33:54 +0000 (22:33 +0000)]
PR libgcj/20160
* ltmain.sh: Avoid creating archives with components that have
duplicate basenames.

19 years ago* include/cygwin/version.h: Bump DLL minor number to 14.
Christopher Faylor [Tue, 1 Mar 2005 20:20:45 +0000 (20:20 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 14.

19 years agomerge from gcc
DJ Delorie [Tue, 1 Mar 2005 14:32:34 +0000 (14:32 +0000)]
merge from gcc

19 years ago * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
Corinna Vinschen [Tue, 1 Mar 2005 11:51:29 +0000 (11:51 +0000)]
* fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set
errno to 0.
(fhandler_dev_clipboard::read): Ditto.
* fhandler_windows.cc (fhandler_windows::read): Ditto.
* scandir.cc (scandir): Ditto.
* syscalls.cc (_fstat64_r): Ditto.
(_fstat_r): Ditto.
(_stat64_r): Ditto.
(_stat_r): Ditto.

* mmap.cc (mmap64): Fix /dev/zero mapping.

19 years ago2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
Paolo Bonzini [Mon, 28 Feb 2005 15:13:42 +0000 (15:13 +0000)]
2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

19 years ago2005-02-28 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Mon, 28 Feb 2005 14:07:03 +0000 (14:07 +0000)]
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

Sync from gcc.

2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR).  Create a symlink for host_subdir.

* Makefile.in: Regenerate.
* configure: Regenerate.

Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

config:
2005-02-28  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.

19 years ago * fhandler.h (class fhandler_socket): Declare new method
Corinna Vinschen [Mon, 28 Feb 2005 13:11:50 +0000 (13:11 +0000)]
* fhandler.h (class fhandler_socket): Declare new method
set_socketpair_eids.
* fhandler_socket.cc (fhandler_socket::set_socketpair_eids): New method.
(fhandler_socket::dup): Duplicate sec_pipe if necessary.
(fhandler_socket::listen): Only create sec_pipe if named pipes are
available. Initialized sec_peer_pid to 0 as on Linux.
(fhandler_socket::connect): Only run eid credential transaction if
named pipes are available.  Fake otherwise. Initialized sec_peer_pid
to 0 as on Linux.
(fhandler_socket::accept): Ditto.
(fhandler_socket::close): Move closing sec_pipe handle from here...
(fhandler_socket::~fhandler_socket): ... to here.
* net.cc (socketpair): Set eid credentials by calling
fhandler_socket::set_socketpair_eids() on both socket ends.
* wincap.h (wincaps::has_named_pipes): New element.
* wincap.cc: Implement above element throughout.

19 years agoremove unneeded blank line
Christopher Faylor [Mon, 28 Feb 2005 01:55:45 +0000 (01:55 +0000)]
remove unneeded blank line

19 years ago* regtool.cc (opts): The argument to 'K' is not optional.
Christopher Faylor [Sun, 27 Feb 2005 17:55:54 +0000 (17:55 +0000)]
* regtool.cc (opts): The argument to 'K' is not optional.
(main): Revert previous change.  Just let getopt deal with missing argument.

19 years ago* regtool.cc (main): Avoid a SEGV when nothing follows -K.
Christopher Faylor [Sun, 27 Feb 2005 06:10:58 +0000 (06:10 +0000)]
* regtool.cc (main): Avoid a SEGV when nothing follows -K.

19 years ago* sigproc.cc (_pinfo::set_ctty): Move function
Christopher Faylor [Sun, 27 Feb 2005 04:30:08 +0000 (04:30 +0000)]
* sigproc.cc (_pinfo::set_ctty): Move function
* pinfo.cc (_pinfo::set_ctty): to here.
* fhandler_mem.cc (fhandler_dev_mem::fstat): Don't fill out structure if this
is an on-disk device rather than an "auto" device.
* fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
* path.cc (normalize_posix_path): Don't treat a standalone '//' as introducing
a UNC path.
(normalize_win32_path): Ditto.

19 years ago* kill (getsig): Avoid buffer overflow when generating a signal name.
Christopher Faylor [Sun, 27 Feb 2005 03:03:19 +0000 (03:03 +0000)]
* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.

19 years ago* debug.cc (delete_handle): Report on handle value in debugging output.
Christopher Faylor [Sat, 26 Feb 2005 20:50:25 +0000 (20:50 +0000)]
* debug.cc (delete_handle): Report on handle value in debugging output.
* pinfo.h (_pinfo::exists): Declare "new" function.
(_pinfo::kill): Ditto.
* fhandler_termios.cc (tty_min::kill_pgrp): Use _pinfo::exists rather than
proc_exists.
* pinfo.cc (pinfo::init): Ditto.  Don't do a low_priority_sleep(0) when looping
to find exec'ed procinfo.
(pinfo::release): Be more careful about unmapping and closing.
* signal.cc (_pinfo::kill): Rename from kill_worker.  Accommodate entry into
_pinfo class.
(kill0): Use _pinfo::kill rather than kill_worker.
(kill_pgrp): Ditto.  Use _pinfo::exists rather than proc_exists.
* sigproc.cc (_pinfo::exists): Rename from proc_exists.
(pid_exists): Use _pinfo::exists rather than proc_exists.
(remove_proc): Ditto.
* sigproc.h (proc_exists): Delete declaration.

19 years ago2005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Fri, 25 Feb 2005 22:38:46 +0000 (22:38 +0000)]
2005-02-25  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libm/common/fdlibm.h (FLT_UWORD_MAX, FLT_UWORD_HALF_MAX): Add
        L qualifier for these long constants.

19 years ago2005-02-25 Eric Blake <ebb9@byu.net>
Jeff Johnston [Fri, 25 Feb 2005 22:31:21 +0000 (22:31 +0000)]
2005-02-25  Eric Blake  <ebb9@byu.net>

        * libc/include/time.h (__tzrule_struct): Make offset long, since
        a 16-bit int overflows on a 12-hour offset.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/mktime.c (mktime): Use new type of __tzrule.offset.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/gettzinfo.c: Ditto.
        * libc/time/strftime.c (strftime): Fix '%x' to deal with negative
        years.  Fix '%z' to use long, not int.

19 years ago * fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
Corinna Vinschen [Fri, 25 Feb 2005 21:23:15 +0000 (21:23 +0000)]
* fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork
with additional flags parameter.  Change offset parameter to _off64_t.
(class fhandler_disk_file): Ditto.
(class fhandler_dev_mem): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork):
Accomodate new parameters.
* mmap.cc: Include ntdll.h.
(class mmap_record): Add flags member.
(mmap_record::mmap_record): Add flags parameter.
(mmap_record::get_flags): New method.
(class map): Add next_anon_addr member to store next anonymous mapping
address suggestion.
(map::get_next_anon_addr): New method.
(map::set_next_anon_addr): New method.
(mmap64): Don't align offset and length to granularity in case of
MAP_ANONYMOUS on NT.  Check for already existing mapping only on 9x.
Call mmap_record::mmap_record with additional flags argument.
(fhandler_base::fixup_mmap_after_fork): Accomodate new parameters.
(fhandler_disk_file::mmap): Use NtMapViewOfSection with
AT_ROUND_TO_PAGE flag for anonymous mappings on NT.  If addr is NULL,
try to map adjacent to previous mapping.
(fhandler_disk_file::fixup_mmap_after_fork): Add flags argument.
Change offset parameter to _off64_t.  Use NtMapViewOfSection to
re-create anonymous mappings on NT.
(fixup_mmaps_after_fork): Accomodate new parameters when calling
fhandler's fixup_mmaps_after_fork function.
* ntdll.h (AT_ROUND_TO_PAGE): New define.

19 years ago * Fix ChangeLog entries.
Corinna Vinschen [Fri, 25 Feb 2005 11:48:02 +0000 (11:48 +0000)]
* Fix ChangeLog entries.

19 years ago * mmap.cc (mmap64): Handle MAP_FIXED request on non-granulation
Corinna Vinschen [Fri, 25 Feb 2005 11:47:17 +0000 (11:47 +0000)]
* mmap.cc (mmap64): Handle MAP_FIXED request on non-granulation
boundary.

19 years ago * mmap.cc (class mmap_record): Declare new map_pages method with
Corinna Vinschen [Fri, 25 Feb 2005 11:15:22 +0000 (11:15 +0000)]
* mmap.cc (class mmap_record): Declare new map_pages method with
address parameter.
(mmap_record::map_pages): New method with address parameter.
(mmap64): Evaluate access mode before checking if already existing
mapping can be used.
Only use existing mapping if requested access mode matches the one
in the existing mapping.
Add check for existing mapping for MAP_FIXED case.

19 years ago * include/wctype.h (wctrans) Remove _CRTIMP.
Danny Smith [Fri, 25 Feb 2005 08:15:46 +0000 (08:15 +0000)]
* include/wctype.h  (wctrans) Remove _CRTIMP.
(towctrans): Likewise.
(wctype): Likewise,

19 years ago * include/wctype.h: Add comment on wctrans, towctrans, wctype.
Danny Smith [Fri, 25 Feb 2005 01:48:38 +0000 (01:48 +0000)]
* include/wctype.h:  Add comment on wctrans, towctrans, wctype.

19 years ago * mingwex/wctype.c: New file.
Danny Smith [Fri, 25 Feb 2005 01:43:43 +0000 (01:43 +0000)]
* mingwex/wctype.c: New file.
* mingwex/wctrans.c: New file.
* mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c.
* mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.

19 years agoAdd (int) cast.
Jeff Johnston [Thu, 24 Feb 2005 19:02:35 +0000 (19:02 +0000)]
Add (int) cast.

19 years ago2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 24 Feb 2005 18:50:06 +0000 (18:50 +0000)]
2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libm/common/s_fpclassify.c: Use __uint32_t instead of int to
        manipulate float values in integer form.
        * libm/common/sf_round.c: Ditto.

19 years ago2005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 24 Feb 2005 18:29:31 +0000 (18:29 +0000)]
2005-02-24  Ralf Corsepious  <ralf.corsepius@rtems.org>

        * libc/include/sys/types.h [__rtems__]: Include new
        header file machine/_types.h.
        * libc/include/machine/types.h: Ditto.
        * libc/sys/rtems/machine/_types.h: New file.

19 years agoFix minor typo
Joshua Daniel Franklin [Thu, 24 Feb 2005 06:14:44 +0000 (06:14 +0000)]
Fix minor typo

19 years ago*README: New file.
Joshua Daniel Franklin [Thu, 24 Feb 2005 05:26:33 +0000 (05:26 +0000)]
*README: New file.

19 years ago* cygpath.cc (usage): Clarify help output to indicate acceptance
Joshua Daniel Franklin [Thu, 24 Feb 2005 04:32:45 +0000 (04:32 +0000)]
* cygpath.cc (usage): Clarify help output to indicate acceptance
of multiple file names as arguments.

19 years ago * libc/include/time.h (_timezone): Change to long also for Cygwin.
Corinna Vinschen [Wed, 23 Feb 2005 22:20:55 +0000 (22:20 +0000)]
* libc/include/time.h (_timezone): Change to long also for Cygwin.
(timezone): Drop cast from definition.

19 years ago * localtime.cc: Implement setting __tzrule's offset member using
Corinna Vinschen [Wed, 23 Feb 2005 22:17:28 +0000 (22:17 +0000)]
* localtime.cc: Implement setting __tzrule's offset member using
newlib's __gettzinfo () interface.
(__tzrule): Remove.
(timezone): Define as long according to POSIX.

19 years ago * devices.cc: Regenerate.
Corinna Vinschen [Wed, 23 Feb 2005 22:14:40 +0000 (22:14 +0000)]
* devices.cc: Regenerate.

19 years ago2005-02-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 23 Feb 2005 19:08:58 +0000 (19:08 +0000)]
2005-02-23  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/time.h [!CYGWIN](_timezone): Change to long.
        (__tzrule_type, __tzinfo_type): New types.
        (__gettzinfo): New function.
        * libc/sys/linux/include/time.h: Ditto.
        * libc/time/Makefile.am: Add gettzinfo.c.
        * libc/time/Makefile.in: Regenerated.
        * libc/time/local.h: Moved __tzrule_type to time.h.
        * libc/time/mktime.c: Call __gettzinfo to reference
        __tznorth, __tzyear, and __tzrule array.
        * libc/time/mktm_r.c: Ditto.
        * libc/time/strftime.c: Ditto.
        * libc/time/tzset_r.c: Ditto.  Also remove definition
        of __tzrule which is now in gettzinfo.c.  Change _timezone
        references to not cast to time_t.
        * libc/time/gettzinfo.c: New file.

19 years ago * devices.in (parsedisk): Fix typo.
Corinna Vinschen [Wed, 23 Feb 2005 17:59:04 +0000 (17:59 +0000)]
* devices.in (parsedisk): Fix typo.

19 years ago * libc/include/sys/unistd.h: Define getpeereid for Cygwin.
Corinna Vinschen [Wed, 23 Feb 2005 17:42:07 +0000 (17:42 +0000)]
* libc/include/sys/unistd.h: Define getpeereid for Cygwin.

19 years ago * cygwin.din (getpeereid): Export.
Corinna Vinschen [Wed, 23 Feb 2005 17:39:46 +0000 (17:39 +0000)]
* cygwin.din (getpeereid): Export.
* fhandler.h (class fhandler_socket): Add pipe and id members to
exchange eid credentials for AF_LOCAL sockets.
(eid_pipe_name): Declare new method.
(getpeereid): Ditto.
* fhandler_socket.cc (fhandler_socket::eid_pipe_name): New method.
(fhandler_socket::fhandler_socket): Initialize sec_pipe.
(fhandler_socket::connect): Exchange eid credentials with accepting
socket process.
(fhandler_socket::listen): Prepare eid credential transaction.
(fhandler_socket::accept): Exchange eid credentials with connecting
socket process.
(fhandler_socket::close): Close eid credentials pipe if open.
(fhandler_socket::getpeereid): New method.
* net.cc (cygwin_getsockopt): Add SO_PEERCRED handling.
(getpeereid): New function.
* include/asm/socket.h (SO_PEERCRED): Define.
* include/cygwin/socket.h (struct ucred): Define new type.
* include/cygwin/version.h: Bump API minor version.

19 years ago * include/sys/statvfs.h (ST_RDONLY): Define.
Corinna Vinschen [Wed, 23 Feb 2005 16:27:54 +0000 (16:27 +0000)]
* include/sys/statvfs.h (ST_RDONLY): Define.
(ST_NOSUID): Define.

19 years ago * cygwin.din (fstatvfs): Export.
Corinna Vinschen [Wed, 23 Feb 2005 13:12:43 +0000 (13:12 +0000)]
* cygwin.din (fstatvfs): Export.
(statvfs): Export.
* syscalls.cc: Include sys/statvfs.h.
(statvfs): New function.  Move statfs functionality here.
(fstatvfs): New function.
(statfs): Just call statvfs and copy structure.  Check validity of
incoming struct statfs pointer.
* include/cygwin/types.h (fsblkcnt_t): Define.
(fsfilcnt_t): Define.
* include/cygwin/version.h: Bump API minor version.
* include/sys/statvfs.h: New file.

19 years ago * devices.h: Switch FH_ZERO and FH_PORT as on Linux. Add FH_FULL.
Corinna Vinschen [Wed, 23 Feb 2005 12:30:31 +0000 (12:30 +0000)]
* devices.h: Switch FH_ZERO and FH_PORT as on Linux.  Add FH_FULL.
* devices.in: Add /dev/full.
* devices.cc: Regenerate.
* dtable.cc (build_fh_pc): Add FH_FULL.
* fhandler.cc (fhandler_base::fstat): Set FH_FULL permission bits
correctly.
* fhandler_zero.cc (fhandler_dev_zero::write): Set errno to ENOSPC
and return -1 if device is FH_FULL.

19 years agoconfigure: Regenerate.
Nick Clifton [Wed, 23 Feb 2005 10:07:06 +0000 (10:07 +0000)]
configure: Regenerate.

19 years ago* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing
Christopher Faylor [Wed, 23 Feb 2005 02:00:48 +0000 (02:00 +0000)]
* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing
cygdrive_root.

19 years ago * cygwin.din (basename): Export.
Corinna Vinschen [Tue, 22 Feb 2005 19:45:41 +0000 (19:45 +0000)]
* cygwin.din (basename): Export.
(dirname): Export.
* path.cc (basename): New function.
(dirname): New function.
* include/libgen.h: New file.
* include/cygwin/version.h: Bump API minor version.

19 years ago * select.cc (peek_pipe): Disable new pipe code until there's
Corinna Vinschen [Tue, 22 Feb 2005 15:39:45 +0000 (15:39 +0000)]
* select.cc (peek_pipe): Disable new pipe code until there's
a working substitute.

19 years ago * include/cygwin/version.h: Fix comment.
Corinna Vinschen [Tue, 22 Feb 2005 15:35:10 +0000 (15:35 +0000)]
* include/cygwin/version.h: Fix comment.

19 years ago * libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
Corinna Vinschen [Tue, 22 Feb 2005 15:31:51 +0000 (15:31 +0000)]
* libc/include/sys/unistd.h: Define fdatasync also for Cygwin.

19 years ago * cygwin.din (fdatasync): Export.
Corinna Vinschen [Tue, 22 Feb 2005 15:30:09 +0000 (15:30 +0000)]
* cygwin.din (fdatasync): Export.
* fhandler.cc (fhandler_base::fsync): Return with EINVAL if no
handle is available.
* syscalls.cc (fdatasync): Create export alias to fsync.
* include/cygwin/version.h: Bump API minor version.

19 years agoAllow darwin targeted ports to build tk, itcl and libgui.
Nick Clifton [Tue, 22 Feb 2005 09:16:10 +0000 (09:16 +0000)]
Allow darwin targeted ports to build tk, itcl and libgui.

19 years ago PR libgcj/10353
Eric Botcazou [Mon, 21 Feb 2005 12:29:05 +0000 (12:29 +0000)]
PR libgcj/10353
* configure.in (noconfigdirs) <sparc-*-solaris2.[0-6]>: Add libgcj.
* configure: Regenerate.

19 years ago * fhandler.h (fhandler_base::fstat_helper): Declare with additional
Corinna Vinschen [Sun, 20 Feb 2005 16:14:53 +0000 (16:14 +0000)]
* fhandler.h (fhandler_base::fstat_helper): Declare with additional
dwVolumeSerialNumber argument.  Drop default values for last three
arguments.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Pass
dwVolumeSerialNumber from GetFileInformationByHandle to fstat_helper.
(fhandler_base::fstat_by_name): Pass pc.volser () to fstat_helper.
Accomodate dropping default values for last three arguments of
fstat_helper.
(fhandler_base::fstat_helper): Add dwVolumeSerialNumber argument.
Use for st_dev member unless 0 in which case pc.volser () is used.

19 years agoinclude/
Alan Modra [Sun, 20 Feb 2005 14:59:05 +0000 (14:59 +0000)]
include/
* xtensa-isa-internal.h (xtensa_length_decode_fn): Warning fix.
* xtensa-isa.h (xtensa_insnbuf_to_chars): Likewise.
(xtensa_insnbuf_from_chars, xtensa_isa_length_from_chars): Likewise.
include/coff/
* xcoff.h (struct xcoff_loader_info): Warning fix.
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
* coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
* coff-rs6000.c (xcoff_write_armap_big): Warning fixes.  Remove
useless assignments.
(xcoff_write_archive_contents_big): Likewise.
(_bfd_xcoff_put_ldsymbol_name): Likewise.
* coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
* coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
* cofflink.c (process_embedded_commands): Warning fixes.
* cpu-arm.c: Delete unnecessary prototypes.  Convert to C90.
Warning fixes.
* dwarf2.c: Warning fixes.
* elf-bfd.h: Likewise.
* elf-eh-frame.c: Likewise.
* elf-strtab.c: Likewise.
* elf.c: Likewise.
* elf32-m68k.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-sh-symbian.c: Likewise.
* elf32-sh.c: Delete unnecessary prototypes.  Warning fixes.
* elf64-sh64.c: Likewise.
* peicode.h: Likewise.
* elf64-mmix.c: Warning fixes.
* elfcode.h: Likewise.
* elfxx-mips.c: Likewise.
* libbfd-in.h: Likewise.
* libbfd.c: Likewise.
* mach-o.c: Likewise.
* merge.c: Likewise.
* mmo.c: Likewise.
* opncls.c: Likewise.
* pef.c: Likewise.
* srec.c: Likewise.
* vms-hdr.c: Likewise.
* vms-tir.c: Likewise.
* xtensa-isa.c: Likewise.
* xtensa-modules.c: Likewise.
* xsym.c: Likewise.
(pstrcmp): Use correct choice of string lengths.  Fix return value.
(bfd_sym_module_name): Correct string length.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.

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.

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