Piotr Caban
d4450b9195
msvcr110: Fix __lc_time_data definition.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 21:19:21 +09:00
Piotr Caban
9b6c93f6f2
msvcrt: Add tmpnam_s implementation.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 18:23:36 +01:00
Martin Storsjo
1fecaae973
ucrtbase: Handle the _s variant of vsscanf.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:37 +09:00
Martin Storsjo
b9d0f5d562
ucrtbase: Implement the new printf corner case behaviour.
...
Check the option flags whether the new or old legacy behaviours are
wanted.
For _MSVCR_VER < 140, don't check the option flags but hardcode them to
TRUE. (This avoids having to manually add all three flags into every
caller of pf_printf.) Mask out any other flags, to avoid other
out-of-range flags to be interpreted as the other flags (positional
params, invoke invalid param handler).
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:19:12 +09:00
Martin Storsjo
1c8412d9e5
msvcrt: Refactor pf_printf to take options as flags instead of as BOOL parameter.
...
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:18:56 +09:00
Martin Storsjo
b09aadd202
ucrtbase: Handle the swprintf style termination and return values.
...
When neither the "legacy vsprintf null termination" nor the "standard
snprintf behaviour" flags are specified, the functions return -2 when
the output string didn't fit (similar to old style msvcrt _snprintf that
returned -1), but they are null terminated (similar to the C99 snprintf
style behaviour). This is the same way as the C99 swprintf function
behaves.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-04 19:18:42 +09:00
Martin Storsjo
fcf9ec8080
ucrtbase: Add defines for the printf/scanf options constants.
...
Avoid using hardcoded magic numbers for these options.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:24 +09:00
Carlo Bramini
21a14e9612
msvcrt: SEEK_* macros from GLIBC should be replaced with safer MSVCRT_SEEK_* macros.
2015-08-19 08:39:02 +09:00
Piotr Caban
cf20731447
msvcrt: Add _mbscat_s_l implementation.
2015-07-07 16:52:20 +09:00
Piotr Caban
e9eec98d5c
msvcrt: Cache locale string to LCID conversion results.
2015-06-24 22:57:00 +09:00
Piotr Caban
f55192aabc
msvcr120: Add ___lc_locale_name_func implementation.
2015-06-17 20:01:17 +09:00
Daniel Lehman
bc1eaf7a0f
msvcrt: Add _W_Getdays.
2015-06-10 15:26:10 +09:00
Orion Poplawski
8bf1732962
msvcrt: Bump MSVCRT_MB_LEN_MAX to 5 and use it in MSVCRT__wctomb_l for default buffer lengthSet MB_LEN_MAX to 5 to match MSVCRT_MB_LEN_MAX.
2015-02-03 14:38:40 +09:00
Martin Storsjo
5f395ee8e6
msvcr120: Implement the _dclass/_fdclass/_ldclass functions.
2014-12-09 18:48:49 +01:00
Yifu Wang
08d0508993
msvcr120: Added wchar_t* fields to struct MSVCRT_lconv.
2014-12-03 21:34:27 +01:00
Iván Matellanes
bcbd83d154
msvcrt: Added _fread_nolock_s implementation.
2014-11-10 19:25:15 +09:00
Iván Matellanes
4f807d9ae9
msvcrt: Added _ungetwc_nolock implementation.
2014-11-05 13:15:44 +09:00
Iván Matellanes
6f24dd9677
msvcrt: Added _ungetc_nolock implementation.
2014-11-05 13:15:20 +09:00
Iván Matellanes
b536ff62ef
msvcrt: Added _fputwc_nolock implementation.
2014-11-05 13:14:35 +09:00
Iván Matellanes
975a95a25b
msvcrt: Added _fputc_nolock implementation.
2014-11-05 13:14:03 +09:00
Iván Matellanes
156684ba91
msvcrt: Added _fgetwc_nolock implementation.
2014-10-31 15:35:36 +09:00
Iván Matellanes
878b4a9280
msvcrt: Added _fgetc_nolock implementation.
2014-10-31 15:35:24 +09:00
Iván Matellanes
4bb80afedc
msvcrt: Added _fflush_nolock implementation.
...
Thanks to Piotr Caban for the test.
2014-10-27 19:03:57 +09:00
Iván Matellanes
5077d8c137
msvcrt: Added _fseeki64_nolock implementation.
2014-10-16 13:02:16 +09:00
Iván Matellanes
7cf0c877b3
msvcrt: Added _ftelli64_nolock implementation.
2014-10-16 13:01:59 +09:00
Iván Matellanes
25d7a1bbbf
msvcrt: Added _fwrite_nolock() implementation.
2014-10-13 18:09:06 +09:00
Iván Matellanes
206ea48f20
msvcrt: Added _fread_nolock() implementation.
2014-10-13 18:08:54 +09:00
Iván Matellanes
9fda14a9d6
msvcrt: Added _fclose_nolock() implementation.
2014-10-08 14:47:46 +02:00
Piotr Caban
43be238331
msvcr80: Throw bad_alloc exception when operator new fails.
2014-09-02 20:54:47 +02:00
Nikolay Sivov
60de49770c
msvcrt: Implement llabs().
2014-08-29 20:38:42 +02:00
Piotr Caban
18a416f7d5
msvcrt: Support NULL buffer in setvbuf.
2014-06-26 19:00:41 +02:00
Piotr Caban
7f23c57d09
msvcr100: Add critical_section class implementation.
2014-06-24 13:31:28 +02:00
Piotr Caban
cda83f9c33
msvcr100: Add _SpinWait implementation.
2014-06-23 10:07:01 +02:00
Piotr Caban
d48314c8a5
msvcrt: Don't use default process heap.
2014-04-22 14:46:43 +02:00
Piotr Caban
a6e53eaed2
msvcr90: Share the source code with msvcrt.
2014-04-16 18:05:41 +02:00
Piotr Caban
e70bf5f8c6
msvcrt: Fix compilation errors on Mingw.
2014-04-16 18:00:01 +02:00
Piotr Caban
b01f888129
msvcrt: Fix internal LONG_MAX and ULONG_MAX definitions.
2013-09-25 19:30:23 +02:00
Piotr Caban
33d697c001
msvcrt: Add _wsetlocale implementation.
2013-08-29 19:56:17 +02:00
Piotr Caban
ff7388ca3f
msvcrt: Added _mbstok_s_l implementation.
2013-04-30 18:44:46 +02:00
Jactry Zeng
7cd91b6452
msvcrt: Fixed typo of _strncoll and _strncoll_l.
2013-04-29 20:30:55 +02:00
Piotr Caban
280f8237b5
msvcrt: Move fread_s function to msvcrt.
2013-03-28 18:54:42 +01:00
Piotr Caban
06c6773844
msvcrt: Added _wtol_l implementation.
2013-03-27 20:12:29 +01:00
Piotr Caban
9c4be83a78
msvcrt: Added _set_output_format implementation.
2013-03-27 12:13:20 +01:00
Piotr Caban
6eeb000c90
msvcrt: Fixed fgetwc behavior on multibyte characters and Unicode files.
2013-03-25 16:24:13 +01:00
Piotr Caban
14a81773c7
msvcrt: Added __pxcptinfoptrs implementation.
2013-03-05 12:44:30 +01:00
André Hentschel
874d077ca6
msvcrt: Add a new file for the ARM exception handling.
2013-02-27 19:23:45 +01:00
Nikolay Sivov
eab914b968
msvcrt: Move demangler flags to a header and use them.
2013-02-25 10:40:36 +01:00
Piotr Caban
a968a1ad6d
msvcrt: Return child exit code in _pclose function.
...
Based on a patch by Borut Ražem.
2013-01-18 13:28:59 +01:00
Piotr Caban
7f4e1c65b1
msvcrt: Added support for commit flag in fopen.
2013-01-18 13:28:58 +01:00
Alexandre Julliard
afee133b65
msvcrt: Fix incorrect use of the system wctomb function.
2013-01-14 13:47:00 +01:00