b4bf8c7064* strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at least two chars and the next byte is a valid UTF-8 start byte before trying to convert the followup bytes as UTF-8 sequence.
Corinna Vinschen
2009-04-01 09:49:25 +0000
d9749de7662009-03-31 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu
2009-03-31 21:19:03 +0000
1e4e6ee8f4* shm.cc (struct shm_attached_list): Convert access type to ULONG. (fixup_shms_after_fork): Fix comment. Use NtMapViewOfSection rather than MapViewOfFileEx to recreate shared memory regions. Add function name to api_fatal output. (shmat): Use NtMapViewOfSection to create shared memory region top-down.
Corinna Vinschen
2009-03-31 14:58:14 +0000
7ccfe2c70e* faq-using.xml (faq.using.unicode): Modernize. (faq.api.symlinkstoppedworking): Move here from faq-api.xml.
Corinna Vinschen
2009-03-31 10:54:28 +0000
a33fa76fed* ctype.cc: Remove implementation of ctype functions in favor of pointer-based newlib implementation. (_ctype_b): Declare. (__ctype_cp): Move to newlib. Declare. (__ctype_iso): Ditto. (__set_ctype): Implement changing __ctype_ptr__. Only copy character class data in applications built under older Cygwin. * cygwin.din (__ctype_ptr__): Export. * include/ctype.h: Remove in favor of newlib implementation. * include/cygwin/config.h (__EXPORT): Define alongside __IMPORT. * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_OLD_CTYPE): Define check for old vs. new ctype implementation. Bump API minor number.
Corinna Vinschen
2009-03-31 09:42:58 +0000
4bc42c05aa* libc/ctype/Makefile.am: Remove _tolower.c and _toupper.c source files. Add a dependency rule for ctype_o to note changes in ctype_iso.h and ctype_cp.h. * libc/ctype/Makefile.in: Regenerate. * libc/ctype/_tolower.c: Remove file. * libc/ctype/_toupper.c: Remove file. * libc/ctype/ctype_.c: Make sure ALLOW_NEGATIVE_CTYPE_INDEX is always defined on Cygwin. (_ctype_b): Don't make `static const' on Cygwin. (ctype_iso.h): Include if _MB_EXTENDED_CHARSETS_ISO is set. (ctype_cp.h): Include if _MB_EXTENDED_CHARSETS_WINDOWS is set. (__ctype_ptr): Drop definition. (__ctype_ptr__): De-constify. Mark as __EXPORT symbol. (_ctype_): Add Cygwin-specifc asm define. (__set_ctype): New function to set __ctype_ptr__ according to current charset. * libc/ctype/ctype_cp.h: New file containing Windows codepage specific character class tables. * libc/ctype/ctype_iso.h: New file containing ISO-8859-x specific character class tables. * libc/ctype/tolower.c (tolower): Reimplement to support any singlebyte charset if one of the extended charsets is enabled. * libc/ctype/toupper.c (toupper): Ditto. * libc/include/ctype.h (_tolower): Define as macro per POSIX. (_toupper): Ditto. (__ctype_ptr__): De-constify. (toupper): Disable macro on systems supporting extended charsets. (tolower): Ditto. * libc/include/sys/config.h (__EXPORT): Define empty if not defined. * libc/locale/locale.c (__mb_cur_max): Mark as __EXPORT symbol. (__set_ctype): Declare unconditionally. (loadlocale): Remove __CYGWIN__ guard around __set_ctype call.
Corinna Vinschen
2009-03-31 09:31:38 +0000
24bd1f86c2* faq-using.xml (faq.using.bloda): Update with new entries.
Dave Korn
2009-03-30 09:23:13 +0000
0390592140* Makefile.in: Perform some minor cleanup. Revamp speclib handling. * speclib: Rewrite to create libraries with dlltool rather than attempting surgery on libcygwin.a.
Christopher Faylor
2009-03-28 04:55:36 +0000
6f0c3cc88a* net.cc (inet_ntop6): Convert to lowercase hex digits on the fly.
Corinna Vinschen
2009-03-27 15:20:27 +0000
e5d5e036fd* net.cc (cygwin_getaddrinfo): Check hints for non-NULL before checking its content.
Corinna Vinschen
2009-03-27 15:10:18 +0000
ffb5ddd565* cygwinenv.sgml: Add text to explain new UTF-16 symlinks. * faq-api.xml: Add FAQ entry "Why do some of my old symlinks don't work anymore?" * new-features.sgml: Fix symlink text. Add new UTF-16 symlinks. * overview2.sgml: Add text about new UTF-16 symlinks and potential problems with old symlinks. * pathnames.sgml: Fix typo. * setup2.sgml: Extend text about problems with symlinks.
Corinna Vinschen
2009-03-26 12:25:11 +0000
4d9c72800f* path.cc (symlink_worker): Write target filename as UTF-16 string with leading BOM marker. (symlink_info::check_shortcut): If check for leading BOM marker succeeds, read filename as UTF-16 string. (symlink_info::check_sysfile): Ditto.
Corinna Vinschen
2009-03-26 12:12:11 +0000
62818522c2* include/asm/byteorder.h (__ntohl): Align definition to ISO C99. (__ntohs): Ditto.
Corinna Vinschen
2009-03-26 10:40:29 +0000
fa0853e168* strfuncs.cc (__set_charset_from_codepage): Revert to translating codepage 936 to "GBK".
Corinna Vinschen
2009-03-26 10:26:57 +0000
e916d8ec86* libc/locale/locale.c (loadlocale): Revert to charset "GBK" instead of "GB2312". Fix documentation accordingly.
Corinna Vinschen
2009-03-26 10:24:38 +0000
f6e29e076aRevert erroneously checked in files.
Corinna Vinschen
2009-03-26 10:04:40 +0000
7ca98b4901* libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character. * libc/ctype/isblank.c: Replace hardcoded test with test for having _B marker in ctype array. * libc/include/ctype.h (isblank): Add macro.
Corinna Vinschen
2009-03-26 09:45:11 +0000
3ed024dcb22009-03-25 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2009-03-25 21:16:04 +0000
139f923bb42009-03-25 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2009-03-25 19:13:24 +0000
baea11cd6a2009-03-25 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston
2009-03-25 18:56:15 +0000
0b211e340f2009-03-25 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2009-03-25 17:57:11 +0000
d84b37e24b* pathnames.sgml: Add a note that ASCII SO handling isn't foolproof under all circumstances.
Corinna Vinschen
2009-03-25 14:33:05 +0000
b10a036a92* strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two ASCII SO's.
Corinna Vinschen
2009-03-25 13:54:41 +0000
6396c8889f* libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowc pointers if category is LC_CTYPE.
Corinna Vinschen
2009-03-25 13:52:08 +0000
5354e13fe6* environ.cc (environ_init): Break from locale loop after first hit. * fhandler_console.cc (fhandler_console::write_normal): Print a SO sequence using always valid Unicode chars.
Corinna Vinschen
2009-03-25 12:29:04 +0000
f276aab75a* new-features.sgml: Add missing GB2312 and eucKR character sets. * pathnames.sgml: Change "DOS devices" title to "Invalid filenames" and rephrase that section. Add section "Filenames with unusual (foreign) characters". Fix an emphasis. * setup-net.sgml: Integrate setup-locale section. * setup2.sgml: Add locale variables to section "Environment Variables". Add section "Internationalization".
Corinna Vinschen
2009-03-25 10:37:06 +0000
4747078502* strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949. (__kr_mbtowc): Ditto. (__set_charset_from_codepage): Ditto. Translate codepage 936 to "GB2312" and drop the charset name "GBK".
Corinna Vinschen
2009-03-25 09:02:22 +0000
4098799105* strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949. (__kr_mbtowc): Ditto. (__set_charset_from_codepage): Translate codepages 949 and 50949 to "EUCKR" and drop the charset name "CP949".
Corinna Vinschen
2009-03-24 18:20:01 +0000
1c6743b74d* cygwinenv.sgml: Move "codepage:xxx" to the removed options section. Change text accordingly. * new-features.sgml: Try to explain new way to define character sets.
Corinna Vinschen
2009-03-24 12:37:02 +0000
161211d186* ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character. (__ctype_default): New character class array for default ASCII character set. (__ctype_iso): New array of character class array for ISO charsets. (__ctype_cp): Ditto for singlebyte Windows codepages. (tolower): Implement as distinct function to support any singlebyte charset. (toupper): Ditto. (__set_ctype): New function to copy singlebyte character classes corresponding to current charset to ctype_b array. Align copyright text to upstream. * dcrt0.cc (dll_crt0_1): Reset current locale to "C" per POSIX. * environ.cc (set_file_api_mode): Remove. (codepage_init): Remove. (parse_thing): Remove "codepage" setting. (environ_init): Set locale according to environment settings, or to current codepage, before converting environment to multibyte. * fhandler.h (fhandler_console::write_replacement_char): Drop argument. * fhandler_console.cc (dev_console::str_to_con): Call sys_cp_mbstowcs rather than MultiByteToWideChar. (fhandler_console::write_replacement_char): Always print a funny half filled square if a character isn't in the current charset. (fhandler_console::write_normal): Convert to using __mbtowc rather than next_char. * fork.cc (frok::child): Drop call to set_file_api_mode. * globals.cc (enum codepage_type) Remove. (current_codepage): Remove. * miscfuncs.cc (cygwin_wcslwr): Unused, dangerous. Remove. (cygwin_wcsupr): Ditto. (is_cp_multibyte): Remove. (next_char): Remove. * miscfuncs.h (is_cp_multibyte): Drop declaration. (next_char): Ditto. * strfuncs.cc (get_cp): Remove. (__db_wctomb): New function to implement _wctomb_r functionality for doublebyte charsets using WideCharToMultiByte. (__sjis_wctomb): New function to replace unusable newlib function. (__jis_wctomb): Ditto. (__eucjp_wctomb): Ditto. (__gbk_wctomb): New function. (__kr_wctomb): Ditto. (__big5_wctomb): Ditto. (__db_mbtowc): New function to implement _mbtowc_r functionality for doublebyte charsets using MultiByteToWideChar. (__sjis_mbtowc): New function to replace unusable newlib function. (__jis_mbtowc): Ditto. (__eucjp_mbtowc): Ditto. (__gbk_mbtowc): New function. (__kr_mbtowc): New function (__big5_mbtowc): New function (__set_charset_from_codepage): New function. (sys_wcstombs): Reimplement, basically using same wide char to multibyte conversion as newlib's application level functions. Plus extras. Add lengthy comment to explain. Change return type to size_t. (sys_wcstombs_alloc): Just use sys_wcstombs. Change return type to size_t. (sys_cp_mbstowcs): Replace sys_mbstowcs, take additional codepage argument. Explain why. Change return type to size_t. (sys_mbstowcs_alloc): Just use sys_mbstowcs. Change return type to size_t. * wchar.h: Declare internal functions implemented in strfuncs.cc. (wcscasecmp): Remove. (wcsncasecmp): Remove. (wcslwr): Remove. (wcsupr): Remove. * winsup.h (codepage_init): Remove declaration. (get_cp): Ditto. (sys_wcstombs): Align declaration to new implementation. (sys_wcstombs_alloc): Ditto. (sys_cp_mbstowcs): Add declaration. (sys_mbstowcs): Define as inline function. (sys_mbstowcs_alloc): Align declaration to new implementation. (set_file_api_mode): Remove declaration. * include/ctype.h (isblank): Redefine to use _B character class. (toupper): Remove ASCII-only definition. (tolower): Ditto.
Corinna Vinschen
2009-03-24 12:18:34 +0000
28186e81d9* libc/ctype/iswalpha.c: Handle all wchar_t as unicode on _MB_CAPABLE systems. * libc/ctype/iswblank.c: Ditto. * libc/ctype/iswcntrl.c: Ditto. * libc/ctype/iswprint.c: Ditto. * libc/ctype/iswpunct.c: Ditto. * libc/ctype/iswspace.c: Ditto. * libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c. Explain why. * libc/ctype/towlower.c: Ditto. * libc/ctype/towupper.c: Ditto. * libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is defined. Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now. * libc/include/sys/reent.h (struct _reent): Mark _current_category and _current_locale as unused. * libc/locale/locale.c: Add new charset support to documentation. Include ../stdio/local.h from here. (lc_ctype_charset): Set to "ASCII" by default. (lc_message_charset): Ditto. (_setlocale_r): Don't set _current_category and _current_locale. (loadlocale): Add Cygwin codepage support. On _MB_CAPABLE systems, set __mbtowc and __wctomb function pointers to function corresponding with current charset. Don't allow non-existant ISO-8859-12 charset. Add support for Windows singlebyte codepages. On Cygwin, add support for GBK, CP949, and BIG5. On Cygwin, call __set_ctype() in case the catorgy is LC_CTYPE. Don't set _current_category and _current_locale. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/local.h: Add prototype for __locale_charset. Add prototypes for __mbtowc and __wctomb pointers. Add prototypes for charset-specific _wctomb_r and _mbtowc_r functions. Declare tables and functions from sb_charsets.c. * libc/stdlib/mbtowc_r.c (__mbtowc): Define. Set to __ascii_mbtowc by default. (_mbtowc_r): Just call __mbtowc from here. (__ascii_mbtowc): New function. (__iso_mbtowc): New function. (__cp_mbtowc): New function. (__utf8_mbtowc): New function. (__sjis_mbtowc): New function. Disable on Cygwin. (__eucjp_mbtowc): New function. Disable on Cygwin. (__jis_mbtowc): New function. Disable on Cygwin. * libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF conversion tables for all ISO and CP charsets. (__iso_8859_index): New function. (__cp_index): New function. * libc/stdlib/wctomb_r.c (__wctomb): Define. Set to __ascii_wctomb by default. (_wctomb_r): Just call __wctomb from here. (__ascii_wctomb): New function. (__utf8_wctomb): New function. (__sjis_wctomb): New function. Disable on Cygwin. (__eucjp_wctomb): New function. Disable on Cygwin. (__jis_wctomb): New function. Disable on Cygwin. (__iso_wctomb): New function. (__cp_wctomb): New function.
Corinna Vinschen
2009-03-24 10:13:27 +0000
0258b68722* include/mntent.h: Remove declarations of nonexistant addmntent and hasmntopt. Update and clarify the /etc/mtab comment.
Corinna Vinschen
2009-03-24 09:19:37 +0000
6199f417ab* passwd.c (usage): Change description for -d option according to previous change. (main): Fix typo. * utils.sgml: Add missing description for passwd -d option.
Corinna Vinschen
2009-03-23 20:40:17 +0000
4d5112e2b12009-03-23 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston
2009-03-23 18:25:10 +0000
0e0f5748e0* passwd.c (caller_is_admin): New function to test if calling user is an administrator by inspecting user token. (main): Drop fetching caller info from logonserver. Only fetch server from environment when trying to change password for own account. Drop admin check entirely in case of doing account maintainance. Otherwise replace check for admin by result of caller_is_admin call.
Corinna Vinschen
2009-03-23 16:37:49 +0000
a26691a67c* passwd.c (main): Always get logonserver from environment and use when fetching user info for caller.
Corinna Vinschen
2009-03-22 19:18:26 +0000
a9a520b62b* cygwin.din: Export log2, log2f as functions. * posix.sgml: Add them to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2009-03-19 09:22:01 +0000
d57ff5a8ac2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston
2009-03-18 18:11:18 +0000
2db87fe669* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV) (NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS) (NT_OPENBSD_WCOOKIE): New defines.
Mark Kettenis
2009-03-18 15:57:17 +0000
f48bb39e20*** empty log message ***
Christopher Faylor
2009-03-18 14:47:13 +0000
c4509a7ac2Re-add inexplicably missing ldh.cc.
Christopher Faylor
2009-03-18 14:46:24 +0000
9e112520ff* sec_auth.cc (lsaauth): Remove local definitions of struct _TOKEN_LINKED_TOKEN and TokenLinkedToken in favor of definitions from winnt.h. (lsaprivkeyauth): As in lsaauth, fetch linked token if available and return that in favor of default token.
Corinna Vinschen
2009-03-18 13:58:35 +0000
49536558ef* cygwin-ug-net.in.sgml: Update date. * cygwinenv.sgml: Fix codepage:utf8 text in terms of setting environment variables. * new-features.sgml: New file describing new Cygwin 1.7 features. Layout is preliminiary only. * overview.sgml: Insert content of new-features.sgml.
Corinna Vinschen
2009-03-18 11:29:27 +0000
c666186be8include/ * alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13 documentation. bfd/ * elf32-m68hc1x.c: Include alloca-conf.h. * xsym.c: Likewise. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. * som.c: Likewise. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * sysdep.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * as.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * openrisc-opc.c: Regenerate. ld/ * ld.h: Remove alloca handling.
Alan Modra
2009-03-18 11:27:16 +0000
1233ba242b* overview2.sgml: Remove reference to CYGWIN=binmode. * textbinary.sgml: Ditto. Rephrase certain paragraphs to match Cygwin 1.7 behaviour. Add popen(3) and pipe(2) behaviour. Make quite clear that binmode is preferred. Add *mode.o files to description for developers.
Corinna Vinschen
2009-03-18 11:05:45 +0000
2e13058eac* ldd.cc (load_dll): Start helper program rather than ldd.exe. (set_entry_point_break): Rename from get_entry_point. (print_dlls): Rename from print_dlls_and_kill_inferior. Avoid printing specific dll name if we're looking at a dll. (report): Always dump dlls on process exit. Don't allow thread creation. Accommodate get_entry_point rename. (start_process): Start process with DEBUG_ONLY_THIS_PROCESS. (longopts): Eliminate "dll" option. (main): Ditto. * ldd.cc: Use wide character Win32 paths throughout. (load_dll): Fix size expression (add fn) in realloc.
Christopher Faylor
2009-03-18 04:19:05 +0000
cb55223679merge from gcc
DJ Delorie
2009-03-18 00:07:38 +0000
7b011fb192* include/inttypes.h: Remove "l" size specifier from all 16 and 32 bit definitions.
Corinna Vinschen
2009-03-15 13:29:04 +0000
d5e4f55b14* ldd.cc (longopts): Add --dll option. (get_module_filename): Generalized wrapper function which avoid path length restrictions. (load_dll): Handle special-case of inspecting a DLL. (start_process): Accept an output parameter "isdll". Detect when file to start is a DLL and start a wrapper instead. (print_dlls_and_kill_inferior): When dealing with a DLL, avoid printing everything before the DLL itself first appears. (This is not strictly correct and should be fixed eventually) (report): Deal with DLLs. Don't set a breakpoint for DLLs, just let captive ldd process terminate normally. Pass dll info to print_dlls_and_kill_inferior. (main): Handle special-case "--dll" option by loading the DLL and exiting.
Christopher Faylor
2009-03-14 18:40:59 +0000
6612934a40* path.cc (warn_msdos): Don't warn about MS-DOS filenames encountered during initialization.
Christopher Faylor
2009-03-14 18:35:26 +0000
5c8c49cc43* path.cc (from_fstab): Use wcstombs/mbstowcs instead of WideCharToMultiByte/MultiByteToWideChar to accommodate current locale.
Corinna Vinschen
2009-03-14 14:58:05 +0000
26fb7ef5e4* wide_path.h (class wide_path): New class to convert Windows path to WCHAR win32 path, including long path conversion if necessary. * cygcheck.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (display_error): Use snprintf rather than sprintf. (display_error_fmt): Ditto. (dump_sysinfo): Use FindFirstFileW/FindNextFileW. * cygpath.cc: Use class wide_path throughout to call Win32 functions taking potentially long filenames. (get_device_name): Raise buffer size to take long pathnames. (get_short_paths): Convert to using GetShortPathNameW. (get_short_name): Ditto. (get_long_path_name_w32impl): Convert to equivalent of GetLongPathNameW. (get_long_name): Convert to using GetLongPathNameW. (do_sysfolders): Raise buffer size for POSIX pathname to PATH_MAX. (do_pathconv): In case of POSIX->Win32 conversion, convert to wchar_t Win32 path name and drop long pathname prefix if possible. (main): Call setlocale to accommodate wide char/multibyte conversions.
Corinna Vinschen
2009-03-14 14:56:20 +0000
f03b7b10ec* libc/include/stdlib.h (_mkstemp_r, _mktemp_r): Move out of !_REENT_ONLY section.
Corinna Vinschen
2009-03-14 12:17:19 +0000
71675a3908* libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations to stdlib.h. * libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using. * libc/stdio/mktemp.c: Explain the security risk when using mktemp.
Corinna Vinschen
2009-03-14 12:14:08 +0000
c7cf32ee27include/coff/ * xcoff.h (XCOFF_EXPALL, XCOFF_EXPFULL): New flags. (xcoff_loader_info): Add auto_export_flags.
Richard Sandiford
2009-03-14 09:35:45 +0000
443e66934cinclude/coff/ * internal.h (C_AIX_WEAKEXT): New macro. (C_WEAKEXT): Use the GNU definition in the generic part of the file, and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of the file. (CSECT_SYM_P): New macro. * xcoff.h (L_WEAK): Define. (EXTERN_SYM_P): New macro.
Richard Sandiford
2009-03-14 09:34:26 +0000
07aa5b7d9einclude/coff/ * xcoff.h (XCOFF_ALLOCATED): New flag.
Richard Sandiford
2009-03-14 09:33:38 +0000