mailing list of musl libc
 help / color / mirror / code / Atom feed
c85915b002a380ded151a643f541fc3bdf8f4a31 blob 522 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
 
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include "pthread_impl.h"
#include "lock.h"

int pthread_sigqueue(pthread_t t, int sig, const union sigval value)
{
	siginfo_t si;
	sigset_t set;
	int r;
	memset(&si, 0, sizeof si);
	si.si_signo = sig;
	si.si_code = SI_QUEUE;
	si.si_value = value;
	si.si_uid = getuid();
	si.si_pid = getpid();
	LOCK(t->killlock);
	r = t->tid ? -__syscall(SYS_rt_tgsigqueueinfo, si.si_pid, t->tid, sig, &si)
		: (sig+0U >= _NSIG ? EINVAL : 0);
	UNLOCK(t->killlock);
	return r;
}
debug log:

solving 8de8d49a ...
found 8de8d49a in https://inbox.vuxu.org/musl/294c4c13f86c6f9ea3593309458bcb75a1d5d9e8.camel@fahlgren.se/

applying [1/1] https://inbox.vuxu.org/musl/294c4c13f86c6f9ea3593309458bcb75a1d5d9e8.camel@fahlgren.se/
diff --git a/src/thread/pthread_sigqueue.c b/src/thread/pthread_sigqueue.c
new file mode 100644
index 00000000..8de8d49a

Checking patch src/thread/pthread_sigqueue.c...
Applied patch src/thread/pthread_sigqueue.c cleanly.

index at:
100644 c85915b002a380ded151a643f541fc3bdf8f4a31	src/thread/pthread_sigqueue.c

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).