Sweden-Number/dlls/ntdll
Ken Thomases 3d8efb2388 ntdll: For Mac 64-bit, poke NtCurrentTeb()->ThreadLocalStoragePointer to the corresponding offset from %gs.
64-bit Windows apps have hard-coded accesses to %gs:0x58 baked into them.  They
need to find the ThreadLocalStoragePointer there.

Technically, the gsbase register and the memory it points to belong to the
pthread implementation on macOS.  It's used for the pthread TLS implementation.
Slot 11 (offset 0x58) is currently used for the implementation of the ttyname()
system library function.  We do not anticipate that Wine or any of the system
libraries or frameworks it uses will call ttyname().  Furthermore, Apple has
made it so that future releases of macOS will no longer use that slot.  So, we
hijack it for our purposes.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-29 12:04:10 +09:00
..
tests ntdll: NtUnmapViewOfSection should succeed for all offsets within the mapped range. 2016-07-19 22:03:21 +09:00
Makefile.in
actctx.c ntdll: Remove a redundant NULL check before RtlFreeHeap(). 2016-07-08 20:14:04 +09:00
atom.c
cdrom.c configure: Add AC_HEADER_MAJOR to find where major() is defined. 2016-04-18 18:06:46 +09:00
critsection.c
debugbuffer.c
debugtools.c
directory.c ntdll: Fix buffer allocation check in get_dir_data_space. 2016-05-05 01:27:50 +09:00
env.c
error.c
exception.c
file.c ntdll: Skip synchronous read if a serial read interval timeout is set. 2016-06-09 15:39:57 +09:00
handletable.c
heap.c
large_int.c
loader.c ntdll: For Mac 64-bit, poke NtCurrentTeb()->ThreadLocalStoragePointer to the corresponding offset from %gs. 2016-07-29 12:04:10 +09:00
loadorder.c
misc.c ntdll: Add WinSqmEndSession/WinSqmStartSession stubs. 2016-06-01 22:12:21 +09:00
nt.c ntdll: Implement the SectionBasicInformation class of NtQuerySection. 2016-07-26 20:32:10 +09:00
ntdll.spec ntdll: For Mac 64-bit, poke the TEB address to %gs:0x30 and re-enable the inlining of NtCurrentTeb(). 2016-07-28 21:38:01 +09:00
ntdll_misc.h
om.c
path.c ntdll: Pass SYNCHRONIZE flag in NtOpenFile and NtCreateFile calls. 2016-02-09 20:36:17 +09:00
printf.c
process.c
reg.c ntdll: Fix typos in some comments. 2016-07-04 11:01:20 +09:00
relay.c
resource.c
rtl.c
rtlbitmap.c
rtlstr.c ntdll: Implement RtlCompareUnicodeStrings. 2016-05-03 15:14:20 +09:00
sec.c
serial.c
server.c
signal_arm.c
signal_arm64.c
signal_i386.c
signal_powerpc.c
signal_x86_64.c ntdll: For Mac 64-bit, poke NtCurrentTeb()->ThreadLocalStoragePointer to the corresponding offset from %gs. 2016-07-29 12:04:10 +09:00
string.c
sync.c ntdll: Remove stub from trace. 2016-05-05 17:18:32 +09:00
tape.c
thread.c ntdll: Add support for fs segment in ThreadDescriptorTableEntry query. 2016-07-15 11:16:59 +09:00
threadpool.c ntdll: Fix a typo in an comment. 2016-05-18 21:18:17 +09:00
time.c
version.c
version.rc
virtual.c server: Avoid rounding mapping sizes on the server side. 2016-07-27 17:03:03 +09:00
wcstring.c