mailing list of musl libc
 help / color / mirror / code / Atom feed
0f9b3a32ef38590c841682031251e480e6f72a2b blob 817 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
#ifndef _SEMAPHORE_H
#define _SEMAPHORE_H
#ifdef __cplusplus
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 {
	volatile int __val[4*sizeof(long)/sizeof(int)];
} sem_t;

int    sem_close(sem_t *);
int    sem_destroy(sem_t *);
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_timedwait(sem_t *__restrict, const struct timespec *__restrict);
int    sem_trywait(sem_t *);
int    sem_unlink(const char *);
int    sem_wait(sem_t *);

#if _REDIR_TIME64
int sem_timedwait() __asm__("__sem_timedwait_time64");
#endif

#ifdef __cplusplus
}
#endif
#endif
debug log:

solving 0f9b3a32 ...
found 0f9b3a32 in https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/
found 277c47d6 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 277c47d6f7425b9a8dc5578b3850c5b7c4847a9f	include/semaphore.h

applying [1/1] https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/
diff --git a/include/semaphore.h b/include/semaphore.h
index 277c47d6..0f9b3a32 100644

Checking patch include/semaphore.h...
Applied patch include/semaphore.h cleanly.

index at:
100644 0f9b3a32ef38590c841682031251e480e6f72a2b	include/semaphore.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).