Commit Graph

188 Commits

Author SHA1 Message Date
Dan Kegel 316869b273 msvcrt: Fix EOF behavior on read from pipe or console.
The canonical way to detect EOF on read is when you request more than
zero bytes, but zero bytes come back.  Switching to this method seems
to handle a few problem cases better.  Also handle ERROR_BROKEN_PIPE
properly just in case.
2008-02-12 22:35:20 +01:00
Eric Pouech 0920f8e778 msvcrt: symbol undecoration: Really check that we get a template string before making use of it. 2008-01-22 12:07:21 +01:00
Eric Pouech 2e47a3a4f8 msvcrt: symbol undecoration: Now correctly parsing the template forms. 2008-01-22 12:05:05 +01:00
Lionel Debroux 51d6a08d57 msvcrt: Test more offsets for _aligned_offset_realloc (especially offset > alignment). 2007-11-28 13:52:22 +01:00
Lionel Debroux 68b1f2cde2 msvcrt: Fix memory leak (found by Smatch). 2007-11-26 13:07:30 +01:00
Michael Stefaniuc daf1ed48c3 msvcrt/tests: Remove redundant NULL check before free(). Found by Smatch. 2007-11-19 13:02:06 +01:00
Stefan Dösinger a529ef4875 msvcrt: Implement _mbsnbcpy_s. 2007-11-16 15:07:55 +01:00
Stefan Dösinger 9582f5c719 msvcrt: Implement strcat_s. 2007-11-16 15:07:26 +01:00
Stefan Dösinger 18daed62ed msvcrt: Implement strcpy_s. 2007-11-16 15:06:52 +01:00
Dan Kegel a1e4758f07 msvcrt: Fix two buglets in heap test. 2007-11-07 13:21:35 +01:00
Mikolaj Zalewski 1f632a29ce msvcrt/tests: Loosen the mbctype test to pass under Windows 9x and NT 4.0. 2007-10-29 12:02:56 +01:00
Lionel Debroux efebe8b29b msvcrt/tests: Fix memory leak (found by Smatch). 2007-10-26 14:03:47 +02:00
Alexandre Julliard 49864b084d msvcrt: Fix demangling of function pointers by maintaining the left/right distinction for type references. 2007-10-10 19:52:16 +02:00
Dan Kegel 56eb6f6730 msvcrt: Fix ^Z handling in text mode. 2007-10-09 11:39:57 +02:00
Dan Kegel 4cd3a16f18 msvcrt: Improve CR CR LF handling. 2007-10-05 10:33:27 +02:00
Karl Relton 260fd8a4a9 msvcrt: New implementation of fcvt. 2007-09-25 12:37:32 +02:00
Mikolaj Zalewski 758539c8a3 msvcrt: Implement and test _mbsbtype. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 884d718c49 msvcrt: Test and fix _ismbslead and _ismbstrail. 2007-08-24 10:57:16 +02:00
Mikolaj Zalewski 9a2d605dd9 msvcrt: Test and fix _mbsinc/_mbsninc. 2007-08-23 12:43:16 +02:00
Mikolaj Zalewski cf8cf1d7f9 msvcrt: Don't test codepage 20932. 2007-08-23 12:43:04 +02:00
Mikolaj Zalewski c5268a20ab msvcrt: Test and fix _mbccpy, _mbsncpy and _mbsnbcpy. 2007-08-23 12:42:54 +02:00
Mikolaj Zalewski 12ff6788b3 msvcrt: Test that some functions depends on locale codepage, not the one set by _setmbcp. 2007-08-21 13:00:41 +02:00
Mikolaj Zalewski cea1052f62 msvcrt: Test and fix _mbclen/_mbslen. 2007-08-21 13:00:33 +02:00
Mikolaj Zalewski 545f446bf3 msvcrt: Test and fix _mbsnextc. 2007-08-21 13:00:16 +02:00
Mikolaj Zalewski ba43c67f8f msvcrt: Implement _ismbblead/_ismbbtrail using _mbctype (with tests). 2007-08-21 13:00:06 +02:00
Mikolaj Zalewski ea824f830f msvcrt: Fill _mbctype table in _setmbcp. 2007-08-21 12:59:56 +02:00
Paul Vriens 56f4262e94 msvcrt/tests: Wait for spawned processes to finish. 2007-08-21 12:41:42 +02:00
Dmitry Timoshkov 1e5b131d7a msvcrt: Route mktime and localtime to glibc. 2007-08-21 12:41:35 +02:00
Mikolaj Zalewski e9ec5d4aff msvcrt: __mb_cur_max is not updated in _setmbcp (with testcase) and should not be used in _ismbblead. 2007-08-17 12:43:19 +02:00
Paul Vriens 059436d536 msvcrt/tests: Remove wrong FreeLibrary and fix typo's. 2007-08-15 10:48:59 +02:00
Alexandre Julliard 1b819cbe87 msvcrt: Use a valid parameter array when demangling a template name. 2007-08-14 18:10:53 +02:00
Peter Beutner 1a688cd058 msvcrt: Fix _makepath(). 2007-08-07 12:36:23 +02:00
Peter Beutner 2b3c19fe55 msvcrt: Add _makepath() tests. 2007-08-07 12:36:12 +02:00
Robert Reif cf7c156fe3 msvcrt/tests: Add _aligned_malloc tests. 2007-07-31 20:32:57 +02:00
Francois Gouget a50dfc174e msvcrt/tests: Fix a signed/unsigned int mismatch. 2007-05-29 12:12:05 +02:00
Francois Gouget cf218621fd msvcrt: When operating on a closed pipe, read() should return 0, not -1.
Add tests to make sure read() and fread() work right on closed pipes.
2007-05-22 12:01:35 +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
Francois Gouget f793221f0f msvcrt/tests: When compiling with Visual C++ 2005, one must define _CRT_NON_CONFORMING_SWPRINTFS otherwise swprintf() takes an extra parameter. 2007-05-22 11:59:56 +02:00
Michael Stefaniuc 590bf1be88 msvcrt: Demangle a C++ mangled string that is only a name with it's template argument list. 2007-04-06 12:31:05 +02:00
Andrew Talbot 1e8e0a4ed2 msvcrt/tests: Replace inline static with static inline. 2007-03-23 12:29:28 +01:00
Jan Zerebecki fbe9b578e1 msvcrt: Remove unused variable. 2007-03-15 12:25:12 +01:00
Alexandre Julliard 8f097d8c9d msvcrt: _initterm doesn't return anything. 2007-03-14 12:26:43 +01:00
Paul Vriens 8ebcf40043 msvcrt/tests: Properly remove temporary directory. 2007-03-06 22:00:11 +01:00
Damjan Jovanovic 2705d78876 msvcrt: Fix fstat's handling of pipes and char devices.
For pipes/char devices, st_dev and st_rdev should be the fd, st_nlink
is always 1, and st_mode is S_IFIFO and S_IFCHR respectively.
Added tests to prove the new behaviour right.
2007-02-16 13:13:37 +01:00
Damjan Jovanovic 7ecc283bd9 msvcrt: Implemented stat64, wstat64 and fstat64.
Change all other variations of stat use the stat64 family, since it is
the most general.
2007-02-14 12:31:14 +01:00
Michael Stefaniuc bbe9c51b31 msvcrt: Fix *printf() handling of negative field width. 2007-02-05 12:26:10 +01:00
Alasdair Sinclair 8137c094fd msvcrt: If we're at EOF in the buffer and we have pattern %n in format string we should not count the EOF in the total. 2007-01-17 11:23:34 +01:00
Duane Clark 67386352c8 msvcrt: Add function _mbsspnp. 2006-12-24 13:07:22 +01:00
Francois Gouget f0dd63cbb4 msvcrt: The tests link with msvcrt(d).dll now, so use GetModuleHandle() rather than LoadLibrary(). 2006-12-14 12:44:28 +01:00
Andrew Talbot ac550a88ef msvcrt/tests: Cast-qual warnings fix. 2006-12-13 11:49:06 +01:00