mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Add dontthrow
attribute to most libc functions
This will help C++ code that uses exceptions to be tinier. For example, this change shaves away 1000 lines of assembly code from LLVM's libcxx, which is 0.7% of all assembly instructions in the entire library.
This commit is contained in:
parent
cb19e172da
commit
eeb20775d2
103 changed files with 1455 additions and 1456 deletions
|
@ -97,24 +97,24 @@ extern struct Dll *_pthread_list;
|
|||
extern struct PosixThread _pthread_static;
|
||||
extern _Atomic(pthread_key_dtor) _pthread_key_dtor[PTHREAD_KEYS_MAX];
|
||||
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f);
|
||||
int _pthread_reschedule(struct PosixThread *);
|
||||
int _pthread_atfork(atfork_f, atfork_f, atfork_f) libcesque;
|
||||
int _pthread_reschedule(struct PosixThread *) libcesque;
|
||||
int _pthread_setschedparam_freebsd(int, int, const struct sched_param *);
|
||||
int _pthread_tid(struct PosixThread *);
|
||||
intptr_t _pthread_syshand(struct PosixThread *);
|
||||
long _pthread_cancel_ack(void);
|
||||
void _pthread_decimate(void);
|
||||
void _pthread_free(struct PosixThread *, bool);
|
||||
void _pthread_lock(void);
|
||||
void _pthread_onfork_child(void);
|
||||
void _pthread_onfork_parent(void);
|
||||
void _pthread_onfork_prepare(void);
|
||||
void _pthread_ungarbage(void);
|
||||
void _pthread_unkey(struct CosmoTib *);
|
||||
void _pthread_unlock(void);
|
||||
void _pthread_unref(struct PosixThread *);
|
||||
void _pthread_unwind(struct PosixThread *);
|
||||
void _pthread_zombify(struct PosixThread *);
|
||||
int _pthread_tid(struct PosixThread *) libcesque;
|
||||
intptr_t _pthread_syshand(struct PosixThread *) libcesque;
|
||||
long _pthread_cancel_ack(void) libcesque;
|
||||
void _pthread_decimate(void) libcesque;
|
||||
void _pthread_free(struct PosixThread *, bool) libcesque;
|
||||
void _pthread_lock(void) libcesque;
|
||||
void _pthread_onfork_child(void) libcesque;
|
||||
void _pthread_onfork_parent(void) libcesque;
|
||||
void _pthread_onfork_prepare(void) libcesque;
|
||||
void _pthread_ungarbage(void) libcesque;
|
||||
void _pthread_unkey(struct CosmoTib *) libcesque;
|
||||
void _pthread_unlock(void) libcesque;
|
||||
void _pthread_unref(struct PosixThread *) libcesque;
|
||||
void _pthread_unwind(struct PosixThread *) libcesque;
|
||||
void _pthread_zombify(struct PosixThread *) libcesque;
|
||||
|
||||
forceinline pureconst struct PosixThread *_pthread_self(void) {
|
||||
return (struct PosixThread *)__get_tls()->tib_pthread;
|
||||
|
|
|
@ -26,16 +26,16 @@ typedef struct {
|
|||
};
|
||||
} sem_t;
|
||||
|
||||
int sem_init(sem_t *, int, unsigned);
|
||||
int sem_destroy(sem_t *);
|
||||
int sem_post(sem_t *);
|
||||
int sem_wait(sem_t *);
|
||||
int sem_trywait(sem_t *);
|
||||
int sem_timedwait(sem_t *, const struct timespec *);
|
||||
int sem_getvalue(sem_t *, int *);
|
||||
sem_t *sem_open(const char *, int, ...);
|
||||
int sem_close(sem_t *);
|
||||
int sem_unlink(const char *);
|
||||
int sem_init(sem_t *, int, unsigned) libcesque;
|
||||
int sem_destroy(sem_t *) libcesque;
|
||||
int sem_post(sem_t *) libcesque;
|
||||
int sem_wait(sem_t *) libcesque;
|
||||
int sem_trywait(sem_t *) libcesque;
|
||||
int sem_timedwait(sem_t *, const struct timespec *) libcesque;
|
||||
int sem_getvalue(sem_t *, int *) libcesque;
|
||||
sem_t *sem_open(const char *, int, ...) libcesque;
|
||||
int sem_close(sem_t *) libcesque;
|
||||
int sem_unlink(const char *) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_CALLS_SEMAPHORE_H_ */
|
||||
|
|
|
@ -112,97 +112,97 @@ struct _pthread_cleanup_buffer {
|
|||
|
||||
/* clang-format off */
|
||||
|
||||
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
|
||||
int pthread_attr_destroy(pthread_attr_t *) paramsnonnull();
|
||||
int pthread_attr_getdetachstate(const pthread_attr_t *, int *) paramsnonnull();
|
||||
int pthread_attr_getguardsize(const pthread_attr_t *, size_t *) paramsnonnull();
|
||||
int pthread_attr_getinheritsched(const pthread_attr_t *, int *) paramsnonnull();
|
||||
int pthread_attr_getschedpolicy(const pthread_attr_t *, int *) paramsnonnull();
|
||||
int pthread_attr_getscope(const pthread_attr_t *, int *) paramsnonnull();
|
||||
int pthread_attr_getstack(const pthread_attr_t *, void **, size_t *) paramsnonnull();
|
||||
int pthread_attr_getstacksize(const pthread_attr_t *, size_t *) paramsnonnull();
|
||||
int pthread_attr_init(pthread_attr_t *) paramsnonnull();
|
||||
int pthread_attr_setdetachstate(pthread_attr_t *, int) paramsnonnull();
|
||||
int pthread_attr_setguardsize(pthread_attr_t *, size_t) paramsnonnull();
|
||||
int pthread_attr_setinheritsched(pthread_attr_t *, int) paramsnonnull();
|
||||
int pthread_attr_setschedpolicy(pthread_attr_t *, int) paramsnonnull();
|
||||
int pthread_attr_setscope(pthread_attr_t *, int) paramsnonnull();
|
||||
int pthread_attr_setstack(pthread_attr_t *, void *, size_t) paramsnonnull((1));
|
||||
int pthread_attr_setstacksize(pthread_attr_t *, size_t) paramsnonnull();
|
||||
int pthread_barrier_destroy(pthread_barrier_t *) paramsnonnull();
|
||||
int pthread_barrier_init(pthread_barrier_t *, const pthread_barrierattr_t *, unsigned) paramsnonnull((1));
|
||||
int pthread_barrier_wait(pthread_barrier_t *) paramsnonnull();
|
||||
int pthread_barrierattr_destroy(pthread_barrierattr_t *) paramsnonnull();
|
||||
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *, int *) paramsnonnull();
|
||||
int pthread_barrierattr_init(pthread_barrierattr_t *) paramsnonnull();
|
||||
int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int) paramsnonnull();
|
||||
int pthread_cancel(pthread_t);
|
||||
int pthread_cond_broadcast(pthread_cond_t *) paramsnonnull();
|
||||
int pthread_cond_destroy(pthread_cond_t *) paramsnonnull();
|
||||
int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *) paramsnonnull((1));
|
||||
int pthread_cond_signal(pthread_cond_t *) paramsnonnull();
|
||||
int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_condattr_destroy(pthread_condattr_t *) paramsnonnull();
|
||||
int pthread_condattr_getpshared(const pthread_condattr_t *, int *) paramsnonnull();
|
||||
int pthread_condattr_init(pthread_condattr_t *) paramsnonnull();
|
||||
int pthread_condattr_setpshared(pthread_condattr_t *, int) paramsnonnull();
|
||||
int pthread_create(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *) paramsnonnull((1));
|
||||
int pthread_detach(pthread_t);
|
||||
int pthread_equal(pthread_t, pthread_t);
|
||||
int pthread_getattr_np(pthread_t, pthread_attr_t *) paramsnonnull();
|
||||
int pthread_getname_np(pthread_t, char *, size_t) paramsnonnull();
|
||||
int pthread_getunique_np(pthread_t, pthread_id_np_t *) paramsnonnull();
|
||||
int pthread_join(pthread_t, void **);
|
||||
int pthread_key_create(pthread_key_t *, pthread_key_dtor) paramsnonnull((1));
|
||||
int pthread_key_delete(pthread_key_t);
|
||||
int pthread_kill(pthread_t, int);
|
||||
int pthread_mutex_consistent(pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_mutex_destroy(pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *) paramsnonnull((1));
|
||||
int pthread_mutex_lock(pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_mutex_trylock(pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_mutex_unlock(pthread_mutex_t *) paramsnonnull();
|
||||
int pthread_mutexattr_destroy(pthread_mutexattr_t *) paramsnonnull();
|
||||
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *, int *) paramsnonnull();
|
||||
int pthread_mutexattr_gettype(const pthread_mutexattr_t *, int *) paramsnonnull();
|
||||
int pthread_mutexattr_init(pthread_mutexattr_t *) paramsnonnull();
|
||||
int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int) paramsnonnull();
|
||||
int pthread_mutexattr_settype(pthread_mutexattr_t *, int) paramsnonnull();
|
||||
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void)) dontthrow;
|
||||
int pthread_attr_destroy(pthread_attr_t *) libcesque paramsnonnull();
|
||||
int pthread_attr_getdetachstate(const pthread_attr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_attr_getguardsize(const pthread_attr_t *, size_t *) libcesque paramsnonnull();
|
||||
int pthread_attr_getinheritsched(const pthread_attr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_attr_getschedpolicy(const pthread_attr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_attr_getscope(const pthread_attr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_attr_getstack(const pthread_attr_t *, void **, size_t *) libcesque paramsnonnull();
|
||||
int pthread_attr_getstacksize(const pthread_attr_t *, size_t *) libcesque paramsnonnull();
|
||||
int pthread_attr_init(pthread_attr_t *) libcesque paramsnonnull();
|
||||
int pthread_attr_setdetachstate(pthread_attr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_attr_setguardsize(pthread_attr_t *, size_t) libcesque paramsnonnull();
|
||||
int pthread_attr_setinheritsched(pthread_attr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_attr_setschedpolicy(pthread_attr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_attr_setscope(pthread_attr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_attr_setstack(pthread_attr_t *, void *, size_t) libcesque paramsnonnull((1));
|
||||
int pthread_attr_setstacksize(pthread_attr_t *, size_t) libcesque paramsnonnull();
|
||||
int pthread_barrier_destroy(pthread_barrier_t *) libcesque paramsnonnull();
|
||||
int pthread_barrier_init(pthread_barrier_t *, const pthread_barrierattr_t *, unsigned) libcesque paramsnonnull((1));
|
||||
int pthread_barrier_wait(pthread_barrier_t *) libcesque paramsnonnull();
|
||||
int pthread_barrierattr_destroy(pthread_barrierattr_t *) libcesque paramsnonnull();
|
||||
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_barrierattr_init(pthread_barrierattr_t *) libcesque paramsnonnull();
|
||||
int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_cancel(pthread_t) libcesque;
|
||||
int pthread_cond_broadcast(pthread_cond_t *) libcesque paramsnonnull();
|
||||
int pthread_cond_destroy(pthread_cond_t *) libcesque paramsnonnull();
|
||||
int pthread_cond_init(pthread_cond_t *, const pthread_condattr_t *) libcesque paramsnonnull((1));
|
||||
int pthread_cond_signal(pthread_cond_t *) libcesque paramsnonnull();
|
||||
int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_condattr_destroy(pthread_condattr_t *) libcesque paramsnonnull();
|
||||
int pthread_condattr_getpshared(const pthread_condattr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_condattr_init(pthread_condattr_t *) libcesque paramsnonnull();
|
||||
int pthread_condattr_setpshared(pthread_condattr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_create(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *) dontthrow paramsnonnull((1));
|
||||
int pthread_detach(pthread_t) libcesque;
|
||||
int pthread_equal(pthread_t, pthread_t) libcesque;
|
||||
int pthread_getattr_np(pthread_t, pthread_attr_t *) libcesque paramsnonnull();
|
||||
int pthread_getname_np(pthread_t, char *, size_t) libcesque paramsnonnull();
|
||||
int pthread_getunique_np(pthread_t, pthread_id_np_t *) libcesque paramsnonnull();
|
||||
int pthread_join(pthread_t, void **) libcesque;
|
||||
int pthread_key_create(pthread_key_t *, pthread_key_dtor) libcesque paramsnonnull((1));
|
||||
int pthread_key_delete(pthread_key_t) libcesque;
|
||||
int pthread_kill(pthread_t, int) libcesque;
|
||||
int pthread_mutex_consistent(pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_mutex_destroy(pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *) libcesque paramsnonnull((1));
|
||||
int pthread_mutex_lock(pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_mutex_trylock(pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_mutex_unlock(pthread_mutex_t *) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_destroy(pthread_mutexattr_t *) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_gettype(const pthread_mutexattr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_init(pthread_mutexattr_t *) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_mutexattr_settype(pthread_mutexattr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_once(pthread_once_t *, void (*)(void)) paramsnonnull();
|
||||
int pthread_orphan_np(void);
|
||||
int pthread_rwlock_destroy(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlock_init(pthread_rwlock_t *, const pthread_rwlockattr_t *) paramsnonnull((1));
|
||||
int pthread_rwlock_rdlock(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlock_tryrdlock(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlock_trywrlock(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlock_unlock(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlock_wrlock(pthread_rwlock_t *) paramsnonnull();
|
||||
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *) paramsnonnull();
|
||||
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *, int *) paramsnonnull();
|
||||
int pthread_rwlockattr_init(pthread_rwlockattr_t *) paramsnonnull();
|
||||
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int) paramsnonnull();
|
||||
int pthread_setcancelstate(int, int *);
|
||||
int pthread_setcanceltype(int, int *);
|
||||
int pthread_setname_np(pthread_t, const char *) paramsnonnull();
|
||||
int pthread_setschedprio(pthread_t, int);
|
||||
int pthread_setspecific(pthread_key_t, const void *);
|
||||
int pthread_spin_destroy(pthread_spinlock_t *) paramsnonnull();
|
||||
int pthread_spin_init(pthread_spinlock_t *, int) paramsnonnull();
|
||||
int pthread_spin_lock(pthread_spinlock_t *) paramsnonnull();
|
||||
int pthread_spin_trylock(pthread_spinlock_t *) paramsnonnull();
|
||||
int pthread_spin_unlock(pthread_spinlock_t *) paramsnonnull();
|
||||
int pthread_testcancel_np(void);
|
||||
int pthread_tryjoin_np(pthread_t, void **);
|
||||
int pthread_yield_np(void);
|
||||
int pthread_yield(void);
|
||||
pthread_id_np_t pthread_getthreadid_np(void);
|
||||
pthread_t pthread_self(void) pureconst;
|
||||
void *pthread_getspecific(pthread_key_t);
|
||||
void pthread_cleanup_pop(struct _pthread_cleanup_buffer *, int) paramsnonnull();
|
||||
void pthread_cleanup_push(struct _pthread_cleanup_buffer *, void (*)(void *), void *) paramsnonnull((1));
|
||||
void pthread_exit(void *) wontreturn;
|
||||
void pthread_testcancel(void);
|
||||
void pthread_pause_np(void);
|
||||
int pthread_orphan_np(void) libcesque;
|
||||
int pthread_rwlock_destroy(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlock_init(pthread_rwlock_t *, const pthread_rwlockattr_t *) libcesque paramsnonnull((1));
|
||||
int pthread_rwlock_rdlock(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlock_tryrdlock(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlock_trywrlock(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlock_unlock(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlock_wrlock(pthread_rwlock_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlockattr_destroy(pthread_rwlockattr_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *, int *) libcesque paramsnonnull();
|
||||
int pthread_rwlockattr_init(pthread_rwlockattr_t *) libcesque paramsnonnull();
|
||||
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *, int) libcesque paramsnonnull();
|
||||
int pthread_setcancelstate(int, int *) libcesque;
|
||||
int pthread_setcanceltype(int, int *) libcesque;
|
||||
int pthread_setname_np(pthread_t, const char *) libcesque paramsnonnull();
|
||||
int pthread_setschedprio(pthread_t, int) libcesque;
|
||||
int pthread_setspecific(pthread_key_t, const void *) libcesque;
|
||||
int pthread_spin_destroy(pthread_spinlock_t *) libcesque paramsnonnull();
|
||||
int pthread_spin_init(pthread_spinlock_t *, int) libcesque paramsnonnull();
|
||||
int pthread_spin_lock(pthread_spinlock_t *) libcesque paramsnonnull();
|
||||
int pthread_spin_trylock(pthread_spinlock_t *) libcesque paramsnonnull();
|
||||
int pthread_spin_unlock(pthread_spinlock_t *) libcesque paramsnonnull();
|
||||
int pthread_testcancel_np(void) libcesque;
|
||||
int pthread_tryjoin_np(pthread_t, void **) libcesque;
|
||||
int pthread_yield_np(void) libcesque;
|
||||
int pthread_yield(void) libcesque;
|
||||
pthread_id_np_t pthread_getthreadid_np(void) libcesque;
|
||||
pthread_t pthread_self(void) libcesque pureconst;
|
||||
void *pthread_getspecific(pthread_key_t) libcesque;
|
||||
void pthread_cleanup_pop(struct _pthread_cleanup_buffer *, int) libcesque paramsnonnull();
|
||||
void pthread_cleanup_push(struct _pthread_cleanup_buffer *, void (*)(void *), void *) libcesque paramsnonnull((1));
|
||||
void pthread_exit(void *) libcesque wontreturn;
|
||||
void pthread_testcancel(void) libcesque;
|
||||
void pthread_pause_np(void) libcesque;
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
COSMOPOLITAN_C_START_
|
||||
/* clang-format off */
|
||||
|
||||
int pthread_attr_getschedparam(const pthread_attr_t *, struct sched_param *) paramsnonnull();
|
||||
int pthread_attr_getsigmask_np(const pthread_attr_t *, sigset_t *) paramsnonnull((1));
|
||||
int pthread_attr_setschedparam(pthread_attr_t *, const struct sched_param *) paramsnonnull();
|
||||
int pthread_attr_setsigmask_np(pthread_attr_t *, const sigset_t *) paramsnonnull((1));
|
||||
int pthread_cond_timedwait(pthread_cond_t *, pthread_mutex_t *, const struct timespec *) paramsnonnull((1, 2));
|
||||
int pthread_getaffinity_np(pthread_t, size_t, cpu_set_t *) paramsnonnull();
|
||||
int pthread_getschedparam(pthread_t, int *, struct sched_param *) paramsnonnull();
|
||||
int pthread_setaffinity_np(pthread_t, size_t, const cpu_set_t *) paramsnonnull();
|
||||
int pthread_setschedparam(pthread_t, int, const struct sched_param *) paramsnonnull();
|
||||
int pthread_timedjoin_np(pthread_t, void **, struct timespec *);
|
||||
int pthread_attr_getschedparam(const pthread_attr_t *, struct sched_param *) libcesque paramsnonnull();
|
||||
int pthread_attr_getsigmask_np(const pthread_attr_t *, sigset_t *) libcesque paramsnonnull((1));
|
||||
int pthread_attr_setschedparam(pthread_attr_t *, const struct sched_param *) libcesque paramsnonnull();
|
||||
int pthread_attr_setsigmask_np(pthread_attr_t *, const sigset_t *) libcesque paramsnonnull((1));
|
||||
int pthread_cond_timedwait(pthread_cond_t *, pthread_mutex_t *, const struct timespec *) libcesque paramsnonnull((1, 2));
|
||||
int pthread_getaffinity_np(pthread_t, size_t, cpu_set_t *) libcesque paramsnonnull();
|
||||
int pthread_getschedparam(pthread_t, int *, struct sched_param *) libcesque paramsnonnull();
|
||||
int pthread_setaffinity_np(pthread_t, size_t, const cpu_set_t *) libcesque paramsnonnull();
|
||||
int pthread_setschedparam(pthread_t, int, const struct sched_param *) libcesque paramsnonnull();
|
||||
int pthread_timedjoin_np(pthread_t, void **, struct timespec *) libcesque;
|
||||
|
||||
/* clang-format off */
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
|
@ -45,8 +45,8 @@ extern int __threaded;
|
|||
extern char __tls_morphed;
|
||||
extern unsigned __tls_index;
|
||||
|
||||
char *_mktls(struct CosmoTib **);
|
||||
void __bootstrap_tls(struct CosmoTib *, char *);
|
||||
char *_mktls(struct CosmoTib **) libcesque;
|
||||
void __bootstrap_tls(struct CosmoTib *, char *) libcesque;
|
||||
|
||||
#ifdef __x86_64__
|
||||
extern char __tls_enabled;
|
||||
|
@ -58,7 +58,7 @@ extern char __tls_enabled;
|
|||
#error "unsupported architecture"
|
||||
#endif
|
||||
|
||||
void __set_tls(struct CosmoTib *);
|
||||
void __set_tls(struct CosmoTib *) libcesque;
|
||||
|
||||
/**
|
||||
* Returns location of thread information block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue