mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Add MapViewOfFile3 WIN32 API
This commit is contained in:
parent
130fd66f9e
commit
d5ebb1fa5b
5 changed files with 70 additions and 0 deletions
18
libc/nt/kernel32/MapViewOfFile3.S
Normal file
18
libc/nt/kernel32/MapViewOfFile3.S
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_MapViewOfFile3,MapViewOfFile3
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
MapViewOfFile3:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov __imp_MapViewOfFile3(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn MapViewOfFile3,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue