Commit Graph

1387 Commits

Author SHA1 Message Date
Piotr Caban
fdffe548f1 msvcrt: Added space for nullbyte in size returned by wcstombs_s and mbstowcs_s. 2011-03-30 18:59:22 +02:00
Konrad Rzepecki
332d5954ed msvcrt: Implement _mbslwr_s. 2011-03-29 12:19:37 +02:00
Konrad Rzepecki
0b3175cb24 msvcrt: Implement _mbsupr_s. 2011-03-29 12:19:30 +02:00
Alexandre Julliard
89475918a1 msvcrt: Export the __p_* functions on all platforms. 2011-03-16 17:41:08 +01:00
Hans Leidekker
b25e0068ac msvcrt: Implement _set_security_error_handler. 2011-03-16 16:31:55 +01:00
Francois Gouget
c075968baf msvcrt: Export _wcsupr_s_l(). 2011-03-16 14:14:24 +01:00
Nikolay Sivov
82763983dc msvcrt: Added _findnext32() implementation. 2011-03-15 17:14:07 +01:00
Nikolay Sivov
cd7f096210 msvcrt: Add _findfirst32() implementation. 2011-03-15 17:14:07 +01:00
Nikolay Sivov
78dc7af9ce msvcrt: Add __daylight() call export. 2011-03-15 17:14:07 +01:00
Nikolay Sivov
0512829a27 msvcrt: Add _get_output_format() and return default value. 2011-03-09 12:30:30 +01:00
Nikolay Sivov
46ae113e71 msvcrt: Added partially complete _wcsupr_s_l (without locale support). 2011-03-07 13:18:19 +01:00
Nikolay Sivov
27e18b3bbc msvcrt: Added _wcslwr_s implementation. 2011-03-07 13:18:03 +01:00
Francois Gouget
bf75229a04 msvcrt/tests: Add a trailing '\n' to an ok() call. 2011-03-07 11:09:00 +01:00
Marcus Meissner
ecb89ba89e msvcrt: Move side effect out of assert (Coverity). 2011-03-04 16:26:02 +01:00
André Hentschel
e165464eea msvcrt: Implement _wfindnext64. 2011-02-28 15:49:40 +01:00
André Hentschel
1601a264e8 msvcrt: Implement _wfindfirst64. 2011-02-28 15:49:28 +01:00
André Hentschel
188b3ae1b1 msvcrt/tests: Don't test function directly when reporting errno. 2011-02-25 11:05:17 +01:00
Vincent Povirk
71bfd33463 msvcrt: Try to call CorExitProcess instead of ExitProcess on exit. 2011-02-24 12:40:45 +01:00
Marcus Meissner
706b43f4dd msvcrt: Use = instead of == in test (Coverity). 2011-02-24 12:40:14 +01:00
Jörg Höhle
d9d4323137 msvcrt/tests: sizeof(long double) is 12 with MS. 2011-02-17 18:33:43 +01:00
Jörg Höhle
c6d67fad8f msvcrt: sizeof(long double) is 12 with MS, but not necessarily so on UNIX. 2011-02-17 18:33:43 +01:00
Austin English
a3c1d4550c msvcrt/tests: Remove useless assignment (LLVM/Clang). 2011-02-10 09:56:59 -06:00
André Hentschel
68b0a13572 msvcrt: Fixed a typo. 2011-02-08 14:46:15 -06:00
Austin English
2164bb7a7f msvcrt/tests: Make sure return values are used (LLVM/Clang). 2011-02-08 13:42:14 -06:00
Nikolay Sivov
8a7f817dea msvcrt: Use pointer exchange to set demangled name instead of section lock. 2011-02-03 16:25:43 +01:00
Alexandre Julliard
37af4c371b msvcrt: Implement longjmp for x86_64. 2011-02-01 18:14:09 +01:00
Alexandre Julliard
9b76c16e7e msvcrt: longjmp doesn't have a return value. 2011-02-01 18:14:09 +01:00
Detlef Riekenberg
49a8bb0aa0 msvcrt: Use the _set_error_mode value to switch between a dialogbox and stderr for C runtime messages. 2011-01-31 14:30:27 +01:00
Nikolay Sivov
7a57f02b8d msvcrt: Implement _fcvt_s(). 2011-01-31 12:31:22 +01:00
Detlef Riekenberg
58786dc8ea msvcrt: Add private define and header tests for _set_error_mode options. 2011-01-28 17:41:51 +01:00
Nikolay Sivov
8d09b40835 msvcrt: Implement _wsopen_s. 2011-01-27 14:14:41 +01:00
Alexandre Julliard
7c95b251e0 msvcrt: Add a non-optimized implementation for the SSE2 math functions. 2011-01-26 20:48:48 +01:00
Nikolay Sivov
2a6060f4c4 msvcrt: Implemented _sopen_s. 2011-01-26 15:00:13 +01:00
Alexandre Julliard
658eaeb3e0 msvcrt: Implemented _set_controlfp. 2011-01-26 15:00:10 +01:00
Alexandre Julliard
c74f6ca570 msvcrt: Implemented _fpreset for SSE2 and x86_64. 2011-01-26 14:59:59 +01:00
Alexandre Julliard
98d7a021d6 msvcrt: Implemented _clearfp for SSE2 and x86_64. 2011-01-26 14:59:10 +01:00
Alexandre Julliard
4b17ec7405 msvcrt: Implemented _statusfp2. 2011-01-26 14:57:31 +01:00
Alexandre Julliard
a8d8e4a367 msvcrt: Implemented __control87_2. 2011-01-26 14:57:15 +01:00
Nikolay Sivov
03ca06e791 msvcrt: Partially implement _set_abort_behavior. 2011-01-20 12:54:50 +01:00
Nikolay Sivov
ad6bc94491 msvcrt: Add _atoflt and _atoflt_l implementations. 2011-01-19 12:22:27 +01:00
Andrew Nguyen
dd1b937287 msvcrt: Null terminate the temporary locale buffer in _create_locale.
Spotted with Valgrind.
2011-01-17 15:57:16 +01:00
Andrew Nguyen
92fe8ef38e msvcrt/tests: Avoid embedding extended ASCII characters in locale string literals. 2011-01-17 15:57:07 +01:00
Andrew Nguyen
b42f162563 msvcrt: Fix a possible memory leak in _wsystem for the NULL command case.
Spotted with Valgrind.
2011-01-17 15:56:31 +01:00
Andrew Nguyen
9361b61949 msvcrt: Fix a possible memory leak in _wpopen if a memory allocation fails. 2011-01-17 15:56:27 +01:00
Greg Geldorp
725cb2f3c0 msvcrt/tests: Use different method to determine non-SBCS locale. 2011-01-17 13:23:25 +01:00
Eryk Wieliczko
b6acca6696 msvcrt: Implement _ftime64_s and _ftime32_s. 2010-12-29 12:05:23 +01:00
Arno Teigseth
01b9fd3679 msvcrt: Added _ui64tow_s. 2010-12-29 11:59:39 +01:00
Eryk Wieliczko
b74ef16d99 msvcrt/tests: Add _fcvt_s tests. 2010-12-23 13:47:10 +01:00
Francois Gouget
f63cdea40a msvcrt/tests: Add a trailing '\n' to an ok() call. 2010-12-13 12:43:29 +01:00
Eryk Wieliczko
a2af7ccd99 msvcrt/tests: Add _ecvt_s tests. 2010-12-10 15:46:09 +01:00
Eryk Wieliczko
1ade6c2bc8 msvcrt: Implement ecvt_s. 2010-12-10 15:46:06 +01:00
Mike Gibson
23906816d8 msvcrt: Implement wcsnicoll. 2010-12-05 16:45:43 +01:00
Austin English
6374205eb4 msvcrt: Fix a compiler warning on PowerPC. 2010-12-03 11:04:03 +01:00
Piotr Caban
cab51a0546 msvcrt: Added _get_terminate implementation. 2010-12-02 11:54:34 +01:00
Alexandre Julliard
f53d82b4f4 msvcrt: Fix controlfp_s parameter checks, with tests. 2010-11-27 20:40:14 +01:00
Alexandre Julliard
4dba956ea6 msvcrt: Add parameter checking in _controlfp_s. 2010-11-26 14:58:39 +01:00
Alexandre Julliard
1ae23af85b include/msvcrt: Define more CPU control word flags. 2010-11-26 14:58:39 +01:00
Eryk Wieliczko
91bc6c5201 msvcrt: Implement fprintf_s and fwprintf_s. 2010-11-25 11:55:31 +01:00
Eryk Wieliczko
133a38fcfb msvcrt: Implement printf_s and wprintf_s. 2010-11-25 11:55:20 +01:00
Eryk Wieliczko
6296d95b9e msvcrt: Implement vprintf_s and vwprintf_s. 2010-11-25 11:55:05 +01:00
Eryk Wieliczko
8bf437d827 msvcrt: Implement vfprintf_s and vfwprintf_s. 2010-11-25 11:53:07 +01:00
Michael Stefaniuc
33c528188d msvcrt: Add missing dereference of the time pointer. 2010-11-24 12:06:36 +01:00
Eryk Wieliczko
40874d91d9 msvcrt: Implement _wfindnext64i32. 2010-11-23 14:16:22 +01:00
Eryk Wieliczko
7d50809705 msvcrt: Implement _wfindfirst64i32. 2010-11-23 14:16:22 +01:00
Eryk Wieliczko
504e68ac24 msvcrt: Implement _ctime32/64_s. 2010-11-23 14:16:22 +01:00
Vincas Miliūnas
955e2f9050 msvcrt: Added qsort_s implementation. 2010-11-18 12:46:59 +01:00
Piotr Caban
2770155532 msvcrt: Move _initterm_e implementation (from msvcr90). 2010-11-18 12:37:04 +01:00
Piotr Caban
bf446e7cfb msvcrt: Update spec files. 2010-11-18 12:37:03 +01:00
Piotr Caban
6b3b72d632 msvcrt: Fix msvcrt.spec. 2010-11-18 12:31:32 +01:00
Alexandre Julliard
45a8b643cd msvcrt/tests: Avoid sizeof in traces. 2010-11-17 15:08:03 +01:00
Borut Razem
828fd598b0 msvcrt: popen: stderr from the child process should not be redirected to the parent's stdin. 2010-11-16 13:28:06 +01:00
Eric Pouech
d38196a0ff msvcrt: Use the macros for parameter checking for wcsncat_s (and fix the test). 2010-11-16 12:02:00 +01:00
Eric Pouech
beca1d73a8 msvcrt: Implemented _i64to[aw]_s. 2010-11-16 12:01:43 +01:00
Eric Pouech
28884a8faa msvcrt: Implemented _ltoa_s. 2010-11-16 12:01:23 +01:00
Eryk Wieliczko
37cf8dc57d msvcrt: Implement strncat_s. 2010-11-15 17:21:16 +01:00
Eric Pouech
9df3f06cb9 msvcrt: Use macro for parameters validation itoa_s (and update the tests as well). 2010-11-12 11:59:39 +01:00
Eryk Wieliczko
c9bd269db1 msvcrt: Fixed (_w)fopen_s with test. 2010-11-11 14:19:38 +01:00
Eric Pouech
4d86e49173 msvcrt: Correctly manage va_list:s in vf(w)printf ny using auto-grow buffer in prinf engine. 2010-11-08 18:12:58 +01:00
Eric Pouech
1eaae093e2 msvcrt: Implemented _vc(w)printf. 2010-11-08 18:12:57 +01:00
Eric Pouech
7d384d23f8 msvcrt: For internal msvcrt use, added ability to grow automatically the size of the buffer in printf core engine. 2010-11-08 18:12:57 +01:00
Alexandre Julliard
a56de4c30f msvcrt: Add some missing CDECLs. 2010-11-08 18:12:57 +01:00
Eric Pouech
b0c3dc35a8 msvcrt: Implemented the _(w)getenv_s functions. 2010-11-08 18:12:57 +01:00
Eryk Wieliczko
7b8ac6a255 msvcrt: Implement _get_tzname. 2010-11-04 12:21:26 +01:00
Eryk Wieliczko
a3927b5e09 msvcrt: Implement _ftelli64. 2010-11-03 14:45:17 +01:00
Eric Pouech
4b6d5fd583 msvcrt: Implemented wcstok_s. 2010-11-03 11:08:56 +01:00
Eric Pouech
5437c72fe1 msvcrt: Implemented (_)wcserror_s. 2010-11-03 11:08:56 +01:00
Eric Pouech
71200a9818 msvcrt: Implemented (_)wcserror. 2010-11-03 11:08:56 +01:00
Eric Pouech
cff575fbb3 msvcrt: Implemented _(w)access_s. 2010-11-03 11:08:55 +01:00
Eric Pouech
f8f7b2898c msvcrt: Implemented _cputws. 2010-11-03 11:08:55 +01:00
Eric Pouech
d36cfcf48a msvcrt: Implemented _putwch. 2010-11-03 11:08:55 +01:00
Eric Pouech
83d87f3b13 msvcrt: Implemented (w)searchenv_s. 2010-11-03 11:08:55 +01:00
Eric Pouech
fc186c3bda msvcrt: Implemented _(w)dupenv_s. 2010-11-03 11:08:55 +01:00
Eric Pouech
356b2d2bc0 msvcrt: Implemented _wputenv_s. 2010-11-03 11:08:55 +01:00
Eric Pouech
af2bc15edd msvcrt: Implemented _itow_s. 2010-11-03 11:08:55 +01:00
Eryk Wieliczko
566d8e5eaa msvcrt: Implement _findfirst64i32 and _findnext64i32. 2010-11-02 11:22:25 +01:00
Eryk Wieliczko
e81a929e6b msvcrt: Implement _fseeki64. 2010-11-02 11:19:56 +01:00
Eryk Wieliczko
38d1ea2a5b msvcrt: Add stub functions _lock_file and _unlock_file. 2010-11-02 11:19:15 +01:00
Eric Pouech
5d4de2ac45 msvcrt: Use parameter checking macros in vsn(w)printf_s_l. 2010-11-01 12:35:55 +01:00
Eric Pouech
4c337fb491 msvcrt: Use parameter checking macros in wcstombs_s_l. 2010-11-01 12:35:45 +01:00
Eric Pouech
16c89a543a msvcrt: Use parameter checking macros for wcsto{number} functions. 2010-11-01 12:35:34 +01:00
Eric Pouech
1da9922ac3 msvcrt: Use parameter checking macros for string to number functions. 2010-11-01 12:35:14 +01:00
Eric Pouech
14187ed2aa msvcrt: Use parameter checking macros for strtok_s. 2010-11-01 12:35:01 +01:00
Eric Pouech
8583bd317e msvcrt: Use parameter validation macros for mcstowcs_s_l. 2010-11-01 12:34:50 +01:00
Eric Pouech
c10a6d74d5 msvcrt: Use the parameter checking macros for strncpy_s. 2010-11-01 12:34:46 +01:00
Eric Pouech
00f07046c0 msvcrt: Use the new parameter checking macros for f(w)open_s functions. 2010-11-01 12:34:40 +01:00
Eric Pouech
4b94890741 msvcrt: Moved _get_osplatform to the new macros for parameters validation. 2010-11-01 12:31:58 +01:00
Eric Pouech
fd3ad8cd2a msvcrt: Added macro to ease implementation of so called secure (_s postfix) APIs. 2010-11-01 12:31:19 +01:00
Andrew Nguyen
ed357e5ca6 msvcrt: Implement _ultoa_s. 2010-10-21 12:30:44 +02:00
Andrew Nguyen
a622af49a7 msvcrt: Implement _mbsnbcat_s. 2010-10-21 12:30:35 +02:00
Damjan Jovanovic
b39c59e75d msvcrt: Improve wcsncat_s. 2010-10-19 10:15:38 +02:00
Damjan Jovanovic
c7536ef868 msvcrt: Define STRUNCATE. 2010-10-19 10:15:35 +02:00
Damjan Jovanovic
302d63a225 msvcrt: Implement wcsncat_s. 2010-10-18 19:47:49 +02:00
Andrew Nguyen
41ab825126 msvcrt: Implement _strlwr_s. 2010-10-11 17:11:38 +02:00
Andrew Nguyen
bcfaf467b5 msvcrt: Implement _itoa_s. 2010-10-11 17:11:38 +02:00
Andrew Nguyen
6086610314 msvcrt: Implement _localtime32_s. 2010-10-11 17:11:37 +02:00
Andrew Nguyen
90771ab605 msvcrt: Use the write_invalid_msvcrt_tm helper in _gmtime64_s. 2010-10-11 17:11:37 +02:00
Andrew Nguyen
e245cb52c6 msvcrt: Implement _localtime64_s. 2010-10-11 17:11:37 +02:00
Andrew Nguyen
eb09472870 msvcrt: Initialize _wenviron in Unicode environment getter function. 2010-10-07 12:00:27 +02:00
Andrew Nguyen
797d6cb4e2 msvcrt/tests: Add tests for the __p__(w)environ accessors. 2010-10-07 12:00:27 +02:00
Alexandre Julliard
730f01801f tests: Make some variables static. 2010-10-01 13:41:42 +02:00
Andrew Nguyen
285e6d249f msvcrt: Initialize environ on DLL load. 2010-09-30 17:51:16 +02:00
Hans Leidekker
23fdfbc392 msvcrt: Implement wcsnlen. 2010-09-29 10:11:48 +02:00
Andrew Nguyen
67088eb34c msvcrt: Implement _set_doserrno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen
ad68c0bd3c msvcrt: Implement _set_errno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen
c3b127f566 msvcrt: Implement _get_doserrno. 2010-09-28 17:33:16 +02:00
Andrew Nguyen
79ab715272 msvcrt: Implement _get_errno. 2010-09-28 17:33:15 +02:00
Andrew Nguyen
b7a74d24f5 msvcrt: Implement strerror_s. 2010-09-28 17:33:15 +02:00
Andrew Nguyen
ac26d786c4 msvcrt: Convert the Unix asctime string from CP_UNIXCP to CP_ACP. 2010-09-28 17:33:15 +02:00
Piotr Caban
120346da88 msvcrt: Added 'll' modifier to printf functions. 2010-09-23 17:50:12 +02:00
Alexandre Julliard
bd9852cd6f makefiles: Rename the SRCDIR, TOPSRCDIR and TOPOBJDIR variables to follow autoconf conventions. 2010-09-19 12:40:12 +02:00
Alexandre Julliard
81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Piotr Caban
1861c2162d msvcrt: Fix _splitpath and _wsplitpath implementation. 2010-09-02 11:49:58 +02:00
Alexandre Goujon
2c08a3fbc7 msvcrt: Properly fix setlocale and clean up tests. 2010-08-31 17:48:06 +02:00
Alexandre Julliard
56ed2930a9 msvcrt: Use float instead of long in the spec file for 32-bit floating point values. 2010-08-31 14:23:48 +02:00
Alexandre Julliard
77b6ce5979 msvcrt: Use int64 in the spec file for 64-bit integers. 2010-08-31 14:23:48 +02:00
Piotr Caban
899d9a042b msvcrt: Added _splitpath_s implementation. 2010-08-30 11:26:30 +02:00
Alexandre Goujon
7a1752013c msvcrt: string Avoid size_t in ok(). 2010-08-30 11:26:29 +02:00
Alexandre Julliard
dfdea6c4a5 msvcrt: Add -ret64 flag on some functions that return a 64-bit value. 2010-08-29 12:09:36 +02:00
Piotr Caban
3a25d7d9aa msvcrt: Added _gcvt_s implementation. 2010-08-27 12:06:43 +02:00
Piotr Caban
600fa766f3 msvcrt: Added _scprintf implementation. 2010-08-27 12:06:12 +02:00
Piotr Caban
6467c8325f msvcrt: Added _gmtime32_s and _gmtime64_s implementation. 2010-08-27 12:06:00 +02:00
Piotr Caban
471bad1ee8 msvcrt: Added _strdate_s and _wstrdate_s implementation. 2010-08-27 12:05:42 +02:00
Piotr Caban
7d0c04d31c msvcrt: Added _strtime_s and _wstrtime_s implementation. 2010-08-27 12:05:10 +02:00
Piotr Caban
898e17f2af msvcrt: Added _set_purecall_handler implementation. 2010-08-25 17:37:48 +02:00
Piotr Caban
76058b14eb msvcrt: Added _set_SSE2_enable stub. 2010-08-25 17:37:37 +02:00
Alexandre Julliard
52aac5aba7 msvcrt: Export the 64-bit version of the C++ mangled names for all implemented functions. 2010-08-24 22:22:09 +02:00
Alexandre Julliard
c4f673fb63 msvcrt: List the this pointer as an additional argument for thiscall functions. 2010-08-24 19:29:27 +02:00
Alexandre Julliard
14072676a6 msvcrt: Use a __thiscall macro where appropriate to make the calling convention clearer. 2010-08-24 16:31:25 +02:00
Alexandre Julliard
b21e28ca11 msvcrt: Use the thiscall type on appropriate entry points. 2010-08-24 16:24:01 +02:00
Alexandre Julliard
c27aa289b7 msvcrt: Use the appropriate mangled names for operator new/delete on 64-bit. 2010-07-22 16:55:35 +02:00
Piotr Caban
9915dd03b4 msvcrt: Fixed strtod_l/wcstod_l implementation. 2010-07-22 16:11:02 +02:00
Alexandre Julliard
b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard
a38ff8d7dd msvcrt/tests: Fix printf format warnings with ptrdiff_t. 2010-07-21 13:23:59 +02:00
Greg Geldorp
913c91fd47 msvcrt/tests: ecvt on Win9x and NT4 will corrupt memory if nrdigits < 0. 2010-07-19 14:49:07 +02:00
Alexandre Julliard
d2cda58a1f msvcrt/tests: Add some alternative locale names that happen on Windows. 2010-07-09 11:38:08 +02:00
Alexandre Julliard
c5e88a3a69 msvcrt: Use the correct strdup function for locale data. 2010-06-28 11:45:01 +02:00
Andrew Nguyen
58dd97efcf msvcrt: Implement _wmakepath_s. 2010-06-25 12:49:57 +02:00
Andrew Nguyen
9628a0d3e4 msvcrt: Implement _makepath_s. 2010-06-25 12:49:44 +02:00
Francois Gouget
7649c75b40 Assorted typo and spelling fixes. 2010-06-24 10:37:05 +02:00
Francois Gouget
1f07f583cf msvcrt/tests: Make test_dup2() static. 2010-06-22 20:03:49 +02:00
Francois Gouget
eb8ce091cb msvcrt/tests: Add a trailing '\n' to an ok() call. 2010-06-22 20:03:36 +02:00
Piotr Caban
c0637edda2 msvcrt: Added __crtLCMapStringW partial implementation. 2010-06-22 13:51:30 +02:00
Alexander Scott-Johns
5fd1409c6a msvcrt/tests: Rename a variable. 2010-06-17 14:07:15 +02:00
Nikolay Sivov
90013af6f9 msvcrt: Fix __lconv_init() prototype. 2010-06-11 11:36:54 +02:00
Nikolay Sivov
97807760ca msvcrt: Add _scwprintf implementation. 2010-06-11 11:36:39 +02:00
Nikolay Sivov
1a234159fe msvcrt: Add _snwprintf_s implementation. 2010-06-11 11:36:35 +02:00
Nikolay Sivov
59bddde594 msvcrt: Add _snprintf_s implementation. 2010-06-11 11:36:30 +02:00
Alexander Scott-Johns
f2229e6de0 msvcrt/tests: Move function pointer initialization code in printf.c into separate init function. 2010-06-09 16:12:37 +02:00
Alexander Scott-Johns
d313c0b982 msvcrt/test: Add some simple _vsnwprintf_s tests. 2010-06-07 13:52:09 +02:00
Alexander Scott-Johns
d3c00aab83 msvcrt: Fix spec file. 2010-06-07 13:52:03 +02:00
Alexander Scott-Johns
d56113cd4f msvcrt: The sizeOfBuffer argument of _vsnwprintf_s is measured in wide characters, not bytes. 2010-06-07 13:51:55 +02:00
Alexander Scott-Johns
4e8e2f39c5 include/msvcrt: Define _TRUNCATE; use it in the tests. 2010-06-07 13:51:49 +02:00
Alexander Scott-Johns
2663079c60 msvcrt: Rename _TRUNCATE to MSVCRT__TRUNCATE. 2010-06-07 13:51:34 +02:00
Alexander Scott-Johns
b205fd8108 msvcrt/tests: Properly skip if functions are not available. 2010-06-07 13:51:24 +02:00
Alexander Scott-Johns
19bff6bda5 msvcrt: Fix comments. 2010-06-07 13:49:18 +02:00
Alexandre Julliard
14b3db99c1 msvcrt: Make sure msvcrt doesn't get unloaded.
We can't initialize file handles properly a second time.
2010-05-28 20:33:27 +02:00
Robert Wilhelm
620af69d88 msvcrt: Support system(NULL). 2010-05-28 16:22:26 +02:00
Gerald Pfeifer
68a94aa901 msvcrt/tests: Adjust CHECK_TYPE to avoid some two dozen compiler warnings. 2010-05-25 12:03:07 +02:00
Piotr Caban
6f358ef867 msvcrt: Fix wcstombs_l implementation. 2010-05-24 11:25:09 +02:00
Piotr Caban
2ca3b9e016 msvcrt: Fix mbstowcs_l implementation. 2010-05-24 11:25:04 +02:00
Marcus Meissner
27a28bf29f msvcrt: Check locale for NULL before freeing. 2010-05-21 18:58:05 +02:00
Piotr Caban
4134c57a91 msvcrt: Fix compilation error (x86_64-pc-mingw32). 2010-05-20 13:47:52 +02:00
Piotr Caban
4aee4c7d1c msvcrt: Added $I10_OUTPUT implementation. 2010-05-17 14:39:29 +02:00
Marcus Meissner
f10af18f28 msvcrt: Add some missing CDECL. 2010-05-13 11:51:00 +02:00
Piotr Caban
130686cbfc msvcrt: Fix synonym handling in setlocale/create_locale. 2010-05-10 10:09:21 +02:00
Piotr Caban
0697c5dc0e msvcrt: Partial fix for setlocale/create_locale. 2010-05-10 10:09:09 +02:00
Piotr Caban
117faee955 msvcrt: Fix strtod and wcstod implementation. 2010-05-10 10:08:57 +02:00
Piotr Caban
2eb4b694a7 msvcrt: Added mbstowcs and wcstombs tests. 2010-05-06 15:24:20 +02:00
Piotr Caban
335c9772ec msvcrt: Fixed wcstombs(_s_l) implementation. 2010-05-06 15:20:11 +02:00
Piotr Caban
7352ee844e msvcrt: Added mbstowcs(_s_l) implementation. 2010-05-06 15:19:52 +02:00
Piotr Caban
d367314b46 msvcrt: Added _mbstrlen_l implementation. 2010-05-06 15:18:57 +02:00
Piotr Caban
df038ec544 msvcrt: Added _ui64toa_s implementation. 2010-05-05 15:26:53 +02:00
Piotr Caban
100e925cb4 msvcrt: Added ___mb_cur_max_l_func implementation. 2010-05-05 15:26:50 +02:00
Piotr Caban
3f4eded5d4 msvcrt: Added _get_osplatform implementation. 2010-05-05 15:26:45 +02:00
Austin English
de83c53085 msvcrt: Fix tests for Windows ME. 2010-05-04 13:15:00 +02:00
Maarten Lankhorst
af9f9cb361 msvcrt: Add float functions based on their double versions. 2010-05-04 13:14:58 +02:00
Austin English
3c09ca128d msvcrt/tests: Add more tests for setlocale(). 2010-05-03 14:00:47 +02:00
Austin English
b581fc5b0b msvcrt/tests: fix a couple typos. 2010-05-03 13:59:49 +02:00
Detlef Riekenberg
1ac1633161 msvcrt: Fix wrong msvcr90 in comments. 2010-04-28 15:04:39 -05:00
Piotr Caban
6c0e61cd65 msvcrt: Added wcstombs_s implementation. 2010-04-27 13:04:57 -05:00
Piotr Caban
0ec1635172 msvcrt: Added _wcstoi64 and _wcstoui64 implementation. 2010-04-27 13:04:52 -05:00
Piotr Caban
c4d6877894 msvcrt: Added _mkgmtime implementation. 2010-04-27 13:04:45 -05:00
Piotr Caban
2b3b860396 msvcrt: Added strtok_s implementation. 2010-04-26 10:11:45 -05:00
Piotr Caban
59c1139f05 msvcrt: Fix debug message in scanf. 2010-04-26 09:07:51 -05:00
Piotr Caban
6974abe0e6 msvcrt: Use wcstod_l/strtod_l in other functions that parses doubles. 2010-04-26 09:07:44 -05:00
Piotr Caban
f7197663c9 msvcrt: Added wcstod_l implementation.
It's almost a copy of strtod_l.
2010-04-26 09:07:30 -05:00
Piotr Caban
f76eef7401 msvcrt: Change strtod_l implementation. 2010-04-26 09:07:02 -05:00
Piotr Caban
815840e972 msvcrt: Added btowc implementation. 2010-04-26 09:06:13 -05:00
Piotr Caban
ca3cb9e2f5 msvcrt/tests: Added sscanf_s tests. 2010-04-22 18:11:24 +02:00
Piotr Caban
f36671c57f msvcrt: Added _cwscanf* implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
177d545592 msvcrt: Added _cscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
a51292e4dc msvcrt: Added _swscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
8386e95afc msvcrt: Added _sscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
98e34c7f82 msvcrt: Added _wscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
3b99441770 msvcrt: Added _fwscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
2c07fad607 msvcrt: Added _scanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
b38fcabfa0 msvcrt: Added fscanf_s(_l) implementation. 2010-04-22 18:11:11 +02:00
Piotr Caban
17f486baa4 msvcrt: Added support for secure functions to scanf helper functions. 2010-04-22 18:09:40 +02:00
Piotr Caban
8a69a936dc msvcrt: Added _cscanf_l implementation. 2010-04-22 15:11:04 +02:00
Piotr Caban
2242f281ba msvcrt: Added _swscanf_l implementation. 2010-04-22 15:11:00 +02:00
Piotr Caban
edfe9bdbae msvcrt: Added _sscanf_l implementation. 2010-04-22 15:10:57 +02:00
Piotr Caban
ced42a0ed6 msvcrt: Added _wscanf_l implementation. 2010-04-22 15:10:53 +02:00
Piotr Caban
674df1ee1e msvcrt: Added _fwscanf_l implementation. 2010-04-22 15:10:49 +02:00
Piotr Caban
00f704539f msvcrt: Added _scanf_l implementation. 2010-04-22 15:10:44 +02:00
Piotr Caban
66042e0041 msvcrt: Added _fscanf_l implementation. 2010-04-22 15:10:39 +02:00
Piotr Caban
231fc11457 msvcrt: Add support for locales in scanf helper functions. 2010-04-22 15:10:27 +02:00
Piotr Caban
94112ff960 msvcrt: Added _strtod_l implementation. 2010-04-21 11:57:12 +02:00
Piotr Caban
776998866a msvcrt: Added _get_heap_handle implementation. 2010-04-21 11:07:46 +02:00
Piotr Caban
23d0369d9d msvcrt: Added strncpy_s implementation. 2010-04-21 11:07:45 +02:00
Piotr Caban
c483bebe2b msvcrt: Added swprintf_s implementation. 2010-04-21 11:07:45 +02:00
Piotr Caban
2ff04b9d57 msvcrt: Added _wfopen_s implementation. 2010-04-21 11:07:45 +02:00
Piotr Caban
1b4bacea8c msvcrt: Added fopen_s implementation. 2010-04-19 15:12:10 +02:00
Piotr Caban
8adfd63c21 msvcrt: Return correct strings in setlocale. 2010-04-19 15:12:02 +02:00
Piotr Caban
0d79b4b653 msvcrt/tests: Added __crtGetStringTypeW tests. 2010-04-19 15:11:58 +02:00
Piotr Caban
d03020a976 msvcrt/tests: Added setlocale tests. 2010-04-19 15:11:52 +02:00
Piotr Caban
be5a6a03a6 msvcrt: Added implementation of __crtGetStringTypeW. 2010-04-19 15:11:14 +02:00
Piotr Caban
f11dfcb7a6 msvcrt: Fix multiple locales parsing in _create_locale. 2010-04-19 15:11:00 +02:00
Piotr Caban
97bad69184 msvcrt: Added implementations of _vswprintf* functions. 2010-04-19 15:10:55 +02:00
Piotr Caban
743e6ba688 msvcrt: Added _vsnwprintf* implementation. 2010-04-19 15:10:44 +02:00
Piotr Caban
85fa2ee53c msvcrt: Added _vsnprintf* implementation. 2010-04-19 15:10:26 +02:00
Piotr Caban
09a32152d5 msvcrt: Add parameters to mimic *_s function behaviour in pf_vsnprintf. 2010-04-19 15:10:14 +02:00
Piotr Caban
419f902546 msvcrt: Format strings according to specified locale in pf_vsnprintf. 2010-04-19 15:10:04 +02:00
Piotr Caban
2548742bb4 msvcrt: Fix locale initialization. 2010-04-16 12:37:33 +02:00
Piotr Caban
f2f56d563f msvcrt: Change localeconv implementation. 2010-04-16 12:37:18 +02:00
Alexandre Julliard
d4880b7a1f msvcrt: Initialize exported common variables to fix the build on Mac OS. 2010-04-16 12:01:35 +02:00
Piotr Caban
d1fa8b64e4 msvcrt: Use per thread locale in many functions. 2010-04-15 16:51:47 +02:00
Piotr Caban
87dee43b0a msvcrt: Make setlocale working with per thread locales. 2010-04-15 16:51:46 +02:00
Piotr Caban
5efff16413 msvcrt: Added multiple locales parsing to _create_locale. 2010-04-15 16:51:46 +02:00
Piotr Caban
6ad7b4ff5c msvcrt: Move locale string interpretation to MSVCRT_locale_to_LCID. 2010-04-15 16:51:46 +02:00
Piotr Caban
20b77f4428 msvcrt: Added _configthreadlocale implementation. 2010-04-15 16:51:45 +02:00
Piotr Caban
59c2201a9c msvcrt: Add helper function that returns current locale. 2010-04-15 16:51:45 +02:00
Piotr Caban
d58b385b38 msvcrt: Change implementation of setlocale. 2010-04-15 16:51:45 +02:00
Piotr Caban
10023a15d6 msvcrt: Change _create_locale implementation so generated structure is easier to modify. 2010-04-15 16:51:44 +02:00
Marcus Meissner
debd7d36d0 msvcrt: Implement findfirst64 and findnext64. 2010-04-15 16:26:55 +02:00
Alexandre Julliard
4f3b7f8445 msvcrt: Implement _invalid_parameter and fix the handler definitions. 2010-04-14 18:00:46 +02:00
Alexandre Julliard
a1e99f544b msvcrt: Implement support for version 4 exception tables. 2010-04-14 18:00:46 +02:00
Alexandre Julliard
5807b5e55c msvcrt: Add support for VC7 and VC8 extensions to the C++ exception handler. 2010-04-13 17:21:06 +02:00
Alexandre Julliard
300978283a msvcrt: Implement the missing exception constructor functions. 2010-04-13 17:19:27 +02:00
Alexandre Julliard
bcf1ef3c90 msvcrt: Make a few more exception handling functions i386-specific. 2010-04-12 17:52:37 +02:00
Piotr Caban
8fc18b6b48 msvcrt: Added memmove_s and memcpy_s implementation. 2010-04-12 17:48:21 +02:00
Alexandre Julliard
11f10c6f05 msvcrt: Implemented setjmp for x86_64. 2010-04-10 11:47:55 +02:00
Piotr Caban
903c524d43 msvcrt: Added _iswalpha_l implementation. 2010-04-08 12:38:56 +02:00
Piotr Caban
7a1ff50ddc msvcrt: Added implemenatation of _create_locale and _free_locale. 2010-04-08 12:38:49 +02:00
Alexandre Julliard
da840f57e5 msvcrt: Fix an unused variable warning. 2010-04-07 14:25:19 +02:00
Piotr Caban
bfd0866be8 msvcrt: Added implementation of _controlfp_s. 2010-04-01 18:12:58 +02:00
Piotr Caban
abb746002b msvcrt: Fix _get/_set_invalid_parameter_handler implementation. 2010-04-01 18:12:58 +02:00
Piotr Caban
f377e4be6b msvcrt: Move invalid parameter tests to msvcr90. 2010-04-01 18:12:58 +02:00
Piotr Caban
9a8fe9679b msvcrt: Added _strtoui64 implementation. 2010-03-29 15:50:21 +02:00
Piotr Caban
585ea9cdd8 msvcrt: Added _strtoi64 implementation. 2010-03-29 15:50:20 +02:00
Piotr Caban
8c954c0957 msvcrt: Avoid using localtime_r. 2010-03-29 15:50:20 +02:00
Piotr Caban
8a57f501c8 msvcrt: Avoid using scalb function. 2010-03-29 15:50:19 +02:00
Piotr Caban
b90320652d msvcrt: Rename functions conflicting with mingw headers. 2010-03-29 15:50:19 +02:00
Piotr Caban
254eab3827 msvcr90: Added _get/set_invalid_parameter_handler implementation. 2010-03-25 16:46:56 +01:00
Piotr Caban
c7aba97338 msvcrt: Added strnlen implementation. 2010-03-25 09:46:36 +01:00
Piotr Caban
bf12864271 msvcrt: Update msvcrt.spec. 2010-03-25 09:46:14 +01:00
Alexandre Julliard
bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
David Hedberg
4148ac0ab5 msvcrt: Implement _mbctombb. 2010-02-24 15:12:30 +01:00
David Hedberg
30f6dc9510 msvcrt: Implement _ismbclegal. 2010-02-23 12:09:45 +01:00
David Hedberg
85cc5dd1b2 msvcrt: Add trail bytes info for codepage 1361. 2010-02-23 12:09:33 +01:00
Alexandre Julliard
6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard
ba7cbccfcb msvcrt/tests: Avoid size_t in a trace. 2010-02-16 15:50:32 +01:00
Maarten Lankhorst
ffc100c58f msvcrt: Forward _ftol2 to ntdll._ftol. 2010-02-04 15:04:22 +01:00
Uwe Bonnes
0d16965832 msvcrt: read_i should pull in LF after CR only in unbuffered mode. 2010-01-28 15:30:26 +01:00
Uwe Bonnes
92ac665d37 msvcrt: Check for EOF before correcting CR/LF. 2010-01-28 15:30:26 +01:00
André Hentschel
13e8505e58 msvcrt: Fix typo. 2010-01-19 16:50:26 +01:00
Uwe Bonnes
e6f1ae029e msvcrt: Handle CR at buffer boundary and test case. 2010-01-18 15:32:53 +01:00
Uwe Bonnes
d95c857a4f msvcrt: xxopen() accepts spaces in the mode string. 2010-01-18 14:36:43 +01:00
André Hentschel
152c0d4b93 msvcrt/tests: Add some demangle tests. 2010-01-18 14:35:08 +01:00
Andrew Nguyen
841fc1805e msvcrt: Implement and test rand_s. 2010-01-18 14:30:00 +01:00
André Hentschel
a657380612 msvcrt: Forward __C_specific_handler to ntdll. 2010-01-18 14:16:04 +01:00
Jeff Zaroyko
c2459deeff msvcrt: Check if argument passed to _dup2 is positive. 2010-01-14 09:41:43 -06:00
Jeff Zaroyko
f4e5ab4892 msvcrt/tests: Test _dup2 for failure when second arg is negative. 2010-01-14 09:41:30 -06:00
Uwe Bonnes
5926277473 msvcrt: In unbuffered text mode reading \r\n with fgetc fails. 2010-01-11 13:39:54 -06:00
Jason Edmeades
97194ec070 msvcrt: Add support for sprintf_s. 2010-01-11 12:19:34 -06:00
Jason Edmeades
a2d4e5cb5d msvcrt: Add support for vsprintf_s. 2010-01-11 12:19:30 -06:00
Rob Shearman
c20868e0a2 msvcrt: Free memory allocated in TLS slot on module unload as well as thread exit. 2009-12-14 16:14:39 +01:00
Alexandre Julliard
da9bc130c6 msvcrt/tests: Fix the signal handler calling convention. 2009-12-09 12:04:41 +01:00
Nikolay Sivov
e5e17ca438 msvcrt/tests: Free temporary file name after test. 2009-12-07 14:18:27 +01:00
Marcus Meissner
4da51e087d msvcrt: Remove unnecessary NULL check (Coverity). 2009-12-04 14:34:58 +01:00
Peter Rosin
f79cd33fc4 msvcrt: Handle the SIGBREAK signal. 2009-12-03 10:14:44 +01:00