Commit Graph

3455 Commits

Author SHA1 Message Date
Nikolay Sivov 0824771423 kernel32: Export RtlCopyMemory(). 2015-06-19 19:10:45 +09:00
André Hentschel 1133295267 ntdll: Set TPIDRURW inline on ARM. 2015-06-17 18:19:55 +09:00
André Hentschel aa139d3e86 ntdll: Set platform register x18 to TEB on ARM64. 2015-06-17 18:19:55 +09:00
Mohamed Mediouni 2b095beace ntdll: Multiply r4 with the word size in ARM for __chkstk. 2015-06-16 23:56:44 +09:00
André Hentschel bef85a14f6 ntdll: Fix CONTEXT_ARM in RtlCaptureContext. 2015-06-15 15:29:03 +09:00
André Hentschel cd258bef79 ntdll: Implement RtlCaptureContext on ARM64. 2015-06-15 15:29:03 +09:00
André Hentschel bd1f7ef186 include: Rename 64-bit PState to 32-bit Cpsr on ARM64. 2015-06-15 14:51:33 +09:00
Erich E. Hoover cdefae9ef2 ntdll: Fix IOCTL_DVD_READ_STRUCTURE expected output size. 2015-06-15 14:50:19 +09:00
Ken Thomases 3b74ac0f08 ntdll: Fix the "not found" status set by read_directory_stat() and read_directory_getattrlist() for when restart_scan is set. 2015-06-12 21:22:42 +09:00
Ken Thomases e7fa766378 Revert "ntdll: Avoid one of the calls to getattrlist() when read_directory_getattrlist() checks the case sensitivity of the file system.".
This was wrong-headed and could never have worked.  The second getattrlist()
call that I was trying to avoid was only necessary when the first fails.  Given
that the first failed, its results can't be used to avoid the second, no matter
what information we requested.

This reverts commit 5514df9d4e.
2015-06-12 21:22:42 +09:00
Sebastian Lackner bdef5c5508 ntdll/tests: Add tests for info struct size for FileDispositionInformation. 2015-06-11 15:32:30 +09:00
Sebastian Lackner 8ddab2c2f4 ntdll: Fix status code when NtMapViewOfSection parameter check fails. 2015-06-08 15:34:04 +09:00
Ken Thomases 82dd799d52 ntdll: Add partial support for version 3 of DWARF CIEs which are generated by Clang/LLVM. 2015-06-05 18:40:39 +09:00
Ken Thomases bbcfa6b4ee ntdll: Add support for using libunwind to unwind the stack for x86_64.
On OS X, Apple uses compact unwind info in preference to DWARF unwind info.
2015-06-05 15:08:02 +09:00
Qian Hong ef3ed04cdc server: Fix type name of directory file. 2015-06-05 14:32:27 +09:00
Qian Hong f208c50cc0 server: Fix type name of File. 2015-06-05 14:32:23 +09:00
Qian Hong bdc223ad39 server: Fix type name of IoCompletion. 2015-06-05 14:32:15 +09:00
Qian Hong 7a7fc1e604 ntdll/tests: Add a few more ObjectTypeInformation tests. 2015-06-05 14:32:11 +09:00
Qian Hong 71080cc081 ntdll: Implemenent ObjectTypeInformation class support in NtQueryObject. 2015-06-05 14:32:01 +09:00
Sebastian Lackner d6a044c86a ntdll/tests: Don't call lstrlenW on non-null-terminated buffer. 2015-06-05 14:11:10 +09:00
André Hentschel c13be7446e ntdll: Fix returning from various ARM assembler functions. 2015-05-29 15:03:06 +09:00
André Hentschel a18f84c0b1 ntdll: Add stub for __chkstk on ARM. 2015-05-29 15:03:05 +09:00
André Hentschel 8e0164bd26 include: Add more ARM64 CV constants. 2015-05-28 14:20:55 +09:00
Jactry Zeng c9e1b6fb57 ntdll/tests: Test opening a directory with NULL ObjectName. 2015-05-27 17:13:08 +09:00
Ken Thomases 5514df9d4e ntdll: Avoid one of the calls to getattrlist() when read_directory_getattrlist() checks the case sensitivity of the file system.
Extract a new function, get_dir_case_sensitivity_attr_by_id(), from
get_dir_case_sensitivity_attr().  Call that instead of get_dir_case_sensitivity()
from read_directory_getattrlist().  We get the device and file system IDs from
the same getattrlist() call we're already doing, so that avoids an extra call.
2015-05-22 14:11:03 +09:00
André Hentschel dec7b246f8 ntdll: Add ARMv8 detection for ARM32. 2015-05-22 14:10:29 +09:00
André Hentschel b5b34220cc ntdll: Parse ARM64 CPU info. 2015-05-22 14:10:27 +09:00
Alexandre Julliard ee1528040e ntdll: Remove the special case for the NUL device. 2015-05-21 17:38:19 +09:00
Alexandre Julliard 950c82094b ntdll: Add support for file I/O on device files. 2015-05-21 17:38:04 +09:00
Alexandre Julliard c0ac2afb19 server: Create the null device and its symlink. 2015-05-21 17:24:34 +09:00
André Hentschel 74ef3af73d ntdll: Use the correct arch value for ARM64. 2015-05-21 14:23:45 +09:00
Ken Thomases bb89f10e5e ntdll: Fix read_directory_getattrlist() to get the name of a symlink rather than its target, but still detect if the symlink is broken. 2015-05-21 13:59:56 +09:00
Ken Thomases 5c98448aa3 ntdll: If read_directory_getattrlist() finds that the file doesn't exist, return successful "no file" result to stop search. 2015-05-21 13:58:01 +09:00
Ken Thomases f6926b3515 ntdll: Increase name buffer size in read_directory_getattrlist() for UTF-8 encoding.
The docs for getattrlist() say that ATTR_CMN_NAME can return up to NAME_MAX + 1
Unicode characters (code points) encoded in UTF-8, which means it can be up to
NAME_MAX * 3 + 1 bytes.
2015-05-21 13:57:45 +09:00
Sebastian Lackner 39abfc4d74 ntdll: Add stub for NtImpersonateAnonymousToken. 2015-05-21 13:57:05 +09:00
Matteo Bruni cb5c92f33c ntdll/tests: Add a test for filename casing with NtQueryDirectoryFile(). 2015-05-20 17:32:19 +09:00
Matteo Bruni 2f0febe60a ntdll: Ignore positive matches in read_directory_stat() for case-insensitive filesystems.
It's necessary to return the actual filename with correct casing and a
plain stat doesn't allow that. Make read_directory_stat() return the
result of the stat() call on a case-insensitive filesystem only when the
file is missing.
2015-05-20 17:32:16 +09:00
Matteo Bruni 5d65b9d0c2 ntdll: Implement a read_directory_getattrlist() function.
When searching for a specific filename on a case-insensitive filesystem
we first try with stat(). If stat() does find the file we currently
return the requested filename back.

That presents an issue when the application cares about the casing of the
actual file stored on-disk. Specifically, NtQueryDirectoryFile is
supposed to return the actual filename with correct casing.

One possible solution to the issue, without having to resort to manually
scanning the directory entries, is to make use of the OS X getattrlist()
function, since it can return the filename stored on the filesystem.
2015-05-20 17:32:09 +09:00
Alexandre Julliard 871ab51233 ntdll/tests: Use the correct flags for NtOpenFile. 2015-05-18 17:50:22 +09:00
Sebastian Lackner b3913c4f77 ntdll/tests: Add tests for accessing \\Device\\Null. 2015-05-18 17:42:46 +09:00
Huw Davies d6d703b592 ntdll/tests: Fix incorrect prototype. 2015-05-15 21:58:06 +09:00
Huw Davies 14c53a5863 ntdll/tests: Wait for pending file operations to complete. 2015-05-14 20:06:06 +09:00
Nikolay Sivov 2c98d5b90c kernel32: Implement GetDynamicTimeZoneInformation(). 2015-05-11 15:39:24 +09:00
Qian Hong ac86cb9eba ntdll/tests: Fixed typo. 2015-05-08 14:54:52 +09:00
André Hentschel f78bd7f4d9 ntdll: Enable wow64 on ARM64. 2015-05-08 14:54:47 +09:00
Alexandre Julliard 193667ecd7 ntdll: Fix handling of async cancellation for directory changes. 2015-05-07 16:02:26 +09:00
Alexandre Julliard 38b7c8839c ntdll: Don't run user APCs in NtCancelIoFile. 2015-05-07 15:38:57 +09:00
Sebastian Lackner e40e5661ee ntdll/tests: Add/remove todo_wine to avoid test failures. 2015-05-07 14:55:25 +09:00
Josh DuBois 44182ffb5b ntdll: Avoid movs between rcx, rdx and xmm registers.
Apple's version of as chokes on movs between rcx and rdx and the xmm
registers.
2015-05-06 20:44:58 +09:00
Alexandre Julliard c07a0561db ntdll: Fallback to server calls for read and write on objects without a file descriptor. 2015-05-06 17:16:48 +09:00