Commit Graph

505 Commits

Author SHA1 Message Date
Robert Shearman efc069cbb3 Added NtQueryProcessInformation case needed by NT version of MSI. 2003-04-12 00:01:32 +00:00
Thomas Mertes b5763feb55 Tests for RtlUlonglongByteSwap, RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlUnicodeStringToAnsiString,
RtlAppendAsciizToString, RtlAppendStringToString,
RtlAppendUnicodeToString and RtlAppendUnicodeStringToString.
2003-04-08 00:56:01 +00:00
Thomas Mertes 0ce4826eee Implemented RtlRandom, RtlAreAllAccessesGranted,
RtlAreAnyAccessesGranted, RtlCopyLuid, RtlEqualLuid, RtlMapGenericMask
and RtlCopyLuidAndAttributesArray.
Documentation updates for RtlExtendedMagicDivide, RtlUniform,
RtlUnicodeStringToAnsiString, RtlAppendAsciizToString,
RtlAppendStringToString, RtlAppendUnicodeToString and
RtlAppendUnicodeStringToString.
2003-04-08 00:55:36 +00:00
Alexandre Julliard f130f8099a Added possibility to filter relay traces based on the module that
called the function. Cleaned up a few traces.
2003-04-07 23:27:54 +00:00
Alexandre Julliard 0412cc55d2 Rewrote most of the import fixup code to avoid doing redundant work
for every entry point. Moved it all to dlls/ntdll/loader.c.
Various optimizations in the other loader routines.
2003-04-05 05:16:11 +00:00
Alexandre Julliard 088bcf9ca5 Implemented NtQueueApcThread, and changed the server APC interface to
always take 3 parameters.
Implemented a number of other ntdll thread functions, and use them
from the kernel ones.
2003-04-04 22:26:34 +00:00
Alexandre Julliard 39f73ddeaa Merged PE_InitDLL into MODULE_InitDLL.
Fixed a few traces.
2003-04-04 19:50:17 +00:00
Alexandre Julliard 56b5e0862c Remove the Wine-specific EXCEPTION_CRITICAL_SECTION_WAIT define. 2003-04-04 19:41:31 +00:00
Eric Pouech 14d04b608c No longer call WaitFor*Object* from ntdll (but NtWait*Object*). 2003-04-03 23:57:11 +00:00
Alexandre Julliard 6a9cea957a Added --with-nptl configure option and necessary changes to support
running on top of NPTL threads.
2003-04-03 02:54:54 +00:00
Alexandre Julliard 462172a3d6 Added abs_time_t structure to the server protocol, and added a dump
routine for it that displays the relative timeout to make timeout
values easier to interpret.
2003-04-02 22:48:59 +00:00
Alexandre Julliard c44555bb37 Added support for marking heap blocks as inaccessible/uninitialized if
valgrind is installed, based on a patch by Adam Gundy.
2003-04-02 01:42:06 +00:00
Andreas Mohr 114b667f41 Some spelling and formatting fixes. 2003-04-02 01:23:43 +00:00
Eric Pouech 70f3522933 Fixed a few FormatCode entries. 2003-04-02 00:59:12 +00:00
Alexandre Julliard 6d4aeeca5e Added missing NONAMELESSSTRUCT/UNION. 2003-03-31 19:32:20 +00:00
Alexandre Julliard fbef57c0ce Moved WaitForMultipleObjects to ntdll (based on a patch by Eric
Pouech).
Added NTDLL_get_server_timeout function to compute ntdll-style
timeouts and adapted the timer code to use it.
2003-03-31 01:37:04 +00:00
Yorick Hardy 14251f1b48 Added fields from NetBSD struct sigcontext on i386. 2003-03-28 00:29:45 +00:00
Alexandre Julliard 3e588e3a57 Implemented file change notifications, based on a patch by Mike
McCormack.
2003-03-26 23:41:43 +00:00
Alexandre Julliard 78675ba234 Store %gs in the TEB on every call to 16-bit code, and don't restore
it from the TEB for signals that did not happen in 16-bit code.
2003-03-25 00:36:16 +00:00
Alexandre Julliard a993df861c Make sure changes to the debug registers while inside a SIGTRAP
exception are taken into account (based on a patch by Alex Pasadyn).
2003-03-24 19:31:10 +00:00
Alexandre Julliard 5cdfa593c0 Fixed duplicate initialization of some of the wm->ldr fields. 2003-03-22 20:54:40 +00:00
Thomas Mertes 83ee8478d4 Tests for RtlCompareMemoryUlong, RtlUniform, RtlDowncaseUnicodeString,
RtlAppendUnicodeStringToString.
2003-03-22 00:21:35 +00:00
Thomas Mertes c83aa0d311 - Implement RtlDowncaseUnicodeString, RtlUniform, iswdigit, iswlower,
iswspace, iswxdigit.
- Fixed RtlInt64ToUnicodeString and RtlIntegerToUnicodeString.
- According to tests RtlAppendUnicodeStringToString leaves the
  destination unchanged when the source length is 0 (FIXED).
