Add WIN32 pseudo console APIs

See #999
This commit is contained in:
Justine Tunney 2023-12-10 01:29:25 -08:00
parent 1bd69867d1
commit 4f66d7f2dd
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 72 additions and 2 deletions

View file

@ -0,0 +1,20 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ClosePseudoConsole,ClosePseudoConsole
.text.windows
.ftrace1
ClosePseudoConsole:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov %rdi,%rcx
sub $32,%rsp
call *__imp_ClosePseudoConsole(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ClosePseudoConsole,globl
.previous