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,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreatePseudoConsole,CreatePseudoConsole
.text.windows
.ftrace1
CreatePseudoConsole:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_CreatePseudoConsole(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreatePseudoConsole,globl
.previous