mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 19:28:29 +00:00
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:
parent
183b3ed6a2
commit
a157940ba6
1379 changed files with 4304 additions and 8337 deletions
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_AddAtomA,AddAtomA,5
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_AddLocalAlternateComputerNameA,AddLocalAlternateComputerNameA,11
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_BeginUpdateResourceA,BeginUpdateResourceA,103
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_CheckNameLegalDOS8Dot3A,CheckNameLegalDOS8Dot3A,127
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_CommConfigDialogA,CommConfigDialogA,148
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_CompareStringA,CompareStringA,0
|
2
libc/nt/kernel32/EnumSystemGeoNames.s
Normal file
2
libc/nt/kernel32/EnumSystemGeoNames.s
Normal file
|
@ -0,0 +1,2 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_EnumSystemGeoNames,EnumSystemGeoNames,318
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_GenerateConsoleCtrlEvent,GenerateConsoleCtrlEvent,0
|
||||
|
||||
.text.windows
|
||||
GenerateConsoleCtrlEvent:
|
||||
__GenerateConsoleCtrlEvent:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GenerateConsoleCtrlEvent(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn GenerateConsoleCtrlEvent,globl
|
||||
.endfn __GenerateConsoleCtrlEvent,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFirmwareEnvironmentVariableA,GetFirmwareEnvironmentVariableA,597
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFirmwareEnvironmentVariableExA,GetFirmwareEnvironmentVariableExA,598
|
|
@ -1,12 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFullPathNameA,GetFullPathNameA,0
|
||||
|
||||
.text.windows
|
||||
GetFullPathNameA:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetFullPathNameA(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn GetFullPathNameA,globl
|
||||
.previous
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetFullPathNameTransactedA,GetFullPathNameTransactedA,603
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetGeoInfoA,GetGeoInfoA,606
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_OpenProcess,OpenProcess,0
|
||||
|
||||
.text.windows
|
||||
OpenProcess:
|
||||
__OpenProcess:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_OpenProcess(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn OpenProcess,globl
|
||||
.endfn __OpenProcess,globl
|
||||
.previous
|
||||
|
|
|
@ -1,15 +1,2 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_SetDefaultDllDirectories,SetDefaultDllDirectories,0
|
||||
|
||||
.text.windows
|
||||
SetDefaultDllDirectories:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_SetDefaultDllDirectories(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn SetDefaultDllDirectories,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_TerminateProcess,TerminateProcess,0
|
||||
|
||||
.text.windows
|
||||
TerminateProcess:
|
||||
__TerminateProcess:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_TerminateProcess(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn TerminateProcess,globl
|
||||
.endfn __TerminateProcess,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__hread,_hread,1582
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__hwrite,_hwrite,1583
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__lclose,_lclose,1584
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__lcreat,_lcreat,1585
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__llseek,_llseek,1586
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__lopen,_lopen,1588
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__lread,_lread,1589
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp__lwrite,_lwrite,1590
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_timeBeginPeriod,timeBeginPeriod,1609
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_timeEndPeriod,timeEndPeriod,1610
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_timeGetDevCaps,timeGetDevCaps,1611
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_timeGetSystemTime,timeGetSystemTime,1612
|
|
@ -1,2 +0,0 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_timeGetTime,timeGetTime,1613
|
Loading…
Add table
Add a link
Reference in a new issue