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:
Justine Tunney 2022-04-07 00:15:35 -07:00
parent 43ba3009b2
commit 29bf8b1a30
73 changed files with 888 additions and 269 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View 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

View 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