]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years ago2001-09-01 Danny Smith <dannysmith@users.sourceforge.net>
Earnie Boyd [Tue, 4 Sep 2001 14:57:51 +0000 (14:57 +0000)]
2001-09-01  Danny Smith  <dannysmith@users.sourceforge.net>

* include/shlobj.h (CFSTR_* ): Add new defines.
Thanks to: "Ron" <ron@debian.org> .
Unicode them.

23 years ago2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
Corinna Vinschen [Tue, 4 Sep 2001 10:45:54 +0000 (10:45 +0000)]
2001-09-04  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>

        * fhandler_console.cc (fhandler_console::char_command): Save the cursor
        position relative to the top of the window.
        * fhandler_cc (fhandler_console::write): Ditto.

23 years ago* mount.cc (mount_commands): Don't write /cygdrive/u mount points.
Christopher Faylor [Tue, 4 Sep 2001 01:09:39 +0000 (01:09 +0000)]
* mount.cc (mount_commands): Don't write /cygdrive/u mount points.

23 years ago* mount.cc (longopts): Add mount-commands to options list.
Christopher Faylor [Mon, 3 Sep 2001 22:02:54 +0000 (22:02 +0000)]
* mount.cc (longopts): Add mount-commands to options list.
(usage): Add mount-commands option.
(mount_commands): New function.  Write commands to recreate current mounts.

23 years ago*** empty log message ***
Christopher Faylor [Mon, 3 Sep 2001 20:36:52 +0000 (20:36 +0000)]
*** empty log message ***

23 years ago2001-09-03 Jeff Holcomb <jeffh@redhat.com>
Jeff Holcomb [Mon, 3 Sep 2001 19:47:48 +0000 (19:47 +0000)]
2001-09-03  Jeff Holcomb  <jeffh@redhat.com>

        * configure.in: Enable libstdc++-v3 for h8300 targets.

23 years ago * dir.cc (opendir): Write version information to __d_dirent->d_version.
Corinna Vinschen [Mon, 3 Sep 2001 19:06:58 +0000 (19:06 +0000)]
    * dir.cc (opendir): Write version information to __d_dirent->d_version.

23 years ago * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
Corinna Vinschen [Mon, 3 Sep 2001 19:04:05 +0000 (19:04 +0000)]
    * libc/sys/cygwin/sys/dirent.h (struct dirent): Add version number
        field.
        (__DIRENT_VERSION): New define.

23 years ago Add missing ChangeLog entries.
Corinna Vinschen [Mon, 3 Sep 2001 16:39:49 +0000 (16:39 +0000)]
Add missing ChangeLog entries.

23 years ago * cygwin.din: Add `dirfd'.
Corinna Vinschen [Mon, 3 Sep 2001 16:36:54 +0000 (16:36 +0000)]
    * cygwin.din: Add `dirfd'.
        * dir.cc (dirfd): New function.
        (opendir): Open a directory file descriptor and save it in
        __d_dirent->d_fd.
        (closedir): Close directory file descriptor.
        * include/cygwin/version.h: Bump API minor version to 44.

23 years ago * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.
Corinna Vinschen [Mon, 3 Sep 2001 16:33:53 +0000 (16:33 +0000)]
    * libc/sys/cygwin/sys/dirent.h (struct dirent): Add `d_fd' member.

23 years ago* child_info.h: Modify magic number.
Christopher Faylor [Mon, 3 Sep 2001 02:13:05 +0000 (02:13 +0000)]
* child_info.h: Modify magic number.
* dcrt0.cc (_cygwin_testing): Define.
(_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists.
Don't issue "conflicting versions" error if _cygwin_testing is true.
* shared.cc (shared_name): Use _cygwin_testing global rather than testing the
environment.
* syscalls.cc (_write): Remove debugging info.

23 years ago* mount.cc (main): Eliminate excess arguments in printf.
Christopher Faylor [Sat, 1 Sep 2001 19:58:40 +0000 (19:58 +0000)]
* mount.cc (main): Eliminate excess arguments in printf.

23 years ago* include/winnt.h: Use defined(_ANONYMOUS_STRUCT) to determine if anonymous
Christopher Faylor [Sat, 1 Sep 2001 14:42:57 +0000 (14:42 +0000)]
* include/winnt.h: Use defined(_ANONYMOUS_STRUCT) to determine if anonymous
structs are available rather than just testing preprocessor variable directly.

23 years ago* tty.cc (tty::create_inuse): Eliminate unneeded argument.
Christopher Faylor [Sat, 1 Sep 2001 05:38:46 +0000 (05:38 +0000)]
* tty.cc (tty::create_inuse): Eliminate unneeded argument.
* tty.h: Reflect above change.
* fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout.
Always make inuse inheritable.

23 years ago* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
Christopher Faylor [Sat, 1 Sep 2001 05:17:34 +0000 (05:17 +0000)]
* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
(setclexec_pid): New function for marking saved handle as close-on-exec.
(delete_handle): New function.
(debug_fixup_after_fork): New function.
* debug.h: Declare new functions, remove obsolete ones.
* fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles.
* fhandler.cc (fhandler_disk_file::close): Minor reorg.
(fhandler_base::set_inheritance): Set flag appropriately for debugging when
close-on-exec so forked process can delete closed handles.
* tty.h (open_output_mutex): Eliminate unneeded argument.
(open_input_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument
changes.
* fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool.
* tty.cc (tty::get_event): Eliminate unneeded argument.
(tty::common_init): Reflect change to get_event.  Events should always be
inherited.

23 years agomips3264 support
Eric Christopher [Fri, 31 Aug 2001 21:21:54 +0000 (21:21 +0000)]
mips3264 support

23 years ago2001-03-30 Richard Henderson <rth@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 20:18:49 +0000 (20:18 +0000)]
2001-03-30  Richard Henderson  <rth@redhat.com>
    Eric Christopher  <echristo@redhat.com>

* mips/crt0.S: Fix for .init/.fini sections.

23 years ago * security.cc (create_token): Change initialization of `exp' to comply
Corinna Vinschen [Fri, 31 Aug 2001 19:48:34 +0000 (19:48 +0000)]
   * security.cc (create_token): Change initialization of `exp' to comply
        with new LARGE_INTEGER definition in winnt.h.

23 years ago * include/winnt.h: Change definition of `SYSTEM_LUID' to comply
Corinna Vinschen [Fri, 31 Aug 2001 19:48:04 +0000 (19:48 +0000)]
    * include/winnt.h: Change definition of `SYSTEM_LUID' to comply
        with new `LARGE_INTEGER' definition.

23 years ago2001-08-30 Richard Henderson <rth@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 19:22:51 +0000 (19:22 +0000)]
2001-08-30  Richard Henderson  <rth@redhat.com>
    Eric Christopher  <echristo@redhat.com>

* mips/idt.ld: Rewrite for .init/.fini sections.

23 years ago* cygwin.sc: Revert to previous NO_COPY behavior.
Christopher Faylor [Fri, 31 Aug 2001 18:16:16 +0000 (18:16 +0000)]
* cygwin.sc: Revert to previous NO_COPY behavior.
* winsup.h: Ditto.
* sigproc.cc: Ditto.
* autoload.cc: Ditto.

23 years ago2001-08-30 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 06:37:20 +0000 (06:37 +0000)]
2001-08-30  Eric Christopher  <echristo@redhat.com>
    Jason Eckhardt  <jle@redhat.com>

* config.sub: Add support for mipsisa32.

23 years ago2001-08-30 Eric Christopher <echristo@redhat.com>
Eric Christopher [Fri, 31 Aug 2001 05:45:40 +0000 (05:45 +0000)]
2001-08-30  Eric Christopher  <echristo@redhat.com>

* config.sub, config.guess: Import latest from subversions.

23 years agominor wording change.
Christopher Faylor [Fri, 31 Aug 2001 05:24:36 +0000 (05:24 +0000)]
minor wording change.

23 years agospace reduction.
Christopher Faylor [Fri, 31 Aug 2001 05:23:04 +0000 (05:23 +0000)]
space reduction.

23 years agospace reduction.
Christopher Faylor [Fri, 31 Aug 2001 05:17:47 +0000 (05:17 +0000)]
space reduction.

23 years ago* cygwin.sc: New file -- linker script for building cygwin DLL.
Christopher Faylor [Fri, 31 Aug 2001 05:06:14 +0000 (05:06 +0000)]
* cygwin.sc: New file -- linker script for building cygwin DLL.
* Makefile.in: Use linker script to control location of cygheap.
* cygheap.cc (buckets): Make static.
(init_cheap): Remove special iswinnt handling.  Allocate cygheap at a fixed
location.  Display more info when allocation fails.
(cygheap_fixup_in_child): Try harder to move cygheap to correct location.
Display more info when allocation fails.
* fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state.
* net.cc (cygwin_shutdown): Set appropriate shutdown value for future use.
* select.cc (select_stuff::cleanup): New method.
(cygwin_select): Call cleanup explicitly to avoid a race.
(select_stuff:~select_stuff): Call cleanup chain via cleanup method.
(fhandler_socket::select_read): Set *_ready when shutdown has been called on
the socket.
(fhandler_socket::select_write): Ditto.
(fhandler_socket::select_except): Ditto.
* winsup.h: Move NO_COPY to "COMMON" section.
* autoload.cc (wsock_started): Avoid initializing NO_COPY value.
* sigproc.cc: Remove initialization from NO_COPY variables.
(sigproc_init): Initialize sig_loop_wait here, rather than via initialization.
(subproc_init): Initialize proc_loop_wait here, rather than via initialization.

23 years ago* dumper.h: Update copyright notice.
Egor Duda [Thu, 30 Aug 2001 16:47:51 +0000 (16:47 +0000)]
* dumper.h: Update copyright notice.
* dumper.cc: Ditto.
* dumper.cc: (dumper::print_core_section_list): New function.
* dumper.h: (dumper::print_core_section_list): Declare it.
* dumper.cc (print_section_name): New function.
(dumper::collect_process_information): Augment debugging output.
Stop debugee processing if it posts double exception.
(usage): Fix typo in option name.

23 years ago* include/winsock2.h: Remove "extra token" after #endif.
Christopher Faylor [Thu, 30 Aug 2001 13:37:23 +0000 (13:37 +0000)]
* include/winsock2.h: Remove "extra token" after #endif.

23 years ago * select.cc (select_read): Add setting read_ready flag.
Corinna Vinschen [Thu, 30 Aug 2001 08:21:09 +0000 (08:21 +0000)]
    * select.cc (select_read): Add setting read_ready flag.
        (select_write): Add setting write_ready flag.

23 years ago * config.guess: Remove the \r from the end of line.
Earnie Boyd [Thu, 30 Aug 2001 04:29:49 +0000 (04:29 +0000)]
* config.guess: Remove the \r from the end of line.
* config.sub: Ditto.
* include/winnt.h: Allow anonymous struct in [U]LARGE_INTEGER
if __cplusplus as well as if _ANONYMOUS_STRUCT.
* config.guess: Add the MSYS system.
* config.sub: Ditto.
* include/winsock.h: Add the __INSIDE_MSYS__ protections.
* incldue/winsock2.h: Ditto.

23 years ago2001-08-29 Joel Sherrill <joel@OARcorp.com>
Jeff Johnston [Wed, 29 Aug 2001 20:09:31 +0000 (20:09 +0000)]
2001-08-29  Joel Sherrill <joel@OARcorp.com>

        * libc/include/sys/unistd.h: Prototype chroot() for RTEMS.

2001-08-29  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

        * libc/machine/i386/f_atan2.S, libc/machine/i386/f_atan2f.S,
          libc/machine/i386/f_exp.c, libc/machine/i386/f_expf.c,
          libc/machine/i386/f_frexp.S, libc/machine/i386/f_frexpf.S,
          libc/machine/i386/f_ldexp.S, libc/machine/i386/f_ldexpf.S,
          libc/machine/i386/f_log.S, libc/machine/i386/f_log10.S,
          libc/machine/i386/f_log10f.S, libc/machine/i386/f_logf.S,
          libc/machine/i386/f_pow.c, libc/machine/i386/f_powf.c,
          libc/machine/i386/f_tan.S, libc/machine/i386/f_tanf.S:
        Add conditional compilation to avoid HW FPU instructions
        when compiled for soft-float.

23 years agomerge from gcc
DJ Delorie [Wed, 29 Aug 2001 20:03:08 +0000 (20:03 +0000)]
merge from gcc

23 years ago2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Aug 2001 19:55:20 +0000 (19:55 +0000)]
2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>

        * Makefile.am: Add check for ln failing when creating libg.a
        so that cp gets used as a backup.
        * Makefile.in: Regenerated.

23 years ago2001-08-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 29 Aug 2001 19:47:43 +0000 (19:47 +0000)]
2001-08-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/reent.h: Add include of <sys/_types.h>.
        No longer include time.h.  Add struct __tm to use for
        _localtime_buf in the reentrant structure.  Add a
        _NULL definition to use in initializing the reentrant struct.
        * libc/include/sys/config.h: For CYGWIN32 and RTEMS, change
        the _READ_WRITE_RETURN_TYPE to _ssize_t which is found in
        <sys/_types.h>.
        * libc/include/sys/unistd.h: Include <sys/_types.h>.
        * libc/time/lcltime.c (localtime): Cast the reentrant struct
        _localtime_buf to be struct tm *.

23 years ago * h8.h (EF_H8_MACH): New mask for encoded machine type.
Jeff Law [Wed, 29 Aug 2001 17:23:39 +0000 (17:23 +0000)]
    * h8.h (EF_H8_MACH): New mask for encoded machine type.
        (E_H8_MACH_H8300, E_H8_MACH_H8300H, E_H8_MACH_H8300S): New
        machine types.

23 years ago * include\winnt.h: Allow anonymous (Xxx.LowPart) or
Earnie Boyd [Wed, 29 Aug 2001 13:45:46 +0000 (13:45 +0000)]
* include\winnt.h: Allow anonymous (Xxx.LowPart) or
non-anonymous (Xxx.u.LowPart) access to HighPart and
LowPart of a LARGE_INTEGER or ULARGE_INTEGER.
* include/wingdi.h (HANGUL_CHARSET): Add define.

23 years ago * include/stdarg.h (va_list): Typedef as __builtin_va_list if
Earnie Boyd [Wed, 29 Aug 2001 13:43:59 +0000 (13:43 +0000)]
* include/stdarg.h (va_list): Typedef as __builtin_va_list if
__GNUC__ >= 3.
* include/varargs.h (va_list): Ditto.
* include/stdio.h (va_list): Ditto.

23 years ago * configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
Joern Rennecke [Wed, 29 Aug 2001 13:26:32 +0000 (13:26 +0000)]
* configure.host (h8300-*-elf*, h8500-*-elf*): New cases.
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors /
__ctors_end.
* libc/sys/h8300hms/syscalls.c: Include errno.h.
(_unlink): New stub function.

23 years ago* path.cc (path_conv::check): Avoid splitting off leading '/' in path component
Christopher Faylor [Wed, 29 Aug 2001 04:43:19 +0000 (04:43 +0000)]
* path.cc (path_conv::check): Avoid splitting off leading '/' in path component
when building a symlink.

23 years ago * resource.cc (getrlimit): Return actual values on RLIMIT_STACK.
Corinna Vinschen [Tue, 28 Aug 2001 22:48:23 +0000 (22:48 +0000)]
    * resource.cc (getrlimit): Return actual values on RLIMIT_STACK.

23 years ago * h8.h: New file.
Joern Rennecke [Tue, 28 Aug 2001 22:33:27 +0000 (22:33 +0000)]
* h8.h: New file.

23 years agooops
Christopher Faylor [Tue, 28 Aug 2001 20:39:22 +0000 (20:39 +0000)]
oops

23 years ago* dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.
Christopher Faylor [Tue, 28 Aug 2001 20:38:07 +0000 (20:38 +0000)]
* dir.cc (rmdir): Report ENOENT when file doesn't exist rather than ENOTDIR.

23 years ago* mount.cc (main): Issue correct warning for 'not enough arguments'.
Christopher Faylor [Tue, 28 Aug 2001 18:48:38 +0000 (18:48 +0000)]
* mount.cc (main): Issue correct warning for 'not enough arguments'.

23 years agomerge from gcc
DJ Delorie [Mon, 27 Aug 2001 20:04:44 +0000 (20:04 +0000)]
merge from gcc

23 years ago* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
Christopher Faylor [Mon, 27 Aug 2001 15:59:26 +0000 (15:59 +0000)]
* select.cc (cygwin_select): Ensure that arguments are zeroed on timeout.
(select_stuff::wait): Ditto.

23 years ago * ppc.h (PPC_OPERAND_DS): Define.
Alan Modra [Mon, 27 Aug 2001 10:26:57 +0000 (10:26 +0000)]
* ppc.h (PPC_OPERAND_DS): Define.

23 years ago * ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.
Alan Modra [Mon, 27 Aug 2001 10:26:34 +0000 (10:26 +0000)]
* ppc.h: Add relocs from the 64-bit PowerPC ELF ABI revision 1.2.

23 years ago * xcoff.h (struct __rtinit): Make proper prototype for rtl.
Andreas Jaeger [Mon, 27 Aug 2001 09:08:38 +0000 (09:08 +0000)]
* xcoff.h (struct __rtinit): Make proper prototype for rtl.

23 years agoFor include/opcode:
Andreas Jaeger [Sun, 26 Aug 2001 11:47:39 +0000 (11:47 +0000)]
For include/opcode:
* d30v.h: Fix declaration of reg_name_cnt.

* d10v.h: Fix declaration of d10v_reg_name_cnt.

* arc.h: Add prototypes from opcodes/arc-opc.c.

For opcodes:
* tic54x-dis.c: Add unused attributes where needed.

* z8k-dis.c (output_instr): Add unused attribute.

* h8300-dis.c: Add missing prototypes.
(bfd_h8_disassemble): Make static.

* cris-dis.c: Add missing prototype.
* h8500-dis.c: Likewise.
* m68hc11-dis.c: Likewise.
* pj-dis.c: Likewise.
* tic54x-dis.c: Likewise.
* v850-dis.c: Likewise.
* vax-dis.c: Likewise.
* w65-dis.c: Likewise.
* z8k-dis.c: Likewise.

* d10v-dis.c: Add missing prototype.
(dis_long): Remove unused variable.
(dis_2_short): Likewise.

* sh-dis.c: Add missing prototypes.
* v850-opc.c: Likewise.
Add unused attributes where needed.

* ns32k-dis.c: Add missing prototypes.
(bit_extract_simple): Remove unused variable.

23 years ago* libc/include/sys/errno.h: Add a cautionary comment.
Christopher Faylor [Sun, 26 Aug 2001 02:28:33 +0000 (02:28 +0000)]
* libc/include/sys/errno.h: Add a cautionary comment.

23 years ago* syscalls.cc (check_tty_fds): New function. Check whether there is a fd
Christopher Faylor [Sat, 25 Aug 2001 17:27:31 +0000 (17:27 +0000)]
* syscalls.cc (check_tty_fds): New function.  Check whether there is a fd
referring to pty slave.
(setsid): Don't detach console if the process has a pty slave.

23 years agofix compile time warning message
Nick Clifton [Sat, 25 Aug 2001 09:48:13 +0000 (09:48 +0000)]
fix compile time warning message

23 years agoApply H.J.'s patch to revert change to elfxx-target.h
Nick Clifton [Fri, 24 Aug 2001 16:36:01 +0000 (16:36 +0000)]
Apply H.J.'s patch to revert change to elfxx-target.h
Apply my patch to allow SREC as output format.

23 years ago * net.cc (free_addr_list): Add define for symmetry.
Corinna Vinschen [Fri, 24 Aug 2001 06:57:53 +0000 (06:57 +0000)]
    * net.cc (free_addr_list): Add define for symmetry.
        (free_hostent_ptr): Use free_addr_list to free h_addr_list element.
        (dup_addr_list): New static function.
        (dup_hostent_ptr): Use dup_addr_list instead of dup_char_list in order
        to handle embedded null characters.

23 years ago * internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.
Joern Rennecke [Fri, 24 Aug 2001 00:20:01 +0000 (00:20 +0000)]
* internal.h (R_JMP2, R_JMPL2, R_MOVL2): Comment spelling fix.

23 years ago * elf-bfd.h (enum elf_reloc_type_class): New.
Jakub Jelinek [Thu, 23 Aug 2001 15:14:17 +0000 (15:14 +0000)]
* elf-bfd.h (enum elf_reloc_type_class): New.
(struct elf_backend_data): Add elf_backend_reloc_type_class.
(_bfd_elf_reloc_type_class): New.
* elfxx-target.h (elf_backend_reloc_type_class): Define.
(elfNN_bed): Add elf_backend_reloc_type_class.
* elf.c (_bfd_elf_reloc_type_class): New.
* elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_i386_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_sparc_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(sparc64_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
(elfNN_ia64_hash_table_create): Clear ia64_info.
(get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
section.
(elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
instead of looking up section names for DT_TEXTREL.
(elfNN_ia64_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
(struct elf_link_sort_rela): New.
(elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
(elf_bfd_final_link): Call elf_link_sort_relocs.
Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
necessary.

* bfdlink.h (struct bfd_link_info): Add combreloc and
spare_dynamic_tags fields.

* emultempl/elf32.em (place_orphan): Place orphan .rel* sections
into .rel.dyn resp. .rela.dyn if combreloc.
(get_script): If .x linker script is equal to .xn, only put it
once into the binary.
Add .xc and .xsc scripts.
(parse_args): Handle -z combreloc and -z nocombreloc.
* scripttempl/elf.sc (.rela.sbss): Fix a typo.
For .xc and .xsc scripts put all .rel* or .rela* input sections
but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
* genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
is elf.
Strip trailing whitespace from script.
Generate .xc and .xsc scripts if requested.
* ldmain.c (main): Initialize link_info.combreloc and
link_info.spare_dynamic_tags.
* lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
(ld_options): Add --spare-dynamic-tags option.
(parse_args): Likewise.
* ld.texinfo: Document -z combreloc and -z nocombreloc.
* ldint.texinfo: Document .xc and .xsc linker scripts.
* NEWS: Add notes about -z combreloc and SHF_MERGE.

23 years agomerge from gcc
DJ Delorie [Thu, 23 Aug 2001 14:51:49 +0000 (14:51 +0000)]
merge from gcc

23 years ago* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.
Christopher Faylor [Thu, 23 Aug 2001 02:27:01 +0000 (02:27 +0000)]
* dtable.cc (dtable::dup2): Allow extension of fd table by dup2.
* syscalls.cc: Minor code cleanup.
(fpathconf): Check for bad fd before doing anything else.
* termios.cc (tcsetattr): Don't convert to new termios if bad fd.
(tcgetattr): Minor debugging tweak.

23 years ago * net.cc (cygwin_inet_ntoa): Rearrange previous patch to use
Corinna Vinschen [Wed, 22 Aug 2001 21:51:48 +0000 (21:51 +0000)]
    * net.cc (cygwin_inet_ntoa): Rearrange previous patch to use
        thread local buffer space when compiled thread safe.
        (cygwin_getprotobyname): Ditto.
        (cygwin_getprotobynumber): Ditto.
        (cygwin_getservbyname): Ditto.
        (cygwin_getservbyport): Ditto.
        (cygwin_gethostbyname): Ditto.
        (cygwin_gethostbyaddr): Ditto. Move near to cygwin_gethostbyname.
        * thread.h (struct _winsup_t): Add pointers for above used buffer space.
        * passwd.cc (getpwduid): Remove initializing passwd.
        (setpwent): Ditto.
        (endpwent): Ditto.
        (setpassent): Ditto.

23 years ago* smallprint.c (console_printf): New function.
Christopher Faylor [Wed, 22 Aug 2001 17:50:22 +0000 (17:50 +0000)]
* smallprint.c (console_printf): New function.
* dcrt0.cc (dll_crt0_1): Use console_printf for debugging output.
* debug.cc (debug_mark_closed): New function.
(close_handle): Use debug_mark_closed.
* debug.h: Declare new functions.
* dtable.cc (dtable::build_fhandler): Remove unneeded extern.
* spawn.cc: Cosmetic changes.
* winsup.h: Define NO_COPY for C files, too.  Declare a global.

23 years ago * net.cc (free_char_list): New static function.
Corinna Vinschen [Wed, 22 Aug 2001 15:31:59 +0000 (15:31 +0000)]
    * net.cc (free_char_list): New static function.
        (dup_char_list): Ditto.
        (free_protoent_ptr): Ditto.
        (dup_protoent_ptr): Ditto.
        (free_servent_ptr): Ditto.
        (dup_servent_ptr): Ditto.
        (free_hostent_ptr): Ditto.
        (dup_hostent_ptr): Ditto.
        (cygwin_inet_ntoa): Use local static buffer to allow propagating of
        the result to child processes.
        (cygwin_getprotobyname): Ditto.
        (cygwin_getprotobynumber): Ditto.
        (cygwin_getservbyname): Ditto.
        (cygwin_getservbyport): Ditto.
        (cygwin_gethostbyname): Ditto.
        (cygwin_gethostbyaddr): Ditto.

23 years agofix typo.
Christopher Faylor [Wed, 22 Aug 2001 02:40:22 +0000 (02:40 +0000)]
fix typo.

23 years agomerge from gcc
DJ Delorie [Wed, 22 Aug 2001 02:11:38 +0000 (02:11 +0000)]
merge from gcc

23 years ago * mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'
Jonathan Larmour [Wed, 22 Aug 2001 00:22:58 +0000 (00:22 +0000)]
* mips/Makefile.in (jmr3904-io.o): Remove bogus use of `-mips3.'

23 years ago2001-08-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 21 Aug 2001 20:23:16 +0000 (20:23 +0000)]
2001-08-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdlib/mallocr.c [!defined(MALLOC_ALIGNMENT)]: Add conditional
        for SIZE_SZ so that alignment ends up a minimum of 8.

23 years agomerge from gcc
DJ Delorie [Tue, 21 Aug 2001 15:18:37 +0000 (15:18 +0000)]
merge from gcc

23 years ago * include/setupapi.h : New file.
Earnie Boyd [Tue, 21 Aug 2001 13:58:52 +0000 (13:58 +0000)]
* include/setupapi.h : New file.
* lib/setupapi.def:New file.
* lib/test.c: Include setupapi.h.
* include/winioctl.h (_DISK_PERFORMANCE): Correct typo.
* include/richedit.h (ENLINK): Add structure definition.
(EM_AUTOURLDETECT, EN_LINK, ENM_LINK): Add defines.
* include/shlobj.h (CMIC_*): Remove duplicate defines.
(CMDSTR_*): Remove duplicates; UNICODE string constants.
(GCS_*): Make UNICODE.
(CSIDL_*): Add more defines.
* include/winioctl.h (_MEDIA_TYPE): Add pointer typedef.
(_DISK_GEOMETRY): Ditto.
(_DISK_PERFORMANCE): Ditto.
* include/winbase.h (HasOverlappedIoCompleted): Add macro.
* include/winnt.h: Move CHAR, SHORT and LONG typedefs outside
of block protected by #ifndef VOID.
(This reverts 1998-12-01 Anders Norlander change.)
* include/odbcinst.h: End file with newline.
* include/raserror.h: Ditto.
* include/winsock2.h (#include <wtypes.h): Don't.
(_BLOB): Define instead, if not already done.
(__BLOB_T_DEFINED: New define for guarding _BLOB.
* include/wtypes.h (_BLOB): Guard against prior definition.
* include/oaidl.h (tagVARIANT): Mark anonymous structs and unions
 as  __extension__.
(tagTYPEDESC): Ditto.
(_wireBRECORD): Add structure definition.
(_wireSAFEARR_BRECORD): Ditto.
(_wireSAFEARR_HAVEIID): Ditto.
(_wireSAFEARRAY_UNION.u): Add fields SAFEARR_BRECORD RecordStr,
SAFEARR_HAVEIID HaveIidStr.
(tagVariant): Add fields _VARIANT_BOOL bool,*pbool.
(_wireVARIANT): Change field parray to type wirePSAFEARRAY,
pparray to wirePSAFEARRAY*.
(_wireVARIANT): Add field wireBRECORD brecVal.
(wireVARIANT): Change typedef to struct _wireVariant*.
(IRecordInfo): Add interface definition.
(LPRECORDINFO): Add typedef for IRecordInfo*.
(IID_IRecordInfo): Add forward decalaration.
* include/lmcons.h: Guard CNLEN and UNCLEN against prior definition.
* include/nddeapi.h: Likewise.
* ChangeLog: Formatting and typo fixes.

23 years ago* floatformat.h (floatformat_arm_ext): Document as deprecated.
Andrew Cagney [Tue, 21 Aug 2001 00:20:05 +0000 (00:20 +0000)]
* floatformat.h (floatformat_arm_ext): Document as deprecated.
(floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
(floatformat_ia64_spill_little, floatformat_ia64_quad_little)
(floatformat_ia64_spill_big, floatformat_ia64_quad_big)
(floatformat_m88110_harris_ext): Declare.

23 years agodebug
Christopher Faylor [Mon, 20 Aug 2001 16:03:54 +0000 (16:03 +0000)]
debug

23 years ago* cygheap.cc (init_cheap): Allocate cygheap in shared memory for Windows NT.
Christopher Faylor [Mon, 20 Aug 2001 15:58:16 +0000 (15:58 +0000)]
* cygheap.cc (init_cheap): Allocate cygheap in shared memory for Windows NT.

23 years ago * config.sub, config.guess: Import latest from subversions.
Alan Modra [Mon, 20 Aug 2001 03:29:21 +0000 (03:29 +0000)]
* config.sub, config.guess: Import latest from subversions.

23 years agomerge from gcc
DJ Delorie [Sat, 18 Aug 2001 23:47:14 +0000 (23:47 +0000)]
merge from gcc

23 years agomerge from gcc
DJ Delorie [Fri, 17 Aug 2001 06:32:52 +0000 (06:32 +0000)]
merge from gcc

23 years agoAdd support for MIPS R1[02]000 performance counter opcodes.
Thiemo Seufer [Thu, 16 Aug 2001 19:24:33 +0000 (19:24 +0000)]
Add support for MIPS R1[02]000 performance counter opcodes.

23 years ago* fhandler_socket.cc (fhandler_socket::create_secret_event): Relax
Egor Duda [Thu, 16 Aug 2001 14:34:27 +0000 (14:34 +0000)]
* fhandler_socket.cc (fhandler_socket::create_secret_event): Relax
security of secret_event so AF_UNIX socket clients can connect to
servers even if running under a different user account.
(fhandler_socket::check_peer_secret_event): Ditto.

23 years ago * resource.cc (getrlimit): Return getdtablesize () as current limit
Corinna Vinschen [Thu, 16 Aug 2001 14:29:21 +0000 (14:29 +0000)]
    * resource.cc (getrlimit): Return getdtablesize () as current limit
        on RLIMIT_NOFILE.
        * syscalls.cc (getdtablesize): Return OPEN_MAX if current dtable size
        is less than OPEN_MAX, the current dtable size otherwise.
        * sysconf.cc (sysconf): Return getdtablesize () on _SC_OPEN_MAX.

23 years ago * resource.cc (getrlimit): Return OPEN_MAX as current limit
Corinna Vinschen [Thu, 16 Aug 2001 14:20:09 +0000 (14:20 +0000)]
    * resource.cc (getrlimit): Return OPEN_MAX as current limit
        on RLIMIT_NOFILE.
        * syscalls.cc (getdtablesize): Return OPEN_MAX.
        * sysconf.cc (sysconf): Return OPEN_MAX on _SC_OPEN_MAX.
        * include/limits.h (OPEN_MAX): Define as 256.

23 years ago * times.cc (utimes): Revert previous change. Just open the
Corinna Vinschen [Wed, 15 Aug 2001 10:48:43 +0000 (10:48 +0000)]
    * times.cc (utimes): Revert previous change. Just open the
        file using FILE_WRITE_ATTRIBUTES instead of GENERIC_WRITE
        on NT/W2K.

23 years ago * security.cc (set_nt_attribute): Return always -1 in case of
Corinna Vinschen [Wed, 15 Aug 2001 10:21:39 +0000 (10:21 +0000)]
    * security.cc (set_nt_attribute): Return always -1 in case of
        a failure.
        * times.cc (utimes): On NTFS with ntsec ON, change the file's
        security descriptor temporarily to acquire write access if
        opening the file failed.

23 years ago * fhandler.cc (fhandler_base::is_nonblocking): New method.
Corinna Vinschen [Wed, 15 Aug 2001 07:49:15 +0000 (07:49 +0000)]
    * fhandler.cc (fhandler_base::is_nonblocking): New method.
        (fhandler_base::set_nonblocking): Ditto.
        * fhandler.h (fhandler_base): Declare new methods `is_nonblocking' and
        `set_nonblocking'.
        * fhandler_socket.cc (fhandler_socket::ioctl): Use `set_nonblocking'.
        * fhandler_tty.cc (fhandler_pty_master::process_slave_output):
        Use `is_nonblocking'.
        (fhandler_tty_slave::read): Ditto.
        (fhandler_tty_slave::ioctl): Use `set_nonblocking'.
        (fhandler_pty_master::ioctl): Ditto.
        * net.cc (cygwin_sendto): Fallback to winsock 1 functionality
        in case of nonblocking IO.
        (cygwin_recvfrom): Ditto.
        (cygwin_recv): Ditto.
        (cygwin_send): Ditto.
        * syscalls.cc (_read): Use `is_nonblocking'.

23 years ago* cygpath.cc (main): Support -w for Windows (System) directories and return
Christopher Faylor [Wed, 15 Aug 2001 03:24:18 +0000 (03:24 +0000)]
* cygpath.cc (main): Support -w for Windows (System) directories and return
physical correct orthography for the Windows System dir.

23 years ago* include/cygwin/version.h: Bump API version.
Christopher Faylor [Tue, 14 Aug 2001 15:05:43 +0000 (15:05 +0000)]
* include/cygwin/version.h: Bump API version.

23 years ago* spawn.cc (spawn_guts): Enable appropriate privilege before
Egor Duda [Tue, 14 Aug 2001 14:57:44 +0000 (14:57 +0000)]
* spawn.cc (spawn_guts): Enable appropriate privilege before
loading user's registry hive.

23 years ago* libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.
Christopher Faylor [Tue, 14 Aug 2001 14:36:58 +0000 (14:36 +0000)]
* libc/include/machine/setjmp.h: Protect sigsetjmp/siglongjmp macro arguments.
* libc/include/sys/errno.h: Declare sys_errlist and sys_nerr, under Cygwin.

23 years ago * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.
Corinna Vinschen [Tue, 14 Aug 2001 07:41:45 +0000 (07:41 +0000)]
    * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.
        * fhandler.h: Move definitions of O_NOSYMLINK, O_DIROPEN and
        OLD_O_NDELAY from winsup.h to here. Add O_NONBLOCK_MASK define.
        * fhandler_socket.cc (fhandler_socket::close): Add hack to allow
        a graceful shutdown even if shutdown() hasn't been called by the
        application. Add debug output.
        (fhandler_socket::ioctl): Set fhandler's NONBLOCK flag according
        to FIONBIO setting.
        (fhandler_socket::fcntl): Use new O_NONBLOCK_MASK define. Actually
        set `request' before using it.
        * fhandler_tty.cc: Use new O_NONBLOCK_MASK define throughout.
        (fhandler_tty_slave::ioctl): Set fhandler's NONBLOCK flag according
        to FIONBIO setting.
        (fhandler_pty_master::ioctl): Ditto.
        * net.cc (wsock_event::prepare): Compare WSACreateEvent return code
        with `WSA_INVALID_EVENT' according to MSDN.
        * syscalls.cc (_read): Use new O_NONBLOCK_MASK define.

23 years ago2001-08-13 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 13 Aug 2001 22:54:42 +0000 (22:54 +0000)]
2001-08-13  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/malloc.h (M_MXFAST, M_NLBLKS, M_GRAIN, M_KEEP): New
        macro constants for mallopt options.
        (M_TRIM_THRESHOLD, M_TOP_PAD, M_MMAP_THRESHOLD, M_MMAP_MAX): Ditto.

23 years agoOops. Forgot to check in include/wchar.h???
Christopher Faylor [Sat, 11 Aug 2001 01:56:53 +0000 (01:56 +0000)]
Oops.  Forgot to check in include/wchar.h???

23 years ago(lbasename): Change function declaration to return a const char pointer.
Andrew Cagney [Fri, 10 Aug 2001 23:46:15 +0000 (23:46 +0000)]
(lbasename): Change function declaration to return a const char pointer.

23 years ago * opcode/mips.h (INSN_GP32): Remove.
Richard Sandiford [Fri, 10 Aug 2001 16:20:43 +0000 (16:20 +0000)]
* opcode/mips.h (INSN_GP32): Remove.
(OPCODE_IS_MEMBER): Remove gp32 parameter.
(M_MOVE): New macro identifier.

23 years ago * lib/kernels.c: New file.
Earnie Boyd [Fri, 10 Aug 2001 11:52:35 +0000 (11:52 +0000)]
* lib/kernels.c: New file.

23 years ago * lib/test.c (Win32_Winsock): Replace with __USE_W32_SOCKETS.
Earnie Boyd [Fri, 10 Aug 2001 11:51:03 +0000 (11:51 +0000)]
* lib/test.c (Win32_Winsock): Replace with __USE_W32_SOCKETS.
Add more includes of w32api headers.
* include/winnt.h (GetCurrentFiber): Change __inline to __inline__.
Swap asm code with that of GetFiberData.
(GetFiberData): Ditto.
* lib/kernels.c: New file, containing library versions of
GetCurrentFiber and GetFiberData.
* lib/makefile.in: Add kernel32.o as static object to libkernal32.a.

23 years agoRevert 2001-08-08 changes.
Alan Modra [Fri, 10 Aug 2001 01:34:47 +0000 (01:34 +0000)]
Revert 2001-08-08 changes.

23 years ago* include/wchar.h: Define __need_wint_t.
Christopher Faylor [Wed, 8 Aug 2001 19:26:24 +0000 (19:26 +0000)]
* include/wchar.h: Define __need_wint_t.

23 years ago * include/winuser.h (GET_WHEEL_DELTA_WPARAM): Add macro.
Earnie Boyd [Wed, 8 Aug 2001 17:25:23 +0000 (17:25 +0000)]
* include/winuser.h (GET_WHEEL_DELTA_WPARAM): Add macro.
* lib/oleaut32.def: Regenerate.

23 years ago * ppc.h (struct powerpc_operand): New field `reloc'.
Alan Modra [Wed, 8 Aug 2001 13:19:36 +0000 (13:19 +0000)]
* ppc.h (struct powerpc_operand): New field `reloc'.
* ppc-opc.c: Include "bfd.h".
(powerpc_operands): Add new field for reloc type.

23 years ago * security.cc (alloc_sd): Revert to setting inheritance attribute for
Corinna Vinschen [Wed, 8 Aug 2001 10:00:35 +0000 (10:00 +0000)]
    * security.cc (alloc_sd): Revert to setting inheritance attribute for
        permissions given to directories. Never set inheritance on NULL ACE.

23 years ago * security.cc (alloc_sd): Don't set FILE_DELETE_CHILD for group
Corinna Vinschen [Tue, 7 Aug 2001 16:14:59 +0000 (16:14 +0000)]
    * security.cc (alloc_sd): Don't set FILE_DELETE_CHILD for group
        if S_ISVTX attribute is given.
        * dir.cc (mkdir): Allow immediate setting of S_ISUID, S_ISGID and
        S_ISVTX attribute.
        * syscalls.cc (_open): Ditto.

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