summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add eXtensible Data Record (XDR) supportCorinna Vinschen2010-03-0246-14/+4995
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.host: Build libc/xdr only on cygwin. * Makefile.am: Install xdr headers. * libc/configure.in: Support new libc/xdr subdirectory. * libc/Makefile.am: Support new libc/xdr subdirectory. * libc/include/rpc/types.h: New. * libc/include/rpc/xdr.h: New. * libc/xdr/README: New. * libc/xdr/Makefile.am: New. * libc/xdr/dummy.c: New. * libc/xdr/xdr.c: New. * libc/xdr/xdr_array.c: New. * libc/xdr/xdr_float.c: New. * libc/xdr/xdr_float_vax.c: New. * libc/xdr/xdr_mem.c: New. * libc/xdr/xdr_private.c: New. * libc/xdr/xdr_private.h: New. * libc/xdr/xdr_rec.c: New. * libc/xdr/xdr_reference.c: New. * libc/xdr/xdr_sizeof.c: New. * libc/xdr/xdr_stdio.c: New. Regenerate using ac-2.63 and am-1.11.1 * libc/xdr/Makefile.in: New. * Makefile.in: Regenerate. * libc/configure: Regenerate. * libc/Makefile.in: Regenerate. * libc/argz/Makefile.in: Regenerate. * libc/ctype/Makefile.in: Regenerate. * libc/errno/Makefile.in: Regenerate. * libc/iconv/ccs/binary/Makefile.in: Regenerate. * libc/iconv/ccs/Makefile.in: Regenerate. * libc/iconv/ces/Makefile.in: Regenerate. * libc/iconv/lib/Makefile.in: Regenerate. * libc/iconv/Makefile.in: Regenerate. * libc/locale/Makefile.in: Regenerate. * libc/misc/Makefile.in: Regenerate. * libc/posix/Makefile.in: Regenerate. * libc/reent/Makefile.in: Regenerate. * libc/search/Makefile.in: Regenerate. * libc/signal/Makefile.in: Regenerate. * libc/stdio/Makefile.in: Regenerate. * libc/stdio64/Makefile.in: Regenerate. * libc/stdlib/Makefile.in: Regenerate. * libc/string/Makefile.in: Regenerate. * libc/syscalls/Makefile.in: Regenerate. * libc/time/Makefile.in: Regenerate. * libc/unix/Makefile.in: Regenerate.
* * cygtls.h: Replace /*gentls_offsets*/ at end.Christopher Faylor2010-03-022-1/+5
|
* * exception.h: Fix copyright.Christopher Faylor2010-03-012-1/+5
|
* Fix/delete inaccurate comments.Christopher Faylor2010-03-012-2/+2
|
* Update some copyrights.Christopher Faylor2010-02-289-216/+198
| | | | | | | | | | | | | | | | | | | | | | * cygtls.cc (_cygtls::call): Invoke new exception protection here. (_cygtls::init_thread): Remove conditionalized exception handler setup. (exception_list): Delete declaration. (_cygtls::init_exception_handler): Delete obsolete function. * cygtls.h: Remove (now) unneeded include. (_cygtls): Make this a real C++ class. (_cygtls::handle_exceptions): Remove. (_cygtls::init_exception_handler): Remove. (_cygtls::call2): Make private. (myfault::faulted): Remove unneeded parentheses. * dcrt0.cc (dll_crt0_1): Remove exception handler setup. * dlfcn.cc (dlopen): Ditto. (dlclose): Ditto. * dll_init.cc (dll_dllcrt0_1): Ditto. (dll_list::detach): Use new exception handler protection. * exceptions.cc (dump_exception): Rename to prevent confusion with new class. (exception::handle): Rename from _cygtls::handle_exceptions. Accommodate new exception class. Accommodate rename to dump_exception. * tlsoffsets.h: Regenerate.
* * cygtls.h (_cygtls::init_exception_handler): Eliminate argument.Christopher Faylor2010-02-269-89/+125
| | | | | | | | | | | | | | | | | | | | (_cygtls::andreas): Convert to a pointer. (san): Convert to a real class with methods. Use a linked list to keep track of previous handlers on the "stack". (myfault): Rewrite to use new san class rather than calling directly into _cygtls. * cygtls.cc (_cygtls::init_exception_handler): Just assume that we're always using the standard exception handler. (_cygtls::init_thread): Reflect loss of argument to init_exception_handler. * dcrt0.cc (dll_crt0_1): Ditto. * dfcn.cc (dlopen): Ditto. (dlclose): Reset the exception handler after FreeLibrary. * dll_init.cc (dll_list::detach): Make sure that the exception handler is initialized before calling destructors. * exceptions.cc (_cygtls::handle_exceptions): Accommodate new andreas pointer. * thread.cc (verifyable_object_isvalid): Pass objectptr to faulted for explicit NULL pointer checking. * tlsoffsets.h: Regenerate.
* * mkimport: cd away from temp directory or Windows will have problems removingChristopher Faylor2010-02-262-0/+6
| | | | the directory.
* * new-features.sgml (ov-new1.7.2): Add strptime changes.Corinna Vinschen2010-02-262-5/+9
|
* * libc/strptime.cc: Implement support for era, alt_digits and POSIXCorinna Vinschen2010-02-262-47/+423
| | | | | | | | | | | | | | | | | | | | padding and width modifiers. (era_info_t): New type. (free_era_info): New static function to free era_info_t storage. (get_era_info): New static function to create era_info_t storage from LC_TIME era information. (alt_digits_t): New type. (get_alt_digits): New static function to create alt_digits_t storage from LC_TIME alt_digits information. (free_alt_digits): New static function to free alt_digits_t storage. (find_alt_digits): New static function to scan input for alternative digits and return them, if any. Return NULL otherwise. (__strptime): New static function taking all code from strptime. Implement handling for E, O, +, 0, and width modifiers per POSIX-1.2008. (strptime): Convert into wrapper function to provide era_info and alt_digits pointers and call __strptime. (conv_num): Take additional alt_digits_t parameter and if it's not NULL, call find_alt_digits to convert.
* * strsig.cc: Fix formatting and copyright.Corinna Vinschen2010-02-262-3/+7
|
* 2010-02-26 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet2010-02-262-10/+16
| | | | | * security.cc (check_access): Use user.imp_token if appropriate. Set errno and return if DuplicateTokenEx fails .
* * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.Yaakov Selkowitz2010-02-262-0/+7
|
* * new-features.sgml (ov-new1.7.2): Add strftime/wcsftime changes.Corinna Vinschen2010-02-262-0/+12
|
* * libm/common/s_ilogb.c: Fix typo in comments that causes docCorinna Vinschen2010-02-262-3/+8
| | | | generation to fail.
* * libc/time/strftime.c: Add support for era and alt_digits data fromCorinna Vinschen2010-02-264-103/+644
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LC_TIME locale category. Conditionalize using _WANT_C99_TIME_FORMATS flag. (STRTOUL): Define differently for building strftime or wcsftime. (STRCPY): Ditto. (STRCHR): Ditto. (STRLEN): Ditto. (CHECK_LENGTH): Define to simplify code. (era_info_t): New type to store era info. (get_era_info): New function to fetch era info matching incoming struct tm. (free_era_info): New function to free era info. (alt_digits_t): New type to store alternative digits. (get_alt_digits): New function to convert alt_digits string into alt_digits_t structure. (free_alt_digits): New function to free alt_digits info. (conv_to_alt_digits): New function to convert unsigned value into alternative digits. (strftime): Conditionalize on _WANT_C99_TIME_FORMATS. If _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function providing era_info and alt_digits pointers and call ... (__strftime): Rename from strftime and make static if _WANT_C99_TIME_FORMATS is defined. Add parameters for era_info and alt_digits pointers. Handle conversion modifiers according to POSIX-1.2008. Redefine %F and %Y according to POSIX. Add default case to allow to bail out on invalid conversion specifiers. * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's config.h. * libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
* Add missing ChangeLog checkin.Corinna Vinschen2010-02-261-0/+7
|
* Remove all traces of __CYGWIN_USE_BIG_TYPES__.Corinna Vinschen2010-02-268-71/+15
| | | | | * include/cygwin/config.h: Move Cygwin-specific build flags from newlib's sys/config.h here. Add a comment.
* * new-features.sgml (ov-new1.7.2): Add SIGPWR support.Yaakov Selkowitz2010-02-262-0/+5
|
* * include/cygwin/signal.h: Define SIGPWR as synonym for SIGLOST.Yaakov Selkowitz2010-02-264-2/+11
| | | | | * strsig.cc: Ditto. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
* * lc_era.h (lc_era_t): Fix apparent glibc bug in ja_JP era definition.Corinna Vinschen2010-02-252-1/+5
|
* * utils.sgml (locale): Change description of -a and -av to matchCorinna Vinschen2010-02-252-15/+53
| | | | latest changes.
* * new-features.sgml (ov-new1.7.2): Move stty erase support intoCorinna Vinschen2010-02-252-5/+10
| | | | correct category. Change "console window" to "Windows console".
* * libc/locale/locale.c (loadlocale): Fix typo in comment.Corinna Vinschen2010-02-252-2/+6
|
* * libc/locale/locale.c: Throughout, extensively comment on theCorinna Vinschen2010-02-253-8/+42
| | | | | | | | reason for using __CYGWIN__. (lconv): Remove _CONST entirely. (loadlocale): Guard calls to function loading locale-specific category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__. * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
* * config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop,Nick Clifton2010-02-252-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | mips_fix_loongson2f_jump): New variables. (md_longopts): Add New options -mfix-loongson2f-nop/jump, -mno-fix-loongson2f-nop/jump. (md_parse_option): Initialize variables via above options. (options): New enums for the above options. (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN. (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump): New functions. (append_insn): call fix_loongson2f(). (mips_handle_align): Replace the implicit nops. * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified for the new mips_handle_align(). * doc/c-mips.texi: Document the new options. * gas/mips/loongson-2f-2.s: New test of -mfix-loongson2f-nop. * gas/mips/loongson-2f-2.d: Likewise. * gas/mips/loongson-2f-3.s: New test of -mfix-loongson2f-jump. * gas/mips/loongson-2f-3.d: Likewise. * gas/mips/mips.exp: Run the new tests. * opcode/mips.h (LOONGSON2F_NOP_INSN): New macro.
* 2010-02-24 Charles Wilson <...>Jeff Johnston2010-02-24225-7547/+9688
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work around issues with new libtool files in .. * configure.in: Unconditionally call _LT_PROG_ECHO_BACKSLASH. * iconvdata/configure.in: Ditto. * libc/configure.in: Ditto. * libc/machine/configure.in: Ditto. * libc/machine/i386/configure.in: Ditto. * libc/sys/configure.in: Ditto. * libc/sys/linux/configure.in: Ditto. * libc/sys/linux/linuxthreads/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/linux/machine/i386/configure.in: Ditto. * libm/configure.in: Ditto. * libm/machine/configure.in: Ditto. * libm/machine/i386/configure.in: Ditto. * libc/machine/sh/configure.in: Ditto. Also, call AC_NO_EXECUTABLES before NEWLIB_CONFIGURE. * aclocal.m4: Regenerated. * configure: Ditto. * Makefile.in: Ditto. * doc/aclocal.m4: Ditto. * doc/Makefile.in: Ditto. * libc/*/aclocal.m4: Ditto. * libc/*/Makefile.in: Ditto. * libc/*/configure: Ditto. * libm/*/aclocal.m4: Ditto. * libm/*/Makefile.in: Ditto. * libm/*/configure: Ditto.
* 2010-02-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2010-02-242-0/+5
| | | | * libc/stdlib/__call_exit.c: Add include of sys/lock.h.
* * sec_auth.cc (get_full_privileged_inheritable_token): Fix dumb typoCorinna Vinschen2010-02-242-2/+7
| | | | when checking linked token for being a primary token.
* * dlfcn.cc (dlopen): Make sure exception handler is really loaded after dynamicChristopher Faylor2010-02-242-0/+8
| | | | load.
* * cygtls.cc (_cygtls::init_exception_handler): Force installation of ourChristopher Faylor2010-02-242-8/+30
| | | | exception handler to always be at the beginning.
* 2010-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2010-02-232-57/+7
| | | | | * libc/include/sys/types.h: Fix __XMK__ sectioning and remove redundant code section for __XMK__.
* * locale.cc (printlocale): Remove.Corinna Vinschen2010-02-232-17/+182
| | | | | | | | | | | | | | | | (loc_t): New type to keep locale information for printing. (print_codeset): New function to print codeset as on Linux. (print_locale_with_codeset): New function to print single locale. Print verbose style as the Linux locale(1) tool. (print_locale): New function to print single locale plus its UTF-8 variation, if available. (compare_locales): New helper function for bsearch and qsort on loc_t. (add_locale): New function to store locale in loc_t array. (add_locale_alias_locales): New function to store locales from locale.alias file in loc_t. (print_all_locales): Call add_locale instead of printlocale. Call add_locale_alias_locales, sort locales alphabetically and print them.
* PR 11297: Add support for 8-bit relocations to the AVR toolchain.Nick Clifton2010-02-232-8/+14
|
* * thread.cc (pthread_mutex::unlock): Don't attempt to unlock if there is anChristopher Faylor2010-02-232-5/+10
| | | | error.
* * strace.cc (mnemonic_table): Add "special" mask option.Christopher Faylor2010-02-223-38/+49
| | | | | (usage): Document it. * utils.sgml: Ditto.
* * include/sys/strace.h: Define _STRACE_SPECIAL.Christopher Faylor2010-02-224-107/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (strace_printf_wrap): Fix NOSTRACE definitions. (strace_printf_wrap1): Fix NOSTRACE definitions. (special_printf): Define. * thread.cc: Perform minor syntax fix in a comment. Rename "is_good_initialzer*" to "is_initializer*" throughout. Use pthread_printf rather than debug_printf throughout. Add extra pthread_printf debugging throughout. (pthread_mutex::_new_mutex): New constant value. (pthread_mutex::_unlocked_mutex): Ditto. (pthread_mutex::_destroyed_mutex): Ditto. (pthread_mutex::no_owner): Define new function. (pthread_mutex::can_be_unlocked): Detect no_owner situation. Handle PTHREAD_MUTEX_NORMAL as a special case. (pthread::create_cancel_event): Use C++ boolean values. (pthread::precreate): Use method to set mutex type. (pthread_cond::pthread_cond): Ditto. (pthread_rwlock::pthread_rwlock): Ditto. (pthread_mutex::pthread_mutex): Set owner to _new_mutex initially. (pthread_mutex::~pthread_mutex): Reset various elements to make it clearer if they are incorrectly reused. (pthread_mutex::lock): Add clarifying comment. (pthread_mutex::unlock): Attempt to handle various mutex types correctly. In particular, reinstate ability to have one thread unlock another thread's mutex if type == PTHREAD_MUTEX_NORMAL. (semaphore::_fixup_after_fork): Avoid redundancy. (pthread_mutex::_fixup_after_fork): Ditto. Fix debugging statement. (__pthread_cond_dowait): Accommodate changes to remove previously inexplicable use can_be_unblocked() as a static function. * thread.h: Rename "is_good_initialzer*" to "is_initializer*" throughout. (pthread_mutex): Reorganize. Make many things private. (pthread_mutex::no_owner): Define new method. (pthread_mutex::_new_mutex): Define new constant. (pthread_mutex::_unlocked_mutex): Ditto. (pthread_mutex::_destroyed_mutex): Ditto.
* * cygpath.cc (do_pathconv): Fix erroneously printing native NT pathCorinna Vinschen2010-02-222-1/+8
| | | | prefix introduced by previous patch.
* * lc_era.h: Redefine lc_era_t to keepCorinna Vinschen2010-02-224-83/+137
| | | | | | | | | | default date and time formats as well to workaround YA Windows shortcoming. Refresh with latest data. * lc_msg.h: Refresh with latest data. * nlsfuncs.cc (__eval_datetimefmt): Revert latest change. (__set_lc_time_from_win): Rename res to era. Prefer default date and time formats from era array if available. (__set_lc_messages_from_win): Rename res to msg.
* * locale.cc (lc_time_names): Add "date_fmt" entry.Corinna Vinschen2010-02-222-0/+5
|
* * libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_itemCorinna Vinschen2010-02-223-0/+13
| | | | | | value for LC_TIME entry date_fmt. (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT. * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
* * lc_era.h (lc_era): Fix "ja_JP" era_t_fmt entry to use traditionalCorinna Vinschen2010-02-203-4/+23
| | | | | | | | | format. * nlsfuncs.cc (dt_flags): Remove DT_ERACAL since crippled era data in Windows makes it useless. (__eval_datetimefmt): Check if locale's default calender has non-gregorian start year. Use era year also in default date entries, if so.
* * path.cc (warn_msdos): Enforce extended hex printing of multibyteCorinna Vinschen2010-02-202-2/+7
| | | | pathnames.
* Update copyrightChristopher Faylor2010-02-192-2/+2
|
* utils/ChangeLog:Christopher Faylor2010-02-195-30/+20
| | | | | | | | | | * strace.cc (mnemonic_table): Add pthread mask option. (usage): Document strace pthread mask option. * utils.sgml: Ditto. cygwin/ChangeLog: * include/sys/strace.h: Remove old code. Add support for ptrace tracing.
* * lc_era.h: New file.Corinna Vinschen2010-02-193-23/+122
| | | | | | | * nlsfuncs.cc: Include lc_era.h. (locale_cmp): convert arguments to char** to be usable for both types, lc_msg_t and lc_era_t. (__set_lc_time_from_win): Handle era-related data
* * locale.cc (print_lc_mstrings): New function to printCorinna Vinschen2010-02-192-2/+46
| | | | | | | | | semicolon-separated strings. (enum type_t): New type is_sepstrings_linf. (lc_time_names): Change type of era and alt_digits entry to is_sepstrings_linf. (print_lc): Add case for is_sepstrings_linf and call print_lc_mstrings in that case.
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Try to openCorinna Vinschen2010-02-192-11/+38
| | | | directory with stat()-friendly access mask first. Explain why.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdevCorinna Vinschen2010-02-192-15/+21
| | | | | | | to same value as st_dev. Avoid useless debug output in executable check. Add filename to debug output. (fhandler_disk_file::facl): Simplify code calling fstat methods to just call fstat to avoid errors with the cygdrive directory.
* * libc/ctype/iswalpha.c (iswalpha): Update to Unicode 5.2.Corinna Vinschen2010-02-1810-841/+1118
| | | | | | | | | | | | | | * libc/ctype/iswprint.c (iswprint): Ditto. * libc/ctype/iswpunct.c (iswpunct): Drop standalone implementation. Define in terms of other wctype functions instead. * libc/ctype/towlower.c (towlower): Update to Unicode 5.2. Add comment to explain how to fetch the data from the Unicode database. * libc/ctype/towupper.c (towupper): Ditto. * libc/ctype/utf8alpha.h: Ditto. * libc/ctype/utf8print.h: Ditto. * libc/ctype/utf8punct.h: Remove. * libc/ctype/iswcntrl.c (iswcntrl): Add comment to explain how to fetch the data from the Unicode database.
* * nlsfuncs.cc (eval_datetimefmt): Rename force to flags.Corinna Vinschen2010-02-182-16/+51
| | | | | | | | (enum dt_flags): Define. (__eval_datetimefmt): Change force to flags and change type to dt_flags. Accommodate throughout. (__set_lc_time_from_win): Accommodate above change. Set era-related values to empty strings for now.