projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add CLOCK_TAI (and CLOCK_SGI_CYCLE) clock ids to time.h
[musl]
/
include
/
semaphore.h
diff --git
a/include/semaphore.h
b/include/semaphore.h
index
5b68986
..
20d46f0
100644
(file)
--- a/
include/semaphore.h
+++ b/
include/semaphore.h
@@
-4,19
+4,27
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
+#define __NEED_time_t
+#define __NEED_struct_timespec
+#include <bits/alltypes.h>
+
+#include <fcntl.h>
+
#define SEM_FAILED ((sem_t *)0)
typedef struct {
#define SEM_FAILED ((sem_t *)0)
typedef struct {
-
long __val[4
];
+
int __val[4*sizeof(long)/sizeof(int)
];
} sem_t;
int sem_close(sem_t *);
int sem_destroy(sem_t *);
} sem_t;
int sem_close(sem_t *);
int sem_destroy(sem_t *);
-int sem_getvalue(sem_t *
, int *
);
+int sem_getvalue(sem_t *
__restrict, int *__restrict
);
int sem_init(sem_t *, int, unsigned);
sem_t *sem_open(const char *, int, ...);
int sem_post(sem_t *);
int sem_init(sem_t *, int, unsigned);
sem_t *sem_open(const char *, int, ...);
int sem_post(sem_t *);
-int sem_timedwait(sem_t *
, const struct timespec *
);
+int sem_timedwait(sem_t *
__restrict, const struct timespec *__restrict
);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);