mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Make improvements
- Make rand64() thread safe - Introduce lemur64 lcg prng - Improve strace on New Technology - Improve msync() on New Technology
This commit is contained in:
parent
43ba3009b2
commit
29bf8b1a30
73 changed files with 888 additions and 269 deletions
|
@ -2,7 +2,7 @@
|
|||
.imp kernel32,__imp_CloseHandle,CloseHandle,0
|
||||
|
||||
.text.windows
|
||||
CloseHandle:
|
||||
__CloseHandle:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,5 +11,5 @@ CloseHandle:
|
|||
call *__imp_CloseHandle(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn CloseHandle,globl
|
||||
.endfn __CloseHandle,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_CreateNamedPipeW,CreateNamedPipeW,0
|
||||
|
||||
.text.windows
|
||||
CreateNamedPipe:
|
||||
__CreateNamedPipe:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreateNamedPipeW(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
.endfn CreateNamedPipe,globl
|
||||
.endfn __CreateNamedPipe,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_CreatePipe,CreatePipe,0
|
||||
|
||||
.text.windows
|
||||
CreatePipe:
|
||||
__CreatePipe:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CreatePipe(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn CreatePipe,globl
|
||||
.endfn __CreatePipe,globl
|
||||
.previous
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
.imp kernel32,__imp_FlushFileBuffers,FlushFileBuffers,0
|
||||
|
||||
.text.windows
|
||||
FlushFileBuffers:
|
||||
__FlushFileBuffers:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,5 +11,5 @@ FlushFileBuffers:
|
|||
call *__imp_FlushFileBuffers(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn FlushFileBuffers,globl
|
||||
.endfn __FlushFileBuffers,globl
|
||||
.previous
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
.imp kernel32,__imp_FlushViewOfFile,FlushViewOfFile,0
|
||||
|
||||
.text.windows
|
||||
FlushViewOfFile:
|
||||
__FlushViewOfFile:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_FlushViewOfFile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn FlushViewOfFile,globl
|
||||
.endfn __FlushViewOfFile,globl
|
||||
.previous
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
.imp kernel32,__imp_UnmapViewOfFile,UnmapViewOfFile,0
|
||||
|
||||
.text.windows
|
||||
UnmapViewOfFile:
|
||||
__UnmapViewOfFile:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,5 +11,5 @@ UnmapViewOfFile:
|
|||
call *__imp_UnmapViewOfFile(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn UnmapViewOfFile,globl
|
||||
.endfn __UnmapViewOfFile,globl
|
||||
.previous
|
||||
|
|
12
libc/nt/kernel32/UnmapViewOfFile2.s
Normal file
12
libc/nt/kernel32/UnmapViewOfFile2.s
Normal file
|
@ -0,0 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_UnmapViewOfFile2,UnmapViewOfFile2,0
|
||||
|
||||
.text.windows
|
||||
UnmapViewOfFile2:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_UnmapViewOfFile2(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn UnmapViewOfFile2,globl
|
||||
.previous
|
12
libc/nt/kernel32/UnmapViewOfFileEx.s
Normal file
12
libc/nt/kernel32/UnmapViewOfFileEx.s
Normal file
|
@ -0,0 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_UnmapViewOfFileEx,UnmapViewOfFileEx,0
|
||||
|
||||
.text.windows
|
||||
UnmapViewOfFileEx:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_UnmapViewOfFileEx(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn UnmapViewOfFileEx,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue