Get LIBC_RUNTIME and LIBC_CALLS building on aarch64

This commit is contained in:
Justine Tunney 2023-05-09 01:56:56 -07:00
parent 7e46645193
commit e5e3cdf447
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
1200 changed files with 5341 additions and 3677 deletions

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AcquireSRWLockExclusive,AcquireSRWLockExclusive,0
#ifdef __x86_64__
.text.windows
AcquireSRWLockExclusive:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ AcquireSRWLockExclusive:
sub $32,%rsp
call *__imp_AcquireSRWLockExclusive(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn AcquireSRWLockExclusive,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AcquireSRWLockShared,AcquireSRWLockShared,0
#ifdef __x86_64__
.text.windows
AcquireSRWLockShared:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ AcquireSRWLockShared:
sub $32,%rsp
call *__imp_AcquireSRWLockShared(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn AcquireSRWLockShared,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AddVectoredContinueHandler,AddVectoredContinueHandler,0
#ifdef __x86_64__
.text.windows
AddVectoredContinueHandler:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AddVectoredContinueHandler(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AddVectoredContinueHandler,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AddVectoredExceptionHandler,AddVectoredExceptionHandler,0
#ifdef __x86_64__
.text.windows
AddVectoredExceptionHandler:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_AddVectoredExceptionHandler(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn AddVectoredExceptionHandler,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AllocConsole,AllocConsole,0
#ifdef __x86_64__
.text.windows
AllocConsole:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_AllocConsole(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn AllocConsole,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AttachConsole,AttachConsole,0
#ifdef __x86_64__
.text.windows
AttachConsole:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ AttachConsole:
sub $32,%rsp
call *__imp_AttachConsole(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn AttachConsole,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CallNamedPipeA,CallNamedPipeA,110
#ifdef __x86_64__
.text.windows
CallNamedPipeA:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CallNamedPipeA(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CallNamedPipeA,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CallNamedPipeW,CallNamedPipeW,0
#ifdef __x86_64__
.text.windows
CallNamedPipe:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CallNamedPipeW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CallNamedPipe,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CancelIo,CancelIo,0
#ifdef __x86_64__
.text.windows
CancelIo:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CancelIo:
sub $32,%rsp
call *__imp_CancelIo(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CancelIo,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CancelIoEx,CancelIoEx,0
#ifdef __x86_64__
.text.windows
CancelIoEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CancelIoEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CancelIoEx,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CancelSynchronousIo,CancelSynchronousIo,0
#ifdef __x86_64__
.text.windows
CancelSynchronousIo:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ CancelSynchronousIo:
sub $32,%rsp
call *__imp_CancelSynchronousIo(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn CancelSynchronousIo,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CheckRemoteDebuggerPresent,CheckRemoteDebuggerPresent,0
#ifdef __x86_64__
.text.windows
CheckRemoteDebuggerPresent:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CheckRemoteDebuggerPresent(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CheckRemoteDebuggerPresent,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ClearCommBreak,ClearCommBreak,0
#ifdef __x86_64__
.text.windows
ClearCommBreak:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ClearCommBreak:
sub $32,%rsp
call *__imp_ClearCommBreak(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ClearCommBreak,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CloseHandle,CloseHandle,0
#ifdef __x86_64__
.text.windows
__CloseHandle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ __CloseHandle:
sub $32,%rsp
call *__imp_CloseHandle(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn __CloseHandle,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ConnectNamedPipe,ConnectNamedPipe,0
#ifdef __x86_64__
.text.windows
ConnectNamedPipe:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ConnectNamedPipe(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ConnectNamedPipe,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ContinueDebugEvent,ContinueDebugEvent,0
#ifdef __x86_64__
.text.windows
ContinueDebugEvent:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_ContinueDebugEvent(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn ContinueDebugEvent,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CopyFileW,CopyFileW,0
#ifdef __x86_64__
.text.windows
CopyFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CopyFileW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CopyFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateDirectoryW,CreateDirectoryW,0
#ifdef __x86_64__
.text.windows
__CreateDirectory:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDirectoryW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateDirectory,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateEventExW,CreateEventExW,0
#ifdef __x86_64__
.text.windows
CreateEventEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateEventExW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateEventEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateEventW,CreateEventW,0
#ifdef __x86_64__
.text.windows
CreateEvent:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateEventW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateEvent,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateFileMappingNumaW,CreateFileMappingNumaW,0
#ifdef __x86_64__
.text.windows
__CreateFileMappingNuma:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileMappingNumaW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateFileMappingNuma,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateFileMappingW,CreateFileMappingW,0
#ifdef __x86_64__
.text.windows
__CreateFileMapping:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileMappingW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateFileMapping,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateFileW,CreateFileW,0
#ifdef __x86_64__
.text.windows
__CreateFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateFileW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateHardLinkW,CreateHardLinkW,0
#ifdef __x86_64__
.text.windows
CreateHardLink:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateHardLinkW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateHardLink,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateIoCompletionPort,CreateIoCompletionPort,0
#ifdef __x86_64__
.text.windows
CreateIoCompletionPort:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateIoCompletionPort(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateIoCompletionPort,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateNamedPipeW,CreateNamedPipeW,0
#ifdef __x86_64__
.text.windows
__CreateNamedPipe:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateNamedPipeW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateNamedPipe,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreatePipe,CreatePipe,0
#ifdef __x86_64__
.text.windows
__CreatePipe:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreatePipe(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreatePipe,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateProcessW,CreateProcessW,0
#ifdef __x86_64__
.text.windows
__CreateProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateProcessW(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateProcess,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateSemaphoreW,CreateSemaphoreW,0
#ifdef __x86_64__
.text.windows
CreateSemaphore:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateSemaphoreW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateSemaphore,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateSymbolicLinkW,CreateSymbolicLinkW,0
#ifdef __x86_64__
.text.windows
__CreateSymbolicLink:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateSymbolicLinkW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateSymbolicLink,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateThread,CreateThread,0
#ifdef __x86_64__
.text.windows
__CreateThread:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateThread(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __CreateThread,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateToolhelp32Snapshot,CreateToolhelp32Snapshot,0
#ifdef __x86_64__
.text.windows
CreateToolhelp32Snapshot:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateToolhelp32Snapshot(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateToolhelp32Snapshot,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateWaitableTimerExW,CreateWaitableTimerExW,0
#ifdef __x86_64__
.text.windows
CreateWaitableTimerEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerExW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateWaitableTimerEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_CreateWaitableTimerW,CreateWaitableTimerW,0
#ifdef __x86_64__
.text.windows
CreateWaitableTimer:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateWaitableTimerW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn CreateWaitableTimer,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DebugActiveProcess,DebugActiveProcess,0
#ifdef __x86_64__
.text.windows
DebugActiveProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DebugActiveProcess:
sub $32,%rsp
call *__imp_DebugActiveProcess(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DebugActiveProcess,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DebugActiveProcessStop,DebugActiveProcessStop,0
#ifdef __x86_64__
.text.windows
DebugActiveProcessStop:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DebugActiveProcessStop:
sub $32,%rsp
call *__imp_DebugActiveProcessStop(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DebugActiveProcessStop,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DebugBreakProcess,DebugBreakProcess,263
#ifdef __x86_64__
.text.windows
DebugBreakProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DebugBreakProcess:
sub $32,%rsp
call *__imp_DebugBreakProcess(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DebugBreakProcess,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DeleteCriticalSection,DeleteCriticalSection,0
#ifdef __x86_64__
.text.windows
DeleteCriticalSection:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteCriticalSection:
sub $32,%rsp
call *__imp_DeleteCriticalSection(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteCriticalSection,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DeleteFileW,DeleteFileW,0
#ifdef __x86_64__
.text.windows
__DeleteFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ __DeleteFile:
sub $32,%rsp
call *__imp_DeleteFileW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn __DeleteFile,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DeleteProcThreadAttributeList,DeleteProcThreadAttributeList,0
#ifdef __x86_64__
.text.windows
DeleteProcThreadAttributeList:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DeleteProcThreadAttributeList:
sub $32,%rsp
call *__imp_DeleteProcThreadAttributeList(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DeleteProcThreadAttributeList,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DeviceIoControl,DeviceIoControl,0
#ifdef __x86_64__
.text.windows
__DeviceIoControl:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DeviceIoControl(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __DeviceIoControl,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DisconnectNamedPipe,DisconnectNamedPipe,0
#ifdef __x86_64__
.text.windows
DisconnectNamedPipe:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ DisconnectNamedPipe:
sub $32,%rsp
call *__imp_DisconnectNamedPipe(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn DisconnectNamedPipe,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_DuplicateHandle,DuplicateHandle,0
#ifdef __x86_64__
.text.windows
DuplicateHandle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DuplicateHandle(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn DuplicateHandle,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_EnterCriticalSection,EnterCriticalSection,0
#ifdef __x86_64__
.text.windows
EnterCriticalSection:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ EnterCriticalSection:
sub $32,%rsp
call *__imp_EnterCriticalSection(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn EnterCriticalSection,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ExitProcess,ExitProcess,0
#ifdef __x86_64__
.text.windows
ExitProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ExitProcess:
sub $32,%rsp
call *__imp_ExitProcess(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ExitProcess,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_ExitThread,ExitThread,0
#ifdef __x86_64__
.text.windows
ExitThread:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ ExitThread:
sub $32,%rsp
call *__imp_ExitThread(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn ExitThread,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FatalExit,FatalExit,364
#ifdef __x86_64__
.text.windows
FatalExit:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FatalExit:
sub $32,%rsp
call *__imp_FatalExit(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FatalExit,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FillConsoleOutputAttribute,FillConsoleOutputAttribute,0
#ifdef __x86_64__
.text.windows
FillConsoleOutputAttribute:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FillConsoleOutputAttribute(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FillConsoleOutputAttribute,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FillConsoleOutputCharacterW,FillConsoleOutputCharacterW,0
#ifdef __x86_64__
.text.windows
FillConsoleOutputCharacter:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FillConsoleOutputCharacterW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FillConsoleOutputCharacter,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindClose,FindClose,0
#ifdef __x86_64__
.text.windows
__FindClose:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ __FindClose:
sub $32,%rsp
call *__imp_FindClose(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn __FindClose,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindFirstFileExW,FindFirstFileExW,0
#ifdef __x86_64__
.text.windows
FindFirstFileEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FindFirstFileExW(%rip),%rax
jmp __sysv2nt6
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FindFirstFileEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindFirstFileW,FindFirstFileW,0
#ifdef __x86_64__
.text.windows
__FindFirstFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FindFirstFileW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __FindFirstFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindFirstVolumeW,FindFirstVolumeW,0
#ifdef __x86_64__
.text.windows
FindFirstVolume:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FindFirstVolumeW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FindFirstVolume,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindNextFileW,FindNextFileW,0
#ifdef __x86_64__
.text.windows
__FindNextFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FindNextFileW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __FindNextFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindNextVolumeW,FindNextVolumeW,0
#ifdef __x86_64__
.text.windows
FindNextVolume:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FindNextVolumeW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FindNextVolume,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FindVolumeClose,FindVolumeClose,0
#ifdef __x86_64__
.text.windows
FindVolumeClose:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FindVolumeClose:
sub $32,%rsp
call *__imp_FindVolumeClose(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FindVolumeClose,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FlushConsoleInputBuffer,FlushConsoleInputBuffer,0
#ifdef __x86_64__
.text.windows
FlushConsoleInputBuffer:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FlushConsoleInputBuffer:
sub $32,%rsp
call *__imp_FlushConsoleInputBuffer(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FlushConsoleInputBuffer,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FlushFileBuffers,FlushFileBuffers,0
#ifdef __x86_64__
.text.windows
__FlushFileBuffers:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ __FlushFileBuffers:
sub $32,%rsp
call *__imp_FlushFileBuffers(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn __FlushFileBuffers,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FlushViewOfFile,FlushViewOfFile,0
#ifdef __x86_64__
.text.windows
__FlushViewOfFile:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FlushViewOfFile(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __FlushViewOfFile,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FormatMessageW,FormatMessageW,0
#ifdef __x86_64__
.text.windows
FormatMessage:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_FormatMessageW(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn FormatMessage,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FreeConsole,FreeConsole,0
#ifdef __x86_64__
.text.windows
FreeConsole:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_FreeConsole(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FreeConsole,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FreeEnvironmentStringsW,FreeEnvironmentStringsW,0
#ifdef __x86_64__
.text.windows
FreeEnvironmentStrings:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FreeEnvironmentStrings:
sub $32,%rsp
call *__imp_FreeEnvironmentStringsW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FreeEnvironmentStrings,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FreeLibrary,FreeLibrary,0
#ifdef __x86_64__
.text.windows
FreeLibrary:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FreeLibrary:
sub $32,%rsp
call *__imp_FreeLibrary(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FreeLibrary,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_FreeResource,FreeResource,0
#ifdef __x86_64__
.text.windows
FreeResource:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FreeResource:
sub $32,%rsp
call *__imp_FreeResource(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FreeResource,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GenerateConsoleCtrlEvent,GenerateConsoleCtrlEvent,0
#ifdef __x86_64__
.text.windows
__GenerateConsoleCtrlEvent:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GenerateConsoleCtrlEvent(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __GenerateConsoleCtrlEvent,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCommandLineW,GetCommandLineW,0
#ifdef __x86_64__
.text.windows
GetCommandLine:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCommandLineW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetCommandLine,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCompressedFileSizeW,GetCompressedFileSizeW,0
#ifdef __x86_64__
.text.windows
GetCompressedFileSize:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetCompressedFileSizeW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetCompressedFileSize,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetComputerNameExW,GetComputerNameExW,0
#ifdef __x86_64__
.text.windows
GetComputerNameEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetComputerNameExW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetComputerNameEx,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleCP,GetConsoleCP,0
#ifdef __x86_64__
.text.windows
GetConsoleCP:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetConsoleCP(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetConsoleCP,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleCursorInfo,GetConsoleCursorInfo,0
#ifdef __x86_64__
.text.windows
GetConsoleCursorInfo:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetConsoleCursorInfo(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetConsoleCursorInfo,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleMode,GetConsoleMode,0
#ifdef __x86_64__
.text.windows
GetConsoleMode:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetConsoleMode(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetConsoleMode,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleOutputCP,GetConsoleOutputCP,0
#ifdef __x86_64__
.text.windows
GetConsoleOutputCP:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetConsoleOutputCP(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetConsoleOutputCP,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleScreenBufferInfo,GetConsoleScreenBufferInfo,0
#ifdef __x86_64__
.text.windows
GetConsoleScreenBufferInfo:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetConsoleScreenBufferInfo(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetConsoleScreenBufferInfo,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleScreenBufferInfoEx,GetConsoleScreenBufferInfoEx,0
#ifdef __x86_64__
.text.windows
GetConsoleScreenBufferInfoEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetConsoleScreenBufferInfoEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetConsoleScreenBufferInfoEx,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleSelectionInfo,GetConsoleSelectionInfo,0
#ifdef __x86_64__
.text.windows
GetConsoleSelectionInfo:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetConsoleSelectionInfo:
sub $32,%rsp
call *__imp_GetConsoleSelectionInfo(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetConsoleSelectionInfo,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleTitleW,GetConsoleTitleW,0
#ifdef __x86_64__
.text.windows
GetConsoleTitle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetConsoleTitleW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetConsoleTitle,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetConsoleWindow,GetConsoleWindow,0
#ifdef __x86_64__
.text.windows
GetConsoleWindow:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetConsoleWindow(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetConsoleWindow,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCurrentDirectoryW,GetCurrentDirectoryW,0
#ifdef __x86_64__
.text.windows
GetCurrentDirectory:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetCurrentDirectoryW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetCurrentDirectory,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCurrentProcess,GetCurrentProcess,0
#ifdef __x86_64__
.text.windows
GetCurrentProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCurrentProcess(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetCurrentProcess,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCurrentProcessId,GetCurrentProcessId,0
#ifdef __x86_64__
.text.windows
GetCurrentProcessId:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCurrentProcessId(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetCurrentProcessId,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCurrentThread,GetCurrentThread,0
#ifdef __x86_64__
.text.windows
GetCurrentThread:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCurrentThread(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetCurrentThread,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetCurrentThreadId,GetCurrentThreadId,0
#ifdef __x86_64__
.text.windows
GetCurrentThreadId:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetCurrentThreadId(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetCurrentThreadId,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetEnvironmentStringsW,GetEnvironmentStringsW,0
#ifdef __x86_64__
.text.windows
GetEnvironmentStrings:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetEnvironmentStrings:
sub $32,%rsp
call *__imp_GetEnvironmentStringsW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetEnvironmentStrings,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetEnvironmentVariableW,GetEnvironmentVariableW,0
#ifdef __x86_64__
.text.windows
GetEnvironmentVariable:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetEnvironmentVariableW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetEnvironmentVariable,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetExitCodeProcess,GetExitCodeProcess,0
#ifdef __x86_64__
.text.windows
__GetExitCodeProcess:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetExitCodeProcess(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn __GetExitCodeProcess,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetExitCodeThread,GetExitCodeThread,0
#ifdef __x86_64__
.text.windows
GetExitCodeThread:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetExitCodeThread(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetExitCodeThread,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileAttributesExW,GetFileAttributesExW,0
#ifdef __x86_64__
.text.windows
GetFileAttributesEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileAttributesExW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileAttributesEx,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileAttributesW,GetFileAttributesW,0
#ifdef __x86_64__
.text.windows
__GetFileAttributes:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ __GetFileAttributes:
sub $32,%rsp
call *__imp_GetFileAttributesW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn __GetFileAttributes,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileInformationByHandle,GetFileInformationByHandle,0
#ifdef __x86_64__
.text.windows
GetFileInformationByHandle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileInformationByHandle(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileInformationByHandle,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileInformationByHandleEx,GetFileInformationByHandleEx,0
#ifdef __x86_64__
.text.windows
GetFileInformationByHandleEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileInformationByHandleEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileInformationByHandleEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileSize,GetFileSize,0
#ifdef __x86_64__
.text.windows
GetFileSize:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileSize(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileSize,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileSizeEx,GetFileSizeEx,0
#ifdef __x86_64__
.text.windows
GetFileSizeEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileSizeEx(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileSizeEx,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileTime,GetFileTime,0
#ifdef __x86_64__
.text.windows
GetFileTime:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFileTime(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFileTime,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFileType,GetFileType,0
#ifdef __x86_64__
.text.windows
GetFileType:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetFileType:
sub $32,%rsp
call *__imp_GetFileType(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetFileType,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFinalPathNameByHandleW,GetFinalPathNameByHandleW,0
#ifdef __x86_64__
.text.windows
GetFinalPathNameByHandle:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFinalPathNameByHandleW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFinalPathNameByHandle,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetFullPathNameW,GetFullPathNameW,0
#ifdef __x86_64__
.text.windows
GetFullPathName:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetFullPathNameW(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetFullPathName,globl
.previous
#endif

View file

@ -1,14 +1,17 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetHandleInformation,GetHandleInformation,0
#ifdef __x86_64__
.text.windows
GetHandleInformation:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetHandleInformation(%rip),%rax
jmp __sysv2nt
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn GetHandleInformation,globl
.previous
#endif

View file

@ -1,9 +1,9 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetLargestConsoleWindowSize,GetLargestConsoleWindowSize,0
#ifdef __x86_64__
.text.windows
GetLargestConsoleWindowSize:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ GetLargestConsoleWindowSize:
sub $32,%rsp
call *__imp_GetLargestConsoleWindowSize(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetLargestConsoleWindowSize,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetLastError,GetLastError,0
#ifdef __x86_64__
.text.windows
GetLastError:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetLastError(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetLastError,globl
.previous
#endif

View file

@ -1,16 +1,18 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_GetLogicalDrives,GetLogicalDrives,0
#ifdef __x86_64__
.text.windows
GetLogicalDrives:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
sub $32,%rsp
call *__imp_GetLogicalDrives(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn GetLogicalDrives,globl
.previous
#endif

Some files were not shown because too many files have changed in this diff Show more