mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Resurrect <windows.h> as <windowsesque.h>
This commit is contained in:
parent
68b9479f0c
commit
3eb405e0e2
6 changed files with 4340 additions and 0 deletions
18
libc/nt/kernel32/CreateEventA.S
Normal file
18
libc/nt/kernel32/CreateEventA.S
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_CreateEventA,CreateEventA
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
CreateEventA:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov __imp_CreateEventA(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn CreateEventA,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue