mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Make improvements
- Expand redbean UNIX module - Expand redbean documentation - Ensure Lua copyright is embedded in binary - Increase the PATH_MAX limit especially on NT - Use column major sorting for linenoise completions - Fix some suboptimalities in redbean's new UNIX API - Figured out right flags for Multics newline in raw mode
This commit is contained in:
parent
cf3174dc74
commit
2046c0d2ae
305 changed files with 6602 additions and 4221 deletions
|
@ -164,7 +164,7 @@
|
|||
#define kNtErrorInfloopInRelocChain 202
|
||||
#define kNtErrorEnvvarNotFound 203
|
||||
#define kNtErrorNoSignalSent 205
|
||||
#define kNtErrorFilenameExcedRange 206
|
||||
#define kNtErrorFilenameExcedRange 206 /* ENAMETOOLONG */
|
||||
#define kNtErrorRing2StackInUse 207
|
||||
#define kNtErrorMetaExpansionTooLong 208
|
||||
#define kNtErrorInvalidSignalNumber 209
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_GetExitCodeProcess,GetExitCodeProcess,0
|
||||
|
||||
.text.windows
|
||||
GetExitCodeProcess:
|
||||
__GetExitCodeProcess:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_GetExitCodeProcess(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn GetExitCodeProcess,globl
|
||||
.endfn __GetExitCodeProcess,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_WaitForMultipleObjects,WaitForMultipleObjects,0
|
||||
|
||||
.text.windows
|
||||
WaitForMultipleObjects:
|
||||
__WaitForMultipleObjects:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_WaitForMultipleObjects(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn WaitForMultipleObjects,globl
|
||||
.endfn __WaitForMultipleObjects,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_WaitForSingleObject,WaitForSingleObject,0
|
||||
|
||||
.text.windows
|
||||
WaitForSingleObject:
|
||||
__WaitForSingleObject:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_WaitForSingleObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn WaitForSingleObject,globl
|
||||
.endfn __WaitForSingleObject,globl
|
||||
.previous
|
||||
|
|
|
@ -500,7 +500,6 @@ imp 'GetEnvironmentStringsA' GetEnvironmentStringsA kernel32 0 1
|
|||
imp 'GetEnvironmentVariable' GetEnvironmentVariableW kernel32 0 3
|
||||
imp 'GetEnvironmentVariableA' GetEnvironmentVariableA kernel32 0 3
|
||||
imp 'GetErrorMode' GetErrorMode kernel32 0
|
||||
imp 'GetExitCodeProcess' GetExitCodeProcess kernel32 0 2
|
||||
imp 'GetExitCodeThread' GetExitCodeThread kernel32 0 2
|
||||
imp 'GetExpandedName' GetExpandedNameW kernel32 579
|
||||
imp 'GetExpandedNameA' GetExpandedNameA kernel32 578
|
||||
|
@ -1275,9 +1274,7 @@ imp 'VirtualUnlock' VirtualUnlock kernel32 0
|
|||
imp 'WTSGetActiveConsoleSessionId' WTSGetActiveConsoleSessionId kernel32 1497
|
||||
imp 'WaitCommEvent' WaitCommEvent kernel32 0
|
||||
imp 'WaitForDebugEvent' WaitForDebugEvent kernel32 0
|
||||
imp 'WaitForMultipleObjects' WaitForMultipleObjects kernel32 0 4
|
||||
imp 'WaitForMultipleObjectsEx' WaitForMultipleObjectsEx kernel32 0 5
|
||||
imp 'WaitForSingleObject' WaitForSingleObject kernel32 0 2
|
||||
imp 'WaitForSingleObjectEx' WaitForSingleObjectEx kernel32 0 3
|
||||
imp 'WaitNamedPipe' WaitNamedPipeW kernel32 0
|
||||
imp 'WaitNamedPipeA' WaitNamedPipeA kernel32 1509 2
|
||||
|
@ -1357,6 +1354,7 @@ imp '__FindNextFile' FindNextFileW kernel32 0 2
|
|||
imp '__FlushFileBuffers' FlushFileBuffers kernel32 0 1
|
||||
imp '__FlushViewOfFile' FlushViewOfFile kernel32 0 2
|
||||
imp '__GenerateConsoleCtrlEvent' GenerateConsoleCtrlEvent kernel32 0 2
|
||||
imp '__GetExitCodeProcess' GetExitCodeProcess kernel32 0 2
|
||||
imp '__GetFileAttributes' GetFileAttributesW kernel32 0 1
|
||||
imp '__MapViewOfFileEx' MapViewOfFileEx kernel32 0 6
|
||||
imp '__MapViewOfFileExNuma' MapViewOfFileExNuma kernel32 0 7
|
||||
|
@ -1372,6 +1370,8 @@ imp '__TlsGetValue' TlsGetValue kernel32 0 1
|
|||
imp '__TlsSetValue' TlsSetValue kernel32 0 2
|
||||
imp '__UnmapViewOfFile' UnmapViewOfFile kernel32 0 1
|
||||
imp '__VirtualProtect' VirtualProtect kernel32 0 4
|
||||
imp '__WaitForMultipleObjects' WaitForMultipleObjects kernel32 0 4
|
||||
imp '__WaitForSingleObject' WaitForSingleObject kernel32 0 2
|
||||
|
||||
# ADVAPI32.DLL
|
||||
#
|
||||
|
|
|
@ -6,6 +6,3 @@ extern typeof(GetThreadTimes) *const __imp_GetThreadTimes __msabi;
|
|||
|
||||
#define GetUserName(...) __imp_GetUserNameW(__VA_ARGS__)
|
||||
extern typeof(GetUserName) *const __imp_GetUserNameW __msabi;
|
||||
|
||||
#define GetExitCodeProcess(...) __imp_GetExitCodeProcess(__VA_ARGS__)
|
||||
extern typeof(GetExitCodeProcess) *const __imp_GetExitCodeProcess __msabi;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue