962acfe58a* ldd.cc: Rework to detect missing DLLs. (start_process): Change to expect windows filename as input. (tocyg): New function - convert cygwin fn to windows fn. (print_dlls_and_kill_inferior): Accept extra argument denoting whether to open input and look for nonexistent DLLs. Use tocyg to convert filename and pass it to start_process. (report): Flag when an DLL-not-found exception occurs and pass this information to print_dlls_and_kill_inferior. (filelist): New structure. (saw_file): New function. (dump_import_directory): Ditto. (map_file): Ditto. (skip_dos_stub): Ditto. (get_directory_index): Ditto. (process_file): Ditto.
Christopher Faylor
2009-03-14 06:46:00 +0000
c298c9bdbfinclude/ChangeLog 2009-03-12 Dave Korn <dave.korn.cygwin@gmail.com>
Dave Korn
2009-03-14 03:30:26 +0000
ad2c5ad9d2* mktemp.cc: Remove STABS specific link-time warning. Align copyright text to upstream.
Corinna Vinschen
2009-03-13 20:49:42 +0000
752c477b42* fhandler_disk_file.cc (path_conv::isgood_inode): Move to be defined earlier. (get_ino_by_handle): Take additional path_conv argument, accommodate throughout. Only use FileId if isgood_inode check is true. (fhandler_base::open_fs): Simplify setting ino due to above change. (readdir_get_ino): Make sure to return always a non-zero inode number. (fhandler_disk_file::readdir): Always open file in dir with FILE_OPEN_REPARSE_POINT so as not to open wrong file. Drop call to isgood_inode here. * path.cc (symlink_info::check): Call fs.update in case we're fetching file information from call to NtQueryDirectoryFile.
Corinna Vinschen
2009-03-12 22:03:28 +0000
fc69f1aed5* flock.cc (fhandler_disk_file::lock): Don't test file open mode in case of flock-type locks. Explain why.
Corinna Vinschen
2009-03-12 18:30:29 +0000
d75c0f75bc* libc/time/time.tex (wcsftime.def): Include. * libc/time/wcsftime.c: Clean up documentation a little.
Corinna Vinschen
2009-03-12 15:34:57 +0000
14a164a726* libc/stdio/swscanf.c: Some documentation corrections.
Corinna Vinschen
2009-03-12 14:30:28 +0000
4a825d4145* libc/stdio/swprintf.c (_swprintf_r, swprintf): correct how terminating L'\0' is added; change return to match standard for when output does not fit; some corrections and enhancements to the docs. * libc/stdio/vswprintf.c (_vswprintf_r): ditto, except for docs. * libc/stdio/vfwprintf.c: some corrections to the docs and some enhancements to comments. (No code changes.) * libc/time/strftime.c: Correct some problems that made wcsftime() not work correctly: work properly with swprintf returns that are different from snprintf returns, correct test vector lengths for when sizeof(wchar_t) > 1. * libc/stdio/sprintf.c: Some documentation and comment corrections and enhancements to match those done to swprintf.c.
Corinna Vinschen
2009-03-12 10:27:10 +0000
cab0758eb2* cygwin.din: Export wcscasecmp, wcsncasecmp. * posix.sgml: Move wcscasecmp, wcsncasecmp to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-03-11 13:00:28 +0000
926aac359finclude/opcode/ * ppc.h (ppc_parse_cpu): Declare. opcodes/ * ppc-dis.c: Include "opintl.h". (struct ppc_mopt, ppc_opts): New. (ppc_parse_cpu): New function. (powerpc_init_dialect): Use it. (print_ppc_disassembler_options): Dump options from ppc_opts. Internationalize message. gas/ * config/tc-ppc.c (parse_cpu): Delete. (md_parse_option, ppc_machine): Use ppc_parse_cpu. gas/testsuite/ * gas/ppc/altivec_and_spe.d (objdump): Add -Maltivec. * gas/ppc/common.d: Adjust for -Mcom not including -Mppc.
Alan Modra
2009-03-10 06:53:45 +0000
71d13bca55* fhandler.h (fhandler_socket::wait_for_events): Take additional parameter "dontwait". * fhandler_socket.cc (fhandler_socket::wait_for_events): Act as if the socket is non-blocking if dontwait is true. (fhandler_socket::recv_internal): Use incoming MSG_DONTWAIT flag to set the wait_for_events dontwait parameter. (fhandler_socket::send_internal): Ditto. Optimize code slightly. * include/cygwin/socket.h (MSG_DONTWAIT): Define. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-03-09 14:40:45 +0000
c47426aedb* cygwin.din: Export wcsftime. * posix.sgml: Move wcsftime to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-03-09 13:22:37 +0000
3c4becbe18* libc/time/strftime.c: Adapt for dual-purpose use so not only defines strftime(), but can also define wcsftime(); add optional test package; speed up %Y handling. * libc/time/wcsftime.c: New file, defining wcsftime() (albeit indirectly by including strftime.c) and its documentation. * libc/time/time.tex: Enhance tm_isdst explanation, change strftime description to match modified description in strftime.c * libc/time/Makefile.am: Add wcsftime.c and wcsftime.def. Add a rule so that wcsftime.o gets rebuilt when strftime changes. * libc/time/Makefile.in: Regenerate. * libc/include/wchar.h (wcsftime): Declare.
Corinna Vinschen
2009-03-09 12:35:03 +0000
f9f478ad80* pathnames.sgml: Try to be more clear explain raw devices.
Corinna Vinschen
2009-03-09 10:23:44 +0000
9caeaa61c0* cygcheck.cc (usage): Fix typo.
Christopher Faylor
2009-03-08 21:13:26 +0000
e94fc807d9* libc/reent/reent.c (_reclaim_reent): Make a block from MP-related statements in _REENT_SMALL case. Check if _atexit is not NULL before dereferencing it. (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
Corinna Vinschen
2009-03-06 17:11:20 +0000
6f57cb4a52* cygwin.din: Export gethostbyname2. * net.cc: define _CYGWIN_IN_H and include resolv.h. (realloc_ent): New function. (dup_ent): Call realloc_ent. (memcpy4to6): New function. (dn_length1): New function. (gethostby_helper): New function. (gethostbyname2): New function. * posix.sgml: Add gethostbyname2. * include/cygwin/version.h: Bump API minor number. * libc/minires.c (get_options): Look for "inet6" and apply bounds to "retry" and "retrans". (res_ninit): Set the default options at the beginning. (dn_expand): Fix "off by one".
Corinna Vinschen
2009-03-06 16:31:26 +0000
6121968b19* libc/include/stdio.h (__VALIST): Guard against multiple definition. * libc/include/wchar.h: Include stdarg.h. (__VALIST): Define conditionally. (fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf: Declare. (_fwprintf_r, _swprintf_r, _vfwprintf_r, _vswprintf_r, _vwprintf_r, _wprintf_r): Declare. * libc/stdio/Makefile.am: Add new files. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fwprintf.c: New file. * libc/stdio/local.h (_svfwprintf_r, _svfiwprintf_r): Declare. (__CH_CLASS, __STATE, __ACTION): Move definition from vfprintf.c here and move to the __ namespace. (__chclass, __state_table, __action_table): Declare. * libc/stdio/stdio.tex: Add new documentation references. * libc/stdio/swprintf.c: New file. * libc/stdio/vfprintf.c (__SPRINT): New macro to call the right __sprint_r function according to compilation unit. Use throughout. (__ssprint_r): Rename STRING_ONLY variant from __sprint_r. Make externaly available. Only define if INTEGER_ONLY is defined. (__sprint_r): Make externaly available. Only define if INTEGER_ONLY is defined. Handle stream orientation. (__sbprintf): Copy FILE's _flags2 member as well. (__chclass, __state_table, __action_table): Prepend __ to name and make externally available. * libc/stdio/vfwprintf.c: New file. * libc/stdio/vswprintf.c: New file. * libc/stdio/vwprintf.c: New file. * libc/stdio/wprintf.c: New file.
Corinna Vinschen
2009-03-06 09:55:52 +0000
6e0e5a4fc22009-03-05 Kai Tietz <kai.tietz@onevision.com>
Chris Sutcliffe
2009-03-05 14:48:38 +0000
538fc09416include/elf/ * ppc.h (R_PPC_TLSGD, R_PPC_TLSLD): Add new relocs. * ppc64.h (R_PPC64_TLSGD, R_PPC64_TLSLD): Add new relocs. bfd/ * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. * section.c (struct bfd_section): Add has_tls_get_addr_call. (BFD_FAKE_SECTION): Init new flag. * ecoff.c (bfd_debug_section): Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. (ppc_elf_reloc_type_lookup): Handle new relocs. (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such without marker relocs. (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs if section has no old-style calls. (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. Don't try to optimize new-style __tls_get_addr call when handling arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD relocs. * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. (ppc64_elf_reloc_type_lookup): Handle new relocs. (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such without marker relocs. (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs if section has no old-style calls. Set toc_ref for new relocs as appropriate. (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. Don't try to optimize new-style __tls_get_addr call when handling arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD relocs. gas/ * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs have non-zero addend. (md_assemble): Parse args of __tls_get_addr calls. (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD. ld/testsuite/ * ld-powerpc/tlsmark.s, * ld-powerpc/tlsmark.d: New test. * ld-powerpc/tlsmark32.s, * ld-powerpc/tlsmark32.d: New test. * ld-powerpc/powerpc.exp: Run them.
Alan Modra
2009-03-04 05:50:48 +0000
2895b8b502* net.cc: Include asm/byteorder.h. (htonl): Move to end of file. Add comment to explain why. Align definition to POSIX. Use related macro from asm/byteorder.h. (ntohl): Ditto. (htons): Ditto. (ntohs): Ditto. * include/asm/byteorder.h: Revert previous patch.
Corinna Vinschen
2009-03-03 11:44:18 +0000
ed296a4727* include/asm/byteorder.h: Disable optimization when building Cygwin network code.
Corinna Vinschen
2009-03-03 11:11:26 +0000
92fa4552fd* faq-using.xml: Rework UTF FAQ to accommodate latest setlocale change in newlib.
Corinna Vinschen
2009-03-03 10:36:59 +0000
d6cd9169dc* libc/locale/locale.c (_setlocale_r): New implementation based on FreeBSD's setlocale. (currentlocale): New helper function. (loadlocale): Ditto. (__locale_charset): New function. (__locale_msgcharset): Rename from __locale_charset. * libc/ctype/local.h (__lc_ctype): Remove declaration. (__locale_charset): Declare. * libc/ctype/iswalpha.c (iswalpha): Call __locale_charset instead of using __lc_ctype directly. Only compare against the charset alone. * libc/ctype/iswblank.c (iswblank): Ditto. * libc/ctype/iswcntrl.c (iswcntrl): Ditto. * libc/ctype/iswprint.c (iswprint): Ditto. * libc/ctype/iswpunct.c (iswpunct): Ditto. * libc/ctype/iswspace.c (iswspace): Ditto. * libc/ctype/towlower.c (towlower): Ditto. * libc/ctype/towupper.c (towupper): Ditto. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Ditto. * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto. * libc/sys/linux/intl/loadmsgcat.c (_nl_init_domain_conv): Call __locale_msgcharset instead of __locale_charset.
Corinna Vinschen
2009-03-03 09:28:45 +0000
e81ae92910* pathnames.sgml: Remove reference to managed mountpoints in mount entry example.
Corinna Vinschen
2009-03-03 09:11:45 +0000
95d85fcb1a2009-03-02 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2009-03-02 23:30:59 +0000
49b09e5afa2009-03-02 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston
2009-03-02 23:20:28 +0000
17a12c5065* utils.sgml: Set example prompt to "$" throughout. Don't use "/" as example cygdrive prefix. Remove reference to -u and -s options. Add an example using the -o flag.
Corinna Vinschen
2009-03-02 10:56:19 +0000
753a03bf8eAdd support for Score7 architecture.
Nick Clifton
2009-03-02 10:33:07 +0000
0027b7617dBackport from git Libtool:
Ralf Wildenhues
2009-03-01 18:57:16 +0000
c7ef20e7fa* dtable.cc (dtable::select_read): Add ability to override fh. * fhandler.h (fhandler_fifo::select_read): Declare new function. (fhandler_fifo::select_write): Ditto. (fhandler_fifo::select_except): Ditto. * select.cc (peek_pipe): Treat certain classes of pipe errors as "no data". (fhandler_fifo::select_read): Define new function. (fhandler_fifo::select_write): Ditto. (fhandler_fifo::select_except): Ditto. * shared_info.h (CURR_SHARED_MAGIC): Update.
Christopher Faylor
2009-02-27 00:34:40 +0000
c636f27d48gas/ * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63", "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63". (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
Peter Bergner
2009-02-26 22:07:33 +0000
1f73aa9f822009-02-26 Brooks Moses <brooks@codesourcery.com>
Jeff Johnston
2009-02-26 21:32:45 +0000
4377def75bFix character set problem with Ralf's name.
Jeff Johnston
2009-02-26 21:04:59 +0000
297367e3b32009-02-25 Brooks Moses <brooks@codesourcery.com>
Jeff Johnston
2009-02-25 21:33:18 +0000
8d8bf5a5e2* mbtowc_r.c (_mbtowc_r): Remove conversion of 5 and 6 byte UTF-8 sequences since they are invalid in the Unicode standard. Handle surrogate pairs in case of wchar_t == UTF-16. * wctomb_r.c (_wctomb_r): Don't convert invalid Unicode wchar_t values beyond 0x10ffff into UTF-8 chars. Handle surrogate pairs in case of wchar_t == UTF-16.
Corinna Vinschen
2009-02-25 09:10:09 +0000
56eafaf6e3* libc/stdio/open_memstream.c (stdint.h): Include.
Kevin Buettner
2009-02-25 04:00:05 +0000
99fe2b7866Add DESTDIR functionality to Makefile.in's.
Christopher Faylor
2009-02-24 02:11:14 +0000
be6f5dfdc72009-02-23 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu
2009-02-24 01:43:49 +0000
02b20a23112009-02-23 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2009-02-23 23:42:03 +0000
348267bdf6* autoload.cc (NetLocalGroupEnum): Remove. (NetLocalGroupGetMembers): Remove. (NetUserGetLocalGroups): Add. * sec_auth.cc (is_group_member): Remove function. (get_user_local_groups): Get user as string instead of as SID. Call NetUserGetLocalGroups instead of NetLocalGroupEnum. Drop call to is_group_member. (get_server_groups): Call get_user_local_groups with user name instead of user SID.
Corinna Vinschen
2009-02-20 16:10:45 +0000
89b5579d3b* cygwin.din: Export mbsnrtowcs and wcsnrtombs. * posix.sgml: Move mbsnrtowcs and wcsnrtombs to SUSv4 section. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-02-19 09:22:51 +0000
2e10d61ccb* libc/include/wchar.h (mbsnrtowcs): Declare. (_mbsnrtowcs_r): Declare. (wcsnrtombs): Declare. (_wcsnrtombs_r): Declare. * libc/stdlib/Makefile.am (ELIX_2_SOURCES): Add mbsnrtowcs.c and wcsnrtombs.c. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/mbsnrtowcs.c: New file, implementing _mbsnrtowcs_r and mbsnrtowcs. Document mbsnrtowcs and mbsrtowcs. * libc/stdlib/mbsrtowcs.c (_mbsrtowcs_r): Just call _mbsnrtowcs_r. (mbsrtowcs): Ditto. * libc/stdlib/wcsnrtombs.c: New file, implementing _wcsnrtombs_r and wcsnrtombs. Document wcsrtombs and wcsnrtombs. * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Just call _wcsnrtombs_r. (wcsrtombs): Ditto. * libc/stdlib/stdlib.tex: Accommodate new documentation.
Corinna Vinschen
2009-02-19 09:19:42 +0000
3f60f7e5442009-02-18 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2009-02-18 21:28:41 +0000
15fc34ac5a* cygwin.din: Export open_wmemstream. * posix.sgml: Move open_wmemstream to SUSv4 section. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-02-18 17:38:16 +0000
84e851fd64* libc/stdio/open_memstream.c: Add open_wmemstream to doumentation. (struct memstream): Add wide element. Change saved to a union to take char and wchar_t values. (memwriter): Accommodate wide-oriented oeprations. (memseeker): Ditto. (memseeker64): Ditto. (memcloser): Ditto. (internal_open_memstream_r): New static function. Take functionality from former _open_memstream_r and handle additional "wide" parameter. (_open_memstream_r): Just call internal_open_memstream_r with wide==-1 from here. (_open_wmemstream_r): New function. (open_wmemstream): Ditto. * libc/include/wchar.h (open_wmemstream): Declare. (_open_wmemstream_r): Declare.
Corinna Vinschen
2009-02-18 17:35:24 +0000
c6b9747e04* cygwin.din: Export reallocf. * malloc_wrapper.cc( reallocf): New function. * posix.sgml: Add reallocf to BSD section. * include/cygwin/version.h: Bump API minor number. * libc/fts.c: Remove erroneous reallocf definition.
Corinna Vinschen
2009-02-16 20:22:38 +0000
de5c20c2de* cygwin.din: Export wcstoimax, wcstoumax. * posix.sgml: Move wcstoimax and wcstoumax to SUSv4 section. * include/inttypes.h: Declare wcstoimax and wcstoumax. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-02-16 15:36:01 +0000
c65466e242* libc/stdio/fputwc.c: Fix typo in man page info.
Corinna Vinschen
2009-02-16 15:04:34 +0000
4806c1f4f6* faq-using.xml: Fix usage of ampersand in NT emacs script.
Corinna Vinschen
2009-02-14 20:56:48 +0000
b0e662b8d6* posix.sgml: Move interfaces deprecated in SUSv4 to deprecated interfaces section. Move interfaces added in SUSv4 to SUSv4 section or, if unimplemented, add them to the unimplemented interfaces section.
Corinna Vinschen
2009-02-13 12:19:25 +0000
f2ba21b1a4* posix.sgml: Merge SUSv3 and SUSv4 section into a single SUSv4 section. Move Solaris calls now in SUSv4 to SUSv4 section. Rename unimplemented section to refer to SUSv4. Add note about missing interfaces. Move wcstod and wcstof from unimplemented to SUSv4 section.
Corinna Vinschen
2009-02-13 11:33:32 +0000
64d6e1d43e* syscalls.cc (open): Handle O_DIRECTORY flag. * include/fcntl.h: Add SUSv4 flags O_DIRECTORY, O_EXEC and O_SEARCH. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-02-11 16:06:39 +0000
29915d8ef2* fhandler_floppy.cc (fhandler_dev_floppy::open): Fix format. Add code to allow to read disk and CD/DVD devices in full length. Explain why. (fhandler_dev_floppy::raw_read): Add current position to debug output.
Corinna Vinschen
2009-02-09 18:28:53 +0000
18cbf1d3942009-02-05 Neal H. Walfield <neal@gnu.org>
Jeff Johnston
2009-02-05 20:10:21 +0000
11acb173d9* cygwin.din: Export wcstok. * posix.sgml: Move wcstok from unimplemented to susv3. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-02-05 17:30:17 +0000
57c9bccb3b* Makefile.tpl (stage_last): Define $r and $s before using $(RECURSE_FLAGS_TO_PASS). * Makefile.in: Regenerate
Andreas Schwab
2009-02-05 15:45:55 +0000
8c71dc5878* fhandler_proc.cc (proc_tab): Add entry for mounts symlink. (format_proc_mounts): New function to implement mounts symlink. * fhandler_process.cc (process_tab): Add entry for mounts file. (format_process_mounts): New function to implement mounts file.
Corinna Vinschen
2009-02-04 16:40:04 +0000
42ef1b8fd4* config/tcl.m4 (SC_PATH_TCLCONFIG): Don't exit 0 if tclconfig fails. (SC_PATH_TKCONFIG): Don't exit 0 if tkconfig fails. (SC_LOAD_TCLCONFIG): Quote all uses of TCL_BIN_DIR, it may contain "# no Tcl configs found". (SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.
Doug Evans
2009-02-02 23:18:05 +0000
43616e5526* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix inode number evaluation for faked "." entry.
Corinna Vinschen
2009-01-29 20:32:08 +0000