Add epoll and do more release readiness changes

This change also pays off some of the remaining technical debt with
stdio, file descriptors, and memory managemnt polyfills.
This commit is contained in:
Justine Tunney 2020-11-28 12:01:51 -08:00
parent a9ea949df8
commit 3e4fd4b0ad
271 changed files with 5706 additions and 1365 deletions

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp NtCancelIoFileEx
.text.windows
NtCancelIoFileEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_NtCancelIoFileEx(%rip),%rax
jmp __sysv2nt
.endfn NtCancelIoFileEx,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp NtCreateKeyedEvent
.text.windows
NtCreateKeyedEvent:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_NtCreateKeyedEvent(%rip),%rax
jmp __sysv2nt
.endfn NtCreateKeyedEvent,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp NtReleaseKeyedEvent
.text.windows
NtReleaseKeyedEvent:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_NtReleaseKeyedEvent(%rip),%rax
jmp __sysv2nt
.endfn NtReleaseKeyedEvent,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp NtWaitForKeyedEvent
.text.windows
NtWaitForKeyedEvent:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_NtWaitForKeyedEvent(%rip),%rax
jmp __sysv2nt
.endfn NtWaitForKeyedEvent,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/ntdllimport.inc"
.ntimp RtlNtStatusToDosError
.text.windows
RtlNtStatusToDosError:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_RtlNtStatusToDosError(%rip)
leave
ret
.endfn RtlNtStatusToDosError,globl
.previous