mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-21 01:50:30 +00:00
Add more fixes for new cosmocc toolchain
We now have an `#include <cxxabi.h>` header which defines all the APIs Cosmopolitan's implemented so far. The `cosmocc` README.md file is now greatly expanded with documentation.
This commit is contained in:
parent
95124cacbe
commit
c6d3802d3a
32 changed files with 256 additions and 69 deletions
|
@ -62,7 +62,7 @@ struct Syslib {
|
|||
/* v2 (2023-09-10) */
|
||||
pthread_t (*pthread_self)(void);
|
||||
void (*dispatch_release)(dispatch_semaphore_t);
|
||||
int (*raise)(int);
|
||||
long (*raise)(int);
|
||||
int (*pthread_join)(pthread_t, void **);
|
||||
void (*pthread_yield_np)(void);
|
||||
int pthread_stack_min;
|
||||
|
@ -441,6 +441,10 @@ static long sys_close(int fd) {
|
|||
return sysret(close(fd));
|
||||
}
|
||||
|
||||
static long sys_raise(int sig) {
|
||||
return sysret(raise(sig));
|
||||
}
|
||||
|
||||
static long sys_pipe(int pfds[2]) {
|
||||
return sysret(pipe(pfds));
|
||||
}
|
||||
|
@ -888,7 +892,7 @@ int main(int argc, char **argv, char **envp) {
|
|||
M->lib.dispatch_walltime = dispatch_walltime;
|
||||
M->lib.pthread_self = pthread_self;
|
||||
M->lib.dispatch_release = dispatch_release;
|
||||
M->lib.raise = raise;
|
||||
M->lib.raise = sys_raise;
|
||||
M->lib.pthread_join = pthread_join;
|
||||
M->lib.pthread_yield_np = pthread_yield_np;
|
||||
M->lib.pthread_stack_min = PTHREAD_STACK_MIN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue