mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-14 06:59:10 +00:00
Implement syslog (#136)
This commit is contained in:
parent
83abd68029
commit
6682013d12
50 changed files with 535 additions and 89 deletions
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_DeregisterEventSource,DeregisterEventSource,1239
|
||||
|
||||
.text.windows
|
||||
DeregisterEventSource:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_DeregisterEventSource(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn DeregisterEventSource,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_RegisterEventSourceA,RegisterEventSourceA,1686
|
||||
|
||||
.text.windows
|
||||
RegisterEventSourceA:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RegisterEventSourceA(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn RegisterEventSourceA,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_RegisterEventSourceW,RegisterEventSourceW,1687
|
||||
|
||||
.text.windows
|
||||
RegisterEventSource:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RegisterEventSourceW(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
.endfn RegisterEventSource,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_ReportEventA,ReportEventA,1704
|
||||
|
||||
.text.windows
|
||||
ReportEventA:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_ReportEventA(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
.endfn ReportEventA,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,12 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_ReportEventW,ReportEventW,1705
|
||||
|
||||
.text.windows
|
||||
ReportEvent:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_ReportEventW(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
.endfn ReportEvent,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue