]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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.

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

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

23 years ago* cygheap.cc (cygheap_fixup_in_child): Attempt Win95 workaround.
Christopher Faylor [Sat, 21 Jul 2001 03:20:01 +0000 (03:20 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Attempt Win95 workaround.
* dtable.cc (dtable::dup_worker): Add debugging output.
(dtable::vfork_child_dup): Correctly set close_on_exec.
* fhandler.cc (fhandler_base::fork_fixup): Don't mess with handle if there is
no need to get it from the parent.
* fhandler_tty.cc (fhandler_tty_common::close): Add debugging output.

23 years agoClone src/config.guess. Mention in MAINTAINERS.
Andrew Cagney [Fri, 20 Jul 2001 20:08:08 +0000 (20:08 +0000)]
Clone src/config.guess.  Mention in MAINTAINERS.

23 years ago * dir.cc (readdir): Protect FindNextFileA against INVALID_HANDLE_VALUE.
Corinna Vinschen [Fri, 20 Jul 2001 07:24:02 +0000 (07:24 +0000)]
    * dir.cc (readdir): Protect FindNextFileA against INVALID_HANDLE_VALUE.

23 years agofix typo.
Christopher Faylor [Thu, 19 Jul 2001 15:27:59 +0000 (15:27 +0000)]
fix typo.

23 years agomerge from gcc
DJ Delorie [Thu, 19 Jul 2001 00:04:11 +0000 (00:04 +0000)]
merge from gcc

23 years ago2001-07-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 18 Jul 2001 21:26:59 +0000 (21:26 +0000)]
2001-07-18  Jeff Johnston  <jjohnstn@redhat.com>

        * hp74x/configure: Regenerated with current autoconf.
        * m32r/configure: Ditto.
        * m68k/configure: Ditto.
        * pa/configure: Ditto.
        * sparc/configure: Ditto.

23 years ago* cygheap.cc (_cmalloc): Use correct constants for size calculation.
Christopher Faylor [Wed, 18 Jul 2001 17:05:34 +0000 (17:05 +0000)]
* cygheap.cc (_cmalloc): Use correct constants for size calculation.
* dcrt0.cc (dll_crt0_1): Move uid initialization earlier.
* fork.cc (fork_parent): Move cygheap_setup_in_child to just prior to
CreateProcess so that all contents of cygheap are copied.
* spawn.cc (spawn_guts): Ditto.

23 years ago * security.cc (get_user_groups): Call Net function with NULL server
Corinna Vinschen [Wed, 18 Jul 2001 12:56:26 +0000 (12:56 +0000)]
    * security.cc (get_user_groups): Call Net function with NULL server
        name under specific error conditions.
        (is_group_member): Ditto.
        (get_user_local_groups): Ditto.
        (get_user_primary_group): Ditto.

23 years ago * syscalls.cc (_unlink): Explicitely check for non-existant file.
Corinna Vinschen [Wed, 18 Jul 2001 11:00:05 +0000 (11:00 +0000)]
    * syscalls.cc (_unlink): Explicitely check for non-existant file.

23 years ago* no need to inform sid@sourceware about dejagnu patches.
Frank Ch. Eigler [Tue, 17 Jul 2001 15:20:21 +0000 (15:20 +0000)]
* no need to inform sid@sourceware about dejagnu patches.

23 years ago * delqueue.h: Remove obsolete file.
Corinna Vinschen [Tue, 17 Jul 2001 08:28:27 +0000 (08:28 +0000)]
* delqueue.h: Remove obsolete file.

23 years ago* child_info.h: Bump magic number.
Christopher Faylor [Tue, 17 Jul 2001 03:41:52 +0000 (03:41 +0000)]
* child_info.h: Bump magic number.
(class child_info): Add an element.
* cygheap.cc (init_cheap): Allocate cygwin heap in shared memory area.
(cygheap_fixup_in_child): Map cygwin heap, passed from parent via shared memory
into correct address.
(cygheap_setup_for_child): New function.
* cygheap.h: Declare new functions.
* dcrt0.cc (dll_crt0_1): Accomodate new cygheap_fixup_in_child arguments.
Avoid protecting subproc_ready unless it is spawn/nowait.
* fork.cc (fork_parent): Use new cygheap_setup_for_child function to setup
cygwin heap info.  Close passed cygheap shared memory handle.
* spawn.cc (spawn_guts): Ditto.  Also, reorganize to avoid synchronization
between parent and child in non-P_OVERLAY case.
* sigproc.cc (wait_sig): Only signal subproc_ready when execing.

23 years agoUpdate local local copies of config.sub and config.guess.
Andrew Cagney [Tue, 17 Jul 2001 00:30:00 +0000 (00:30 +0000)]
Update local local copies of config.sub and config.guess.
Mention those files in MAINTAINERS.

23 years ago * grp.cc: Add missing Copyright date 2001.
Corinna Vinschen [Mon, 16 Jul 2001 13:22:29 +0000 (13:22 +0000)]
    * grp.cc: Add missing Copyright date 2001.

23 years ago Change well_known_admin_sid to well_known_admins_sid throughout.
Corinna Vinschen [Sun, 15 Jul 2001 22:40:07 +0000 (22:40 +0000)]
    Change well_known_admin_sid to well_known_admins_sid throughout.
        * sec_acl.cc (setacl): Never set DELETE permission. Set
        FILE_DELETE_CHILD only on readable and executable directories.
        * sec_helper.cc: Add constructor for `well_known_null_sid'.
        * security.cc (get_nt_attribute): Set S_ISVTX for directories if
        FILE_WRITE_DATA and FILE_EXECUTE but not FILE_DELETE_CHILD is set.
        Add evaluation of S_ISVTX, S_ISGID and S_ISUID from NULL ACE.
        (alloc_sd): Never set DELETE permission. Set FILE_DELETE_CHILD
        only on readable and executable directories.
        Add creation of NULL ACE for S_ISVTX, S_ISGID and S_ISUID permissions.
        * security.h: Add extern declaration for `well_known_null_sid'.

23 years ago * regtool.cc (find_key): Handle keys with only one subkey.
Corinna Vinschen [Sun, 15 Jul 2001 11:27:23 +0000 (11:27 +0000)]
    * regtool.cc (find_key): Handle keys with only one subkey.

23 years ago* syscalls.cc (stat_worker): Simplify previous change.
Christopher Faylor [Sat, 14 Jul 2001 00:09:33 +0000 (00:09 +0000)]
* syscalls.cc (stat_worker): Simplify previous change.

23 years ago* syscalls.cc (_unlink): Correct (?) logic which determines when to report an
Christopher Faylor [Fri, 13 Jul 2001 17:22:15 +0000 (17:22 +0000)]
* syscalls.cc (_unlink): Correct (?) logic which determines when to report an
access violation and when to queue file for eventual deletion.
(stat_worker): Check for invalid buf argument.

23 years ago2001-07-12 Aldy Hernandez <aldyh@redhat.com>
Aldy Hernandez [Fri, 13 Jul 2001 15:41:39 +0000 (15:41 +0000)]
2001-07-12  Aldy Hernandez  <aldyh@redhat.com>

        * libc/machine/mips/setjmp.S: Allow mips16 and mips64 to coexist.

23 years ago2001-07-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 12 Jul 2001 21:20:59 +0000 (21:20 +0000)]
2001-07-12  Jeff Johnston  <jjohnstn@redhat.com>

        * opcode/cgen.h (CGEN_INSN): Add regex support.
        (build_insn_regex): Declare.

23 years ago* some support for funny-endian 16/32-bit insn sets
Frank Ch. Eigler [Thu, 12 Jul 2001 02:32:25 +0000 (02:32 +0000)]
* some support for funny-endian 16/32-bit insn sets

[cgen/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * desc-cpu.scm (-gen-mach-table-defns): Emit fourth field: the
        mach->cpu insn-chunk-bitsize.
        (-gen-cpu-open): In @arch@_cgen_rebuild_tables, process above new
        field toward CGEN_CPU_TABLE->insn_chunk_bitsize.
        * mach.scm (<cpu>): New field insn-chunk-bitsize.
        (-cpu-parse, -cpu-read): Parse/initialize it.
        * doc/rtl.texi (define-cpu): Document it.

[opcodes/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * cgen-dis.in (print_insn): Use cgen_get_insn_value instead of
        bfd_get_bits.
        * cgen-opc.c (cgen_get_insn_value, cgen_put_insn_value): Respect
        non-zero CGEN_CPU_DESC->insn_chunk_bitsize.

[include/opcode/ChangeLog]
2001-07-11  Frank Ch. Eigler  <fche@redhat.com>

        * cgen.h (CGEN_MACH): Add insn_chunk_bitsize field.
        (cgen_cpu_desc): Ditto.

23 years agomerge from gcc
DJ Delorie [Wed, 11 Jul 2001 00:15:17 +0000 (00:15 +0000)]
merge from gcc

23 years ago * mmap.cc (fhandler_disk_file::mmap): Try to open file mappings
Corinna Vinschen [Tue, 10 Jul 2001 21:04:14 +0000 (21:04 +0000)]
    * mmap.cc (fhandler_disk_file::mmap): Try to open file mappings
        by a unified name when running under 9x/ME. If that failes, create
        the file mapping using the unified name.

23 years ago * uinfo.cc (internal_getlogin): Add pointer check.
Corinna Vinschen [Mon, 9 Jul 2001 09:05:17 +0000 (09:05 +0000)]
    * uinfo.cc (internal_getlogin): Add pointer check.

23 years ago * security.cc (alloc_sd): Don't set inheritance attribute for
Corinna Vinschen [Mon, 9 Jul 2001 09:02:41 +0000 (09:02 +0000)]
    * security.cc (alloc_sd): Don't set inheritance attribute for
        permissions given to directories.

23 years ago2001-07-07 Ben Elliston <bje@redhat.com>
Ben Elliston [Fri, 6 Jul 2001 22:14:07 +0000 (22:14 +0000)]
2001-07-07  Ben Elliston  <bje@redhat.com>

* m88k.h: Clean up and reformat. Remove unused code.

23 years agoWinME also affected by missing pipe key
David Starks-Browning [Fri, 6 Jul 2001 00:57:52 +0000 (00:57 +0000)]
WinME also affected by missing pipe key

23 years agoNew entry "Why doesn't Cygwin tcl/tk understand Cygwin paths?"
David Starks-Browning [Fri, 6 Jul 2001 00:40:38 +0000 (00:40 +0000)]
New entry "Why doesn't Cygwin tcl/tk understand Cygwin paths?"

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