Commit Graph

3289 Commits

Author SHA1 Message Date
Alexandre Julliard ac519d0eea ntdll: Add defines for the file position magic constants. 2013-10-09 16:13:41 +02:00
Dmitry Timoshkov 3cae528eef ntdll: Offset -1 (FILE_WRITE_TO_END_OF_FILE) is supposed to work in NtWriteFile for disk files in overlapped mode. 2013-10-09 16:11:33 +02:00
Dmitry Timoshkov 1670c7f9a6 ntdll/tests: Accept previously declared behaviour of overlapped IO as broken.
It highly depends on Windows version and updates/SP installed.
2013-10-07 14:44:35 +02:00
Dmitry Timoshkov aa8546ecc2 ntdll: Add support for FILE_APPEND_DATA to NtWriteFile. 2013-10-07 14:44:35 +02:00
Dmitry Timoshkov ae3c49d841 ntdll/tests: Add a test for file position after NtWriteFile in FILE_APPEND_DATA mode. 2013-10-07 14:44:35 +02:00
Dmitry Timoshkov ba372b92b5 ntdll: Make it possible to store FILE_APPEND_DATA access bit in the server fd cache. 2013-10-04 19:59:58 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Hans Leidekker b0755344c4 ntdll: Fix the version reported for 64-bit Windows XP. 2013-10-01 19:08:22 +02:00
Dmitry Timoshkov c7afb0bb88 ntdll: Don't use asynchronous file IO in the loader. 2013-09-30 20:35:03 +02:00
Dmitry Timoshkov fe3bc8c574 ntdll: Unify the checks for asynchronous NtReadFile behaviour. 2013-09-30 20:35:03 +02:00
Dmitry Timoshkov 5e5fb99755 ntdll: Unify the checks for asynchronous NtWriteFile behaviour. 2013-09-30 20:35:03 +02:00
Nikolay Sivov 437c84655a ntdll/tests: Add proper skips in tests. 2013-09-27 10:42:12 +02:00
Dmitry Timoshkov a63be0823a ntdll: Make set_line_control() for a serial device print slightly more informative messages. 2013-09-26 10:46:56 +02:00
Dmitry Timoshkov a20b07c558 ntdll: Make asynchronous WaitCommEvent report correct number of bytes returned. 2013-09-26 10:46:54 +02:00
Michael Stefaniuc 2a39cb377a dlls: Replace the remaining CONSTs. 2013-09-25 11:49:20 +02:00
Dmitry Timoshkov 2ffd28cff7 ntdll: Perform the offset checks in NtWriteFile also for a serial device. 2013-09-25 11:48:56 +02:00
Dmitry Timoshkov 4544826291 ntdll/tests: Use official path for temporary files instead of current directory. 2013-09-24 20:42:35 +02:00
Dmitry Timoshkov 084f4b643c ntdll: Perform the offset checks also for a serial device. 2013-09-23 20:32:22 +02:00
Dmitry Timoshkov ab8d704e24 ntdll/tests: Extend the FILE_APPEND_DATA test. 2013-09-23 11:49:55 +02:00
Dmitry Timoshkov b4ab43b3de kernel32: Remove a 0-length read optimization from ReadFile. 2013-09-20 11:11:47 +02:00
Dmitry Timoshkov d6900fc556 ntdll/tests: Add 0-length read tests for a disk file. 2013-09-20 11:11:00 +02:00
Dmitry Timoshkov eb10471bac ntdll: NtReadFile should fail for overlapped IO on files if offset is negative. 2013-09-13 10:56:37 +02:00
Dmitry Timoshkov b314a25320 ntdll: Make NtWriteFile explicitly check for negative offset and fail. 2013-09-13 10:56:29 +02:00
Dmitry Timoshkov 9e50cc540a ntdll: NtWriteFile should fail for overlapped IO on files if offset is negative. 2013-09-13 10:56:10 +02:00
Nikolay Sivov 84d9b2502e ntdll: Added compatible ProgID section. 2013-09-13 10:54:53 +02:00
Nikolay Sivov b8a973dc52 kernel32/tests: Some tests for ProgID section. 2013-09-13 10:54:13 +02:00
Nikolay Sivov 37182e3f0f ntdll: Try application manifest path when searching for dependent assemblies. 2013-09-11 20:33:22 +02:00
Dmitry Timoshkov ea7f9737bd ntdll: Add support to NtWriteFile for special offset -1. 2013-09-11 20:33:22 +02:00
Thomas Faber d518ce7ea2 ntdll/tests: Use correct prototype for RtlCreateUnicodeString[FromAsciiz]. 2013-09-11 16:08:09 +02:00
Dmitry Timoshkov f031c676c1 server: Add a serial event mask change counter. 2013-09-10 11:18:57 +02:00
Nikolay Sivov bcbd13b70c ntdll: Added compatible sections for clrClass data. 2013-09-09 22:09:56 +02:00
Dmitry Timoshkov a4ec059354 ntdll/tests: Add some tests for negative file offsets. 2013-09-06 12:03:55 +02:00
Nikolay Sivov 93c59714c0 ntdll: Inherit default activation context from creation thread. 2013-09-05 13:23:50 +02:00
Michael Stefaniuc 74b191a605 ntdll: Avoid TRUE FALSE conditional expressions. 2013-09-05 13:18:24 +02:00
Alexandre Julliard f21961cc14 ntdll: Add a configure check for the tcdrain function.
Also remove the tcgetattr check that is no longer used.
2013-09-05 13:18:21 +02:00
Dmitry Timoshkov 2d5ecbee43 ntdll: NtReadFile should fail for overlapped IO on files if offset is NULL. 2013-09-04 17:56:52 +02:00
Dmitry Timoshkov d37fac0519 ntdll: NtWriteFile should fail for overlapped IO on files if offset is NULL. 2013-09-04 17:56:50 +02:00
Alexandre Julliard 6666614a19 ntdll: Actually return the mount point in get_device_mount_point on Mac OS. 2013-09-04 16:28:10 +02:00
Nikolay Sivov af3a20d2ea ntdll: Added support for multiple progids in comClass and clrClass elements. 2013-09-04 11:36:32 +02:00
Alexandre Julliard 4af4df5af3 ntdll: Add stubs for the SRW lock functions. 2013-09-03 16:58:19 +02:00
Dmitry Timoshkov c25776a981 ntdll: Avoid a needless goto. 2013-09-03 16:58:19 +02:00
Nikolay Sivov 045682a4da kernel32: Forward ZombifyActCtx() to ntdll. 2013-09-03 16:58:16 +02:00
Nikolay Sivov 8e211065a8 ntdll: Store 'clrClass' as COM class. 2013-09-03 16:58:16 +02:00
Nikolay Sivov d0deaaa8ce kernel32/tests: Some tests for clrClass data. 2013-09-03 16:58:16 +02:00
Nikolay Sivov f0e5fd737d ntdll: Implement compatible section for 'clrSurrogate'. 2013-09-03 16:58:16 +02:00
Nikolay Sivov 5b38a13167 ntdll: Store clrSurrogate version value, added some tests. 2013-09-03 16:58:15 +02:00
Nikolay Sivov 44d8f6a35a ntdll: For typelib and COM class sections point global data to module names. 2013-09-03 16:58:15 +02:00
Nikolay Sivov 21c1706f79 ntdll: Implement interface redirection section. 2013-09-02 18:07:03 +02:00
Nikolay Sivov 9c44cb4f0f ntdll: Store all interface redirection data in context. 2013-09-02 18:07:00 +02:00
Nikolay Sivov 88070accd2 ntdll: Implement compatible comClass section. 2013-08-30 11:17:33 +02:00
Alexandre Julliard 3d83da047a ntdll: Use a RunOnce function to initialize relay debugging options. 2013-08-29 19:56:18 +02:00
Alexandre Julliard d191d5bca0 ntdll: Use a RunOnce function to initialize directory lookup options. 2013-08-29 19:56:18 +02:00
Wolfgang Walter f93a5d2560 ntdll: Call tcdrain for serial handles from NtFlushBuffersFile. 2013-08-29 19:56:17 +02:00
Dmitry Timoshkov 52d1080544 ntdll: Properly set flag which indicates buffer empty state. 2013-08-29 11:21:11 +02:00
Nikolay Sivov a5eb9eee42 ntdll: Fix typelib section leak on context release. 2013-08-29 11:20:43 +02:00
Nikolay Sivov 52fc0e4e29 ntdll: Store all 'comClass' attributes. 2013-08-29 11:20:37 +02:00
Alexandre Julliard fcb3e60332 ntdll: Implement the RunOnce functions. 2013-08-28 22:27:31 +02:00
Alexandre Julliard af89610364 kernel32/tests: Add more tests for the InitOnce functions. 2013-08-28 16:14:34 +02:00
Dmitry Timoshkov f4f5d06df4 ntdll: Stop waiting for COM-port events if the device handle gets closed. 2013-08-28 11:36:23 +02:00
Dmitry Timoshkov b299d4d4f8 ntdll: Add a trace for transmitter's buffer empty flag. 2013-08-28 11:36:01 +02:00
Alexandre Julliard 54017b0fac ntdll/tests: Add a number of tests for keyed events. 2013-08-28 11:04:06 +02:00
Alexandre Julliard 93fbb12e65 server: Implement waiting on keyed events. 2013-08-28 11:03:38 +02:00
Dmitry Timoshkov d21b05b06d ntdll: Properly test line status register for TIOCSER_TEMT bit. 2013-08-27 21:30:03 +02:00
Dmitry Timoshkov e3dcdadaca ntdll: Fallback to ioctl(TIOCOUTQ) if ioctl(TIOCSERGETLSR) fails.
Most Linux USB-serial drivers don't support TIOCSERGETLSR.
2013-08-27 21:30:03 +02:00
Dmitry Timoshkov 1202c14e6e ntdll: Ignore ioctl(TIOCGICOUNT) failures.
Most USB-serial Linux drivers don't support it.
2013-08-27 21:30:03 +02:00
Alexandre Julliard 5c0b5f4dcb ntdll: Move the select and APC support to server.c. 2013-08-26 20:36:56 +02:00
Alexandre Julliard a56ffb6326 ntdll: Rename NTDLL_wait_for_multiple_objects to server_select since it's more generic now. 2013-08-26 20:36:22 +02:00
Alexandre Julliard 947e337480 server: Make signal and wait a separate select operation. 2013-08-26 20:34:28 +02:00
Alexandre Julliard 042e0046d4 server: Make select on all handles a separate operation. 2013-08-26 20:32:52 +02:00
Alexandre Julliard cbdc0ec72d ntdll: Pass a select operation structure to NTDLL_wait_for_multiple_objects. 2013-08-26 20:32:19 +02:00
Alexandre Julliard c2ab7a625e server: Add a structure to pass the parameters of a select request. 2013-08-26 20:24:42 +02:00
Andrew Cook cdfee68be1 ntdll: Implement NtQueryEvent. 2013-08-26 14:27:56 +02:00
Dmitry Timoshkov 0b4c9cb533 server: Store full-sized completion information on the server side. 2013-08-23 20:15:43 +02:00
Nikolay Sivov 36acd61447 ntdll: Implement compatible typelib section. 2013-08-23 17:56:14 +02:00
Nikolay Sivov 1ca7eb649c ntdll: Parse 'flags' and 'version' attributes of typelib sections. 2013-08-23 17:55:22 +02:00
Dmitry Timoshkov 42cad0ebb1 ntdll/tests: Use WAIT_OBJECT_0 instead of 0. 2013-08-23 10:42:39 +02:00
Dmitry Timoshkov b126d7c7ce ntdll/tests: Fix one more place regarding temp path usage. 2013-08-23 10:42:36 +02:00
Dmitry Timoshkov 8eb9ffb3fa ntdll/tests: Mark the NtReadFile call which doesn't return STATUS_PENDING for an overlapped IO call as broken, and don't test returned values in broken case. 2013-08-23 10:42:21 +02:00
Dmitry Timoshkov 49e31d29ca ntdll/tests: Add some tests for FILE_USE_FILE_POINTER_POSITION. 2013-08-23 10:42:16 +02:00
Huw Davies 97fd3f3b52 ntdll: Call the correct server request. 2013-08-22 12:34:44 +02:00
Alexandre Julliard dbf9d71ef8 server: Add support for keyed event objects. 2013-08-21 14:24:06 +02:00
Alexandre Julliard bf3e23bb36 ntdll: Add the keyed events entry points. 2013-08-21 14:24:06 +02:00
Dmitry Timoshkov aa14c2daa5 ntdll/tests: Add the tests for some error cases. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov 8ec8d70ada ntdll/tests: Use NtWriteFile instead of WriteFile in order to detect broken overlapped IO implementation. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov b45ec4607b ntdll/tests: Fix the typos. 2013-08-21 13:08:35 +02:00
Dmitry Timoshkov fbe4012eaf ntdll/tests: Add a bunch of overlapped IO tests for files. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov fca3231914 ntdll/tests: Use official path for temporary files instead of current directory. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov 87db683aad ntdll/tests: Check WriteFile return values. 2013-08-20 20:52:18 +02:00
Dmitry Timoshkov 7cab2e99c3 ntdll: Last parameter of NtSetIoCompletion is 64-bit on 64-bit platforms. 2013-08-20 20:52:18 +02:00
Alexandre Julliard c2d7347e2a ntdll: Silence some printf format warnings. 2013-08-20 20:52:17 +02:00
Alexandre Julliard 2810c5647f ntdll: Add a magic number to validate timer queue pointers. 2013-08-20 20:13:58 +02:00
Francois Gouget 1dbc3d0924 ntdll/tests: Add a trailing '\n' to an ok() call. 2013-08-19 12:53:20 +02:00
Nikolay Sivov 30425ece6c ntdll: Fix hash collision check condition for string keys. 2013-08-16 16:33:34 +02:00
Andrey Turkin 2df4caa6a1 ntdll/tests: Test FileDispositionInformation file class. 2013-08-16 11:55:23 +02:00
Nikolay Sivov 2a5a8bc4a3 ntdll: Implement compatible section for dll redirects. 2013-08-15 16:21:45 +02:00
Nikolay Sivov cddea89d22 ntdll: Support optional 'versioned' attribute for windowClass sections. 2013-08-15 16:19:03 +02:00
Qian Hong f56edbf537 ntdll: Fixed parameter list in spec file for RtlpNtQueryValueKey. 2013-08-15 16:16:37 +02:00
Nikolay Sivov 5ce01b3597 ntdll: Implement compatible FindActCtxSectionString() for window class section. 2013-08-02 14:36:12 +02:00
Nikolay Sivov 1692ccc56d ntdll: Added RtlFindActivationContextSectionGuid() stub. 2013-07-31 16:29:49 +02:00
Alexandre Julliard f8cdbecc25 ntdll: Add context definitions missing from the Android NDK. 2013-07-30 14:43:31 +02:00
Alexandre Julliard f7161ebe89 ntdll: Don't use TIOCGICOUNT if we don't have linux/serial.h to define the necessary struct. 2013-07-29 21:08:02 +02:00
Alexandre Julliard 581cef082e ntdll: Use fclose instead of endmntent since we use fopen anyway. 2013-07-29 21:07:12 +02:00
Nikolay Sivov 9e5097187e ntdll: Implement RtlHashUnicodeString(). 2013-07-24 14:35:09 -05:00
Nikolay Sivov 7e136d68f7 ntdll/tests: Properly skip on missing functions. 2013-07-22 19:31:28 +02:00
Dmitry Timoshkov 3d759a0c69 ntdll: NtAllocateVirtualMemory should fail to commit if an address range is already committed for a memory mapped file. 2013-07-19 14:40:17 +02:00
Alexandre Julliard 3799d55d9b ntdll: Implement RtlExitUserProcess. 2013-07-19 12:15:15 +02:00
Alexandre Julliard 1c11770159 ntdll: Simplify detach sequence now that there is no possible race on process exit. 2013-07-19 12:13:09 +02:00
Nikolay Sivov 173b834b4a ntdll/tests: Tests for RtlHashUnicodeString(). 2013-07-19 11:56:37 +02:00
Alexandre Julliard 4142fc9b52 ntdll/tests: Don't test . and .. masks, they don't work on Windows. 2013-07-02 10:03:50 +02:00
Alexandre Julliard 641e1bee02 ntdll/tests: Add some tests for NtQueryDirectoryFile with a non-wildcard mask. 2013-07-01 19:51:21 +02:00
Alexandre Julliard 96b7c71cfe ntdll: Leave NtQueryDirectoryFile early when a non-wildcard mask is used in the getdirentries case.
This avoids having to retry the getdirentries call which may fail if
the buffer size is too small.
2013-07-01 19:51:20 +02:00
Dmitry Timoshkov 934ba51c80 ntdll: Correct RtlFreeHeap .spec parameter type. 2013-06-26 12:14:41 +02:00
Piotr Caban 76bfbf43e9 server: Don't create new handle when DUP_HANDLE_CLOSE_SOURCE is used if possible. 2013-06-05 17:31:40 +02:00
André Hentschel ef856a29ef ntdll: Actually store PC in RtlCaptureContext on ARM. 2013-05-31 11:58:03 +02:00
Alexandre Julliard 45a2cf1e22 ntdll: Reimplement the x86_64 relay entry point in assembler. 2013-05-23 19:03:01 +02:00
Alexandre Julliard fb75238f7e ntdll: Reimplement the i386 relay entry point in assembler. 2013-05-23 19:03:01 +02:00
Alexandre Julliard f4e58868d4 ntdll: Make the entire relay entry point routine CPU-specific. 2013-05-23 19:03:00 +02:00
Dmitry Timoshkov 94336f1aab ntdll: Thread creation control is now taken care by server. 2013-05-17 12:29:43 +02:00
Dmitry Timoshkov 10476af626 include: Make KNONVOLATILE_CONTEXT_POINTERS match PSDK definition. 2013-04-30 11:47:05 +02:00
Dmitry Timoshkov e2791cdfb1 include: Make IMAGE_RESOURCE_DIRECTORY_ENTRY match PSDK definition. 2013-04-29 13:33:54 +02:00
Dmitry Timoshkov 59a23fb42f ntdll: Refuse to create new thread if the target process is being terminated. 2013-04-22 12:37:51 +02:00
Francois Gouget 77a142da55 ntdll: Remove an unused debug channel. 2013-04-18 19:12:57 +02:00
André Hentschel e187c4aec2 ntdll: Respect the 8-bit part in the ARM relocation. 2013-04-15 17:01:46 +02:00
Dmitry Timoshkov b92c82c942 server: Add support for NtTerminateProcess(0). 2013-04-15 16:45:33 +02:00
Daniel Lehman 12f3ac4f46 ntdll: Use larger virtual heap for 64-bit. 2013-04-12 11:56:10 +02:00
André Hentschel b6fdba7873 ntdll: Hint that call_entry_point is ARM assembler. 2013-04-05 11:57:52 +02:00
Alexandre Julliard cd03a51e7d ntdll: Set the address space limit before running application code. 2013-04-04 13:28:43 +02:00
Austin English 56057acdcd ntdll: Add a stub for RtlConvertToAutoInheritSecurityObject. 2013-03-27 20:12:26 +01:00
André Hentschel d53a55ea88 ntdll: Improve stub for FileFsAttributeInformation in NtQueryVolumeInformationFile. 2013-03-26 16:36:42 +01:00
André Hentschel 3c04958b8a ntdll: Implement RtlLookupFunctionEntry on ARM. 2013-03-25 14:08:42 +01:00
André Hentschel df7f4fb720 ntdll: Add stubs for RtlAddFunctionTable and RtlDeleteFunctionTable on ARM. 2013-03-25 14:08:32 +01:00
Alexandre Julliard e3f9f7b388 ntdll: Copy some missing string functions from msvcrt. 2013-03-14 13:53:46 +01:00
Alexandre Julliard 17be935568 ntdll: Copy some missing math functions from msvcrt. 2013-03-14 13:43:46 +01:00
André Hentschel 6e8be236ee ntdll: Unify the usage of internal SIGCONTEXT type on ARM and ARM64. 2013-03-11 11:44:29 +01:00
André Hentschel 0effd926b6 server: Remove SPARC support. 2013-03-05 11:04:07 +01:00
André Hentschel 6c02f66075 ntdll: Remove SPARC support. 2013-03-05 11:01:27 +01:00
Andrew Talbot d0d28b96a4 ntdll: Avoid signed-unsigned integer comparisons. 2013-02-21 08:34:13 +01:00
Jörg Höhle 2f0b93ca13 ntdll: Stabilize CreateTimerQueueTimer callbacks over time. 2013-02-19 19:50:54 +01:00
André Hentschel 242da67082 ntdll: Correctly align the stack for odd numbers of arguments in relay traces on ARM. 2013-02-19 10:39:03 +01:00
Marcus Meissner fc179497bd kernel32: Use the correct pointer size in atl thunk (Coverity). 2013-02-18 10:31:22 +01:00
André Hentschel 22c3993226 ntdll: Implement RtlUnwind for ARM. 2013-02-13 17:44:06 +01:00
Alexandre Julliard 64ddb263d2 ntdll: Check for invalid %gs value in 32-bit code.
Suggested by Alessandro Pignotti.
2013-02-12 19:56:39 +01:00
Alexandre Julliard 99d89b347f ntdll: Add a helper function to check that a fault address lies in a known virtual memory view. 2013-02-12 19:56:19 +01:00
André Hentschel b288f7be18 ntdll: Set TPIDRURW to TEB on thread init for ARM. 2013-02-07 18:10:43 +01:00
Jörg Höhle 4f6db78ca0 ntdll: Use the monotonic time counter also for timer queues. 2013-02-07 15:54:34 +01:00
Alexandre Julliard 34a1426fc3 ntdll: Use the monotonic counter for NtGetTickCount. 2013-01-28 18:22:16 +01:00
Alexandre Julliard 04e14c7b46 ntdll: Add support for the monotonic time counter on Mac OS X. 2013-01-28 18:22:13 +01:00
Alexandre Julliard 25598513dc ntdll: Use a monotonic time counter to implement NtQueryPerformanceCounter. 2013-01-28 15:39:37 +01:00
Alexandre Julliard 606c88a348 ntdll: Use the __NR_ names for Linux system calls. 2013-01-21 21:37:02 +01:00
André Hentschel 0993f8bb7b ntdll: Implement IMAGE_REL_BASED_THUMB_MOV32 relocation on ARM. 2013-01-21 12:51:14 +01:00