Commit Graph

1342 Commits

Author SHA1 Message Date
Piotr Caban 344883fb85 msvcrt: Initialize lc_time_curr inside create_locale. 2011-12-07 17:50:04 +01:00
Piotr Caban dbff7a1ca2 msvcrt: Fix lc_collate_cp initialization. 2011-12-06 15:51:00 +01:00
Piotr Caban f84858ac2c msvcrt: Added _get_current_locale implementation. 2011-12-06 15:51:00 +01:00
Akihiro Sagawa 28184600e7 msvcrt: Add validity checks for _mbstrlen_l. 2011-12-01 14:17:35 +01:00
Akihiro Sagawa 13aff6dc56 msvcrt: Fix wctob in C locale. 2011-12-01 14:16:30 +01:00
Akihiro Sagawa f9403bfb90 msvcrt: Use given locale info in _mbtowcs_l. 2011-12-01 14:15:12 +01:00
André Hentschel f012242037 msvcrt: Implement _wasctime_s. 2011-11-30 17:04:39 +01:00
André Hentschel 35722cb4ce msvcrt: Implement asctime_s. 2011-11-30 17:04:35 +01:00
Eric Pouech d7bc2eff2f msvcrt: Implemented _ultow_s. 2011-11-29 13:23:47 +01:00
Piotr Caban 66520ea08a msvcrt: Fix FILE critical section initialization. 2011-11-24 20:57:01 +01:00
Piotr Caban 3fe5e6ee8a msvcrt: Keep FILE critical section initialized after closing file. 2011-11-23 14:14:39 +01:00
Frédéric Delanoy 520a92de33 msvcrt: Avoid hardcoding array lengths. 2011-11-23 09:11:22 +01:00
Francois Gouget d78bfe1149 msvcrt: Statically initialize and name the MSVCRT_file_cs critical section. 2011-11-16 17:02:10 +01:00
Piotr Caban 764b85511c msvcrt: Don't use fputc in flsbuf implementation. 2011-11-16 17:01:09 +01:00
Piotr Caban e4ac347075 msvcrt: Don't hold FILE critical section in some functions. 2011-11-15 19:37:37 +01:00
André Hentschel 947d1bf588 msvcrt: Implement _wfreopen_s. 2011-11-15 11:48:38 +01:00
André Hentschel ba5b0c34a8 msvcrt: Implement freopen_s. 2011-11-15 11:48:24 +01:00
Francois Gouget f2043352d1 msvcrt: Give a name to the critical sections. 2011-11-14 20:15:33 +01:00
Francois Gouget 8eef0cc258 dlls: Remove unneeded include directives in resource files. 2011-11-14 15:25:23 +01:00
Thomas Faber e374c8fe46 msvcrt: Fix MSVC build in locale.c. 2011-11-07 11:29:49 +01:00
Thomas Faber 5402827329 msvcrt: Fix MSVC build in exit.c and msvcrt.h. 2011-11-07 11:29:43 +01:00
Piotr Caban 698afdca98 msvcrt: Don't search for LCID in _setmbcp_l if it was already done. 2011-10-26 17:07:05 +02:00
Frédéric Delanoy 7bfe648666 msvcrt: Avoid superfluous cast of MSVCRT_malloc return value. 2011-10-21 12:31:36 +02:00
Piotr Caban 0bb641ad59 msvcrt: Initialize all ctype fields. 2011-10-18 18:29:19 +02:00
Marcus Meissner cd51c797f3 msvcrt: Use correct sizeof to realloc (Coverity). 2011-10-18 15:16:17 +02:00
Marcus Meissner 6ca6464cf3 msvcrt: Replaced bad memcpy by strcpy (Coverity). 2011-10-17 17:45:05 +02:00
Piotr Caban 922ae2e268 msvcrt: Fix handling of locales without region in MSVCRT_locale_to_LCID. 2011-10-14 13:12:28 +02:00
Piotr Caban 95f3be6573 msvcrt: Added missing calling convention specification. 2011-10-14 13:12:28 +02:00
Piotr Caban fea69b2305 msvcrt: Don't duplicate _setmbcp functionality inside _create_locale function. 2011-10-13 19:57:19 +02:00
Piotr Caban 99579ca42a msvcrt: Added _mbtowc_l implementation. 2011-10-12 17:09:34 +02:00
Piotr Caban 0f53100ade msvcrt: Move _pctype definition to locale.c. 2011-10-12 17:09:30 +02:00
Piotr Caban c32d4e8840 msvcrt: Use _ismbblead instead of _isleadbyte in mbcodepage dependent functions. 2011-10-12 17:09:25 +02:00
Piotr Caban cfca12e486 msvcrt: Use ismbcodepage instead of mb_cur_max in mbcodepage dependent functions. 2011-10-12 17:09:20 +02:00
Piotr Caban c9cdb55066 msvcrt: Handle C locale in _setmbcp. 2011-10-12 17:09:12 +02:00
Piotr Caban cf27cb4927 msvcrt: Don't overwrite mbcinfo inside setlocale. 2011-10-12 17:09:07 +02:00
Andrew Talbot 5f16eb9c48 msvcrt: Remove a superfluous semicolon. 2011-10-08 19:47:23 +02:00
Andrew Talbot 2df8dced84 msvcrt: Mark some fall-throughs in a switch statement. 2011-10-08 17:40:18 +02:00
Piotr Caban 45b4b4205a msvcrt: Added _iswdigit_l implementation. 2011-10-06 16:46:40 -05:00
Piotr Caban c867f3324e msvcrt: Free fd entries with incorrect HANDLE value. 2011-10-06 16:46:40 -05:00
Piotr Caban 190c67c70e msvcrt: Fix __pioinfo block size. 2011-10-06 16:46:40 -05:00
Piotr Caban 8df606fea4 msvcrt: Fix wcsncpy_s implementation. 2011-10-04 16:54:04 -05:00
Frédéric Delanoy 3274475299 msvcrt/tests: Remove dead assignments (Clang). 2011-09-28 12:38:21 +02:00
Piotr Caban af6fd252ef msvcr90: Fix _vswprintf_p implementation. 2011-09-20 16:21:40 +02:00
Francois Gouget 7da4305aec msvcrt: Fix printing NULL strings. 2011-09-20 16:21:39 +02:00
Piotr Caban 45dc6c0e22 msvcrt: Improve operator new implementation. 2011-09-13 11:27:45 +02:00
Piotr Caban b7ea63118a msvcrt: Fix _vswprintf* arguments. 2011-09-05 19:57:47 +02:00
Andrew Talbot dce81b9465 msvcrt: Constify some variables. 2011-08-23 16:53:53 +02:00
Andrew Talbot fb3b28f013 msvcrt: void functions should not return a value. 2011-08-22 16:14:31 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Austin English 1197b5e3e3 msvcrt/tests: Make sure to use return values. 2011-08-03 19:00:11 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Piotr Caban 0c14dc5330 msvcrt: Added vscwprintf_{l,p_l} functions implementation. 2011-08-01 18:26:26 +02:00
Piotr Caban 62a5540259 msvcrt: Fixed vswprintf* exports. 2011-07-29 15:33:49 +02:00
Piotr Caban a8c6fda501 msvcrt: Fix uninitialized memory access in wcsrtombs_l implementation (valgrind). 2011-07-28 18:37:39 +02:00
Piotr Caban d7b5c0b14f msvcrt: Fix %f format handling in printf so it works with big floats. 2011-07-26 16:33:40 +02:00
Piotr Caban 5e9ee3b909 msvcrt: Fixed tmpnam and _wtmpname implementation. 2011-07-26 16:33:04 +02:00
Daniel Verkamp fcd04e5987 msvcrt/tests: Add test for _get_pgmptr. 2011-07-04 13:40:27 +02:00
Daniel Verkamp 1357589eca msvcrt: Add _get_pgmptr and _get_wpgmptr. 2011-07-04 13:39:58 +02:00
Damjan Jovanovic c28baa7b96 msvcrt: The time passed to utime functions can be NULL. 2011-06-20 19:32:02 +02:00
Piotr Caban e5f68408ed msvcrt: Avoid deadlock when _beginthread is executed inside loader critical section. 2011-06-20 19:32:02 +02:00
Piotr Caban 4debdd6ac8 msvcrt: Fix __p__pctype implementation. 2011-06-20 11:28:12 +02:00
Marcus Meissner 034c2cb3fd mscvrt: Do not shadow fmt (Coverity). 2011-06-14 15:24:55 +02:00
Piotr Caban 34ed6b0dbc msvcrt: Fix broken exports in spec file. 2011-06-08 14:12:41 +02:00
Piotr Caban ab9077d640 msvcrt: Fixed buffer overflow in snprintf functions family.
Spotted by Andrew Miller.
2011-06-06 21:49:22 +02:00
Piotr Caban e398b93900 msvcrt: Improved tolower_l and toupper_l implementation. 2011-06-03 17:44:06 +02:00
Piotr Caban 2b9d946aea msvcrt: Fix pclmap and pcumap for "C" locale. 2011-06-03 17:44:06 +02:00
Piotr Caban f9de4eef75 msvcrt: Fix mingw compilation issues. 2011-06-03 17:44:06 +02:00
Piotr Caban 27ff2ae967 msvcrt: Improved locale initialization. 2011-05-26 13:38:22 +02:00
Piotr Caban 197826b12d msvcr90/tests: Added _getptd tests. 2011-05-25 11:48:02 +02:00
Piotr Caban e253e526fc msvcrt: Added _get_unexpected implementation. 2011-05-25 11:47:17 +02:00
Piotr Caban 6e777041b2 msvcrt: Added _getptd implementation. 2011-05-25 11:46:37 +02:00
Piotr Caban abb3db5c57 msvcrt: Improved tmpnam/wtmpnam implementation. 2011-05-25 11:46:29 +02:00
Piotr Caban 12229aeeb2 msvcrt: Change the way how localtime/gmtime buffer is stored in __thread_data. 2011-05-25 11:46:16 +02:00
Piotr Caban e15ac98cbc msvcrt: Change the way locale information is stored in __thread_data. 2011-05-25 11:46:07 +02:00
Piotr Caban 6991ac0331 msvcrt: Use get_locinfo instead of get_locale. 2011-05-25 11:45:42 +02:00
Piotr Caban 11bfced55d msvcrt: Use _create_locale instead of setlocale during initialization. 2011-05-25 11:45:14 +02:00
Piotr Caban 093909cf88 msvcrt: Reorder fields of __thread_data structure. 2011-05-25 11:44:51 +02:00
Piotr Caban 2bcc9d452a msvcrt: Close thread handle when _beginthread is used. 2011-05-25 11:44:28 +02:00
Francois Gouget 37daab560c msvcrt: Add a trailing '\n' to an ERR() call. 2011-05-23 16:25:48 +02:00
Piotr Caban 716a69c6db msvcrt: Make FILE writing functions thread safe. 2011-05-20 13:42:21 +02:00
Piotr Caban 11c6c5324f msvcrt: Make FILE reading functions thread safe. 2011-05-20 13:42:17 +02:00
Piotr Caban f2d425b7fc msvcrt: Make FILE position related functions thread safe. 2011-05-20 13:42:13 +02:00
Piotr Caban ae15a4b6bc msvcrt: Make FILE->_flag reading functions thread safe. 2011-05-20 13:42:08 +02:00
Piotr Caban dd30302268 msvcrt: Make ungetc and ungetwc thread safe. 2011-05-20 13:42:04 +02:00
Piotr Caban eb01bc1efa msvcrt: Make setvbuf thread safe. 2011-05-20 13:42:01 +02:00
Piotr Caban c989c4980b msvcrt: Make _flsbuf thread safe. 2011-05-20 13:41:57 +02:00
Piotr Caban f773ad8388 msvcrt: Make _filbuf thread safe. 2011-05-20 13:41:54 +02:00
Piotr Caban 1b26496270 msvcrt: Make fclose thread safe. 2011-05-20 13:41:50 +02:00
Piotr Caban d18f0766f7 msvcrt: Make fflush function thread safe. 2011-05-20 13:41:46 +02:00
Piotr Caban 23a0d0f04a msvcrt: Free locks after freeing io data. 2011-05-20 13:41:34 +02:00
Piotr Caban 38f476399c msvcrt: Fix __pctype_func implementation. 2011-05-20 12:36:24 +02:00
Piotr Caban 73b9acf273 msvcrt: Make scanf functions thread safe. 2011-05-19 19:37:26 +02:00
Piotr Caban c5894bacf5 msvcrt: Make printf functions thread safe. 2011-05-19 19:37:26 +02:00
Piotr Caban 249917beac msvcrt: Added _lock_file/_unlock_file implementation. 2011-05-19 19:37:26 +02:00
Piotr Caban 2ca229dec1 msvcrt: Improved _getmaxstdio and _setmaxstdio implementation. 2011-05-19 19:37:26 +02:00
Piotr Caban 19c4c37a1d msvcrt: Allocate FILE tables dynamically. 2011-05-19 19:37:26 +02:00
Piotr Caban 2679186d19 msvcrt: Allocate ioinfo tables dynamically. 2011-05-19 19:37:26 +02:00
Alexandre Julliard bcd62a7f2e msvcrt: Implement _seh_longjmp_unwind4 for i386. 2011-05-17 12:49:20 +02:00
Alexandre Julliard 2140006662 msvcrt: Implement _local_unwind for x86_64. 2011-05-17 12:31:00 +02:00
Piotr Caban ddad22d037 msvcrt: Fix return values in wcstombs and wcsrtombs functions. 2011-05-16 16:36:10 +02:00