aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2010-03-02* cygtls.h: Replace /*gentls_offsets*/ at end.Christopher Faylor2-1/+5
2010-03-01* exception.h: Fix copyright.Christopher Faylor2-1/+5
2010-03-01Fix/delete inaccurate comments.Christopher Faylor2-2/+2
2010-02-28Update some copyrights.Christopher Faylor9-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.
2010-02-26* cygtls.h (_cygtls::init_exception_handler): Eliminate argument.Christopher Faylor9-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.
2010-02-26* mkimport: cd away from temp directory or Windows will have problems removingChristopher Faylor2-0/+6
the directory.
2010-02-26 * new-features.sgml (ov-new1.7.2): Add strptime changes.Corinna Vinschen2-5/+9
2010-02-26 * libc/strptime.cc: Implement support for era, alt_digits and POSIXCorinna Vinschen2-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.
2010-02-26 * strsig.cc: Fix formatting and copyright.Corinna Vinschen2-3/+7
2010-02-262010-02-26 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet2-10/+16
* security.cc (check_access): Use user.imp_token if appropriate. Set errno and return if DuplicateTokenEx fails .
2010-02-26 * utils.sgml (kill): Add SIGIO, SIGCLD, and SIGPWR.Yaakov Selkowitz2-0/+7
2010-02-26 * new-features.sgml (ov-new1.7.2): Add strftime/wcsftime changes.Corinna Vinschen2-0/+12
2010-02-26 Add missing ChangeLog checkin.Corinna Vinschen1-0/+7
2010-02-26 Remove all traces of __CYGWIN_USE_BIG_TYPES__.Corinna Vinschen8-71/+15
* include/cygwin/config.h: Move Cygwin-specific build flags from newlib's sys/config.h here. Add a comment.
2010-02-26 * new-features.sgml (ov-new1.7.2): Add SIGPWR support.Yaakov Selkowitz2-0/+5
2010-02-26 * include/cygwin/signal.h: Define SIGPWR as synonym for SIGLOST.Yaakov Selkowitz4-2/+11
* strsig.cc: Ditto. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
2010-02-25 * lc_era.h (lc_era_t): Fix apparent glibc bug in ja_JP era definition.Corinna Vinschen2-1/+5
2010-02-25 * utils.sgml (locale): Change description of -a and -av to matchCorinna Vinschen2-15/+53
latest changes.
2010-02-25 * new-features.sgml (ov-new1.7.2): Move stty erase support intoCorinna Vinschen2-5/+10
correct category. Change "console window" to "Windows console".
2010-02-24 * sec_auth.cc (get_full_privileged_inheritable_token): Fix dumb typoCorinna Vinschen2-2/+7
when checking linked token for being a primary token.
2010-02-24* dlfcn.cc (dlopen): Make sure exception handler is really loaded after dynamicChristopher Faylor2-0/+8
load.
2010-02-24* cygtls.cc (_cygtls::init_exception_handler): Force installation of ourChristopher Faylor2-8/+30
exception handler to always be at the beginning.
2010-02-23 * locale.cc (printlocale): Remove.Corinna Vinschen2-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.
2010-02-23* thread.cc (pthread_mutex::unlock): Don't attempt to unlock if there is anChristopher Faylor2-5/+10
error.
2010-02-22* strace.cc (mnemonic_table): Add "special" mask option.Christopher Faylor3-38/+49
(usage): Document it. * utils.sgml: Ditto.
2010-02-22* include/sys/strace.h: Define _STRACE_SPECIAL.Christopher Faylor4-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.
2010-02-22 * cygpath.cc (do_pathconv): Fix erroneously printing native NT pathCorinna Vinschen2-1/+8
prefix introduced by previous patch.
2010-02-22 * lc_era.h: Redefine lc_era_t to keepCorinna Vinschen4-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.
2010-02-22 * locale.cc (lc_time_names): Add "date_fmt" entry.Corinna Vinschen2-0/+5
2010-02-20 * lc_era.h (lc_era): Fix "ja_JP" era_t_fmt entry to use traditionalCorinna Vinschen3-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.
2010-02-20 * path.cc (warn_msdos): Enforce extended hex printing of multibyteCorinna Vinschen2-2/+7
pathnames.
2010-02-19Update copyrightChristopher Faylor2-2/+2
2010-02-19utils/ChangeLog:Christopher Faylor5-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.
2010-02-19 * lc_era.h: New file.Corinna Vinschen3-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
2010-02-19 * locale.cc (print_lc_mstrings): New function to printCorinna Vinschen2-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.
2010-02-19 * fhandler_disk_file.cc (fhandler_disk_file::opendir): Try to openCorinna Vinschen2-11/+38
directory with stat()-friendly access mask first. Explain why.
2010-02-19 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdevCorinna Vinschen2-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.
2010-02-18 * nlsfuncs.cc (eval_datetimefmt): Rename force to flags.Corinna Vinschen2-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.
2010-02-18* fhandler.cc (fhandler_base::setup_overlapped): Revert to starting with handleChristopher Faylor2-1/+6
in signalled state as it seems to fix some hangs.
2010-02-182010-02-17 LRN <lrn1986@gmail.com>Chris Sutcliffe4-0/+37
* include/shlguid.h (IID_IFolderView): Define. * include/shlobj.h (IFolderView interface): Define. * lib/shell32.c (IID_IFolderView): Export.
2010-02-17 * new-features.sgml (ov-new1.7.2): Accommodate name change of getlocaleCorinna Vinschen3-4/+11
to locale. * setup2.sgml (setup-locale-how): Ditto.
2010-02-17 * Makefile.in (CYGWIN_BINS): Rename getlocale to locale.Corinna Vinschen5-292/+719
* getlocale.c: Rename to ... * locale.cc: Revamp to add full functionality of POSIX locale(1) tool, as far as Cygwin supports it. * utils.sgml (getlocale): Move and rename to ... (locale): Accommodate new functionality.
2010-02-172010-02-14 Roumen Petrov <rumen@users.sourceforge.net>Chris Sutcliffe13-11/+674
Issue [2134161]: time64 functions and types for msvcrt >= 8.0 (initial implementation) * new type: __time32_t * new structures: _finddata32_t, _finddata32i64_t, _finddata64i32_t, __stat32, _stat32i64, _stat64i32, __timeb32, __utimbuf32, __wfinddata32_t, _wfinddata32i64_t, _wfinddata64i32_t * new functions: _ctime32, _difftime32, _difftime64, _findfirst32 _findfirst32i64, _findfirst64i32, _findnext32, _findnext32i64, _findnext64i32, _fstat32, _fstat32i64, _fstat64i32, _ftime32, _futime32, _gmtime32, _localtime32, _mkgmtime32, _mkgmtime64, _mktime32, _stat32, _stat32i64, _stat64i32, _time32, _utime32, _wctime32, _wfindfirst32, _wfindfirst32i64, _wfindfirst64i32, _wfindnext32, _wfindnext32i64, _wfindnext64i32, _wstat32, _wstat32i64, _wstat64i32,_wutime32 * new define _USE_32BIT_TIME_T set 32 or 64 aliases for: time_t, ctime, difftime, _findfirst, _findfirsti64, _findnext, _findnexti64, _fstat, _fstati64, _ftime, _futime, gmtime, localtime, mktime, _stat, _stati64, time, _utime, _wctime, _wfindfirst, _wfindfirsti64, _wfindnext, _wfindnexti64, _wstat, _wstati64, _wutime
2010-02-15 * new-features.sgml (ov-new1.7.2): Add native DOS path and UNC pathCorinna Vinschen3-5/+84
change. * pathnames.sgml (pathnames-intro): Make the Win32 path text a note and xref to new pathnames-win32 section. (cygdrive): Add description how the cygdrive mount flags apply to UNC paths starting with slashes. (pathnames-win32): New section describing native path handling.
2010-02-15 * path.cc (path_conv::check): Treat native DOS paths as "noacl".Corinna Vinschen2-5/+11
2010-02-15 * mount.cc (mount_info::conv_to_win32_path): Set UNC path flags toCorinna Vinschen2-0/+14
cygdrive prefix path flags.
2010-02-15* fhandler.cc (fhandler_base::setup_overlapped): Don't set signalled state toChristopher Faylor4-26/+12
true initially. (fhandler_base::has_ongoing_io): Delete ill-advised function. (fhandler_base::read_overlapped): Rely on caller having checked nonblocking state. Don't attempt to (incorrectly) check it here. (fhandler_base::write_overlapped): Remove call to has_ongoing_io. * select.cc (peek_pipe): Ditto. * fhandler.h (fhandler_base::has_ongoing_io): Delete declaration.
2010-02-14* regex/regcomp.c (xwcrtomb): Fix one explicable and one inexcplicable CChristopher Faylor2-2/+7
warning.
2010-02-13 * regex/regcomp.c (xwcrtomb): Don't convert Unicode chars outside theCorinna Vinschen2-8/+17
base plane always to UTF-8. Call wcsnrtombs instead to allow arbitrary multibyte charsets.
2010-02-13 * cygpath.cc (do_pathconv): Fix potential crash.Corinna Vinschen2-6/+8