mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Add script.com and whois.com courtesy of FreeBSD
This commit is contained in:
parent
654ceaba7d
commit
1ad2f530f9
33 changed files with 1735 additions and 265 deletions
|
@ -55,17 +55,16 @@ enum PosixThreadStatus {
|
|||
};
|
||||
|
||||
struct PosixThread {
|
||||
void *(*start_routine)(void *);
|
||||
void *arg; // start_routine's parameter
|
||||
void *rc; // start_routine's return value
|
||||
bool ownstack;
|
||||
int tid;
|
||||
int *ctid;
|
||||
char *tls;
|
||||
char *altstack;
|
||||
struct CosmoTib *tib;
|
||||
_Atomic(enum PosixThreadStatus) status;
|
||||
jmp_buf exiter;
|
||||
void *(*start_routine)(void *);
|
||||
void *arg; // start_routine's parameter
|
||||
void *rc; // start_routine's return value
|
||||
bool ownstack; // should we free it
|
||||
int tid; // clone parent tid
|
||||
char *altstack; // thread sigaltstack
|
||||
char *tls; // bottom of tls allocation
|
||||
struct CosmoTib *tib; // middle of tls allocation
|
||||
jmp_buf exiter; // for pthread_exit
|
||||
pthread_attr_t attr;
|
||||
};
|
||||
|
||||
|
@ -82,7 +81,7 @@ void _pthread_wait(struct PosixThread *) hidden;
|
|||
void _pthread_zombies_add(struct PosixThread *) hidden;
|
||||
void _pthread_zombies_decimate(void) hidden;
|
||||
void _pthread_zombies_harvest(void) hidden;
|
||||
void _pthread_key_destruct(void *[PTHREAD_KEYS_MAX]);
|
||||
void _pthread_key_destruct(void *[PTHREAD_KEYS_MAX]) hidden;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue