Commit graph

452 commits

Author SHA1 Message Date
Alexandre Julliard
f402bcd0c3 include/msvcrt: Remove some prototypes that conflict with gcc builtins.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:44 +02:00
Alexandre Julliard
b9ae3bf095 include/msvcrt: Define math constants by default, for compatibility with Mingw.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:44 +02:00
Alexandre Julliard
1f38c1abf6 include: Add wcsicmp() inline wrapper.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 16:46:41 +02:00
Alexandre Julliard
9b63daca51 include: Default to the standards-compliant version of swprintf().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-11 16:46:41 +02:00
Alexandre Julliard
e4d34098a6 msvcrt: Fix __p__fmode() prototype.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-14 18:24:46 +01:00
Daniel Lehman
77ad8a477e include/msvcrt: Include calling convention with function pointers.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:21:52 +02:00
Piotr Caban
e689445833 include/msvcrt: Add POSIX error codes to errno.h.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-16 21:28:45 +02:00
Alex Henrie
ae023be3ee include: Add wmemset to wchar.h.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:05 +02:00
Alex Henrie
b583a636c1 include: Add wmemmove to wchar.h.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:05 +02:00
Alex Henrie
9e093cbcc7 include: Add wmemcpy to wchar.h.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-29 17:13:05 +02:00
Alex Henrie
0d5648b463 include: Add wmemcmp to wchar.h.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-28 22:08:23 +02:00
Alex Henrie
e1bfd4b4cb include: Add wmemchr to wchar.h.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-28 22:08:23 +02:00
Martin Storsjo
8fb8cc03c3 arm64: Use __builtin_ms_va_list and __attribute__((ms_abi)) on arm64.
Windows uses a different ABI for va_list on arm64 just like on x86_64.

On x86_64, the calling convention for windows functions is completely
different from the one on other platforms. On arm64, they're mostly the
same, with the only exception being variadic functions (where all float
arguments are passed in integer registers, since the va_list is a single
pointer).

Any functions using __builtin_ms_va_start need to be decorated with
__attribute__((ms_abi)).

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-10 08:36:58 +02:00
Alex Henrie
b8c27cca37 include: Add lldiv and lldiv_t.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 16:56:39 +02:00
Alex Henrie
8a9812b767 include: Add llabs.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 00:15:50 +02:00
Alex Henrie
7ad8608ffb include: Add strtoll, strtoll_l, strtoull, and strtoull_l.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 00:15:48 +02:00
Alex Henrie
0ab4f08954 include: Add atoll.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-04 00:15:46 +02:00
Alex Henrie
67cae2dedc ucrtbase: Hook up _Exit.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-02 20:02:08 +02:00
Alex Henrie
ccbfb951c2 include: Add strtof and strtold.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-02 20:02:02 +02:00
Daniel Lehman
1863ec6414 include: Add wcstof.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-01 13:04:59 +02:00
Daniel Lehman
1ce7356498 include: Add _countof macro.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-01 13:04:55 +02:00
Daniel Lehman
fbfcb57c17 include: Add some math function declarations.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 20:23:26 +01:00
Alexandre Julliard
5c50ec0c74 include: Don't use floating point for WINAPI functions when building for soft-float on ARM.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 16:45:55 +01:00
Alexandre Julliard
644f497e87 include: Use the hard-float calling convention for Windows APIs on ARM
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:24:26 +01:00
Alexandre Julliard
7726157e19 msvcrt: Use WINAPIV calling convention for variadic functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:20:02 +01:00
Alistair Leslie-Hughes
fae0570a88 msvcrt: Implement clearerr_s.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 11:19:36 +02:00
Martin Storsjo
3d3d080688 msvcrt: Implement setjmp/longjmp on aarch64.
Also include the rest of except_*.c (based on except_arm.c) as stubs.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Daniel Lehman
1fdebb77ec include: Remove references to SPARC.
SPARC support removed in 2013.

Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-04 09:13:12 +02:00
Alistair Leslie-Hughes
b0bc08b345 include: Add LLONG_MIN, LLONG_MAX, ULLONG_MAX defines.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-06 16:30:40 +01:00
Stefan Silviu
4d37b87219 msvcrt: Implement nearbyint and nearbyintf.
Signed-off-by: Stefan Silviu <sylviu44@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-22 16:30:40 +01:00
Piotr Caban
514ff74e9b include: Add msvcrt/fpieee.h header.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 22:26:10 +09:00
Iván Matellanes
4f71f42910 include/msvcrt: Ensure integer limits are given the correct type.
Signed-off-by: Iván Matellanes <matellanesivan@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 12:07:14 +09:00
Alexandre Julliard
206e8b147b include: Update stdcall and cdecl definitions in crtdefs.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:22 +09:00
Grazvydas Ignotas
6c63e9f5d2 include: Expose some more implemented math functions.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:30 +09:00
Grazvydas Ignotas
cc902bce5b include: Use fabsf implementation when available.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:30 +09:00
Grazvydas Ignotas
b3194e04e0 include: Use float math functions on ARM.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:30 +09:00
Piotr Caban
1e9402124d msvcp: Add _Dtest implementation. 2015-09-14 16:47:52 +09:00
Piotr Caban
d7f6eac058 msvcp110: Fix _Getcvt implementation. 2015-04-22 23:28:42 +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
589f58d806 msvcr120: Implement the _vacopy function. 2014-12-08 17:08:51 +01:00
Iván Matellanes
bcbd83d154 msvcrt: Added _fread_nolock_s implementation. 2014-11-10 19:25:15 +09:00
Iván Matellanes
e4f9f53719 msvcrt: Add missing declarations in wchar.h. 2014-11-10 19:24:14 +09:00
Iván Matellanes
0ad3537d68 msvcrt: Added _putwc_nolock implementation. 2014-11-06 13:41:27 +09:00
Iván Matellanes
755a54b2a7 msvcrt: Added _putc_nolock implementation. 2014-11-06 13:41:23 +09:00
Iván Matellanes
fb4248315f msvcrt: Added _getwc_nolock implementation. 2014-11-06 13:41:19 +09:00
Iván Matellanes
caedfc8954 msvcrt: Added _getc_nolock implementation. 2014-11-06 13:41:13 +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
c53e0384a5 msvcrt: Added _fseek_nolock implementation. 2014-10-16 13:02:24 +09:00
Iván Matellanes
5077d8c137 msvcrt: Added _fseeki64_nolock implementation. 2014-10-16 13:02:16 +09:00
Iván Matellanes
50574ccffa msvcrt: Added _ftell_nolock implementation. 2014-10-16 13:02:08 +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
Andrey Zhezherun
3bb2c11757 msvcrt: Implemented _chsize_s. 2013-11-05 20:38:20 +01:00
Alexandre Julliard
a405745770 include: Add inline wrappers for some underscore-prefixed math functions. 2013-10-21 20:23:52 +02:00
Piotr Caban
7d41f9b3e9 msvcrt: Add _mktemp_s implementation. 2013-07-24 14:35:11 -05:00
Piotr Caban
779c1f8049 msvcrt: Don't call invalid parameter handler when string to be tokenized and context are not set in mbstok. 2013-06-21 16:23:35 +02:00
Piotr Caban
f3eb64ec73 msvcrt: Don't detect overflow in atoi implementation. 2013-06-04 21:01:13 +02:00
Piotr Caban
a5f525276f msvcr100: Added _vscwprintf_p implementation. 2013-04-30 18:44:46 +02:00
Jactry Zeng
a35db4e7e3 include: Added missing declarations to msvcrt. 2013-04-19 16:16:15 +02:00
Alexandre Julliard
d95857d669 msvcrt: Constify the arguments of execv functions. 2013-04-09 13:45:57 +02:00
Jactry Zeng
8c53b6fde4 msvcrt: Add missing declarations for _wcsncoll, _wcsncoll_l, _wcsicoll_l, _wcsnicoll_l and wcscoll_l. 2013-04-01 14:42:25 +02:00
Piotr Caban
9c4be83a78 msvcrt: Added _set_output_format implementation. 2013-03-27 12:13:20 +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
André Hentschel
5c8da80801 include: Add remaining checks for ARM64. 2013-01-28 15:38:03 +01:00
Piotr Caban
55aeaf3c76 msvcp90: Added std::log(complex) and std::exp(complex) implementation. 2013-01-25 11:18:28 +01:00
Piotr Caban
617bf861ef msvcrt: Added fopen_s test with ccs option. 2013-01-10 12:27:42 +01:00
Piotr Caban
78553db096 msvcrt: Added _atodbl tests. 2012-12-17 20:31:26 +01:00
Piotr Caban
77306693d4 msvcr100: Added _sprintf_p implementation. 2012-12-12 12:00:03 +01:00
Piotr Caban
101abcd8b1 msvcr100: Added fread_s implementation. 2012-12-12 11:59:38 +01:00
Piotr Caban
a71acb3076 msvcp90: Added wctrans and towctrans implementation. 2012-11-16 11:41:55 +01:00
Daniel Lehman
7e414ee71a msvcrt: Add declaration for _sc[w]printf to header. 2012-10-08 12:55:09 +02:00
Piotr Caban
27f9052440 msvcp90: Added num_put<char>::put(double) implementation. 2012-06-22 14:08:01 +02:00
Daniel Lehman
5afde5f378 msvcrt: Add declarations to stdlib.h for _strtoui64 and _strtoi64. 2012-04-19 13:44:22 +02:00
Daniel Lehman
9a8d3cc5bd msvcrt: Add declarations to stdlib.h for _wcstoui64 and _wcstoi64. 2012-01-16 12:45:38 +01:00
Daniel Lehman
e0f1bac434 msvcrt: Add struct and prototypes for existing _findfirst64 and _findnext64. 2012-01-09 12:52:16 +01:00
Alexandre Julliard
446a6b3556 msvcrt: Use the correct type for findnext64. 2012-01-06 21:57:38 +01:00
Piotr Caban
f4518b9a54 include: Update msvcrt/locale.h. 2011-12-06 15:51:00 +01:00
Austin English
d67275fed8 include: Define _WIN64 on sparc/powerpc64. 2011-11-08 09:50:06 +01:00
Piotr Caban
af6fd252ef msvcr90: Fix _vswprintf_p implementation. 2011-09-20 16:21:40 +02:00
Piotr Caban
27ff2ae967 msvcrt: Improved locale initialization. 2011-05-26 13:38:22 +02:00
Alexandre Julliard
277120bbd5 msvcp: Implement the Ctraits math functions. 2011-05-04 17:26:47 +02:00
Piotr Caban
6ecabf7cae msvcrt: Added _set_printf_count_output and _get_printf_count_output implementation. 2011-04-28 11:08:06 +02:00
Piotr Caban
00182ca6d9 msvcrt: Added sprintf_p_l implementation. 2011-04-27 13:18:59 +02:00
Nikolay Sivov
0512829a27 msvcrt: Add _get_output_format() and return default value. 2011-03-09 12:30:30 +01:00
Alexandre Julliard
9b76c16e7e msvcrt: longjmp doesn't have a return value. 2011-02-01 18:14:09 +01:00
Detlef Riekenberg
507ec2a415 include: Add missing _stat64i32 / _stat32i64. 2011-01-26 15:00:14 +01:00
Detlef Riekenberg
6e610f1e1a msvcr90: Implement _stat32, _fstat32, _wstat32. 2011-01-25 18:10:36 +01:00
Nikolay Sivov
03ca06e791 msvcrt: Partially implement _set_abort_behavior. 2011-01-20 12:54:50 +01:00
Alexandre Julliard
6dcf94b21c include: Add an assert.h msvcrt header. 2011-01-19 19:49:08 +01:00
Nikolay Sivov
ad6bc94491 msvcrt: Add _atoflt and _atoflt_l implementations. 2011-01-19 12:22:27 +01:00
Mike Gibson
23906816d8 msvcrt: Implement wcsnicoll. 2010-12-05 16:45:43 +01:00
Andrew Nguyen
92705a48dc msvcrt: Add some definitions and prototypes to float.h. 2010-11-29 19:43:34 +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
Eryk Wieliczko
37cf8dc57d msvcrt: Implement strncat_s. 2010-11-15 17:21:16 +01:00
Eryk Wieliczko
a3927b5e09 msvcrt: Implement _ftelli64. 2010-11-03 14:45:17 +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
c7536ef868 msvcrt: Define STRUNCATE. 2010-10-19 10:15:35 +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
e245cb52c6 msvcrt: Implement _localtime64_s. 2010-10-11 17:11:37 +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
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
Alexandre Julliard
8f1ea6eeb1 include: Make sure wine/port.h and msvcrt headers are not used together. 2010-07-22 17:40:55 +02:00
Marcus Meissner
5c7ed28ff3 mscvrt: Fix include to be C++ compatible. 2010-07-08 17:33:38 +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
Alexander Scott-Johns
5361263bdb include/msvcrt: Update a bit. 2010-06-17 14:07:19 +02:00
Alexander Scott-Johns
4e8e2f39c5 include/msvcrt: Define _TRUNCATE; use it in the tests. 2010-06-07 13:51:49 +02:00
Robert Wilhelm
b3429e883c include: Add struct _stat32i64 and struct _stat64i32. 2010-05-26 17:36:32 +02:00
Maarten Lankhorst
f4fcd81167 include: Add float functions to msvcrt. 2010-05-03 15:34:41 +02:00
Alexandre Julliard
4f3b7f8445 msvcrt: Implement _invalid_parameter and fix the handler definitions. 2010-04-14 18:00:46 +02:00
Alexandre Julliard
11f10c6f05 msvcrt: Implemented setjmp for x86_64. 2010-04-10 11:47:55 +02:00
Piotr Caban
254eab3827 msvcr90: Added _get/set_invalid_parameter_handler implementation. 2010-03-25 16:46:56 +01:00
Alexandre Julliard
7f69436ea8 include: Specify explicit alignment for __int64 types. 2009-11-21 14:31:45 +01:00
Alexandre Julliard
580e07e7ba include/msvcrt: Add explicit msvcrt_long types to replace long for 64-bit compatibility. 2009-05-23 11:57:39 +02:00
Alexandre Julliard
4a7b3460ef msvcrt: Add explicit 32- and 64-bit versions of the utime functions. 2009-05-23 11:12:17 +02:00
Alexandre Julliard
8408e3a955 msvcrt: Add explicit 32- and 64-bit versions of the time functions. 2009-05-23 11:12:12 +02:00
Hans Leidekker
0803575fd3 msvcrt: Implement _vscprintf and _vscwprintf. 2009-03-26 16:12:15 +01:00
Alexandre Julliard
3ad7f77298 include/msvcrt: Replace va_list by __ms_va_list for x86_64. 2009-01-07 11:10:26 +01:00
Alexandre Julliard
fcd2ff9703 include: Fix the msvcrt time_t definition on 64-bit. 2009-01-04 14:47:58 +01:00
Alexandre Julliard
558732ef09 msvcrt: Add missing __cdecl on some function pointers. 2009-01-03 18:43:00 +01:00
Alexandre Julliard
5646fec9b1 include: Use __p__iob on i386 to avoid problems with Mingw libraries. 2008-12-17 17:38:02 +01:00
Alexandre Julliard
bb33b0a21d msvcrt: Add __cdecl to all function prototypes. 2008-12-17 15:00:28 +01:00
Alexandre Julliard
e2b3ee535f msvcrt: The __p_* functions are only exported on i386. 2008-12-15 16:20:08 +01:00
Alexandre Julliard
b19913ac70 msvcrt: Add a few more *_func functions to replace the __p_* ones. 2008-12-15 16:03:32 +01:00
Alexandre Julliard
4305e6d119 msvcrt: Use iob_func instead of p__iob on non-x86. 2008-12-12 10:19:55 +01:00
Alexandre Julliard
d8ab5a14aa msvcrt: Use intptr_t or size_t instead of long where appropriate. 2008-12-12 10:19:55 +01:00
Alexandre Julliard
33fa6c2e25 include: Add the msvcrt/crtdefs.h header and include it where needed. 2008-12-12 10:19:55 +01:00
Alexandre Julliard
74d63c020c include: Fix the definition of 64-bit types for Mingw64. 2008-12-09 17:42:13 +01:00
Alexandre Julliard
956f19fa1b include: Added the msvcrt memory.h header. 2008-12-09 11:30:53 +01:00
Maarten Lankhorst
6a704d6f72 includes: Add win64 calling convention. 2008-11-25 12:31:47 +01:00
Jon Griffiths
7d39c97e5f include/msvcrt: Wrap remaining msvcrt headers for C++ compilation. 2008-06-18 16:48:08 +02:00
Austin English
6e59cd2c34 Spelling fixes. 2008-04-22 12:20:12 +02:00
Francois Gouget
dd3e2be810 msvcrt: Add a prototype for _atoldbl() & co and declare _LDOUBLE & co in stdlib.h. 2007-08-30 17:02:48 +02:00
Robert Reif
fc77a467cd msvcrt: Add _aligned_malloc functions. 2007-07-31 20:32:52 +02:00
Dmitry Timoshkov
70015ab5b4 include/msvcrt: Make sure that __int64 is properly defined on a 64-bit platform. 2007-06-06 20:33:54 +02:00
Francois Gouget
784693bb5a msvcrt: Remove the S_ISXXX() macros as they are not present in the Visual C++ headers. 2007-05-22 12:01:28 +02:00
Dmitry Timoshkov
2af96fe590 msvcrt: Pack the structures on a 8-byte boundary like in PSDK. 2007-02-20 12:24:04 +01:00
Damjan Jovanovic
cbb6da2d70 msvcrt: Added declarations for functions and structures related to stat64. 2007-02-14 12:30:58 +01:00
Damjan Jovanovic
65d9723dc4 msvcrt: Align struct _stati64's st_size on an 8 byte boundary. 2007-02-06 13:28:36 +01:00
Francois Gouget
bb8e625b5b Assorted spelling fixes. 2006-12-05 10:31:47 +01:00
Alexandre Julliard
9abd8852dd configure: Don't define _WIN64 on the command line to avoid trouble with system headers. 2006-10-16 21:29:23 +02:00
Nick Burns
a5f933541f msvcrt/process.h: __stdcall__ defined safely for Mac OSX. 2006-10-09 20:26:37 +02:00
Detlef Riekenberg
ca788bbc26 include: Open Watcom compatibility (Fix _BSDTYPES_DEFINED typo). 2006-09-22 13:22:50 +02:00
Alexandre Julliard
945292737b include/msvcrt: Fix all definitions of size_t for Win64. 2006-07-10 12:28:25 +02:00
Ge van Geldorp
6a65bf6a2b include/msvcrt: Make sure size_t is properly defined for 64-bit. 2006-07-03 11:41:36 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Eric Pouech
e66e227dbe Fixes for missing prototypes warnings. 2006-02-06 13:13:28 +01:00
Alexandre Julliard
4755f8acec msvcrt: Added EILSEQ definition. 2006-01-23 19:29:36 +01:00
Kevin Koltzau
935dea2fb4 Fix warnings and errors in 64bit. 2005-11-03 13:17:51 +00:00
Alexandre Julliard
6b2a9b3022 Added implementation of _dstbias and __p__dstbias.
Added macros for _dstbias, _daylight, _timezone and _tzname.
2005-09-27 10:55:50 +00:00
Vijay Kiran Kamuju
07b53de0b2 Implementation of _get_sbh_threshold and _set_sbh_threshold
functions.
2005-09-23 10:07:05 +00:00
Vijay Kiran Kamuju
8c2ba6f93c Added __p__amblksiz implementation. 2005-09-19 14:41:25 +00:00
Saulius Krasuckas
6de20f33ae - Declare implemented functions inside #ifndef _DEBUG block.
- Make MSVCRTD_operator_new_dbg recognize types of memory blocks.
2005-07-21 10:34:08 +00:00
Vijay Kiran Kamuju
c41b70fc28 Add _MB_CP_* defines. 2005-07-08 11:31:26 +00:00
Juan Lang
e5b4a6973a Implement signals. 2005-05-13 17:44:28 +00:00
Marcus Meissner
6b7e3e1cfd gcc4 alias fixes. 2005-04-25 10:48:59 +00:00
Lionel Ulmer
cc89feb9c4 fpos_t should be 64 bits (verified with native MSVCRT.DLL) 2005-01-04 20:38:14 +00:00
Eric Pouech
4056d7ef8c Fixed some errors in function prototypes. 2004-12-13 21:19:01 +00:00
Martin Fuchs
ace5f3c6ed Define pid_t and ssize_t if not already defined. 2004-10-11 20:53:50 +00:00
Dimitrie O. Paun
0377462460 Split the MSVCRT implementation headers from the public headers.
Fix some naming conventions aberrations.
Add tests to ensure consistency between the two sets of symbols.
2004-06-25 01:19:15 +00:00
Eric Pouech
bcc2a5c540 - rewrote the file code so that streams manage low level file desc
(the code was written the other way around)
- reworked the flag handling code (now the stream._flag is closer to
  what MS does)
- simplified temp files handling by using FILE_FLAG_DELETE_ON_CLOSE in
  CreateFile
- fixed a couple of bugs
2004-05-12 00:12:26 +00:00
Dimitrie O. Paun
adb4cb3890 Fix the _WCTYPE_T_DEFINED sentry for compatibility. 2004-04-26 23:31:39 +00:00
Dimitrie O. Paun
a5686fe589 Added definition for HUGE_VAL. 2004-04-09 19:02:45 +00:00
Felix Nawothnig
5e80d6f5f0 Define all macros described on MSDN. 2004-04-02 23:28:31 +00:00
Felix Nawothnig
518acec60c Define (L)DBL_* and FLT_*. 2004-03-25 23:36:14 +00:00
Felix Nawothnig
4b2edce840 Define stat in msvcrt/wchar.h. 2004-03-25 00:10:06 +00:00
Hans Leidekker
821f4775a3 - Prefix many more functions, types, structs, etc. with MSVCRT_.
- Correct prototypes for _memccpy()/_memicmp().
- "define before use" reordering in file.c.
- Use the new math.h/float.h.
2004-03-16 19:17:11 +00:00
Hans Leidekker
285ad721f4 The beginnings of math.h and float.h. 2004-03-12 19:47:20 +00:00
Alexandre Julliard
c042e13ef6 Fixed varargs handling in the scanf functions (spotted by Eric
Pouech).
2004-02-19 01:13:12 +00:00
Alexandre Julliard
0b19a6f7bc Better support for div and ldiv in Winelib apps. 2003-11-28 23:17:28 +00:00
Pierre d'Herbemont
d3ab533eb3 Fixed _wfullpath prototype. 2003-10-28 21:13:13 +00:00
Pavel Roskin
9661d05b4e MSVCRT_tmpnam(): complete rewrite. Use the same names as the native
version.  Use the caller-supplied buffer if possible.
2003-10-24 00:23:51 +00:00
Vincent Béron
dc7c2e464e Added msvcrt headers limits.h and math.h. 2003-09-02 00:58:21 +00:00
Dimitrie O. Paun
53f9c21fb7 Use angle brackets (<>) rather than quotes ("") for the include
directives in our .h files. This should avoid some potentially nasty
surprises for Winelib apps.
2003-08-28 21:43:34 +00:00
Dimitrie O. Paun
2703584b15 Alias _vsnprintf as vsnprintf. 2003-08-13 22:01:12 +00:00
Dimitrie O. Paun
2892dbdf5f Add definitions for the S_IS* macros. 2003-08-13 19:35:35 +00:00
Jon Griffiths
5f17550896 Don't redefine __WINE_USE_MSVCRT (msvc warning).
Don't return a void value in swab().
'long long' is not recognised by msvc, use __int64.
2003-07-18 22:57:15 +00:00
Antonio Larrosa Jiménez
8abbc40e51 Added CLOCKS_PER_SEC. 2003-06-04 20:24:16 +00:00
Vincent Béron
5d730664da Terminate the lfind inline function. 2003-04-19 02:48:10 +00:00
Alexandre Julliard
1b41cdf3d1 Fixed alloca handling the way mingw does it (reported by Vincent
Béron).
2003-04-17 02:40:21 +00:00
Dimitrie O. Paun
45247de05b Fix errno linkage when compiling in C++. 2003-03-28 19:31:12 +00:00
Alexandre Julliard
98f020234c Use aliases instead of #defines for the varargs functions when using
gcc.
2003-03-26 01:29:56 +00:00
Madhura Sahasrabudhe
992d1b998a Changed the macros in the msvcrt headers to static inline functions. 2003-03-22 21:15:41 +00:00
Dimitrie O. Paun
76883a8cb6 Define the u_{char,short,int,long} in msvcrt/sys/types.h for Unix
compatibility (needed by winsock.h as well).
2003-03-17 21:22:34 +00:00
Alexandre Julliard
d1e46c5d5b Define __stdcall in msvcrt/process.h if windef.h hasn't been included. 2003-01-15 03:31:49 +00:00
Dimitrie O. Paun
695c2bbde6 Define the (old name) struct stat, it is used by programs using the
old names.
2003-01-13 18:31:53 +00:00
Dimitrie O. Paun
df9537eaef Use inline functions instead of macros to avoid problems in C++.
Inline functions respect scope, whereas macros don't.
Define umask in sys/stat.h, and mode_t in sys/types.h.
2003-01-11 22:49:54 +00:00
Dimitrie O. Paun
3fd4087dde Define qsort and bsearch in stdlib.h. 2003-01-11 20:54:19 +00:00
Dimitrie O. Paun
4d28cc880d Add dirent.h header for Unix/mingw compatibility. 2003-01-11 20:54:06 +00:00
Dimitrie O. Paun
651f32fb50 Add unistd.h files for mingw/Unix compatibility. 2003-01-10 01:47:48 +00:00
Alexandre Julliard
b4a4c05aed Removed a few more #ifdef __WINE__. 2003-01-04 00:19:17 +00:00
Dimitrie O. Paun
36d0e5b73a Define NULL if it's not defined already. 2003-01-03 03:07:06 +00:00
Dimitrie O. Paun
fcb40e8f63 Map strcasecmp to _stricmp. 2002-12-18 20:49:44 +00:00
Alexandre Julliard
3f5ff2fba2 Avoid including other headers from the msvcrt headers, duplicate some
definitions instead like Windows does.
Always define wchar_t (suggested by Dimitrie O. Paun), and use wchar_t
everywhere instead of WCHAR to avoid depending on Windows headers.
2002-12-18 20:17:20 +00:00
Dimitrie O. Paun
737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Alexandre Julliard
435e2e63f4 winnt.h should not be self-contained, it must depend on windef.h so
that STRICT works correctly; moved some definitions back to windef.h
where they belong, and removed a couple of definitions that don't
exist on Windows.
2002-12-10 22:56:43 +00:00
Francois Gouget
6ae2a1f16f Added EDEADLOCK. 2002-12-05 18:59:53 +00:00
Dimitrie O. Paun
2b47a2b8b4 Add a way to tell msvcrt to define wchar_t. 2002-11-30 19:14:23 +00:00
Francois Gouget
79027d16e7 Added constants for _set_error_mode(). 2002-11-30 01:52:30 +00:00
Patrick J. McNerthney
93703772e6 Added casts to all macros to avoid compiler warnings. 2002-09-24 03:04:45 +00:00
Martin Wilck
94638aa276 MSVCRT needs a public errno.h file. 2002-09-17 18:32:53 +00:00
Daniel Gudbjartsson
42c74d6454 Combined the implementation of all the scanf's in a single place.
Added implementations of fwscanf, swscanf, wscanf and sscanf.
Corrected the declaration of swscanf.
Added implementation of the l, h, L and w prefixes.
Added implementation of the c, C, s, S and n types.
2002-08-17 01:22:00 +00:00
Rafael Kitover
ac81d02a58 Portability fixes for Cygwin. 2002-07-31 20:04:20 +00:00
Alexandre Julliard
44b4235af2 Fixed per-thread data handling.
Made terminate and unexpected function pointer per-thread.
Added set_se_translator.
2002-07-19 03:24:50 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard
9560e58ac5 FreeBSD compile fix. 2002-04-27 21:14:50 +00:00
Bill Medland
716ffc5bef Connect the msvcrt file byte locking up to ntdll. 2002-03-20 22:50:38 +00:00
Waldek Hebisch
75315fa6d8 Implemented stdio buffering and ungetc. Misc stdio fixes. 2002-03-11 05:03:05 +00:00
Alexandre Julliard
0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Peter Hunnisett
73ab649ced New file msvcrt/excpt.h. Move some stuff out of winnt.h into it. 2002-02-25 20:10:35 +00:00
Peter Hunnisett
618a4e916b atexit doesn't take a _onexit_t parameter. 2002-02-22 21:20:39 +00:00
Patrik Stridvall
57e5784c21 Move __stdcall/__cdecl to the right place. 2002-02-02 18:42:11 +00:00
Francois Gouget
7229e9212a Prefix _JBLEN to avoid conflict on FreeBSD. 2002-01-29 02:54:43 +00:00
Alexandre Julliard
1849f1eb15 Authors: Jon Griffiths <jon_p_griffiths@yahoo.com>, François Gouget <fgouget@codeweavers.com>, Alexandre Julliard <julliard@codeweavers.com>
Implement setjmp/setjmp3 and longjmp.
2001-12-21 19:23:30 +00:00
Bill Medland
365a6d2ee5 And in addition to Mingw32 we will want the _ versions. 2001-12-21 19:15:11 +00:00
Bill Medland
024d39fcb1 Added share.h from Mingw32. 2001-12-19 18:49:21 +00:00
François Gouget
63d133172b Cleanup and improve the mbcs support.
Add mbctype.h and mbstring.h.
Implement putwc and putwchar.
2001-12-05 22:11:35 +00:00
Uwe Bonnes
cf80c545a5 _dev_t is an unsigned integer. 2001-11-23 18:25:34 +00:00
Francois Gouget
d5aebbe6b3 A few typos. 2001-11-19 02:09:49 +00:00
Francois Gouget
a45907c4c0 Added __WINE_USE_MSVCRT. 2001-10-22 18:59:23 +00:00
Francois Gouget
0a26d420d9 The _IOXXX macros conflict with system headers on Solaris. Prefix
them.
2001-10-15 17:50:55 +00:00
Francois Gouget
433430ae96 Add msvcrt/locale.h.
Add missing include directives in msvcrt/wchar.h.
Fix prototype of _wstati64 in msvcrt/sys/stat.h.
2001-09-19 20:29:33 +00:00
Patrik Stridvall
33929be46f - Made sure that the files that contains the declarations
of implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-18 21:04:23 +00:00
Patrik Stridvall
887c035be1 - Added, cleaned up and/or documentated _{begin,end}thread{,ex}.
- _lfind and _ltow are implemented (not stubs).
2001-06-19 03:46:27 +00:00
Francois Gouget
a08b165955 Added msvcrt/eh.h.
Implemented unexpected, terminate and set_unexpected/terminate.
2001-05-31 21:32:53 +00:00
Francois Gouget
fcba601cf4 RC_INVOKED (&NOWINRES) special cases. 2001-05-07 18:18:33 +00:00
Francois Gouget
fceb19ff8e Don't use Windows types like LONGLONG in msvcrt headers. 2001-04-24 23:16:39 +00:00
Francois Gouget
d1ff49d7ea Added offsetof (for the MFC). 2001-04-23 18:22:05 +00:00
Francois Gouget
b29120d2c4 Add msvcrt/malloc.h (for the MFC).
Add msvcrt/search.h.
Move duplicated definitions to the new headers.
Use malloc.h instead of stdlib.h when sensible.
2001-04-23 18:20:55 +00:00