summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * overview2.sgml (ov-hi-files): Remove reference to root directory whenCorinna Vinschen2009-11-182-13/+24
| | | | | explaining fstab content. Add paragraph about Extended Attributes. Discourage chroot.
* * ntea.cc (read_ea): Always add length of "user." prefix, not onlyCorinna Vinschen2009-11-182-7/+11
| | | | on Samba. Change comment.
* 2009-11-18 Paul Brook <paul@codesourcery.com>Paul Brook2009-11-182-0/+6
| | | | | | | | | gas/ * config/tc-arm.c (arm_fpus): Add fpv4-sp-d16. (aeabi_set_public_attributes): Correctly mark VFPv3xD. include/opcode/ * arm.h (FPU_VFP_V4_SP_D16, FPU_ARCH_VFP_V4_SP_D16): Define.
* * alloca-conf.h: Clarify comment.Alan Modra2009-11-182-1/+6
|
* * ntea.cc (read_ea): Try to open file first to have more sensibleCorinna Vinschen2009-11-182-35/+65
| | | | | | | | | | error codes. Always refuse non "user." EAs for Linux compatibility and return EOPNOTSUPP. Fix handling of empty (== non-existant) EAs. Always prepend "user." prefix to EA names. (write_ea): Try to open file first to have more sensible error codes. Always refuse non "user." EAs for Linux compatibility and return EOPNOTSUPP. Delay skipping "user." prefix until after potential call to read_ea.
* * libc/stdio/vfprintf.c: Include ../stdlib/local.h. Replace call toCorinna Vinschen2009-11-1815-19/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | _mbtowc_r with direct call to __mbtowc. * libc/stdio/vfscanf.c: Ditto. * libc/stdlib/btowc.c: Include local.h. Replace call to _mbtowc_r with direct call to __mbtowc. * libc/stdlib/mblen.c: Ditto. * libc/stdlib/mblen_r.c: Ditto. * libc/stdlib/mbrtowc.c: Ditto. * libc/stdlib/mbstowcs_r.c: Ditto. * libc/stdlib/mbtowc.c: Ditto. * libc/stdlib/wcrtomb.c: Include local.h. Replace call to _wctomb_r with direct call to __wctomb. * libc/stdlib/wcsnrtombs.c: Ditto. (_wcsnrtombs_r): Ditto. * libc/stdlib/wcstombs_r.c: Ditto. * libc/stdlib/wctob.c: Ditto. * libc/stdlib/wctomb.c: Ditto. * libc/stdlib/mbrtowc.c (mbrtowc): Implement independently from _mbrtowc_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are defined. * libc/stdlib/wcrtomb.c (wcrtomb): Implement independently from _wcrtomb_r, unless PREFER_SIZE_OVER_SPEED or __OPTIMIZE_SIZE__ are defined. * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Drop unnecessary test for ch >= 0.
* 2009-11-17 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-11-173-2/+7
| | | | | * libm/common/fdlibm.h (logb, logbf): Move decls from here... * libc/include/math.h (logb, logbf): ...to here.
* 2009-11-17 Paul Brook <paul@codesourcery.com>Paul Brook2009-11-174-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Daniel Jacobowitz <dan@codesourcery.com> gas/ * doc/c-arm.texi: Document .arch armv7e-m. * config/tc-arm.c (arm_ext_v6_dsp, arm_ext_v7m): New. (insns): Put Thumb versions of v5TExP instructions into arm_ext_v5exp also. Move some Thumb variants from arm_ext_v6_notm to arm_ext_v6_dsp. (arm_archs): Add armv7e-m architecture. (aeabi_set_public_attributes): Handle -march=armv7e-m. gas/testsuite/ * gas/arm/attr-march-armv7em.d: New test. * gas/arm/arch7em-bad.d: New test. * gas/arm/arch7em-bad.l: New test. * gas/arm/arch7em.d: New test. * gas/arm/arch7em.s: New test. include/elf/ * arm.h (TAG_CPU_ARCH_V7E_M): Define. include/opcode/ * arm.h (ARM_EXT_V6_DSP): Define. (ARM_AEXT_V6T2, ARM_AEXT_NOTM): Include ARM_EXT_V6_DSP. (ARM_AEXT_V7EM, ARM_ARCH_V7EM): Define. binutils/ * readelf.c (arm_attr_tag_CPU_arch): Add v7E-M. bfd/ * elf32-arm.c (using_thumb_only, arch_has_arm_nop, arch_has_thumb2_nop): Handle TAG_CPU_ARCH_V7E_M. (tag_cpu_arch_combine): Ditto. Correct MAX_TAG_CPU_ARCH test.
* Reintegrate socket duplication via WSADuplicateSocket/WSASocket.Corinna Vinschen2009-11-179-8/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autoload.cc (WSADuplicateSocketW): Define. (WSASocketW): Define. * dtable.cc (dtable::release): Call dec_need_fixup_before if necessary. (dtable::fixup_before_fork): New function. (dtable::fixup_before_exec): New function. * dtable.h (class dtable): Add member cnt_need_fixup_before. Add declarations for above new functions. (dtable::dec_need_fixup_before): New inline method. (dtable::inc_need_fixup_before): New inline method. (dtable::need_fixup_before): New inline method. * fhandler.h (fhandler_base::fixup_before_fork_exec): New virtual method. (fhandler_base::need_fixup_before): New virtual method. (class fhandler_socket): Add member prot_info_ptr. (fhandler_socket::init_fixup_before): Declare. (fhandler_socket::need_fixup_before): New inline method. (fhandler_socket::fixup_before_fork_exec): Declare. (fhandler_socket::fixup_after_exec): Declare. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize prot_info_ptr to NULL. (fhandler_socket::~fhandler_socket): Free prot_info_ptr conditionally. (fhandler_socket::init_fixup_before): New method. (fhandler_socket::fixup_before_fork_exec): Ditto. (fhandler_socket::fixup_after_fork): Use WSASocketW to duplicate socket if necessary. (fhandler_socket::fixup_after_exec): New method. (fhandler_socket::dup): Use fixup_before_fork_exec/fixup_after_fork to duplicate socket if necessary. * fork.cc (frok::parent): Start child suspended if some fhandler needs fixup before fork. If so, call dtable::fixup_before_fork after CreateProcess and resume child. * net.cc (fdsock): Try to find out if socket needs fixup before and initialize socket accordingly. Add HUGE comment to explain what happens and why. * spawn.cc (spawn_guts): Start child suspended if some fhandler needs fixup before exec. If so, call dtable::fixup_before_exec after CreateProcess.
* * Makefile.def: Restore host and target settings for gmp.Alexandre Oliva2009-11-163-15/+26
| | | | * Makefile.in: Rebuild.
* Fix setenv and unsetenv corner cases.Eric Blake2009-11-162-5/+13
| | | | | * environ.cc (setenv): Detect invalid argument. (unsetenv): Distinguish EFAULT from EINVAL.
* * configure.ac: Add libelf to host_libs. Enable in-tree configuryAlexandre Oliva2009-11-166-861/+1979
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of ppl and cloog. Fix in-tree configury of libelf, skip tests. Fix portability of test of C++ as bootstrap language. Add ppl/src/ppl-config.o to the bootstrap compare exclusion list. * configure: Rebuild. * Makefile.def: Drop host and target settings from gmp, mpfr, ppl, and cloog. Fix in-tree ppl configuration. Introduce libelf in-tree building. * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): New. (POSTSTAGE1_HOST_EXPORTS): Use it. (STAGE[+id+]_CXXFLAGS): New. (BASE_FLAGS_TO_PASS): Pass it down. (configure-stage[+id+]-[+prefix+][+module+]): Use it. Add extra_exports. (all-stage[+id+]-[+prefix+][+module+]): Likewise. (configure-[+prefix+][+module+], all-[+prefix+][+module+]): Add extra_exports. * Makefile.in: Rebuild. * configure.ac (FLAGS_FOR_TARGET): Add -L and -isystem paths for *-w64-mingw* and x86_64-*mingw*. * configure: Regenerated. * configure.ac: Disable target-winsup & co for x86_64-*-mingw* and *-w64-mingw* targets. * configure: Regenerated. * configure.ac (CLooG test): Use = with test. * configure: Regenerate. * configure.ac: Do not set LIBS for ppl/cloog checks. Disable cloog if the ppl version check failed. Move flags saving before setting in libelf check. * configure: Regenerate. * configure.ac: Adjust the ppl and cloog configure to work as documented. Disable cloog if ppl was disabled. Omit the version checks if they were disabled. * configure: Re-generate.
* * pathnames.sgml (pathnames-specialchars): Fix typos.Corinna Vinschen2009-11-162-2/+6
|
* * Makefile.in (cygserver.exe): Link with -static to avoid linkingCorinna Vinschen2009-11-162-1/+6
| | | | against cygstdc++-6.dll due to references to __cxa_pure_virtual.
* 2009-14-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-11-142-8/+18
| | | | | | * include/wingdi.h (_devicemodeW, _devicemodeA): Correct definition. Thanks to Bruno Martinez for the report.
* 2009-14-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-11-142-0/+16
| | | | | | | | * include/shlobj.h (IDO_SHGIOI_SHARE, IDO_SHGIOI_LINK, IDO_SHGIOI_SLOWFILE, IDO_SHGIOI_DEFAULT, SHGetIconOverlayIndexW, SHGetIconOverlayIndexA, SHGetIconOverlayIndex): Define. Thanks to Tim Kosse for report.
* 2009-11-13 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-11-142-1/+7
| | | | | | * include/io.h (_open_osfhandle): Correct definition. Thanks to Alexander Shaduri for the information.
* 2009-13-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-11-142-1/+7
| | | | | | * include/wincon.h (AttachConsole): Correct guard. Thanks to Alexander Shaduri for report.
* 2009-13-09 Robert Moerland <rjmoerland@users.sourceforge.net>Chris Sutcliffe2009-11-142-2/+13
| | | | | * include/wininet.h (NTERNET_CACHE_ENTRY_INFOW): Correct definition. (DeleteUrlCacheEntryW, DeleteUrlCacheEntryA): Define.
* 2009-13-09 Jacky Lai <crazyjacky@users.sourceforge.net>Chris Sutcliffe2009-11-132-3/+7
| | | | * include/winerror.h: Fix typos in macro names.
* 2009-13-09 Jan Nijtmans <nijtmans@users.sourceforge.net>Chris Sutcliffe2009-11-132-2/+8
| | | | | * include/winuser.h (SendMessageTimeoutA, SendMessageTimeoutW): Correct definition.
* 2009-11-09 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2009-11-132-0/+4
| | | | * include/winnt.h (PROCESS_SUSPEND_RESUME): Define.
* * net.cc (fdsock): Fill _rmem and _wmem with valid values returnedCorinna Vinschen2009-11-132-3/+21
| | | | from getsockopt if setsockopt with desired values failed.
* * new-features.sgml (ov-new1.7-os): Mention Windows 7 and 2008 R2.Corinna Vinschen2009-11-122-1/+10
| | | | | (ov-new1.7-device): Add API get_avphys_pages, get_nprocs, get_nprocs_conf, and get_phys_pages.
* * sysconf.cc (get_nprocs): New function.Corinna Vinschen2009-11-126-2/+75
| | | | | | | | | | (get_nprocs_conf): Ditto. (get_avphys_pages): Ditto. (get_phys_pages): Ditto. * cygwin.din: Export them. * include/sys/sysinfo.h: New header, decalre above new functions. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml: Mention them as GNU extensions.
* * fhandler.h (class fhandler_mailslot): Declare new private methodCorinna Vinschen2009-11-113-3/+30
| | | | | | | get_object_attr. * fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Implement. (fhandler_mailslot::open): Replace calls to path_conv::get_object_attr with calls to fhandler_mailslot::get_object_attr.
* * getfacl.c (print_version): Fix copyright.Corinna Vinschen2009-11-112-18/+23
| | | | | | (main): Don't reuse local variables confusingly. Don't print any file information if acl() fails. Improve error message. Always print a trailing empty line. Set return code to 2 if accessing some file fails.
* * fhandler_console.cc (fhandler_console::read): Revert change fromCorinna Vinschen2009-11-102-16/+16
| | | | 2009-11-09.
* * fhandler_disk_file.cc (is_volume_mountpoint): Align check withCorinna Vinschen2009-11-103-15/+31
| | | | | | symlink_info::check_reparse_point(). * path.cc (symlink_info::check_reparse_point): Rearrange slightly. Add code path for unrecognized repare point types. Add comment.
* * largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS.Joel Brobecker2009-11-092-0/+10
|
* * path.cc (symlink_info::check_reparse_point): Always checkCorinna Vinschen2009-11-093-6/+21
| | | | | | | SubstituteName for volume string to recognize volume mount points. Reuse subst when calling sys_wcstombs. * syscalls.cc (rename): Set errno to EBUSY when trying to rename volume mount points. Explain why.
* * fhandler_console.cc (fhandler_console::read): Restrict generatingCorinna Vinschen2009-11-092-11/+21
| | | | META key sequences to singlebyte input chars.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Drop all "other"Corinna Vinschen2009-11-082-0/+12
| | | | | permissions from st_mode, if the reading the file's security descriptor failed. Explain why.
* * largefile.m4: New file.Joel Brobecker2009-11-072-0/+29
|
* * globals.cc (ro_u_scr): New R/O unicode string.Corinna Vinschen2009-11-063-20/+43
| | | | | | | | | | (ro_u_sys): Ditto. * syscalls.cc (nt_path_has_suffix): Replace with ... (nt_path_has_executable_suffix): New function checking for explicit executable suffixes. (rename): Call nt_path_has_executable_suffix instead of nt_path_has_suffix. Check oldpath for nt_path_has_executable_suffix as well to set old_explicit_suffix.
* Checking this in for: Jonas Maebe <jonas.maebe@elis.ugent.be>Joel Brobecker2009-11-062-1/+8
| | | | | | Add DWARF attribute value for the "Borland fastcall" calling convention. * elf/dwarf2.h: Add DW_CC_GNU_borland_fastcall_i386 constant.
* * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):Corinna Vinschen2009-11-062-1/+11
| | | | | | Check cygwin_internal for returning 0 rather than for != 0. (transport_layer_pipes::accept): Add debug output. (transport_layer_pipes::connect): Ditto.
* * shared.cc (inst_root_inited): New static bool variable.Corinna Vinschen2009-11-062-2/+13
| | | | | | (init_installation_root): Set inst_root_inited to true. (memory_init): Print installation root debug output only if inst_root_inited is true.
* * libc/include/ctype.h (__ctype_lookup): Fix precedence.Eric Blake2009-11-062-1/+5
|
* * syscalls.cc (nt_path_has_suffix): New function.Corinna Vinschen2009-11-052-5/+34
| | | | | (rename): Don't append .exe suffix if binary target name has any suffix at all.
* * spawn.cc (dll_suffixes): Disable. Explain why.Corinna Vinschen2009-11-052-1/+12
| | | | (perhaps_suffix): Use stat_suffixes instead of dll_suffixes.
* [opcodes]DJ Delorie2009-11-052-4/+6
| | | | | | | | | | | | | | | * rx-decode.opc (rx_decode_opcode) (mvtipl): Add. (mvtcp, mvfcp, opecp): Remove. * rx-decode.c: Regenerate. * rx-dis.c (cpen): Remove. [gas] * config/rx-parse.y (MVTIPL): Update bit pattern. (cpen): Remove. [include/opcode] * rx.h (rx_decode_opcode) (mvtipl): Add. (mvtcp, mvfcp, opecp): Remove.
* * path.cc (read_mounts): Skip unnecessary test if path has beenCorinna Vinschen2009-11-042-6/+15
| | | | fetched from loaded cygwin1.dll.
* * cygcheck.cc (cygwin_dll_path): New global variable.Corinna Vinschen2009-11-044-15/+28
| | | | | | | | (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.
* * path.cc (read_mounts): First get installation path from own path.Corinna Vinschen2009-11-042-20/+49
| | | | | Check if cygwin1.dll exists in same directory. Only if not, try to get installation path from setup registry key. Add ample warnings.
* * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.Corinna Vinschen2009-11-042-0/+5
|
* * security.cc (alloc_sd): Re-introduce setting the SE_DACL_PROTECTEDCorinna Vinschen2009-11-034-12/+46
| | | | | | | 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.
* * security.cc (alloc_sd): Re-enable generating default permissionCorinna Vinschen2009-11-022-7/+5
| | | | entries for directories.
* * dlfcn.cc (get_full_path_of_dll): Drop enforcing a .dll suffix.Corinna Vinschen2009-11-022-9/+12
| | | | | (dlopen): If last path component has no dot, append one to override automatic .dll suffix in LoadLibrary.
* 2009-11-02 Paul Brook <paul@codesourcery.com>Paul Brook2009-11-022-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.