Commit Graph

286 Commits

Author SHA1 Message Date
Alexandre Julliard cf4f95326e Fixed a couple of relay arguments, and updated some of the stub
comments.
2003-03-17 04:44:12 +00:00
Alexandre Julliard a9c51cb60b Replaced forwards by normal function declarations. 2003-03-17 00:17:00 +00:00
Alexandre Julliard d354a1ca87 Implemented _getdllprocaddr(), it cannot be simply a forward to
GetProcAddress.
2003-03-17 00:05:44 +00:00
Alexandre Julliard 2c8a52ebad Implemented _chkesp, based on a patch by Jon Griffiths. 2003-03-15 22:26:09 +00:00
Jon Griffiths f5be136c58 Display abnormal exit text in a message box for GUI apps. 2003-03-15 22:25:01 +00:00
Jon Griffiths 57915f50c7 Implemented __p__pgmptr, _pgmptr. 2003-03-15 19:38:39 +00:00
Dmitry Timoshkov ad068bc0c2 Move vsnwprintf implementation to libwine_unicode, export snprintfW
and vsnprintfW from there, forward MSVCRT and NTDLL functions to
libwine_unicode.
2003-03-12 22:30:16 +00:00
Thomas Mertes 657ca8a873 Forward to the ntdll functions _itoa, _ltoa, _ultoa, _i64toa,
_ui64toa, _itow, _ltow, _ultow, _i64tow, _ui64tow, _atoi64, _wtoi,
_wtol, _wtoi64 from msvcrt / msvcrt20.
2003-03-12 20:17:03 +00:00
Marcus Meissner dbcbbe0211 Added _daylight stub int, and __p__daylight function. 2003-03-04 02:19:15 +00:00
Uwe Bonnes f540ea642e Rough implementation of _O_TEXT/_O_BINARY translation by doing single
byte read/writes in _O_TEXT mode and CR/LR handling.
fput/getwc must read multibyte characters in _O_TEXT.
Added test cases for _O_TEXT/_O_BINARY file handling and fgetws.
2003-02-19 22:09:33 +00:00
Warren Baird 586808fdf2 - Avoid possible seg fault when calling TRACE with NULL string pointers.
- Fix bad side-effect of makepath on input parameters.
2003-02-19 03:43:08 +00:00
Alexandre Julliard ac13d2f47e Print thread ids in traces with only 4 digits now that they are small
integers.
2003-02-18 23:29:47 +00:00
Michael Stefaniuc 909ffb7930 Implemented _mbsnbcat. 2003-02-14 23:26:58 +00:00
Marcus Meissner 5e71f2d536 Fix warning in __crtLCMapStringA. 2003-02-12 21:28:47 +00:00
Michael Stefaniuc 3dcd451bf6 Remove dead code after return or properly comment it out. 2003-02-12 01:23:17 +00:00
Marcus Meissner 1998beaeef Implemented __crtLCMapStringA. 2003-02-11 22:11:17 +00:00
Alexandre Julliard bb2210bc45 Store mbstok() next pointer in the per-thread data. 2003-02-01 00:59:22 +00:00
Michael Stefaniuc d76455df74 Implemented _mbstok and _mbsnbset. 2003-02-01 00:45:22 +00:00
Marcus Meissner af39862fe3 Implemented mbsicoll (without locale handling). 2003-01-31 03:20:25 +00:00
Francois Gouget 9b0b1e078a Remove (POINTER)NULL casts. 2003-01-14 23:43:41 +00:00
Alexandre Julliard 76db6b062e Warning fixes. 2003-01-11 22:50:15 +00:00
Alexandre Julliard a3717a2edd Fixed EOF return value for sscanf. 2003-01-11 21:06:02 +00:00
Dimitrie O. Paun 13098ea188 Create stubs for chsize, dup, and dup2. 2003-01-11 21:01:04 +00:00
Mehmet Yasar 653510348a - return EOF when stream is empty
- conformance test updated
2003-01-11 20:53:22 +00:00
Patrik Stridvall 46304a7361 Fixed some issues found by winapi_check. 2003-01-02 19:28:09 +00:00
Alexandre Julliard 7ea8a0b9be Handle unknown format chars correctly (spotted by György 'Nog'
Jeney) and added test for it.
Removed unneeded _L_ macro.
2002-12-20 00:35:41 +00:00
Alexandre Julliard 5f31b32946 Use MSVCRT_wchar_t instead of WCHAR so that the implementation matches
the prototypes.
2002-12-19 04:21:30 +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
Bill Currie c78902221f fdopen: don't rewind the file after creating the FILE* handle. Added
unit test for that.
2002-12-17 04:18:07 +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 dbf8b78acd Added .spec.def files. 2002-12-12 22:04:04 +00:00
Alexandre Julliard 72e1c64345 Added list of symbols to ignore by default in winebuild.
Made the -i option support removing ignored symbols too.
Removed the -noimport flag in spec files.
2002-12-12 02:20:47 +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
Stefan Leichter a5d7fbfb10 Converted implementation of _lseek to _lseeki64, implemented _lseek by
calling _lseeki64.
2002-11-25 20:50:01 +00:00
Stefan Leichter b88a9d5399 Converted implementation of _stat and _fstat to _stati64 and
_fstati64.
Implemented _stat/_fstat by calling _stati64/_fstati64.
2002-11-25 02:44:34 +00:00
Alexandre Julliard 910aebbc8e Removed -noimport on functions that are forwards to ntdll.
Added -noimport on functions that directly call the libc equivalent.
2002-11-20 19:52:14 +00:00
Alexandre Julliard 083b0beb0b Implemented some ismbc* functions (based on a patch by Greg Turner). 2002-11-19 00:52:38 +00:00
Alexandre Julliard 2b6eafa0f9 Fixed data copying in msvcrt_argvtos (spotted by bill@taniwha.org). 2002-11-13 04:20:54 +00:00
Alberto Massari 43662153c0 The already implemented function swscanf was missing an entry. 2002-11-12 23:20:31 +00:00
Patrik Stridvall 517a93afe3 Fixed some issues found by winapi_check. 2002-11-06 19:57:49 +00:00
Alexandre Julliard 1e1313d54c Made the dll entry point default to DllMain and removed most of the
'init' spec file declarations.
2002-11-04 23:53:41 +00:00
Alexandre Julliard 6bd508f82c Added clobber lists to the inline assembly functions. 2002-11-01 01:50:51 +00:00
Marcus Meissner 306a60d162 _seh_longjmp_unwind is i386 only for now. 2002-10-31 22:04:53 +00:00
Alexandre Julliard 5ad69f19bf Added support for nested exceptions happening inside a catch block. 2002-10-31 02:10:15 +00:00
Uwe Bonnes a768fa3119 First version of msvcrt scanf test. 2002-10-30 23:49:03 +00:00
Michael Stefaniuc 789b4b4204 Compile the msvcrt dll with -DSTRICT. 2002-10-25 03:12:01 +00:00
Alexandre Julliard 23bb3715f7 Added support for building certain dlls with -DSTRICT.
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Alexandre Julliard acea9d12eb Implemented _seh_longjmp_unwind. 2002-10-16 18:59:38 +00:00
György 'Nog' Jeney e022026c93 Implement [ format specifier. 2002-10-15 02:20:07 +00:00
Alexandre Julliard d78b458ed1 Fixed sign extension bug in EH_prolog, and made trylevel an int to
avoid similar problems.
2002-10-10 17:56:48 +00:00
Alexandre Julliard 613ead7f0f Fixed some handle conversions in prevision of void* handles. 2002-10-04 00:27:10 +00:00
Alexandre Julliard 0ac49a9994 except_handler3: Set correct %ebp when calling exception filter. 2002-10-02 18:34:58 +00:00
Jukka Heinonen 9747c15a15 Functions sscanf and swscanf now expect strings to be terminated with
null (0) instead of EOF (-1).
2002-09-29 18:00:23 +00:00
Martin Wilck 94638aa276 MSVCRT needs a public errno.h file. 2002-09-17 18:32:53 +00:00
Martin Wilck 27a91c782e Fix MoveFileEx() flags in MSVCRT rename()/_wrename(). 2002-09-16 22:39:50 +00:00
Alexandre Julliard 1668870f38 Fixed warnings caused by new winternl.h. 2002-09-12 22:28:01 +00:00
Patrik Stridvall 9c1de6de30 Moved all the content of the DDK files ntdef.h and ntddk.h to
winternl.h.
2002-09-12 22:07:02 +00:00
Uwe Bonnes 921eef3bde Make the scanf family recognize characters again. 2002-09-09 19:18:53 +00:00
Patrik Stridvall 57bf45067a MSVC compatibility fixes. 2002-08-26 21:53:24 +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
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Marcus Meissner 5ee517ac3d Copy va_lists by using va_copy, not by just assigning them. 2002-08-09 19:49:31 +00:00
Gregg Mattinson 8c9bdcc9e1 Fixes for Sparc build. 2002-08-07 01:18:41 +00:00
Alexandre Julliard 4c5d562c30 Add MSVCRT prefix to _stat and _fstat (based on a patch by Rafael
Kitover).
2002-07-31 20:04:57 +00:00
Alexandre Julliard 90423aa317 Fixed potential memory corruption. 2002-07-28 17:50:06 +00:00
Alexandre Julliard 37a4c9b8fe First pass implementation of CxxFrameHandler (thanks to Juergen
Schmied for help in testing it).
2002-07-24 03:02:51 +00:00
Uwe Bonnes 2f61c4a1b3 Take a snapshot of the environment strings when building the
__p__environ array and update the array on calls to _putenv.
2002-07-23 20:59:12 +00:00
Alexandre Julliard 5f7162363c Removed non-exported string functions. 2002-07-23 20:56:16 +00:00
Alexandre Julliard 14b75f9878 Added definition of msvcrt internal error codes. 2002-07-20 20:30:57 +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
Uwe Bonnes 4ec51d090a _open_osfhandle: set at least the _IOREAD flag. 2002-07-09 01:58:27 +00:00
Uwe Bonnes aba44fbc01 fgets, fgetws: don't treat the possible uninitialized buffers as valid
strings.
2002-07-08 20:44:33 +00:00
Uwe Bonnes 05ccdea0fa MSVCRT_fread: expose feof flag. 2002-07-08 20:44:09 +00:00
Uwe Bonnes cfb96bddf1 Added _U@YAPAXI@Z and _V@YAPAXI@Z. 2002-07-08 19:39:18 +00:00
Uwe Bonnes 73c3033029 MSVCRT_fseek: should return 0 on success. 2002-07-08 19:39:01 +00:00
Alexandre Julliard af0d206752 Flush stdio on exit. 2002-07-05 21:23:07 +00:00
Uwe Bonnes d389c4bad4 MSVCRT_operator_new: Call handler only when "new" operation fails. 2002-07-05 00:18:08 +00:00
Gregg Mattinson 7c4cb515b6 Cast void* to char* for pointer arithmetic. 2002-07-03 21:10:43 +00:00
Alexandre Julliard 77afd6c47e Made some more spec file entries optional or unnecessary.
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard 7cae558bdc Removed some more trailing whitespace. 2002-06-01 02:55:48 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 987d8a4ffc Fixed typo in iswalpha forward. 2002-05-25 21:10:39 +00:00
John K. Hohm 45b94449e6 Fix msvcrt._vsnwprintf format reading bug like NTDLL_vsnwprintf. 2002-05-20 18:02:47 +00:00
Francois Gouget 905cb7e316 Implemented _getws. 2002-05-19 22:21:17 +00:00
Alexandre Julliard 702b158e70 Export global argc/argv variables from libwine and remove the
__wine_get_main_args functions from ntdll.
2002-05-16 23:16:01 +00:00
Warren Baird c43b5c8f11 Some fixes for compiling on Sparc. 2002-05-16 23:08:01 +00:00
Alexandre Julliard ad53383f9b Added winebuild support for generating a .dbg.c file containing the
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard 67371bcc8d Added -res option to specify resources on winebuild command-line.
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard 32459912dc Moved imports specification from the .spec into the Makefile so that
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
Alexandre Julliard b53f13093e Attempt at fixing MAX_PATH issues for mingw. 2002-05-01 18:13:18 +00:00
Patrik Stridvall fc2be7edcc Fixed some issues found by winapi_check. 2002-04-29 18:48:56 +00:00
Alexandre Julliard 5769d1de00 Better support for configure detection of missing types, added check
for ssize_t.
Removed a couple of no longer used portability functions.
Various portability fixes in port.h.
2002-04-26 19:05:15 +00:00
Alexandre Julliard 894b188fcf Moved __ASM_GLOBAL_FUNC macros and interlocked functions to port.[ch] 2002-04-25 21:40:56 +00:00
François Gouget 7ccf8bc87d Implemented _mbsnbicmp. 2002-04-02 02:42:58 +00:00
Francois Gouget 0f4ed92098 Added missing FP_PNORM case. 2002-04-01 21:03:53 +00:00
Andriy Palamarchuk 95de1f8365 fwrite: fixed handling of already buffered data. 2002-03-27 21:03:24 +00:00
Uwe Bonnes c63916b1ce Add stub for __lconv_init(). 2002-03-26 01:51:55 +00:00
Uwe Bonnes d82f35eda1 __[x|]getmainargs: Accept NULL new_mode argument. 2002-03-25 20:56:20 +00:00
Andriy Palamarchuk 8c45390a7f Added check to fwrite for size == 0.
Fixed order and format of "size" and "nmemb" parameters in calls to
fwrite.
2002-03-21 01:23:32 +00:00
Bill Medland 716ffc5bef Connect the msvcrt file byte locking up to ntdll. 2002-03-20 22:50:38 +00:00
Alexandre Julliard c1bfca04e1 Changed builtin dlls file names to make it clear they are not normal
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Bill Medland 1ec2839ec9 Hook back into the correct MSVCRT__tolower/upper. 2002-03-20 00:55:40 +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
Peter Hunnisett d1a79ea2eb Add _lock,_unlock and header file for them.
Convert all msvcrt locks over to use _lock and _unlock.
Explicitly make msvcrt compile with multithreaded option.
Fix flag handling in _sopen. Add W->A call for new _swopen.
2002-02-21 20:22:00 +00:00
C. Scott Ananian 48a87e6107 Filled out the implementation of fscanf and _cscanf. 2002-02-08 17:17:11 +00:00
Dmitry Timoshkov 08af06c183 Implemented _wmakepath. 2002-01-29 18:00:44 +00:00
Dimitrie O. Paun 693cca5d4d Make FIXMEs more grep-able. 2002-01-29 03:12:19 +00:00
Alexandre Julliard bd1689ec0a Don't include debugtools.h in the header file, moved it to the C files
that need it (and used the new wine/debug.h while we are at it).
2002-01-22 00:57:16 +00:00
Uwe Bonnes a8322d0b02 _stat: Better test for drive letter. 2002-01-14 18:35:21 +00:00
Patrik Stridvall 19d66cc1f6 Fixed some issues found by winapi_check. 2002-01-07 21:16:46 +00:00
Dmitry Timoshkov ca737fa478 Fix definition of BY_HANDLE_FILE_INFORMATION structure. 2001-12-26 19:50:58 +00:00
Alexandre Julliard 4f07f05716 Authors: Jon Griffiths <jon_p_griffiths@yahoo.com>, François Gouget <fgouget@codeweavers.com>
Add RTTI support.
Fix what_exception prototype.
Fix new_handler_func prototype.
Add set_new_handler, _callnewh, _heapadd.
Add stubs for __unDName and __unDNameEx.
Added a semi-stub for __CxxFrameHandler.
2001-12-21 20:27:39 +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
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
François Gouget 3c2c02628d getenv is case insensitive. 2001-12-05 22:09:00 +00:00
François Gouget d1d07fb801 mktime must normalize the struct tm fields. 2001-12-05 22:08:46 +00:00
Uwe Bonnes b35d86aa13 MSVCRT_getenv: compare for the length of the key and return NULL in
case of failure.
2001-11-23 18:30:19 +00:00
Gerard Patel 3953614bbd - implement mbscspn mostly as a stub
- reimplement mktime
2001-11-12 15:47:26 +00:00
Alexandre Julliard 22c2ac7273 Implemented inline version of the iswxxx functions. 2001-11-08 19:16:34 +00:00
François Gouget 1425941e29 Fix the #include order for config.h.
Add #include "config.h" directives where needed.
2001-11-06 20:57:11 +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 141039a54c Move the RT_XXX macros to winuser.h.
winuser.h: Add support for NOGDI.
winuser.h: Modify to allow compilation without wingdi.h.
2001-10-10 02:51:24 +00:00
Francois Gouget aacc7e3756 _beginthread: Don't store the trampoline on the stack. 2001-10-08 20:32:41 +00:00
Francois Gouget e716fa75bd Renamed W_OK to MSVCRT_W_OK. 2001-09-26 23:04:02 +00:00
Alexandre Julliard 107b289a4e Fixed a couple of bugs in _except_handler3. 2001-09-20 19:33:37 +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
Francois Gouget bab91aa4af Implemented _mbsupr. 2001-09-17 19:02:21 +00:00
Patrik Stridvall 3c0211f969 Cleanup code that is strange or difficult to parse. 2001-09-11 00:32:32 +00:00
Francois Gouget e0ca651e0e Rewrite msvcrt_{argvtos,valisttos} to be more efficient.
Warn about the ' ' and '"' handling of the exec and spawn functions.
Copy the command line in MSVCRT_system to make it writable.
2001-09-10 23:07:07 +00:00
Francois Gouget 20560f4535 Initialize argc/argv/wargv by calling ntdll.__wine_get_{w}main_args. 2001-09-07 19:47:30 +00:00
Marcus Meissner 2378305c89 Implemented mbsnbcnt, added stubs for _Gettnames and __lc_collate_cp. 2001-09-07 18:34:45 +00:00
Dmitry Timoshkov 29fdbe9f98 Correct .spec file parameters for msvcrt._fullpath and ntdll._splitpath. 2001-09-07 15:25:31 +00:00
Jukka Heinonen abdb6d6836 Fixed _control87 return value, use of wrong assembler command to get
fp control word and a bug that inverted _IC_AFFINE flag.
Made _controlfp work as specified in MSDN.
2001-08-13 20:03:29 +00:00
Mike McCormack 0dae258385 Implemented msvcrt._mbspbrk. 2001-08-10 22:24:54 +00:00
Mike McCormack 7b3495ac93 Implemented multibyte string reverse. 2001-08-09 21:37:19 +00:00
Patrik Stridvall 4b1574577d - Made sure that the files that contains the declarations
of the implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-23 23:50:18 +00:00
Marcus Meissner ff584e4d9c Pass handle to GetFileType, not MSVCRT fd. 2001-07-23 18:02:18 +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
Uwe Bonnes e0cef27056 Semistubs for _ismbcdigit,_ismbcspace,_mbslwr,_mbsnbcmp,_mbsspn. 2001-07-11 20:13:14 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Peter Hunnisett e3454c78ba CreateFile should be called with security attributes in _open. 2001-07-10 19:03:46 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Dmitry Timoshkov e070021789 Add missing config.h include. 2001-06-29 19:19:53 +00:00
Patrik Stridvall 8b216b3d02 Documentation ordinal fixes. 2001-06-19 18:20:47 +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
Patrik Stridvall 6ac110836b Removed implementation of _ultow since it is forwarded to NTDLL in the
.spec file.
2001-06-19 03:44:39 +00:00
Marcus Meissner 737e624d1b _tzset just forwards to libc tzset(). 2001-06-13 19:35:48 +00:00