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 ws2_32,__imp_FreeAddrInfoExW,FreeAddrInfoExW,26
#ifdef __x86_64__
.text.windows
FreeAddrInfoEx:
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
.profilable
@ -11,7 +11,9 @@ FreeAddrInfoEx:
sub $32,%rsp
call *__imp_FreeAddrInfoExW(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn FreeAddrInfoEx,globl
.previous
#endif

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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