mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Introduce #include <cosmo.h>
to toolchain users
This change improves the way internal APIs are being hidden behind the `COSMO` define. The cosmo.h header will take care of defining that, so that a separate define statement isn't needed. This change also does a lot more to define which APIs are standard, and which belong to Cosmo.
This commit is contained in:
parent
9b55dbe417
commit
4a59210008
115 changed files with 699 additions and 422 deletions
|
@ -415,7 +415,7 @@ _init_systemfive_pid:
|
|||
mov (%rdi),%eax
|
||||
testb $_HOSTWINDOWS|_HOSTMETAL,(%rcx)
|
||||
jnz 1f
|
||||
mov __NR_getpid,%eax
|
||||
mov __NR_getpid(%rip),%eax
|
||||
syscall
|
||||
1: stosq
|
||||
.endfn _init_systemfive_pid
|
||||
|
@ -433,7 +433,7 @@ _init_systemfive_sigsys:
|
|||
push %rax
|
||||
push %rax
|
||||
push $SIG_IGN // sigaction_meta size 48
|
||||
mov __NR_sigaction,%eax // mag
|
||||
mov __NR_sigaction(%rip),%eax // mag
|
||||
mov SIGSYS,%edi // sig
|
||||
mov %rsp,%rsi // new
|
||||
xor %edx,%edx // old
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue