Delete most undocumented New Technology APIs

This change removes LIBC_KERNELBASE which is legacy code from the
initial import which was generated off a script that resolved the
delegated references, on Windows 10. All the important stuff here
should have long since been filed under kernel32.dll for windows7

Many FooA functions that were never assigned an arity are removed
because we almost never use the ASCII versions of WIN32 functions
therefore it's not worth having them slowing down the build. Some
other functions that overlap uncomfortably with libc are gone too

If something you need was removed, file an issue we'll restore it
This commit is contained in:
Justine Tunney 2022-04-11 23:35:48 -07:00
parent 183b3ed6a2
commit a157940ba6
1379 changed files with 4304 additions and 8337 deletions

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_FreeAddrInfoExW,FreeAddrInfoExW,26
.text.windows
FreeAddrInfoEx:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_FreeAddrInfoExW(%rip)
leave
ret
.endfn FreeAddrInfoEx,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_FreeAddrInfoW,FreeAddrInfoW,27
.text.windows
FreeAddrInfo:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_FreeAddrInfoW(%rip)
leave
ret
.endfn FreeAddrInfo,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetAddrInfoExA,GetAddrInfoExA,28

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetAddrInfoExCancel,GetAddrInfoExCancel,29
.text.windows
GetAddrInfoExCancel:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetAddrInfoExCancel(%rip)
leave
ret
.endfn GetAddrInfoExCancel,globl
.previous

View file

@ -1,2 +1,15 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetAddrInfoExOverlappedResult,GetAddrInfoExOverlappedResult,30
.text.windows
GetAddrInfoExOverlappedResult:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_GetAddrInfoExOverlappedResult(%rip)
leave
ret
.endfn GetAddrInfoExOverlappedResult,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetAddrInfoExW,GetAddrInfoExW,31
.text.windows
GetAddrInfoEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetAddrInfoExW(%rip),%rax
jmp __sysv2nt10
.endfn GetAddrInfoEx,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetAddrInfoW,GetAddrInfoW,32
.text.windows
GetAddrInfo:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetAddrInfoW(%rip),%rax
jmp __sysv2nt
.endfn GetAddrInfo,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetHostNameW,GetHostNameW,33
.text.windows
GetHostName:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetHostNameW(%rip),%rax
jmp __sysv2nt
.endfn GetHostName,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_GetNameInfoW,GetNameInfoW,34
.text.windows
GetNameInfo:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_GetNameInfoW(%rip),%rax
jmp __sysv2nt8
.endfn GetNameInfo,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_InetNtopW,InetNtopW,35

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_InetPtonW,InetPtonW,36

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_SetAddrInfoExA,SetAddrInfoExA,37

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_SetAddrInfoExW,SetAddrInfoExW,38
.text.windows
SetAddrInfoEx:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_SetAddrInfoExW(%rip),%rax
jmp __sysv2nt12
.endfn SetAddrInfoEx,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WEP,WEP,500

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WPUCompleteOverlappedRequest,WPUCompleteOverlappedRequest,39

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WPUGetProviderPathEx,WPUGetProviderPathEx,40

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAddressToStringA,WSAAddressToStringA,42
.text.windows
WSAAddressToStringA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAAddressToStringA(%rip),%rax
jmp __sysv2nt6
.endfn WSAAddressToStringA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAdvertiseProvider,WSAAdvertiseProvider,44

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAsyncGetHostByAddr,WSAAsyncGetHostByAddr,102
.text.windows
WSAAsyncGetHostByAddr:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAAsyncGetHostByAddr(%rip),%rax
jmp __sysv2nt8
.endfn WSAAsyncGetHostByAddr,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAsyncGetHostByName,WSAAsyncGetHostByName,103
.text.windows
WSAAsyncGetHostByName:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAAsyncGetHostByName(%rip),%rax
jmp __sysv2nt6
.endfn WSAAsyncGetHostByName,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAsyncGetProtoByName,WSAAsyncGetProtoByName,105
.text.windows
WSAAsyncGetProtoByName:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAAsyncGetProtoByName(%rip),%rax
jmp __sysv2nt6
.endfn WSAAsyncGetProtoByName,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAAsyncGetProtoByNumber,WSAAsyncGetProtoByNumber,104
.text.windows
WSAAsyncGetProtoByNumber:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAAsyncGetProtoByNumber(%rip),%rax
jmp __sysv2nt6
.endfn WSAAsyncGetProtoByNumber,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAConnectByNameA,WSAConnectByNameA,48
.text.windows
WSAConnectByNameA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAConnectByNameA(%rip),%rax
jmp __sysv2nt10
.endfn WSAConnectByNameA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSADuplicateSocketA,WSADuplicateSocketA,58
.text.windows
WSADuplicateSocketA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSADuplicateSocketA(%rip),%rax
jmp __sysv2nt
.endfn WSADuplicateSocketA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAEnumNameSpaceProvidersA,WSAEnumNameSpaceProvidersA,60

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAEnumNameSpaceProvidersExA,WSAEnumNameSpaceProvidersExA,61
.text.windows
WSAEnumNameSpaceProvidersExA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAEnumNameSpaceProvidersExA(%rip),%rax
jmp __sysv2nt
.endfn WSAEnumNameSpaceProvidersExA,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAEnumNameSpaceProvidersW,WSAEnumNameSpaceProvidersW,63
.text.windows
WSAEnumNameSpaceProviders:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAEnumNameSpaceProvidersW(%rip),%rax
jmp __sysv2nt
.endfn WSAEnumNameSpaceProviders,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAEnumProtocolsA,WSAEnumProtocolsA,65
.text.windows
WSAEnumProtocolsA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAEnumProtocolsA(%rip),%rax
jmp __sysv2nt
.endfn WSAEnumProtocolsA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAGetServiceClassInfoA,WSAGetServiceClassInfoA,70
.text.windows
WSAGetServiceClassInfoA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAGetServiceClassInfoA(%rip),%rax
jmp __sysv2nt
.endfn WSAGetServiceClassInfoA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAGetServiceClassNameByClassIdA,WSAGetServiceClassNameByClassIdA,72
.text.windows
WSAGetServiceClassNameByClassIdA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAGetServiceClassNameByClassIdA(%rip),%rax
jmp __sysv2nt
.endfn WSAGetServiceClassNameByClassIdA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAHtonl,WSAHtonl,74

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAHtons,WSAHtons,75

View file

@ -1,15 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAInstallServiceClassA,WSAInstallServiceClassA,76
.text.windows
WSAInstallServiceClassA:
push %rbp
mov %rsp,%rbp
.profilable
mov %rdi,%rcx
sub $32,%rsp
call *__imp_WSAInstallServiceClassA(%rip)
leave
ret
.endfn WSAInstallServiceClassA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAIsBlocking,WSAIsBlocking,114

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSALookupServiceBeginA,WSALookupServiceBeginA,80
.text.windows
WSALookupServiceBeginA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSALookupServiceBeginA(%rip),%rax
jmp __sysv2nt
.endfn WSALookupServiceBeginA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSALookupServiceNextA,WSALookupServiceNextA,83
.text.windows
WSALookupServiceNextA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSALookupServiceNextA(%rip),%rax
jmp __sysv2nt
.endfn WSALookupServiceNextA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSANtohl,WSANtohl,86

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSANtohs,WSANtohs,87

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSASendDisconnect,WSASendDisconnect,97
.text.windows
WSASendDisconnect:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSASendDisconnect(%rip),%rax
jmp __sysv2nt
.endfn WSASendDisconnect,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSASetServiceA,WSASetServiceA,117
.text.windows
WSASetServiceA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSASetServiceA(%rip),%rax
jmp __sysv2nt
.endfn WSASetServiceA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSASocketA,WSASocketA,119
.text.windows
WSASocketA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSASocketA(%rip),%rax
jmp __sysv2nt6
.endfn WSASocketA,globl
.previous

View file

@ -1,12 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WSAStringToAddressA,WSAStringToAddressA,121
.text.windows
WSAStringToAddressA:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_WSAStringToAddressA(%rip),%rax
jmp __sysv2nt6
.endfn WSAStringToAddressA,globl
.previous

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCloseApcHelper,WahCloseApcHelper,166

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCloseHandleHelper,WahCloseHandleHelper,167

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCloseNotificationHandleHelper,WahCloseNotificationHandleHelper,168

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCloseSocketHandle,WahCloseSocketHandle,169

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCloseThread,WahCloseThread,170

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCompleteRequest,WahCompleteRequest,171

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCreateHandleContextTable,WahCreateHandleContextTable,172

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCreateNotificationHandle,WahCreateNotificationHandle,173

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahCreateSocketHandle,WahCreateSocketHandle,174

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahDestroyHandleContextTable,WahDestroyHandleContextTable,175

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahDisableNonIFSHandleSupport,WahDisableNonIFSHandleSupport,176

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahEnableNonIFSHandleSupport,WahEnableNonIFSHandleSupport,177

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahEnumerateHandleContexts,WahEnumerateHandleContexts,178

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahInsertHandleContext,WahInsertHandleContext,179

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahNotifyAllProcesses,WahNotifyAllProcesses,180

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahOpenApcHelper,WahOpenApcHelper,181

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahOpenCurrentThread,WahOpenCurrentThread,182

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahOpenHandleHelper,WahOpenHandleHelper,183

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahOpenNotificationHandleHelper,WahOpenNotificationHandleHelper,184

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahQueueUserApc,WahQueueUserApc,185

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahReferenceContextByHandle,WahReferenceContextByHandle,186

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahRemoveHandleContext,WahRemoveHandleContext,187

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahWaitForNotification,WahWaitForNotification,188

View file

@ -1,2 +0,0 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_WahWriteLSPEvent,WahWriteLSPEvent,189

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_accept,accept,1
.text.windows
__sys_accept_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_accept(%rip),%rax
jmp __sysv2nt
.endfn __sys_accept_nt,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_recv,recv,16
.text.windows
sys_recv_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_recv(%rip),%rax
jmp __sysv2nt
.endfn sys_recv_nt,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_recvfrom,recvfrom,17
.text.windows
__sys_recvfrom_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_recvfrom(%rip),%rax
jmp __sysv2nt6
.endfn __sys_recvfrom_nt,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_send,send,19
.text.windows
sys_send_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_send(%rip),%rax
jmp __sysv2nt
.endfn sys_send_nt,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_sendto,sendto,20
.text.windows
__sys_sendto_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_sendto(%rip),%rax
jmp __sysv2nt6
.endfn __sys_sendto_nt,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp ws2_32,__imp_socket,socket,23
.text.windows
__sys_socket_nt:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_socket(%rip),%rax
jmp __sysv2nt
.endfn __sys_socket_nt,globl
.previous