- Documentation updates in RtlExtendedMagicDivide,
  RtlLargeIntegerToChar, RtlInt64ToUnicodeString, RtlUpperChar,
  RtlUpperString, RtlUpcaseUnicodeChar, RtlCharToInteger,
  RtlIntegerToChar, RtlUnicodeStringToInteger,
  RtlIntegerToUnicodeString, _ultoa, _ltoa, _itoa, _ui64toa, _i64toa,
  _atoi64, _ultow, _ltow, _itow, _ui64tow, _i64tow, _wtol, _wtoi,
  _wtoi64.
2003-03-22 00:20:58 +00:00
Alexandre Julliard 6a26e3f7ac Split signal blocking code out of SIGNAL_Reset into SIGNAL_Block.
Added SIGTERM handler.
2003-03-21 23:45:26 +00:00
Alexandre Julliard 25fe361010 Added 'wine' prefix to libwine_unicode exports. 2003-03-21 21:30:51 +00:00
Eric Pouech 69dc0d93d5 Removed no longer needed MODREF.find_export field. 2003-03-21 21:27:16 +00:00
Eric Pouech 051f87150f - implemented LdrQueryProcessModuleInformation
- rewrote VERSION_GetLinkedDllVersion() with this new function instead
  of accessing directly the modref list
2003-03-21 00:34:36 +00:00
Eric Pouech 19e050eb6f Moved WINE_MODREF.flags to WINE_MODREF.ldr.Flags, and make use of the
same flags values as Win2000.
2003-03-20 23:40:08 +00:00
Eric Pouech f94c8b85b9 Move some fields (refCount, tls_index and module) from WINE_MODREF to
LDR_MODULE.
2003-03-20 22:05:26 +00:00
Eric Pouech 255b6141f2 Fixed some unneeded unix to Win32 error mapping. 2003-03-20 21:59:50 +00:00
Alexandre Julliard a9bedef3f6 Changed name of the asm version of RtlUlong/shortByteSwap to avoid
conflicts with the inline version.
2003-03-20 19:25:39 +00:00
Eric Pouech 9b79d698b2 Moved the module loading/unloading code and the remaining needed
static variables to ntdll.
2003-03-20 04:55:59 +00:00
Alexandre Julliard 500a2f95f7 Partially implemented LdrLock/UnlockLoaderLock. 2003-03-20 04:29:21 +00:00
Alexandre Julliard 114a31a2a8 Take advantage of new winebuild syntax to remove redundant function
names in spec files.
2003-03-20 03:53:12 +00:00
Alexandre Julliard 6da4c275ca Implemented Rtl*ByteSwap() functions, based on a patch by Jon
Griffiths.
2003-03-19 00:09:57 +00:00
Jon Griffiths ccf2f6162b Correct the agument count for RtlInitializeGenericTable().
Fix my own brown paper bag in RtlFillMemoryUlong().
RtlGetNtVersionNumbers() should never return < 5.
Remove RtlCopyMemory(), its not an ntdll export.
Implement RtlCompareMemoryUlong(), RtlComputeCrc32().
Documentation updates.
2003-03-18 20:12:07 +00:00
Alexandre Julliard c85f61b189 Avoid explicit long long constants. 2003-03-18 20:01:45 +00:00
Jon Griffiths cd4234aa49 Documentation updates. 2003-03-18 18:35:48 +00:00
Eric Pouech 84d1a8ff8c - added LDR_MODULE structure to WINE_MODREF and made dummy filling of
this structure
- implementation of LdrFindEntry
- implementation of GetModuleFileName[AW] on top of LdrFindEntry
2003-03-18 18:29:13 +00:00
Thomas Mertes 93189f2395 Tests for _itoa, _ltoa, _ultoa, _i64toa, _ui64toa, _itow, _ltow,
_ultow, _i64tow, _ui64tow, _atoi64, _wtoi, _wtol, _wtoi64.
2003-03-18 18:27:19 +00:00
Jon Griffiths a49747bc34 Documentation updates. 2003-03-17 21:21:00 +00:00
Jon Griffiths f8a82b489e Add RtlDowncaseUnicodeChar(), RtlEqualComputerName(),
RtlEqualDomainName(). Documentation updates.
2003-03-15 19:42:11 +00:00
Alexandre Julliard 769a84fac1 Avoid GetProcessHeap() inside ntdll. 2003-03-14 23:16:46 +00:00
Eric Pouech 32872b1a57 - implementation of LdrLoadDll out of loader/module.c
- in impacted functions, ensure that we only use ntdll functions
- for internal loading, start using NTDLL style for error reporting
- making use of new LdrLoadDll
2003-03-14 05:01:20 +00:00
Alexandre Julliard 949e065c49 Only print the trace header when we are at the beginning of a new
line (suggested by Dimitrie O. Paun).
2003-03-14 04:02:03 +00:00
Eric Pouech 1efa50e47e - implementation of LdrUnloadDll out of loader/module.c
- in impacted functions, ensure that we only use ntdll functions
- making use of new LdrUnloadDll
2003-03-14 04:00:52 +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 414772ac28 Implement _itoa, _ltoa, _ultoa, _i64toa, _ui64toa, _itow, _ltow,
_ultow, _i64tow, _ui64tow, _atoi64, _wtoi, _wtol, _wtoi64.
2003-03-12 20:16:07 +00:00
Alexandre Julliard b5d8f532db Rewrote RtlFind{Most,Least}SignificantBit in a more portable way. 2003-03-07 23:15:52 +00:00
Eric Pouech f3a73ef7af - implemented LdrGetProcedureAddress and made use of it for
GetProcAddress
- implemented LdrGetDllHandle and made use of it in GetModuleHandle
- removed MODULE_DllThreadDetach from loader/module.c (should have
  been removed in a previous patch)
2003-03-06 23:41:37 +00:00
Eric Pouech d4fcc4bd06 Removed SO loading type. 2003-03-05 02:50:25 +00:00
Alexandre Julliard d04ccb8ebe Use SIGUSR1 instead of SIGSTOP to suspend threads. 2003-03-04 22:18:43 +00:00
Eric Pouech 7d6096480a - added Ldr* information to include/winternl.h
- exported a few functions/global vars from module.h while we move
  code from loader/module.c to dlls/ntdll/loader.c
- implemented LdrShutdownProcess, LdrShutdownThread and
  LdrDisableThreadCalloutsForDll (and made use of them)
2003-03-04 04:36:56 +00:00
Alexandre Julliard 551797bc57 Properly save/restore %gs register across 16-bit calls. 2003-02-27 21:11:13 +00:00
Gerald Pfeifer fa8cca5e47 Define CD_SECS and CD_FRAMES also on non-Linux systems. Avoid a
non-portable TRACE on non-Linux systems.
2003-02-25 03:56:21 +00:00
Waldeck Schutzer 52a414c26d - Some systems/drives are very slow to read the TOC. To address this
issue, we are caching it inside the driver.
- Windows will seek while not playing, Linux will not. We are
  providing better compatibility with Windows by also caching the
  current position.
2003-02-19 22:08:50 +00:00
Thomas Mertes 9f5f86e3a3 Tests for RtlCharToInteger, RtlExtendedMagicDivide, RtlUpperChar,
RtlInt64ToUnicodeString, RtlIntegerToChar, RtlIntegerToUnicodeString,
RtlLargeIntegerToChar, RtlUnicodeStringToInteger and
RtlUpcaseUnicodeChar.
2003-02-19 03:40:14 +00:00
Thomas Mertes f4757bb631 - Implement RtlCharToInteger, RtlExtendedMagicDivide, RtlUpperChar,
RtlInt64ToUnicodeString, RtlIntegerToChar, RtlIntegerToUnicodeString,
  RtlLargeIntegerToChar, RtlUnicodeStringToInteger and
  RtlUpcaseUnicodeChar.
