summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/locale/locale.c (loadlocale): Only change __wctomb and __mbtowcCorinna Vinschen2009-03-252-24/+36
| | | | pointers if category is LC_CTYPE.
* * environ.cc (environ_init): Break from locale loop after first hit.Corinna Vinschen2009-03-253-2/+29
| | | | | * fhandler_console.cc (fhandler_console::write_normal): Print a SO sequence using always valid Unicode chars.
* * new-features.sgml: Add missing GB2312 and eucKR character sets.Corinna Vinschen2009-03-255-11/+352
| | | | | | | | | | * 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".
* * strfuncs.cc (__kr_wctomb): Use codepage 51949 rather than 50949.Corinna Vinschen2009-03-252-5/+12
| | | | | | (__kr_mbtowc): Ditto. (__set_charset_from_codepage): Ditto. Translate codepage 936 to "GB2312" and drop the charset name "GBK".
* * libc/locale/locale.c (loadlocale): Rename charset "GBK" toCorinna Vinschen2009-03-252-3/+8
| | | | "GB2312". Fix documentation accordingly.
* * strfuncs.cc (__kr_wctomb): Use codepage 50949 rather than 949.Corinna Vinschen2009-03-242-4/+12
| | | | | | (__kr_mbtowc): Ditto. (__set_charset_from_codepage): Translate codepages 949 and 50949 to "EUCKR" and drop the charset name "CP949".
* * libc/locale/locale.c (loadlocale): Rename charset "CP949" toCorinna Vinschen2009-03-242-24/+35
| | | | "eucKR". Fix documentation accordingly.
* * libc/locale/locale.c (loadlocale): Allow charset starting with 'e'Corinna Vinschen2009-03-242-0/+6
| | | | for "eucJP" charset support.
* * strfuncs.cc (sys_cp_mbstowcs): Don't read beyond src + nms.Corinna Vinschen2009-03-242-1/+6
|
* 2009-03-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-03-242-1/+6
| | | | | * libc/include/sys/errno.h: Move EFTYPE to general usage because it is used in libc/search.
* * new-features.sgml: Add section about chaged (no)winsymlink default.Corinna Vinschen2009-03-242-0/+8
|
* * shared_info.h (CURR_SHARED_MAGIC): Update.Corinna Vinschen2009-03-242-1/+5
|
* * cygcheck.cc (dump_sysinfo): Fix compiler warning in printf.Corinna Vinschen2009-03-244-3/+8
| | | | | * strace.cc (proc_child): Ditto. * ldd.cc: Remove now useless undef wcscasecmp.
* * wchar.h: Replace UINT with unsigned int.Corinna Vinschen2009-03-242-1/+5
|
* * wchar.h: Remove erroneous "C" specifier from extern declaration.Corinna Vinschen2009-03-242-10/+15
|
* * cygwinenv.sgml: Move "codepage:xxx" to the removed options section.Corinna Vinschen2009-03-243-28/+39
| | | | | Change text accordingly. * new-features.sgml: Try to explain new way to define character sets.
* * ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.Corinna Vinschen2009-03-2414-315/+1336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (__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.
* * sec_auth.cc (str2buf2uni): Remove.Corinna Vinschen2009-03-243-14/+5
| | | | * security.h (str2buf2uni): Remove declaration.
* * libc/ctype/iswalpha.c: Handle all wchar_t as unicode onCorinna Vinschen2009-03-2422-2196/+3361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _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.
* * include/mntent.h: Remove declarations of nonexistant addmntentCorinna Vinschen2009-03-242-6/+10
| | | | and hasmntopt. Update and clarify the /etc/mtab comment.
* * passwd.c (usage): Change description for -d option according toCorinna Vinschen2009-03-233-5/+29
| | | | | | previous change. (main): Fix typo. * utils.sgml: Add missing description for passwd -d option.
* 2009-03-23 Richard Earnshaw <rearnsha@arm.com>Jeff Johnston2009-03-232-1/+24
| | | | * libc/machine/arm/strcmp.c (strcmp): Treat char as unsigned.
* * passwd.c (caller_is_admin): New function to test if calling userCorinna Vinschen2009-03-232-19/+69
| | | | | | | | | 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.
* * smallprint.cc (__small_vsprintf): Handle NULL PWCHAR andCorinna Vinschen2009-03-232-3/+12
| | | | | PUNICODE_STRING arguments. (__small_vswprintf): Ditto.
* * include/asm/byteorder.h (__constant_ntohs): Remove declaration.Corinna Vinschen2009-03-232-2/+5
| | | | (__constant_ntohl): Ditto.
* * libc/locale/locale.c (loadlocale): Fix typo in language andCorinna Vinschen2009-03-232-4/+9
| | | | territory evaluation.
* * cygwin.din: Export wordexp, wordfree.Corinna Vinschen2009-03-234-3/+12
| | | | | * posix.sgml: Move them to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
* * include/sys/un.h: #include <string.h> for strlen.Corinna Vinschen2009-03-232-1/+6
|
* * passwd.c (main): Always get logonserver from environment andCorinna Vinschen2009-03-222-3/+11
| | | | use when fetching user info for caller.
* * ldd.cc: Fix compiler warning.Corinna Vinschen2009-03-223-21/+29
| | | | | | * passwd.c: Use mbstowcs instead of MultiByteToWideChar throughout. (main): Call setlocale. Fix a bug in fetching the logon server from the environment.
* include/elf:Ian Lance Taylor2009-03-202-0/+5
| | | | | | | | | | * common.h (SHT_GNU_INCREMENTAL_INPUTS): Define. elfcpp: * elfcpp.h (SHT_GNU_INCREMENTAL_INPUTS): Define. gold: * incremental.cc: New file. * Makefile.am (CCFILES): Add incremental.cc. * Makefile.in: Rebuild.
* 2009-03-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-03-203-3/+40
| | | | | | | * libc/include/sys/errno.h: Protect various non-standard errnos with either __LINUX_ERRNO_EXTENSIONS__ or __CYGWIN__. * libc/include/sys/config.h[__CYGWIN__]: Define __LINUX_ERRNO_EXTENSIONS__.
* * cygserver-config: Remove misleading text describing theCorinna Vinschen2009-03-202-7/+5
| | | | "CYGWIN=server" setting for the client.
* * libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of anCorinna Vinschen2009-03-193-16/+70
| | | | | | | | invalid character sequence. * libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to missing declaration of __locale_charset. * libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
* * dlfcn.cc (get_full_path_of_dll): Revert patch from 2008-07-16.Corinna Vinschen2009-03-192-2/+6
|
* * cygwin.din: Export log2, log2f as functions.Corinna Vinschen2009-03-194-1/+12
| | | | | * posix.sgml: Add them to SUSv4 list. * include/cygwin/version.h: Bump API minor number.
* * configure: Rebuild.Tom Tromey2009-03-185-3/+411
| | | | | | | * configure.ac (host_libs): Add libiconv. * Makefile.in: Rebuild. * Makefile.def (host_modules): Add libiconv. (configure-gdb, all-gdb): Depend on libiconv.
* 2009-03-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-03-186-25/+176
| | | | | | | | * libm/common/s_log2.c: New file. * libm/common/sf_log2.c: Ditto. * libm/common/Makefile.am: Add s_log2.c and sf_log2.c. * libm/common/Makefile.in: Regenerated. * libc/include/math.h: Add log2 and log2f function prototypes.
* * common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)Mark Kettenis2009-03-182-0/+18
| | | | | (NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS) (NT_OPENBSD_WCOOKIE): New defines.
* *** empty log message ***Christopher Faylor2009-03-181-0/+4
|
* Re-add inexplicably missing ldh.cc.Christopher Faylor2009-03-181-0/+17
|
* * sec_auth.cc (lsaauth): Remove local definitions of structCorinna Vinschen2009-03-182-12/+29
| | | | | | | _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.
* * winnt.h: Add Vista token security extensions.Corinna Vinschen2009-03-182-1/+73
| | | | | | | | | | | | | | | | (SID_HASH_SIZE): Define. (TOKEN_MANDATORY_POLICY_OFF, TOKEN_MANDATORY_POLICY_NO_WRITE_UP, TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN, TOKEN_MANDATORY_POLICY_VALID_MASK): Define. (SID_HASH_ENTRY): Define. (struct _SID_AND_ATTRIBUTES_HASH): Define. (struct _TOKEN_LINKED_TOKEN): Define. (struct _TOKEN_MANDATORY_LABEL): Define. (struct _TOKEN_MANDATORY_POLICY): Define. (struct _TOKEN_ELEVATION): Define. (struct _TOKEN_ACCESS_INFORMATION): Define. (enum _TOKEN_INFORMATION_CLASS): Conditionally define new Vista token information enumeration values.
* * cygwin-ug-net.in.sgml: Update date.Corinna Vinschen2009-03-185-4/+292
| | | | | | | | * 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.
* include/Alan Modra2009-03-182-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * overview2.sgml: Remove reference to CYGWIN=binmode.Corinna Vinschen2009-03-183-44/+102
| | | | | | | * 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.
* * ldd.cc (load_dll): Start helper program rather than ldd.exe.Christopher Faylor2009-03-183-75/+113
| | | | | | | | | | | | | (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.
* merge from gccDJ Delorie2009-03-182-2/+9
|
* * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destinationCorinna Vinschen2009-03-172-8/+17
| | | | string correctly.
* 2009-03-16 Mark Mitchell <mark@codesourcery.com>Jeff Johnston2009-03-164-17/+31
| | | | | | | | | | | * libc/machine/arm/strlen.c (strlen): Fix defect in Thumb-2 mode. 2009-03-16 Richard Earnshaw <rearnsha@arm.com> * libc/machine/arm/strlen.c (strlen): Correctly detect end-of-string. * libc/machine/arm/strcpy.c (strcpy): Likewise. * libc/machine/arm/strcmp.c (strcmp, strcmp_unaligned): Likewise.