mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 14:28:30 +00:00
Remove leaf attribute where appropriate
This change fixes a bug where gcc assumed thread synchronization such as pthread_cond_wait() wouldn't alter static variables, because the headers were using __attribute__((__leaf__)) inappropriately.
This commit is contained in:
parent
f24c854b28
commit
fde03f8487
9 changed files with 106 additions and 61 deletions
|
@ -34,10 +34,10 @@ typedef struct {
|
|||
|
||||
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_post(sem_t *) dontthrow;
|
||||
int sem_wait(sem_t *) dontthrow;
|
||||
int sem_trywait(sem_t *) dontthrow;
|
||||
int sem_timedwait(sem_t *, const struct timespec *) dontthrow;
|
||||
int sem_getvalue(sem_t *, int *) libcesque;
|
||||
sem_t *sem_open(const char *, int, ...) libcesque;
|
||||
int sem_close(sem_t *) libcesque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue