]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
14 years ago * path.cc (read_mounts): Skip unnecessary test if path has been
Corinna Vinschen [Wed, 4 Nov 2009 17:09:32 +0000 (17:09 +0000)]
* path.cc (read_mounts): Skip unnecessary test if path has been
fetched from loaded cygwin1.dll.

14 years ago * cygcheck.cc (cygwin_dll_path): New global variable.
Corinna Vinschen [Wed, 4 Nov 2009 17:00:45 +0000 (17:00 +0000)]
* cygcheck.cc (cygwin_dll_path): New global variable.
(load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path.
* strace.cc: Full ditto.
* path.cc (read_mounts): First use the path stored in cygwin_dll_path,
if available.  Then fall back to fetching own path.  Add comment.
Drop printing warnings since they look funny in strace output.

14 years ago * path.cc (read_mounts): First get installation path from own path.
Corinna Vinschen [Wed, 4 Nov 2009 15:47:29 +0000 (15:47 +0000)]
* path.cc (read_mounts): First get installation path from own path.
Check if cygwin1.dll exists in same directory.  Only if not, try to
get installation path from setup registry key.  Add ample warnings.

14 years ago * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.
Corinna Vinschen [Wed, 4 Nov 2009 14:14:52 +0000 (14:14 +0000)]
* Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.

14 years ago * security.cc (alloc_sd): Re-introduce setting the SE_DACL_PROTECTED
Corinna Vinschen [Tue, 3 Nov 2009 09:31:45 +0000 (09:31 +0000)]
* security.cc (alloc_sd): Re-introduce setting the SE_DACL_PROTECTED
flag.  Remove INHERITED_ACE flag from all inherited ACEs.  Add comment.
Fix ace_off counter in unrelated ACE loop.
* wincap.cc: Re-add has_dacl_protect throughout.
* wincap.h: Ditto.

14 years ago * security.cc (alloc_sd): Re-enable generating default permission
Corinna Vinschen [Mon, 2 Nov 2009 20:50:15 +0000 (20:50 +0000)]
* security.cc (alloc_sd): Re-enable generating default permission
entries for directories.

14 years ago * dlfcn.cc (get_full_path_of_dll): Drop enforcing a .dll suffix.
Corinna Vinschen [Mon, 2 Nov 2009 14:39:08 +0000 (14:39 +0000)]
* dlfcn.cc (get_full_path_of_dll): Drop enforcing a .dll suffix.
(dlopen): If last path component has no dot, append one to override
automatic .dll suffix in LoadLibrary.

14 years ago2009-11-02 Paul Brook <paul@codesourcery.com>
Paul Brook [Mon, 2 Nov 2009 13:44:04 +0000 (13:44 +0000)]
2009-11-02  Paul Brook  <paul@codesourcery.com>

ld/testsuite/
* ld-arm/arm-elf.exp: Add new attr-merge-vfp tests.
* ld-arm/attr-merge-vfp-1.d: New test.
* ld-arm/attr-merge-vfp-1r.d: New test.
* ld-arm/attr-merge-vfp-2.d: New test.
* ld-arm/attr-merge-vfp-2r.d: New test.
* ld-arm/attr-merge-vfp-3.d: New test.
* ld-arm/attr-merge-vfp-3r.d: New test.
* ld-arm/attr-merge-vfp-4.d: New test.
* ld-arm/attr-merge-vfp-4r.d: New test.
* ld-arm/attr-merge-vfp-5.d: New test.
* ld-arm/attr-merge-vfp-5r.d: New test.
* ld-arm/attr-merge-vfp-2.s: New test.
* ld-arm/attr-merge-vfp-3.s: New test.
* ld-arm/attr-merge-vfp-3-d16.s: New test.
* ld-arm/attr-merge-vfp-4.s: New test.
* ld-arm/attr-merge-vfp-4-d16.s: New test.

gas/
* doc/c-arm.texi: Document new -mfpu options.
* config/tc-arm.c (fpu_vfp_ext_v3xd, fpu_vfp_fp16, fpu_neon_ext_fma,
fpu_vfp_ext_fma): New.
(NEON_ENC_TAB): Add vfma, vfms, vfnma and vfnms.
(do_vfp_nsyn_fma_fms, do_neon_fmac): New functions.
(insns): Move double precision load/store.  Split out double
precision VFPv3 instrucitons.  Add VFPv4 instructions.
(arm_fpus): Add VFPv3-FP16, VFPv3xD and VFPv4 variants.
(aeabi_set_public_attributes): Set VFPv4 variants

gas/testsuite/
* gas/arm/attr-mfpu-vfpv4.d: New test.
* gas/arm/attr-mfpu-vfpv4-d16.d: New test.
* gas/arm/neon-fma-cov.d: New test.
* gas/arm/neon-fma-cov.s: New test.
* gas/arm/vfp-fma-inc.s: New test.
* gas/arm/vfp-fma-arm.d: New test.
* gas/arm/vfp-fma-arm.s: New test.
* gas/arm/vfp-fma-thumb.d: New test.
* gas/arm/vfp-fma-thumb.s: New test.
* gas/arm/vfma1.d: New test.
* gas/arm/vfma1.s: New test.
* gas/arm/vfpv3xd.d: New test.
* gas/arm/vfpv3xd.s: New test.

include/opcode/
* arm.h (FPU_VFP_EXT_V3xD, FPU_VFP_EXT_FP16, FPU_NEON_EXT_FMA,
FPU_VFP_EXT_FMA, FPU_VFP_V3xD, FPU_VFP_V4D16, FPU_VFP_V4): Define.
(FPU_ARCH_VFP_V3D16_FP16, FPU_ARCH_VFP_V3_FP16, FPU_ARCH_VFP_V3xD,
FPU_ARCH_VFP_V3xD_FP16, FPU_ARCH_VFP_V4, FPU_ARCH_VFP_V4D16,
FPU_ARCH_NEON_VFP_V4): Define.

binutils/
* readelf.c (arm_attr_tag_VFP_arch): Add VFPv4 and VFPv4-D16.

bfd/
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle VFPv4
attributes.

opcodes/
* arm-dis.c (coprocessor_opcodes): Update to use new feature flags.
Add VFPv4 instructions.

14 years agoFinal sync of pseudo-reloc.c with mingw64 and cygwin
Charles Wilson [Mon, 2 Nov 2009 12:16:21 +0000 (12:16 +0000)]
Final sync of pseudo-reloc.c with mingw64 and cygwin

14 years ago * miscfuncs.h (transform_chars): Declare. Define inline variation here.
Corinna Vinschen [Mon, 2 Nov 2009 11:42:04 +0000 (11:42 +0000)]
* miscfuncs.h (transform_chars): Declare.  Define inline variation here.
* mount.cc (mount_info::from_fstab): Remove extern declaration of
transform_chars.
* path.cc (tfx_chars): Move to strfuncs.cc.
(transform_chars): Ditto.
* strfunc.cc (tfx_chars): Moved here from path.cc.
(transform_chars): Ditto.
(sys_cp_wcstombs): Make UNICODE private use area conversion roundtrip
save for all characters.
(sys_cp_mbstowcs): Ditto, by removing special case for UTF-8 sequences
representing U+f0XX UNICODE chars.  Fix typo in comment.

14 years agopath.cc
Corinna Vinschen [Mon, 2 Nov 2009 10:07:26 +0000 (10:07 +0000)]
path.cc

14 years ago * path.cc (tfx_chars): Constify.
Corinna Vinschen [Mon, 2 Nov 2009 09:49:30 +0000 (09:49 +0000)]
* path.cc (tfx_chars): Constify.

14 years ago* Makefile.in: Use utils mingw front-end to generate non-cygwin binary.
Christopher Faylor [Sun, 1 Nov 2009 17:22:44 +0000 (17:22 +0000)]
* Makefile.in: Use utils mingw front-end to generate non-cygwin binary.

14 years ago * new-features.sgml (ov-new1.7-misc): Add installation-specific
Corinna Vinschen [Sat, 31 Oct 2009 13:28:13 +0000 (13:28 +0000)]
* new-features.sgml (ov-new1.7-misc): Add installation-specific
unique object names description.

14 years ago * cygcheck.cc: Include cygprops.h.
Corinna Vinschen [Sat, 31 Oct 2009 13:26:37 +0000 (13:26 +0000)]
* cygcheck.cc: Include cygprops.h.
(del_orphaned_reg): New option variable.
(unique_object_name_opt): Ditto.
(handle_reg_installation): New function.
(print_reg_installations): Ditto.
(del_orphaned_reg_installations): Ditto.
(memmem): Ditto.
(handle_unique_object_name): Ditto.
(dump_sysinfo): Call print_reg_installations from here.
(usage): Add usage for new options --delete-orphaned-installation-keys,
--enable-unique-object-names, --disable-unique-object-names, and
--show-unique-object-names.
(longopts): Add new options --delete-orphaned-installation-keys,
--enable-unique-object-names, --disable-unique-object-names, and
--show-unique-object-names.
(main): Handle new options.
* utils.sgml (cygcheck): Change documentaion accordingly.

14 years ago * transport_pipes.h (PIPE_NAME_PREFIX): New define.
Corinna Vinschen [Sat, 31 Oct 2009 13:24:43 +0000 (13:24 +0000)]
* transport_pipes.h (PIPE_NAME_PREFIX): New define.
(PIPE_NAME_SUFFIX): Ditto.
(class transport_layer_pipes): Convert _pipe_name from char pointer
to wchar_t array.
* transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
Accommodate the fact that _pipe_name is a wchar_t array, rather than
a char pointer.
(transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name
with variable pipe name based in installation key fetched from Cygwin
DLL.
(transport_layer_pipes::accept): Call CreateNamedPipeW explicitely.
(transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW
explicitely.

14 years ago * cygprops.h: New file.
Corinna Vinschen [Sat, 31 Oct 2009 13:24:06 +0000 (13:24 +0000)]
* cygprops.h: New file.
* dtable.cc (handle_to_fn): Add check for correct installation_key
string in object name for pipes and ttys.
* external.cc (cygwin_internal): Add CW_GET_INSTKEY to allow fetching
the installation_key from cygserver.
* fhandler_fifo.cc (fhandler_fifo::fifo_name): Add installation_key
to fifo name.
* globals.cc: Include cygprops.h.
(_RDATA): Move slightly and add comment.
(cygwin_props): Define.
* mount.cc (mount_info::init): Accommodate the fact that
installation_root is now a global variable in DLL common shared memory,
rather than a member of cygwin_shared.
* pipe.cc (fhandler_pipe::create_selectable): Add installation_key to
pipe name.
* shared.cc (installation_root): Define here for storage in DLL
common shared memory.
(installation_key): Ditto.
(installation_key_buf): Ditto.
(init_installation_root): Convert from shared_info method to ordinary
function.  Add initializing installation_key.  Invalidate
installation_key depending of value of disable_key property.  Add
comment to explain.
(get_shared_parent_dir): Add installation_key to directory name.
(get_session_parent_dir): Ditto.
(shared_info::initialize): Move call to init_installation_root from
here...
(memory_init): ...to here.  Add debug output to print installation root
and installation key.  Add comment to explain why.
* shared_info.h (SHARED_INFO_CB): Recalculate.
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Remove definition of installation_root and
declaration of init_installation_root.
(init_installation_root): Declare.
(installation_root): Declare.
(installation_key): Declare.
* uinfo.cc (pwdgrp::load): Accommodate the fact that installation_root
is now a global variable in DLL common shared memory.
* include/cygwin/version.h: Bump API minor number.
(CYGWIN_INFO_INSTALLATIONS_NAME): Add.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_INSTKEY.

14 years ago * sec_helper.cc (security_descriptor::realloc): Call free first if
Corinna Vinschen [Sat, 31 Oct 2009 09:31:47 +0000 (09:31 +0000)]
* sec_helper.cc (security_descriptor::realloc): Call free first if
current security desriptor has been allocated by GetSecurityInfo.

14 years ago * sec_helper.cc (security_descriptor::free): If sd_size is 0, call
Corinna Vinschen [Fri, 30 Oct 2009 19:58:53 +0000 (19:58 +0000)]
* sec_helper.cc (security_descriptor::free): If sd_size is 0, call
LocalFree instead of ::free.

* sec_acl.cc: Throughout replace old ACE flag definitions with current
definitions as used in MSDN man pages.
* security.cc: Ditto.

* fhandler.cc (fhandler_base::open): Make sure file has really been
just created before fixing file permissions.  Add S_JUSTCREATED
attribute to set_file_attribute call.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Always create dir
with default security descriptor and fix descriptor afterwards.
Add S_JUSTCREATED flag to set_file_attribute call.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for AF_LOCAL
socket files.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Call GetSecurityInfo rather than
NtQuerySecurityObject.  Explain why.  Change error handling accordingly.
(alloc_sd): Skip non-inherited, non-standard entries in ACL if
S_JUSTCREATED attribute is set.  Explain why.  Minor format fixes.
* security.h (S_JUSTCREATED): New define.
(security_descriptor::operator=): New operator.

14 years ago * fhandler_random.cc (fhandler_dev_random::lseek): Revert change from
Corinna Vinschen [Fri, 30 Oct 2009 10:53:54 +0000 (10:53 +0000)]
* fhandler_random.cc (fhandler_dev_random::lseek): Revert change from
2009-10-23.

14 years ago * smallprint.cc (hex_str): New const string.
Corinna Vinschen [Fri, 30 Oct 2009 09:02:30 +0000 (09:02 +0000)]
* smallprint.cc (hex_str): New const string.
(__rn): Drop str and use hex_str instead.
(__small_vsprintf): If 'l' modifier has been found, print subsequent
multibyte or wide char string using the s, S, or W options in extended
hex value layout.

* fhandler_disk_file.cc (fhandler_disk_file::readdir): Print WCHAR
and resulting multibyte filename in extended hex value layout in
debug output.

14 years ago * libc/stdio/fflush.c (_fflush_r): Store old errno to check for
Corinna Vinschen [Fri, 30 Oct 2009 08:26:41 +0000 (08:26 +0000)]
* libc/stdio/fflush.c (_fflush_r): Store old errno to check for
low-level seek error condition.  Restore old errno in case of
success.  Don't use new position after seek as error condition,
rather check for return value of -1 and errno.  Handle EINVAL
just like ESPIPE.  Only set fp->_offset if errno is 0.

14 years agoHonor DESTDIR for winsup/mingw and winsup/w32api
Charles Wilson [Thu, 29 Oct 2009 21:53:47 +0000 (21:53 +0000)]
Honor DESTDIR for winsup/mingw and winsup/w32api

14 years ago * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
Corinna Vinschen [Wed, 28 Oct 2009 11:41:27 +0000 (11:41 +0000)]
* cygcheck.cc (pretty_id): Drop arguments.  Don't change CYGWIN
environment variable.
(dump_sysinfo): Don't tweak CYGWIN environment variable, just call
pretty_id once.

14 years ago * pathnames.sgml: Add limitation of case sensitivity with CreateProcess.
Corinna Vinschen [Wed, 28 Oct 2009 10:11:22 +0000 (10:11 +0000)]
* pathnames.sgml: Add limitation of case sensitivity with CreateProcess.

14 years ago * new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" default
Corinna Vinschen [Wed, 28 Oct 2009 10:09:54 +0000 (10:09 +0000)]
* new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" default
and the default locale "C.UTF-8".
* setup2.sgml (setup-locale-ov): Ditto.

14 years ago * MAINTAINERS (ARM): Add myself as an ARM maintainer.
Nick Clifton [Tue, 27 Oct 2009 10:31:06 +0000 (10:31 +0000)]
    * MAINTAINERS (ARM): Add myself as an ARM maintainer.

14 years agoCorrect pseudo-reloc size bug wrt error messages
Charles Wilson [Mon, 26 Oct 2009 14:50:09 +0000 (14:50 +0000)]
Correct pseudo-reloc size bug wrt error messages

14 years agoSync pseudo-reloc.c with mingw64
Charles Wilson [Mon, 26 Oct 2009 13:47:13 +0000 (13:47 +0000)]
Sync pseudo-reloc.c with mingw64

14 years ago* faq-setup.xml: Fix clean_setup.pl reference.
Christopher Faylor [Mon, 26 Oct 2009 11:57:33 +0000 (11:57 +0000)]
* faq-setup.xml: Fix clean_setup.pl reference.

14 years ago* faq-setup.xml: Change clean_setup.pl reference.
Christopher Faylor [Mon, 26 Oct 2009 11:25:16 +0000 (11:25 +0000)]
* faq-setup.xml: Change clean_setup.pl reference.

14 years agonewlib:
Nick Clifton [Mon, 26 Oct 2009 10:05:23 +0000 (10:05 +0000)]
newlib:
        * configure.host: Add support for RX architecture.
        * libc/include/machine/ieeefp.h: Likewise.
        * libc/include/machine/setjmp.h: Likewise.
        * libc/include/machine/configure.in: Likewise.
        * libc/include/machine/configure: Regenerate.
        * libc/machine/rx: New directory.
        * libc/machine/rx/*: New files to support RX architecture.

libgloss:
        * configure.in: Add support for RX sub-directory.
        * configure: Regenerate.
        * rx: New directory.
        * rx/*: New files to support RX architecture.

14 years ago * arm/linux-syscalls0.S (SYSCALL0, SYSCALL3, SYSCALL6, SYSCALL4):
Nick Clifton [Mon, 26 Oct 2009 10:00:41 +0000 (10:00 +0000)]
    * arm/linux-syscalls0.S (SYSCALL0, SYSCALL3, SYSCALL6, SYSCALL4):
        Delete Thumb definitions - the ARM versions work correctly in
        Thumb mode.

14 years agoSync pseudo-reloc.c with mingw64
Charles Wilson [Sun, 25 Oct 2009 23:37:48 +0000 (23:37 +0000)]
Sync pseudo-reloc.c with mingw64

14 years agoFix isalpha(0x100000001LL) and friends on 64-bit machines.
Eric Blake [Sat, 24 Oct 2009 13:24:29 +0000 (13:24 +0000)]
Fix isalpha(0x100000001LL) and friends on 64-bit machines.

* libc/include/ctype.h (__ctype_lookup): New macro.
(isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
(isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
on 64-bit machines.

14 years ago * fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
Corinna Vinschen [Sat, 24 Oct 2009 08:40:15 +0000 (08:40 +0000)]
* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.

14 years ago * fhandler.cc (fhandler_base::open): Always create file with default
Corinna Vinschen [Sat, 24 Oct 2009 08:26:01 +0000 (08:26 +0000)]
* fhandler.cc (fhandler_base::open): Always create file with default
security descriptor and fix descriptor afterwards.  Change comment to
explain why.
* security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag.
* wincap.cc: Remove has_dacl_protect throughout.
* wincap.h: Ditto.

14 years ago cpu/
Doug Evans [Sat, 24 Oct 2009 00:17:08 +0000 (00:17 +0000)]
cpu/
* m32c.opc (opc.h): cgen-types.h -> cgen/basic-modes.h.
cgen-ops.h -> cgen/basic-ops.h.

include/opcode/
* cgen-bitset.h: Delete, moved to ../cgen/bitset.h.
* cgen.h: Update.  Improve multi-inclusion macro name.

include/cgen/
* basic-modes.h: New file.  Moved here from opcodes/cgen-types.h.
* basic-ops.h: New file.  Moved here from opcodes/cgen-ops.h.
* bitset.h: New file.  Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.

opcodes/
* cgen-ops.h: Delete, moved to ../include/cgen/basic-ops.h.
* cgen-types.h: Delete, moved to ../include/cgen/basic-modes.h.
* cgen-bitset.c: Update.
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-opc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.

14 years agoSync pseudo-reloc.c with cygwin/lib/
Charles Wilson [Fri, 23 Oct 2009 22:19:42 +0000 (22:19 +0000)]
Sync pseudo-reloc.c with cygwin/lib/

14 years ago2009-10-23 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Fri, 23 Oct 2009 15:06:33 +0000 (15:06 +0000)]
2009-10-23  Kai Tietz  <kai.tietz@onevision.com>

* splay-tree.h (libi_uhostptr_t): Add gcc specific
__extension__ for long long type case to silent cX9.
(libi_shostptr_t): Likewise.

14 years ago * fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
Corinna Vinschen [Fri, 23 Oct 2009 09:22:14 +0000 (09:22 +0000)]
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
dummy file positions as on Linux.

14 years ago2009-10-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 20 Oct 2009 22:44:28 +0000 (22:44 +0000)]
2009-10-20  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: Don't set -O2 flag in newlib_cflags.  Leave
        that to CFLAGS.
        * acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
        as it sets the same flags as we are using.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * Makefile.in: Ditto.
        * iconvdata/aclocal.m4: Ditto.
        * iconvdata/configure: Ditto.
        * iconvdata/Makefile.in: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * doc/Makefile.in: Ditto.
        * libc/aclocal.m4: Ditto.
        * libc/configure: Ditto.
        * libc/Makefile.in: Ditto.
        * libc/*Makefile.in: Ditto.
        * libc/*aclocal.m4: Ditto.
        * libc/*configure: Ditto.
        * libm/*Makefile.in: Ditto.
        * libm/*aclocal.m4: Ditto.
        * libm/*configure: Ditto.

14 years ago2009-10-16 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 20 Oct 2009 16:44:11 +0000 (16:44 +0000)]
2009-10-16  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
        if not __STRICT_ANSI__ or stdc version C99 or greater.
        * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
        for fseeko and ftello prototypes.

14 years ago * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
Corinna Vinschen [Tue, 20 Oct 2009 15:26:33 +0000 (15:26 +0000)]
* cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.

14 years ago * registry.cc (reg_key::get_int): Add alternative implementation
Corinna Vinschen [Tue, 20 Oct 2009 14:54:47 +0000 (14:54 +0000)]
* registry.cc (reg_key::get_int): Add alternative implementation
taking WCHAR strings.
(reg_key::set_int): Ditto.
(reg_key::get_string): Ditto.
(reg_key::set_string): Ditto.
* registry.h (struct reg_key): Add prototypes for added methods.

14 years ago * smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
Corinna Vinschen [Tue, 20 Oct 2009 14:52:43 +0000 (14:52 +0000)]
* smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
and allow empty strings.

14 years ago * fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
Corinna Vinschen [Tue, 20 Oct 2009 10:12:05 +0000 (10:12 +0000)]
* fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
code STATUS_NOT_SUPPORTED.  Add matching comment.

14 years ago * syscalls.cc (internal_setlocale): Only convert $PATH if there is a
Corinna Vinschen [Mon, 19 Oct 2009 19:47:15 +0000 (19:47 +0000)]
* syscalls.cc (internal_setlocale): Only convert $PATH if there is a
$PATH.

14 years agomerge from gcc
DJ Delorie [Mon, 19 Oct 2009 18:14:24 +0000 (18:14 +0000)]
merge from gcc

14 years ago * spawn.cc (av::fixup): Treat non-readable, but executable files as
Corinna Vinschen [Mon, 19 Oct 2009 08:33:00 +0000 (08:33 +0000)]
* spawn.cc (av::fixup): Treat non-readable, but executable files as
Cygwin executables.

14 years ago * uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
Corinna Vinschen [Sun, 18 Oct 2009 09:07:13 +0000 (09:07 +0000)]
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
not in a setuid condition.

14 years ago * z80.h: Store alignment requirement in section header, to allow
Arnold Metselaar [Sat, 17 Oct 2009 18:23:12 +0000 (18:23 +0000)]
* z80.h: Store alignment requirement in section header, to allow
ld to preserve alignment. Some code was copied from ti.h.

14 years agomerge from gcc
DJ Delorie [Thu, 15 Oct 2009 17:03:34 +0000 (17:03 +0000)]
merge from gcc

14 years ago * cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
Corinna Vinschen [Thu, 15 Oct 2009 11:40:02 +0000 (11:40 +0000)]
* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
using my_wcstombs.
(get_user_folder): Remove.
(do_sysfolders): Use get_special_folder instead of get_user_folder.
Fetch system paths as WCHAR and convert using my_wcstombs.

14 years ago * faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
Corinna Vinschen [Thu, 15 Oct 2009 08:46:58 +0000 (08:46 +0000)]
* faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
clean_setup.pl script.

14 years ago * libc/include/wchar.h (struct tm0: Declare as incomplete type.
Corinna Vinschen [Thu, 15 Oct 2009 08:23:27 +0000 (08:23 +0000)]
* libc/include/wchar.h (struct tm0: Declare as incomplete type.

14 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
Corinna Vinschen [Thu, 15 Oct 2009 08:08:50 +0000 (08:08 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
exception for KOI8 charsets.

14 years agoinclude/
Alan Modra [Wed, 14 Oct 2009 05:54:28 +0000 (05:54 +0000)]
include/
* bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from
bfd_link_common_skip_ar_aymbols.
(struct bfd_link_info): Here too.
bfd/
* aoutx.h (aout_link_check_ar_symbols): Typo fix.
ld/
* emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.

14 years agoConsistently use va_end.
Eric Blake [Wed, 14 Oct 2009 04:17:05 +0000 (04:17 +0000)]
Consistently use va_end.

* external.cc (cygwin_internal): Use va_end.
* fork.cc (child_copy): Likewise.
* libc/bsdlib.cc (warn, warnx, err, errx): Likewise.
* pinfo.cc (commune_request): Likewise.
* strace.cc (strace::prntf, strace_printf): Likewise.

14 years ago* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
Eric Blake [Wed, 14 Oct 2009 04:15:25 +0000 (04:15 +0000)]
* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
new to POSIX 2008.

14 years ago2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston [Tue, 13 Oct 2009 17:31:49 +0000 (17:31 +0000)]
2009-10-13  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

        * libc/include/sys/signal.h: Include <sys/types.h> always.
        [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
        standards.

14 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Corinna Vinschen [Tue, 13 Oct 2009 12:08:22 +0000 (12:08 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

14 years ago * include/sys/cygwin.h: Add new cygwin_getinfo_type
Corinna Vinschen [Tue, 13 Oct 2009 10:23:31 +0000 (10:23 +0000)]
* include/sys/cygwin.h: Add new cygwin_getinfo_type
CW_SET_EXTERNAL_TOKEN.
Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED.
* cygheap.h (cyguser): New flags ext_token_is_restricted,
curr_token_is_restricted and setuid_to_restricted.
* external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN.
* sec_auth.cc (set_imp_token): New function.
(cygwin_set_impersonation_token): Call set_imp_token ().
* security.h (set_imp_token): New prototype.
* spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token
was enabled by setuid().  Do not create new window station in this case.
* syscalls.cc (seteuid32): Add handling of restricted external tokens.
Set HANDLE_FLAG_INHERIT for primary token.
(setuid32): Set setuid_to_restricted flag.
* uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was
enabled by setuid ().  Initialize user.*_restricted flags.

14 years agoFix toplevel 'config.status --recheck' for --enable-lto.
Ralf Wildenhues [Tue, 13 Oct 2009 03:32:18 +0000 (03:32 +0000)]
Fix toplevel 'config.status --recheck' for --enable-lto.

/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.

14 years agoImprove clock_gettime and utimensat resolution.
Eric Blake [Tue, 13 Oct 2009 02:26:33 +0000 (02:26 +0000)]
Improve clock_gettime and utimensat resolution.

* hires.h (hires_ms): Change initime_us to initime_ns, with 10x
more resolution.
(hires_ms::nsecs): New prototype.
(hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust.
* times.cc (systime_ns): New helper function.
(hires_ms::prime): Use it for more resolution.
(hires_ms::usecs): Change to...
(hires_ms::nsecs): ...with more resolution.
(clock_gettime): Use more resolution.
(systime): Rewrite in terms of systime_ns.
(timespec_to_filetime): Rewrite math to reflect true operation.
* fhandler_disk_file.cc (utimens_fs): Use higher resolution.

14 years ago * external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
Corinna Vinschen [Mon, 12 Oct 2009 19:26:08 +0000 (19:26 +0000)]
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
and CW_SETERRNO cases.

14 years ago * kill.cc (main): Skip to PID loop on invalid option to handle
Corinna Vinschen [Mon, 12 Oct 2009 16:01:44 +0000 (16:01 +0000)]
* kill.cc (main): Skip to PID loop on invalid option to handle
negative pids there.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
Corinna Vinschen [Mon, 12 Oct 2009 11:57:29 +0000 (11:57 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
if the original device had one, too.  Add comment.

* fhandler_socket.cc (fhandler_socket::fstat): Always return a size of
0 on sockets.

14 years ago2009-10-09 Dave Korn <dave.korn@artimi.com>
Jeff Johnston [Fri, 9 Oct 2009 18:43:12 +0000 (18:43 +0000)]
2009-10-09  Dave Korn  <dave.korn@artimi.com>

        * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
        defining struct timeval.

14 years agomerge from gcc
DJ Delorie [Fri, 9 Oct 2009 16:17:35 +0000 (16:17 +0000)]
merge from gcc

14 years ago * pathnames.sgml (pathnames-specialchars): Add control chars to the
Corinna Vinschen [Fri, 9 Oct 2009 11:19:18 +0000 (11:19 +0000)]
* pathnames.sgml (pathnames-specialchars): Add control chars to the
list.  Explain backslash exception.

14 years ago * path.cc (tfx_chars): Convert all ASCII control characters except
Corinna Vinschen [Fri, 9 Oct 2009 11:17:17 +0000 (11:17 +0000)]
* path.cc (tfx_chars): Convert all ASCII control characters except
ASCII NUL as well.  Change layout to make the conversions more clear.
Add comment.

14 years ago * include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
Corinna Vinschen [Fri, 9 Oct 2009 08:36:21 +0000 (08:36 +0000)]
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".

14 years ago * libc/locale/locale.c (DEFAULT_LOCALE): New define.
Corinna Vinschen [Fri, 9 Oct 2009 08:25:28 +0000 (08:25 +0000)]
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
(__default_locale): New global variable set to the default locale.
(__get_locale_env): Return __default_locale rather than fixed "C".

14 years ago2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 8 Oct 2009 16:44:10 +0000 (16:44 +0000)]
2009-10-08  Jeff Johnston  <jjohnstn@redhat.com>

        * configure.host: For RTEMS, define HAVE_ASSERT_FUNC.
        * libc/stdlib/assert.c (_assert_func): Do not specify
        __assert_func if HAVE_ASSERT_FUNC flag is set.

14 years ago2009-10-08 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston [Thu, 8 Oct 2009 16:35:34 +0000 (16:35 +0000)]
2009-10-08  Jie Zhang  <jie.zhang@analog.com>

        * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
        -mcpu=bf532-any for the default multilib.

14 years ago2009-10-08 Eric Blake <ebb9@byu.net>
Jeff Johnston [Thu, 8 Oct 2009 16:26:28 +0000 (16:26 +0000)]
2009-10-08  Eric Blake  <ebb9@byu.net>

        * libc/include/getopt.h (__getopt_r, __getopt_long_r)
        (__getopt_long_only_r): Protect declarations, to avoid compiler
        warning.

14 years ago* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
Christopher Faylor [Thu, 8 Oct 2009 15:56:14 +0000 (15:56 +0000)]
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
if we're exiting.

14 years ago* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
Eric Blake [Thu, 8 Oct 2009 11:13:45 +0000 (11:13 +0000)]
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.

14 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
Corinna Vinschen [Wed, 7 Oct 2009 16:45:23 +0000 (16:45 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
charset on Cygwin.

14 years agoSupport pseudo-reloc version 2
Charles Wilson [Wed, 7 Oct 2009 15:47:38 +0000 (15:47 +0000)]
Support pseudo-reloc version 2

14 years ago * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
Corinna Vinschen [Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)]
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
as well.

14 years ago * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
Corinna Vinschen [Wed, 7 Oct 2009 07:52:30 +0000 (07:52 +0000)]
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty.  Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function.  Return 0 for
master side of pty if it's not the controlling tty of the process.

14 years agoSync with gcc repository.
Ian Lance Taylor [Wed, 7 Oct 2009 05:57:49 +0000 (05:57 +0000)]
Sync with gcc repository.

14 years agomerge from gcc
DJ Delorie [Wed, 7 Oct 2009 02:57:27 +0000 (02:57 +0000)]
merge from gcc

14 years agoAdd cygwin wrapper for ExitProcess and TerminateProcess.
Charles Wilson [Tue, 6 Oct 2009 21:51:17 +0000 (21:51 +0000)]
Add cygwin wrapper for ExitProcess and TerminateProcess.

14 years agoMerge from gcc repository.
Ian Lance Taylor [Tue, 6 Oct 2009 20:14:06 +0000 (20:14 +0000)]
Merge from gcc repository.

15 years ago* exceptions.cc: Move global variable sigExeced...
Christopher Faylor [Tue, 6 Oct 2009 03:39:38 +0000 (03:39 +0000)]
* exceptions.cc: Move global variable sigExeced...
* globals.cc: here.
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded
declaration.

15 years ago * Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
Dave Korn [Sun, 4 Oct 2009 17:48:05 +0000 (17:48 +0000)]
* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.

15 years ago * include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
Corinna Vinschen [Sun, 4 Oct 2009 12:28:08 +0000 (12:28 +0000)]
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.

15 years ago * syscalls.cc (internal_setlocale): Add comment.
Corinna Vinschen [Sun, 4 Oct 2009 11:32:07 +0000 (11:32 +0000)]
* syscalls.cc (internal_setlocale): Add comment.

15 years ago * faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.
Dave Korn [Sat, 3 Oct 2009 13:33:18 +0000 (13:33 +0000)]
* faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.

15 years ago * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
Corinna Vinschen [Sat, 3 Oct 2009 08:51:07 +0000 (08:51 +0000)]
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value encoding.
* libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value decoding.

15 years agomerge from gcc
DJ Delorie [Fri, 2 Oct 2009 18:22:51 +0000 (18:22 +0000)]
merge from gcc

15 years ago * dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just
Corinna Vinschen [Fri, 2 Oct 2009 14:58:10 +0000 (14:58 +0000)]
* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r.  Just
call initial_setlocale from here.
* syscalls.cc (initial_setlocale): Set internal charset and revert
application locale to "C".
(setlocale): Don't set Cygwin's internal charset here.

15 years agogas/
Peter Bergner [Fri, 2 Oct 2009 14:42:42 +0000 (14:42 +0000)]
gas/
* config/tc-ppc.c (md_show_usage): Document -m476.
* doc/c-ppc.texi (PowerPC-Opts): Document -m476.

gas/testsuite/
* gas/ppc/476.s: New test.
* gas/ppc/476.d: Likewise.
* gas/ppc/ppc.exp: Run the 476 test.

include/opcode/
* ppc.h (PPC_OPCODE_476): Define.

opcodes/
* ppc-dis.c (ppc_opts): Add "476" entry.
* ppc-opc.c (PPC476): Define.
(powerpc_opcodes): Update mnemonics where required for 476.

15 years agoinclude/aout/
Alan Modra [Fri, 2 Oct 2009 14:40:41 +0000 (14:40 +0000)]
include/aout/
* aout64.h (N_SHARED_LIB): Define as zero if not already defined.
* sun4.h (N_SHARED_LIB): Define.
* hp300hpux.h (N_SHARED_LIB): Don't define.
bfd/
* aout-cris.c (N_SHARED_LIB): Don't define.
* hp300bsd.c (N_SHARED_LIB): Don't define.
* i386bsd.c (N_SHARED_LIB): Don't define.
* i386linux.c (N_SHARED_LIB): Don't define.
* i386lynx.c (N_SHARED_LIB): Don't define.
* m68klinux.c (N_SHARED_LIB): Don't define.
* m88kmach3.c (N_SHARED_LIB): Don't define.
* mipsbsd.c (N_SHARED_LIB): Don't define.
* newsos3.c (N_SHARED_LIB): Don't define.
* pc532-mach.c (N_SHARED_LIB): Don't define.
* pdp11.c (N_SHARED_LIB): Don't define.
* sparclinux.c (N_SHARED_LIB): Don't define.
* vaxbsd.c (N_SHARED_LIB): Don't define.

15 years ago* mkpasswd.c: Properly define __progname as __declspec(dllimport).
Christopher Faylor [Fri, 2 Oct 2009 13:49:39 +0000 (13:49 +0000)]
* mkpasswd.c: Properly define __progname as __declspec(dllimport).
* mkgroup.c: Ditto.

15 years ago * setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
Corinna Vinschen [Fri, 2 Oct 2009 12:35:52 +0000 (12:35 +0000)]
* setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
Rephrase how the locale environment variables are evaluated.

15 years ago* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
Christopher Faylor [Fri, 2 Oct 2009 06:04:57 +0000 (06:04 +0000)]
* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.
(check_sanity_and_sync): to here.
* path.cc (has_dot_last_component): Rewrite to detect some corner cases that
were previously uncaught.

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