Alexandre Julliard
03d7998970
Moved __errno_location() handling to pthread.c, and added similar
...
handling for __res_state().
2003-08-15 03:55:06 +00:00
Alexandre Julliard
52b9cedb8e
Don't try to allocate the debug info before the process heap exists.
2003-08-13 01:09:45 +00:00
Alexandre Julliard
19b6a49845
Allocate DebugInfo field for all critical sections (based on a patch
...
by Alex Pasadyn).
Get rid of the Wine-specific CRITICAL_SECTION_INIT macro.
2003-08-12 23:50:54 +00:00
Alexandre Julliard
06e34ffc12
Minor tracing fix.
2003-08-12 20:34:06 +00:00
Alexandre Julliard
97d862c93c
Fixed the pthread wrappers to work with the new glibc/linuxthreads
...
interface in glibc 2.3.2.
2003-08-12 18:59:13 +00:00
Alexandre Julliard
d7fca891e9
Avoid non-portable long long constants.
2003-08-06 22:09:11 +00:00
Alexandre Julliard
8669193d11
Properly free thread stacks on NPTL systems.
2003-08-02 00:44:25 +00:00
Mike McCormack
36cd6f5dbb
Added a security token object in wineserver.
2003-07-24 00:07:00 +00:00
Pierre d'Herbemont
8eb55b8892
Added PowerPC support in SYSDEPS_SwitchToThreadStack.
2003-07-24 00:02:40 +00:00
Marcus Meissner
20ea3a2d52
Added missing register defines for Linux/PPC.
2003-07-21 20:03:07 +00:00
Jon Griffiths
3c95046d03
Fix -W warnings.
2003-07-19 03:06:03 +00:00
Alexandre Julliard
0fb0f2a306
Print status codes in hex.
2003-07-18 23:00:49 +00:00
Jon Griffiths
7787587587
Documentation updates.
2003-07-18 22:55:28 +00:00
Jon Griffiths
b62fb40f54
Added some new Rtl* tests.
2003-07-18 22:55:15 +00:00
Pierre d'Herbemont
3b9f280d81
Change __darwin__ to __APPLE__.
2003-07-16 23:29:40 +00:00
Pierre d'Herbemont
41670d3ed7
Added support for the TEB on Mac OS X.
2003-07-16 23:29:14 +00:00
Francois Gouget
3ca761220a
Spelling fixes (s/occured/occurred/ and variants).
2003-07-15 20:53:39 +00:00
Paul Rupe
eede817da2
register_new_async sets status already. Do not overwrite it with the
...
function's return value.
2003-07-11 21:44:17 +00:00
Alexandre Julliard
09029b2878
Implemented the SMTO_ABORTIFHUNG flag of SendMessageTimeout.
2003-07-11 04:09:42 +00:00
Dmitry Timoshkov
14d766845c
Fix spec entry for ZwSetTimerResolution.
2003-07-09 19:44:51 +00:00
Alexandre Julliard
4f196ead13
Implemented the ThreadBasicInformation case for
...
NtQueryInformationThread.
2003-07-09 02:57:57 +00:00
Mike McCormack
99c67eefcd
Null parameters need to be quoted on the commandline.
2003-07-09 02:50:15 +00:00
Alexandre Julliard
4f4b980c1e
Implemented NtRead/WriteVirtualMemory.
2003-07-08 21:18:45 +00:00
Alexandre Julliard
d9780a8b3e
Fixed compile when functions are not inlined.
2003-07-03 18:12:38 +00:00
Francois Gouget
14a5d168e9
Fixed some common spelling errors.
2003-07-02 04:37:26 +00:00
Eric Pouech
675b75597b
- removed next & prev fields from WINE_MODREF and implement instead
...
the three linked lists in LDR_MODULE
- added PEB_LDR_DATA structure to PEB
- removed a couple of no longer needed global & static variables
2003-07-01 03:38:56 +00:00
Jukka Heinonen
2a3ce4c425
Start processing asynchronous DOS events in DPMI mode.
2003-07-01 03:37:41 +00:00
Alexandre Julliard
217fdab78f
Implemented NtDelayExecution and make Sleep call it.
...
The handle count must not be 0 in NtWaitForMultipleObjects (spotted by
Troy Rollo).
2003-06-30 21:00:15 +00:00
Dmitry Timoshkov
85d4281616
Implement LCMapString using unicode collation tables.
...
Move CompareString and LCMapString to dlls/kernel/locale.c.
2003-06-27 19:02:23 +00:00
Alexandre Julliard
4cb212063b
Moved some of the process functions to dlls/kernel.
...
Removed kernel dependencies from sysdeps.c and moved it to dlls/ntdll.
2003-06-27 04:08:04 +00:00
Alexandre Julliard
b379334271
Make sure to return an error if load_dll fails because the load order
...
is empty.
2003-06-27 04:06:23 +00:00
Troy Rollo
b58e121326
Removed FIXME when loading second exe file.
2003-06-27 04:05:27 +00:00
Eric Pouech
9bd4f6bf15
- made async.h ready for use in ntdll: replaced all calls to kernel32
...
functions with ntdll equivalent
- replaced status setter/getter for wine async structures with direct
access to a (now included) IO_STATUS_BLOCK structure
- since we now have a IO_STATUS_BLOCK in async_private, we no longer
need in most of the user (derivated) structures a field for
LPOVERLAPPED (it's stored as the IO_STATUS_BLOCK)
- rewrote the async.h users accordingly
- implemented ntdll.Nt{Read|Write}File and let
kernel32.{Read|Write}File(Ex)? use those new ntdll functions
- rewrote smb read/write interfaces to be more ntdll stylish (no
overlapped yet)
2003-06-26 02:08:17 +00:00
Eric Pouech
583bb3fd3e
- started implementing ntdll.NtDeviceIoControlFile and made
...
kernel32.DeviceIoControl call it
- changed cdrom ioctl function's prototype to stick to
ntdll.NtDeviceIoControlFile signature
2003-06-24 19:28:21 +00:00
Alexandre Julliard
dc4b0c7655
Moved tape.c to dlls/kernel.
...
Moved critical section and resource update functions to dlls/kernel.
Started moving some of the thread functions too.
2003-06-24 03:34:15 +00:00
Eric Pouech
f6a70969e1
- start moving a few file related functions from files/file.c to
...
dlls/kernel subdir (also splitting 16bit APIs in a separate file)
- implemented ntdll.Nt{Lock|Unlock}File, and made use of those for the
kernel32 equivalent
- implemented a few information classes in NtQueryInformationFile and
NtSetInformationFile (still lots of missing classes)
- enhanced the get_file_info server request in order to implement
correctly NtQueryInformationFile (change time & file alloc size)
- rewrote registry loading to comply with latest changes
2003-06-24 02:32:01 +00:00
Eric Pouech
c962a6997c
- in kernel32, replaced all {Enter|Leave}CriticalSection calls with
...
ntdll counterparts
- {Enter|Leave}CriticalSection is now a pure forward from kernel32 to
ntdll (we now longer can use {Enter|Leave}CriticalSection in kernel32)
- replaced a few kernel32 heap management calls from ntdll, with
RtlHeap* equivalents
2003-06-23 18:12:28 +00:00
Eric Pouech
415dfa63e5
Fixed section mapping in PE loading when both
...
IMAGE_SCN_CNT_UNINITIALIZED_DATA and IMAGE_SCN_CNT_INITIALIZED_DATA
are set.
2003-06-21 02:02:27 +00:00
Francois Gouget
9591836ffb
'sizeof type' is best avoided as it won't always compile (e.g. 'int
...
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Francois Gouget
c5f775a9c7
Typos/spelling fixes.
2003-06-18 03:30:39 +00:00
Eric Pouech
9d0fa2f02e
- kernel32's environment tests: a few more tests now succeed
...
- added some console related tests to process creation
- added a few more test cases to the ntdll environment tests
2003-06-18 03:24:20 +00:00
Eric Pouech
b53b5bcb50
- fixed a couple of bugs in ntdll environment functions (one in trace,
...
the other one in environment variable expansion)
- the process parameters, when passed thru wineserver, are now fully
handled in ntdll, they are stored in the RTL_USER_PROCESS_PARAMETERS
structure.
- later on in kernel32 loading sequence, those parameters are copied
into STARTUPINFO shadow structures
- later modification to those paramters are now reflected to the
RTL_USER_PROCESS_PARAMETERS structure (and STARTUPINFO is kept
untouched) (for example, StdHandle setting) (Win 2k behaves like this)
- ENVDB has been removed
- command line inheritance (from unix command line) is now purely in ntdll
- all kernel32 environment functions now rely on their ntdll counterparts
- goodies: input/output handle inheritance while asking for a detached
console is better handled; a few more kernel32 environment tests now
pass ; silenced a valgrind warning in process creation
2003-06-18 03:23:22 +00:00
736ff98510
Added AddAccessAllowdAceEx, AddAccessDeniedAceEx, GetAclInformation.
2003-06-16 19:44:06 +00:00
Mike Hearn
25b4d10138
Add the ID of the blocking thread to the error message.
2003-06-16 19:36:22 +00:00
Eric Pouech
2e5cdf95da
Implemented:
...
- RtlDoesFileExists_U as a stub
- RtlDosSearchPath_U
2003-06-16 01:24:30 +00:00
Jukka Heinonen
ae906923a1
Remove SIGALRM handler.
...
Reserve TEB field for DPMI virtual interrupt flag.
2003-06-16 01:18:26 +00:00
Eric Pouech
1bb3859ece
Added support for overlapped ioctl requests (and a few other
...
cosmetics).
2003-06-13 16:33:50 +00:00
Eric Pouech
8638b26483
Correctly convert into EXCEPTION_RECORD SIGTRAPs received from
...
DebugBreakProcess.
2003-06-07 00:33:13 +00:00
Yorick Hardy
4b1f667e73
Improve CDROM_GetIdeInterface (becomes CDROM_GetInterfaceInfo), in
...
order to better support SCSI drives.
2003-06-04 20:15:59 +00:00
Yorick Hardy
6dd0685f74
Use SA_RESTART on NetBSD.
2003-06-04 20:15:10 +00:00
Jukka Heinonen
38fa857648
Timer routines must check for NULL timer name.
2003-06-04 20:14:24 +00:00
Alexandre Julliard
6bc5091160
Start to make use of the proper PEB structure for process
...
information.
2003-05-22 03:44:01 +00:00
Alexandre Julliard
78d108b964
Moved misc/error.c to dlls/kernel/error16.c.
...
Get rid of misc/main.c.
2003-05-21 18:31:01 +00:00
Alexandre Julliard
81e72d8f2d
Moved all process initialisation code to process.c and removed
...
loader/main.c.
2003-05-20 19:21:43 +00:00
Eric Pouech
b350438074
Implemented NtQueryObject and NtSetInformationObject for the
...
ObjectDataInformation class.
2003-05-20 19:20:42 +00:00
Yorick Hardy
d1d5ca539d
Implement CDROM_ScsiPassThrough and CDROM_ScsiPassThroughDirect on
...
NetBSD.
2003-05-20 19:17:04 +00:00
Alexandre Julliard
b2f32bc604
Moved system.dll implementation to dlls/kernel.
2003-05-20 17:50:59 +00:00
Eric Pouech
c00a4473bd
Implement anonymous pipes on top of named pipes.
2003-05-20 04:32:53 +00:00
Alexandre Julliard
9bf3ac619e
Moved timer functions to dlls/kernel.
2003-05-20 04:14:45 +00:00
Eric Pouech
4c591d4ef3
Implemented timer related functions in ntdll and make the kernel32
...
functions use them.
2003-05-20 04:00:42 +00:00
Alexandre Julliard
c7a51eec43
Only create the 16-bit dummy module when we need really it.
2003-05-20 02:32:26 +00:00
Yorick Hardy
c26b7dbad9
Added the implementation for CDROM_GetIdeInterface on NetBSD.
2003-05-19 21:46:09 +00:00
Alexandre Julliard
3d15c86cf8
Moved atom functions to dlls/kernel.
2003-05-16 00:05:08 +00:00
Alexandre Julliard
a098c82aac
Moved vxd support to winedos.
2003-05-15 23:25:49 +00:00
Mike McCormack
ef8b94622a
- rewrite of the named pipe code
...
- allow NtFileFlushBuffers to wait
- allow DisconnectNamedPipe to invalidate client cached fd
- fix the pipe test now that one extra test passes
2003-05-15 04:22:45 +00:00
Eric Pouech
35d5d06ac9
Implemented RtlDosPathNameToNtPathName_U, RtlGetCurrentDirectory_U,
...
RtlGetFullPathName_U and RtlSetCurrentDirectory_U (the last one
partially as we can't test whether a path exists or not).
2003-05-15 04:20:42 +00:00
Alexandre Julliard
adb532903c
Rewrote module TLS support and moved it to ntdll.
2003-05-14 19:51:14 +00:00
Alexandre Julliard
0b34697abb
Made INSTR_EmulateInstruction return the exception code.
...
Don't allow intXX instructions from 32-bit code (based on a patch by
Jukka Heinonen).
2003-05-14 19:41:16 +00:00
Eric Pouech
f06a996a07
Enhanced test for queries, added tests for expansion.
2003-05-13 04:46:05 +00:00
Eric Pouech
b124fa9617
Implemented RtlExpandEnvironmentStrings_U and fixed an incorrect
...
behavior in RtlQueryEnvironmentString.
2003-05-13 04:45:50 +00:00
Pierre d'Herbemont
ed3417e349
- Save more registers (exception, float...) if they are defined.
...
- Add Mac OS X signal support.
2003-05-13 03:35:01 +00:00
Francois Gouget
f803e2a92d
Fix miscellaneous spelling errors and typos.
2003-05-13 00:41:57 +00:00
Robert Shearman
8e3bb615a0
Fix NULL pointer error when displaying error message about missing
...
forwarded export.
2003-05-13 00:28:25 +00:00
Aric Stewart
3de90d99b7
RtlUnicodeToMultiByteSize argument is not a null terminated string,
...
use 'ptr'.
2003-05-12 03:32:56 +00:00
Dmitry Timoshkov
7baa67cbcb
Added missing return in HEAP_ValidateInUseArena.
2003-05-12 03:32:07 +00:00
Alexandre Julliard
f54ffdac93
Removed unnecessary function link names.
2003-05-11 03:04:57 +00:00
Alexandre Julliard
d9bab57477
Added support for calling the TLS callback functions.
2003-05-08 04:13:26 +00:00
Alexandre Julliard
c808e67da1
Fixed wrong file offset used when mapping the import directory from a
...
shared section.
2003-05-08 03:50:32 +00:00
Eric Pouech
3a10bf5890
Added environment tests.
2003-05-08 03:47:24 +00:00
Eric Pouech
2d758c6444
Implemented a bunch of environment related NTDLL APIs.
2003-05-08 03:47:00 +00:00
Alexandre Julliard
ce4d111cd8
Moved the EnumResource* functions to the kernel dll, and fixed their
...
prototypes.
2003-05-07 03:21:26 +00:00
Alexandre Julliard
54f59e5005
Added comment about why changing ADDRESS_SPACE_LIMIT is wrong.
2003-05-06 18:52:43 +00:00
Alexandre Julliard
ebe67a2864
Added support for retrieving page fault address on Solaris (based on a
...
patch by Robert Lunnon).
2003-05-06 18:50:08 +00:00
Thomas Mertes
4f6caf6ca3
Tests for RtlDuplicateUnicodeString, RtlFindCharInUnicodeString,
...
RtlInitUnicodeStringEx.
2003-05-06 18:28:02 +00:00
Thomas Mertes
d628d125ab
Implement RtlDuplicateUnicodeString, RtlFindCharInUnicodeString,
...
RtlInitUnicodeStringEx.
Documentation updates for RtlInitAnsiString, RtlInitString,
RtlInitUnicodeString, RtlAnsiStringToUnicodeString and
RtlOemStringToUnicodeString.
2003-05-06 18:27:40 +00:00
Marcus Meissner
e65d6715ce
Fixed powerpc compile.
2003-05-04 02:25:07 +00:00
Robert Shearman
f0025e2adc
- Implemented RtlAddAccessAllowedAce, RtlAddAccessDeniedAce,
...
RtlAddAce, RtlValidAcl.
- Added the corresponding functions in advapi32.
- Grouped the ACL functions in advapi32.
2003-05-01 00:29:26 +00:00
Alexandre Julliard
88fbc45dc9
Fixed typo in last minute change (spotted by Gerald Pfeifer).
2003-04-30 17:12:14 +00:00
Alexandre Julliard
424202bd9a
Moved most of the kernel resource APIs to dlls/kernel.
2003-04-30 00:53:23 +00:00
Alexandre Julliard
86666c51e2
Implemented ntdll resource functions.
2003-04-29 23:00:48 +00:00
Eric Pouech
b6338878a8
Moved kernel32.FlushFileBuffers to ntdll.NtFlushBuffersFile.
2003-04-22 04:04:17 +00:00
Alexandre Julliard
2e12d33dfd
Removed no longer needed uses of LDPATH.
2003-04-21 23:54:05 +00:00
Jukka Heinonen
013f89465c
Moved dosconf.c to winedos.
2003-04-21 23:22:53 +00:00
Alexandre Julliard
d6da1f33ab
Implemented RtlIsNameLegalDOS8Dot3 (based on a patch by Eric Pouech).
...
Implemented RtlUpcaseUnicodeStringToCountedOemString.
2003-04-16 23:15:29 +00:00
Alexandre Julliard
46adbecd13
Insert the last free block of a subheap at the end of the free list to
...
avoid using uncomitted space unless really necessary.
2003-04-14 21:44:21 +00:00
Alexandre Julliard
aa94a5ad1a
Implemented RtlDetermineDosPathNameType_U and RtlIsDosDeviceName_U.
2003-04-12 00:10:13 +00:00
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
Martin Wilck
6d886a52b3
- Allow setting NetBIOS ComputerName through registry.
...
- Keep old behavior as default, using new config option to change.
- Implement SetComputerName(), SetComputerNameEx(),
GetComputerNameEx().
- ComputerName initialization moved to kernel32.
2002-11-15 01:01:47 +00:00
Mike McCormack
40f81e7cc3
Partial implementation of RtlDosPathNameToNtPathName_U.
2002-11-15 01:00:08 +00:00
Huw Davies
ac2a662a64
Reduce the maximum length of debug strings to 80 characters.
2002-11-13 19:38:17 +00:00
Jukka Heinonen
416c2aeb00
Move simple interrupt handlers to winedos.
2002-11-12 23:29:48 +00:00
Robert Shearman
bd4a385c7e
First of tests for the Rtl* string manipulation functions.
2002-11-12 02:18:10 +00:00
Robert Shearman
59e81ec15a
Implemented RtlUnicodeStringToInteger.
2002-11-12 02:17:34 +00:00
Patrik Stridvall
9398d9c129
Updated the generated tests.
2002-11-12 01:13:10 +00:00
Juraj Hercek
386d51d1b6
Fixed bug in context registers, added HANDLER_DEF and HANDLER_CONTEXT
...
macros.
2002-11-08 18:54:10 +00:00
Marcus Meissner
727c31d7a0
Only enable VM86 mode if we have the <sys/vm86.h> include file.
2002-11-08 18:53:32 +00:00
Alexandre Julliard
ac36f95082
Disable address space limit check on non-i386 platforms.
2002-11-06 22:33:17 +00:00
Patrik Stridvall
74476416b0
Updated the generated tests.
2002-11-06 21:59:15 +00:00
György 'Nog' Jeney
39433b9481
- Fix RtlTimeToTimeFields to actually work.
...
- Remove comments about leap seconds, windows doesn't take that into
account.
2002-11-06 21:57:23 +00:00
Alexandre Julliard
910851a20e
Added winebuild -e option to specify the entry point and removed the
...
'init' spec file directive.
Winebuild long options now use a more standard double dash format
(older format still supported for backwards compatibility).
2002-11-06 20:02:59 +00:00
Patrik Stridvall
df7ffb8017
Updated the generated tests.
2002-11-04 22:40:40 +00:00
Marcus Meissner
0d238f7150
Powerpc instruction pointer is Iar, not Eip.
2002-10-30 20:25:55 +00:00
Patrik Stridvall
7d226139e9
Updated the generated tests.
2002-10-29 21:24:09 +00:00
Lionel Ulmer
bdb44555a3
Raise an exception if any Wine or Winelib code does an assert.
2002-10-28 23:56:58 +00:00
Alexandre Julliard
9b5c3f939d
Made the ntdll registry functions use HKEY instead of HANDLE.
2002-10-25 19:14:29 +00:00
Patrik Stridvall
ab974c310c
Updated the generated tests.
2002-10-23 18:45:15 +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
Patrik Stridvall
ebf582cd48
Updated the generated tests.
2002-10-15 01:53:45 +00:00
Alexandre Julliard
f8da8541eb
Make sure all Zw functions whose Nt equivalent is implemented are
...
implemented too.
2002-10-10 17:55:48 +00:00
Alexandre Julliard
d0590c0658
Fixed buffer size in _ultoa (spotted by Joerg Mayer).
2002-10-09 20:27:33 +00:00
Alexandre Julliard
c728efc3c9
Added --disable-win16 configure option.
2002-10-02 02:34:09 +00:00
Alexandre Julliard
69d7cb5681
Avoid calling some kernel functions.
2002-09-18 23:13:35 +00:00
Alexandre Julliard
341b7dceb4
Implemented the ntdll virtual memory functions, and made the kernel
...
functions use them.
2002-09-17 18:54:42 +00:00
Francois Gouget
bba4bb1bc4
Remove references to PCVOID and LPUINT.
...
Remove types that don't exist on Windows.
2002-09-17 01:35:09 +00:00
Francois Gouget
de0f015df0
Move all STATUS_* and RPC_NT_* to ntstatus.h as per Windows SDK.
...
Add some missing constants.
Include ntstatus.h in winnt.h.
2002-09-17 00:03:39 +00:00
Alexandre Julliard
ac7b9d3797
Implemented NtDuplicateObject.
2002-09-16 19:32:50 +00:00
Alexandre Julliard
f2ef2c2bb2
Handle special registry root keys directly in advapi32, and avoid
...
using them in kernel and ntdll.
2002-09-13 21:42:28 +00:00
Alexandre Julliard
fb40a72f8f
Copied the registry functions needed by VMM into device.c and got rid
...
of memory/registry.c.
2002-09-13 18:52:57 +00:00
Alexandre Julliard
c227edc5c3
RtlFormatCurrentUserKeyPath: return path containing the user name
...
instead of .Default.
2002-09-13 17:45:07 +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
Patrik Stridvall
a62a26ced0
Fixed some issues found by winapi_check.
2002-09-09 19:26:55 +00:00
Andriy Palamarchuk
442f5f56d1
RtlNtStatusToDosError: Added new NT status to error codes mapping,
...
added missed definitions of the used constants, created unit test for
subset of the mappings.
2002-09-09 19:25:29 +00:00
Alexandre Julliard
cea2e825b2
Link all remaining dlls except kernel32 as separated dlls, by
...
temporarily exporting the few functions that are not properly
separated yet.
2002-09-06 18:51:31 +00:00
Patrik Stridvall
51e6c0ccb1
MSVC compatibility fixes.
2002-08-31 19:04:14 +00:00
Marcus Meissner
c87c2c4f1a
Use Iar (Instruction Address Register) instead of Fill[0].
...
siginfo.si_code uses the lower 16bit for the type of the exception.
2002-08-30 00:00:57 +00:00
Patrik Stridvall
9aab47ed24
MSVC compatibility fixes.
2002-08-28 23:42:34 +00:00
Alexandre Julliard
dba83c8bfc
Added wine_get_user_name function and got rid of some of the getpwuid
...
portability stuff.
More portable printf formats for 64-bit types.
2002-08-27 18:30:53 +00:00
Patrik Stridvall
ef0e2af708
MSVC long long fixes.
2002-08-27 18:17:49 +00:00
Dmitry Timoshkov
d75aed2c92
Convert most of the file APIs to Unicode.
2002-08-27 01:13:58 +00:00
Marcus Meissner
cf51b65457
Implemented signal handling for PPC.
2002-08-27 00:30:20 +00:00
Patrik Stridvall
57bf45067a
MSVC compatibility fixes.
2002-08-26 21:53:24 +00:00
Patrik Stridvall
fc34344d14
Fixed some issues found by winapi_check.
2002-08-20 00:20:43 +00:00
Marcus Meissner
9fc17ee371
Implemented server context/ptrace handling for Linux/PowerPC.
2002-08-17 01:19:06 +00:00
Patrik Stridvall
d016f819f1
Added include protection for unistd.h and sys/time.h.
2002-08-17 00:43:16 +00:00
Alexandre Julliard
66e3183099
Fixed GetLocaleInfoW to handle Unicode properly and completed
...
implementation.
Update win.ini and registry on startup when language changed.
More logical priority order for locale environment variables.
Implemented SetLocaleInfoW.
Moved some locale functions to kernel32.dll.
2002-08-15 23:18:47 +00:00
Alexandre Julliard
becccaf168
Trap exceptions in RtlImageNtHeader.
2002-08-15 22:09:53 +00:00
Jon Griffiths
1da297178a
Implement and test rtl bitmap functions.
...
Add a couple of other misc rtl functions.
2002-08-15 22:08:40 +00:00
Dmitry Timoshkov
035887513d
Cosmetics.
2002-08-13 18:18:38 +00:00
Dmitry Timoshkov
4c903ea4b8
us->Length is in bytes.
2002-08-13 18:10:28 +00:00
Dmitry Timoshkov
9447958bc1
Throw exception only for Wine internal locks.
2002-08-13 18:09:22 +00:00