]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years agospace reduction.
Christopher Faylor [Fri, 31 Aug 2001 05:23:04 +0000 (05:23 +0000)]
space reduction.

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

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

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

22 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.

22 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 *.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

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

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

22 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.

22 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'.

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

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

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

22 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.

22 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.

22 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.

22 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.

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

22 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.

22 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.

22 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.

22 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.

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

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

22 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.'

22 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.

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

22 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.

22 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.

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

22 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.

22 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.

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

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

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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'.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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.

22 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???

22 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.

22 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.

22 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.

22 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.

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

22 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.

22 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.

22 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.

22 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.

22 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.

22 years ago * dir.cc (mkdir): Set security attributes correctly for
Corinna Vinschen [Tue, 7 Aug 2001 15:09:54 +0000 (15:09 +0000)]
    * dir.cc (mkdir): Set security attributes correctly for
        CreateDirectoryA () call if ntsec is on. Don't call
        set_file_attributes () then.
        * fhandler.cc (fhandler_base::open): Ditto for CreateFileA () call.
        * path.cc (symlink): Ditto.
        * security.cc (set_security_attribute): New function.
        * security.h: Add declaration for `allow_ntea' and
        `set_security_attribute'.

22 years ago * grp.cc (class grp_check): New class. Make `group_state'
Corinna Vinschen [Tue, 7 Aug 2001 08:56:22 +0000 (08:56 +0000)]
    * grp.cc (class grp_check): New class. Make `group_state'
        a member of class grp_check.
        (read_etc_group): Free former allocated memory on reread.
        * passwd.cc (class pwd_check): New class Make `passwd_state'
        a member of class pwd_check.
        (read_etc_passwd): Free former allocated memory on reread.

22 years ago* fhandler_console.cc (get_tty_stuff): Don't initialize shared memory console
Christopher Faylor [Tue, 7 Aug 2001 05:15:59 +0000 (05:15 +0000)]
* fhandler_console.cc (get_tty_stuff): Don't initialize shared memory console
area if it is already initialized.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Augment debugging info.

22 years ago* cygheap.cc (cygheap_root::set): Avoid treating '/' specially.
Christopher Faylor [Tue, 7 Aug 2001 00:01:42 +0000 (00:01 +0000)]
* cygheap.cc (cygheap_root::set): Avoid treating '/' specially.
* fhandler.cc (fhandler_base::fcntl): Only set specific O_NDELAY style flag
passed in from application.
* fhandler_socket.cc (fhandler_socket::fcntl): Ditto.
* fhandler.h: Set constant for future use.
* winsup.h: Define OLD_O_NDELAY only for old programs.
* include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK.

22 years ago * include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
Earnie Boyd [Sun, 5 Aug 2001 12:52:43 +0000 (12:52 +0000)]
* include/stdlib.h (_wpgmptr): Don't declare ifndef __MSVCRT__.
* include/stdio.h (_IORW): Change constant to 0x0080.
(TMP_MAX): Add new define.
(_P_tmpdir): Ditto.
(_wP_tmpdir): Ditto.
(L_tmpnam): Change constant to 16.
* include/malloc.h: Fix non-ANSI comment after #endif.
* profile/Makefile.in (mkinstalldirs): Correct relative path.

22 years ago * include/wtypes.h: (DECIMAL_SETZERO): Correct typo.
Earnie Boyd [Sun, 5 Aug 2001 12:47:53 +0000 (12:47 +0000)]
* include/wtypes.h: (DECIMAL_SETZERO): Correct typo.
  * include/oleidl.h (ISupportErrorInfo, ICreateInfo): Move from here
* include/oaidl.h: ... to here.
* include/oaidl.h ICreateErrorInfo): Add interface definition.
(IErrorInfo::GetGUID): Change arg to GUID.
(LPSUPPORTERRORINFO): Add typedef.
(IID_ISupportErrorInfo): Change forward decl. of type to IID.
* include/winsock2.h (WSAGET* and WSAMAKE*): Remove duplicate
defines.
* include/commctrl.h (TreeView_SetIndent): Correct typo.
* include/commctrl.h (TBSTYPE_FLAT): Remove define.
* include/commctrl.h (TBBUTTONINFO[AW]): Add struct definitions,
and UNICODE mappings, if _WIN32_IE >= 0x400.
(TBIF_* and TB_SETBUTTONINFO): Add defines, if _WIN32_IE >= 0x400.
(CDIS_*,CDDS_*,CDRF_*) : Add defines.
(tagNMCUSTOMDRAWINFO): Add struct definition and typedefs.
(tagNMLVCUSTOMDRAW): Likewise.
(tagNMTVCUSTOMDRAW): Likewise.
(tagNMLVCACHEHINT): Likewise.
* include/basetsd.h (#include <_mingw.h>): Remove.
(__int64): Define.
* include/wingdi.h (AC_SRC_OVER): Add define.
(struct _BLENDFUNCTION): Add.
* include/shlobj.h:  Add BIF_* defines.
* include/winerror.h (E_PENDING): Add error code define.
* include/basetsd.h (#include <_mingw.h>): Add directive.
* include/winbase.h(InterlockedCompareExchange): Change args
and return value from PVOID to LONG.
(InterlockedExchange): Change first arg to LPLONG.
(InterlockedCompareExchangePointer): New macro.
(InterlockedExchangePointer): New macro.

22 years agoThroughout, change check for running under Windows NT to 'iswinnt'.
Christopher Faylor [Sat, 4 Aug 2001 21:10:52 +0000 (21:10 +0000)]
Throughout, change check for running under Windows NT to 'iswinnt'.
* dcrt0.cc (set_os_type): Set 'iswinnt' appropriately.
* cygheap.cc (init_cheap): Revert to using VirtualAlloc for allocating cygheap.
(cygheap_setup_for_child_cleanup): New function.  Standard function to call
after calling CreateProcess to cleanup cygheap info passed to child.
(cygheap_fixup_in_child): Copy cygheap from shared memory into allocated space
under Windows 9x or if can't relocate shared space under NT.
* cygheap.h: Declare new function.
* spawn.cc (spawn_guts): Use cygheap_fixup_in_child.
* fork.cc (fork_parent): Ditto.
* winsup.h: Declare iswinnt.

22 years ago* dtable.cc (dtable::release): Avoid messing with console when
Egor Duda [Sat, 4 Aug 2001 18:53:53 +0000 (18:53 +0000)]
* dtable.cc (dtable::release): Avoid messing with console when
closing socket.

22 years ago * net.cc (cygwin_accept): Allow NULL peer and len parameters.
Corinna Vinschen [Fri, 3 Aug 2001 12:06:29 +0000 (12:06 +0000)]
    * net.cc (cygwin_accept): Allow NULL peer and len parameters.
        * include/cygwin/socket.h: Define socklen_t as int.

22 years ago * path.cc (fchdir): Set the fhandler's path to absolute value to
Corinna Vinschen [Fri, 3 Aug 2001 11:14:09 +0000 (11:14 +0000)]
    * path.cc (fchdir): Set the fhandler's path to absolute value to
        ensure changing to the correct directory even if the fhandler originally
        points to a relative path.

22 years agomerge from gcc
DJ Delorie [Thu, 2 Aug 2001 23:27:47 +0000 (23:27 +0000)]
merge from gcc

22 years ago * bfdlink.h (struct bfd_link_info): add new boolean
Charles Wilson [Thu, 2 Aug 2001 23:07:10 +0000 (23:07 +0000)]
    * bfdlink.h (struct bfd_link_info): add new boolean
        field pei386_auto_import.

22 years ago2001-08-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 2 Aug 2001 22:28:40 +0000 (22:28 +0000)]
2001-08-02  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdio.h (BUFSIZ): Define to __BUFSIZ__ if provided,
        otherwise default.

22 years ago * security.cc (set_file_attribute): Clean up. Don't call
Corinna Vinschen [Thu, 2 Aug 2001 16:01:47 +0000 (16:01 +0000)]
    * security.cc (set_file_attribute): Clean up. Don't call
        `set_nt_attribute' when ntsec isn't set.

22 years ago2001-08-01 Aldy Hernandez <aldyh@redhat.com>
Aldy Hernandez [Wed, 1 Aug 2001 11:33:45 +0000 (11:33 +0000)]
2001-08-01  Aldy Hernandez  <aldyh@redhat.com>

* include/opcode/mips.h (INSN_ISA_MASK): Nuke bits 12-15.

23 years ago* dcrt0.cc (alloc_stack_hard_way): Make half-hearted attempt to deal with
Christopher Faylor [Sun, 29 Jul 2001 02:33:30 +0000 (02:33 +0000)]
* dcrt0.cc (alloc_stack_hard_way): Make half-hearted attempt to deal with
growing stack under Windows 95.
* Makefile.in: Add install-lib and install-headers.

23 years ago* cygwin.din: Export sys_errlist, sys_nerr.
Christopher Faylor [Fri, 27 Jul 2001 16:33:20 +0000 (16:33 +0000)]
* cygwin.din: Export sys_errlist, sys_nerr.
* include/cygwin/version.h: Bump minor version number.

23 years ago * security.cc (get_user_primary_group): Fix compiler warning.
Corinna Vinschen [Fri, 27 Jul 2001 09:17:57 +0000 (09:17 +0000)]
    * security.cc (get_user_primary_group): Fix compiler warning.
        (alloc_sd): Add DELETE permission for user when S_IWUSR is given.

23 years ago* thread.cc (__pthread_equal): Invert return value so that true is returned
Christopher Faylor [Thu, 26 Jul 2001 20:47:05 +0000 (20:47 +0000)]
* thread.cc (__pthread_equal): Invert return value so that true is returned
when threads are equal.

23 years agoChristopher Faylor <cgf@cygnus.com>
Christopher Faylor [Thu, 26 Jul 2001 20:42:52 +0000 (20:42 +0000)]
Christopher Faylor <cgf@cygnus.com>
* cygwin.din: Export __signgam.
* include/cygwin/version.h: Bump minor version number.

23 years agoThroughout, reorganize header file inclusion to put security.h prior to
Christopher Faylor [Thu, 26 Jul 2001 19:22:24 +0000 (19:22 +0000)]
Throughout, reorganize header file inclusion to put security.h prior to
fhandler.h.
* fhandler.h (fhandler_base::get_inheritance): New method.
* fhandler_socket.cc (fhandler_socket::create_secret_event): Use proper
close-on-exec inheritance when creating.
(fhandler_socket::check_peer_secret_event): Create handle as non-inheritable.

23 years ago* MAINTAINERS: Clarify libiberty merge rules and procedures.
DJ Delorie [Thu, 26 Jul 2001 14:20:05 +0000 (14:20 +0000)]
* MAINTAINERS: Clarify libiberty merge rules and procedures.

23 years ago* syscalls.cc (setsid): Detach process from its console if the current
Christopher Faylor [Thu, 26 Jul 2001 00:10:52 +0000 (00:10 +0000)]
* syscalls.cc (setsid): Detach process from its console if the current
controlling tty is the console and already closed.
* dtable.h (class dtable): Add members to count descriptors referring to the
console.
* dtable.cc (dtable::dec_console_fds): New function to detach process from its
console.
(dtable::release): Decrement the counter of console descriptors.
(dtable::build_fhandler): Increment it.
* exception.cc (ctrl_c_handler): Send SIGTERM to myself when catch
CTRL_SHUTDOWN_EVENT.

23 years agoTue 24 Jul 2001 02:28:00 PM Trevor Forbes <t4bs@hotmail.com>
Robert Collins [Wed, 25 Jul 2001 23:46:25 +0000 (23:46 +0000)]
Tue 24 Jul 2001 02:28:00 PM  Trevor Forbes <t4bs@hotmail.com>

* thread.cc (verifyable_object_isvalid): Don't validate
PTHREAD_MUTEX_INITIALIZER pointer as it will cause an exception
in IsBadWritePtr() when running GDB.

23 years ago * localtime.c: Changed whole file to become C++ clean. Rename to
Corinna Vinschen [Wed, 25 Jul 2001 21:58:21 +0000 (21:58 +0000)]
    * localtime.c: Changed whole file to become C++ clean. Rename to
        localtime.cc.
        * localtime.cc (tzload): Preserve errno.

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