- Use toupperW instead of toupper in RtlCompareUnicodeString.
2003-02-19 03:39:46 +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
Alexandre Julliard 8bc93e2d6f Print dll name too for stub exceptions. 2003-02-18 23:25:34 +00:00
Thomas Mertes 38012942f8 - Fix small bug in RtlFindMostSignificantBit. It returned sometimes
wrong results if more then one bit was set.
- Update the test cases as well.
2003-02-18 23:22:49 +00:00
Andreas Mohr 37fc599268 Added FIXME on stub exception. 2003-02-11 21:56:59 +00:00
Alexandre Julliard 43690e9e47 Removed no longer needed inclusion of heap.h. 2003-01-24 00:54:58 +00:00
Marcus Meissner f63e5b646a Remove errno.h from files that do not need it. 2003-01-23 22:51:04 +00:00
Alexandre Julliard f8aa3b506c Added -Wpointer-arith gcc flag, and fixed the resulting warnings. 2003-01-23 21:32:35 +00:00
Gerald Pfeifer 6fb1c40eb9 Only declare variables we actually need. 2003-01-21 19:30:52 +00:00
Francois Gouget e1685e6bf5 ok() does not support '%S'. Store the Ansi version, convert to Unicode
when needed, and print the Ansi version using ok().
Fix 'value is so large it is unsigned' warnings.
2003-01-16 00:11:32 +00:00
Robert Shearman bda22de541 - Add some stubs.
- Implement kernel32.FatalExit.
2003-01-13 20:44:13 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Alexandre Julliard b4a4c05aed Removed a few more #ifdef __WINE__. 2003-01-04 00:19:17 +00:00
Alexandre Julliard 78ff6763ed Added wine_dbg_sprintf function that allocates a temporary buffer in
the per-thread strings area.
Added inline functions to format POINT, SIZE and RECT structures.
2003-01-03 03:12:58 +00:00
Francois Gouget e0af6d0218 Call lstrcmpW rather than wcscmp. 2003-01-03 03:02:15 +00:00
Francois Gouget dadbce9a44 Fix mapping of STATUS_DEVICE_NOT_CONNECTED to match XP.
Fixed the prototype of statustodoserror to make the test work on NT4.
Added alternate return values to make the test work on Win98.
Check whether RtlNtStatusToDosError ismissing to make the test work on
Win95.
Added a strict option to cause the test to only accept the standard
mapping.
2003-01-02 17:50:48 +00:00
Alexandre Julliard ea2b6df7f6 Avoid some warnings. 2002-12-19 21:15:41 +00:00
Alexandre Julliard a16ed909c5 Implemented RtlTimeToElapsedTimeFields. 2002-12-18 02:31:33 +00:00
Alexandre Julliard 9e8e5ff71d Implemented the Fiber* functions (with the help of Huw Davies). 2002-12-17 21:06:25 +00:00
Jukka Heinonen bbb7dc0fad When asynchronous signals are blocked, block also SIGUSR2.
Fix race that made signal handler forget to restore FS register.
2002-12-13 23:28:01 +00:00
Alexandre Julliard dcc3afd259 Avoid casts between LARGE_INTEGER and FILETIME.
Fixed day of week of epoch.
Small cleanups.
2002-12-13 20:53:04 +00:00
György 'Nog' Jeney f7694794de - Reimplement time functions using ntdll functions.
- Some cleanups.
2002-12-13 20:30:06 +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
Alex Pasadyn a96caa0700 Fix return from IOCTL_CDROM_CHECK_VERIFY. 2002-12-12 22:23:35 +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
György 'Nog' Jeney 4d6ba25d4b - Implement RtlLocalTimeToSystemTime and RtlSystemTimeToLocalTime.
- Use new time functions to reimplement FileTimeToLocalTime and
  LocalTimeToFileTime.
2002-12-11 00:19:56 +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
Alberto Massari 067a981233 Added parameters to NtXxxPort functions prototypes. 2002-12-10 20:04:40 +00:00
Patrik Stridvall 75dee506ae Replace 0x%p with %p. 2002-12-05 19:56:15 +00:00
Alexandre Julliard 9169729b0b Merged font.h and path.h into gdi.h. Moved x11font.h to
dlls/x11drv. Removed a number of unnecessary #includes.
2002-12-03 19:18:41 +00:00
Patrik Stridvall 6cd866b0e6 Fixed some issues found by winapi_check. 2002-11-27 20:21:24 +00:00
Jukka Heinonen 3546290285 Moved handlers for int25 and int26 to winedos. 2002-11-27 20:18:50 +00:00
Vincent Béron ea966aa6d3 Fix for implicit declaration of abs. 2002-11-27 20:14:45 +00:00
Steve Lustbader f1e1fd05eb Assorted Win2k/WinXP stubs. 2002-11-25 20:50:53 +00:00
György 'Nog' Jeney 6f3015b8ee - Move SetSystemTime, GetTimeZoneInformation and
SetTimeZoneInformation implementation to ntdll.
- Docu updates.
2002-11-25 01:12:39 +00:00
Jukka Heinonen 98058eb14d Moved handlers for int11, int15 and int5c to winedos. 2002-11-24 22:34:04 +00:00
Jukka Heinonen ab163db7c0 Move int2f handler to winedos.
Clean winedos headers a bit.
2002-11-23 02:23:54 +00:00
Andrew John Hughes ed800c69c8 Build ntdll with -DSTRICT. 2002-11-21 03:45:01 +00:00
Jukka Heinonen 1a665058e8 Removed last users of msdos/interrupts.c. 2002-11-21 00:02:09 +00:00
Jukka Heinonen 1a6afad1a4 Removed obsolete code. 2002-11-20 19:39:11 +00:00
Jukka Heinonen a9fecb90c4 Removed last user of msdos/int1a.c. 2002-11-18 23:11:18 +00:00
Marcus Meissner d0aef218a0 Fixed strict aliasing problem in RtlEnlargedUnsignedDivide. 2002-11-18 19:49:18 +00:00