mailing list of musl libc
 help / color / mirror / code / Atom feed
017b53bc5c88b455da27faf5bcfbb38dcf6ee3be blob 350 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#include <signal.h>
#include <errno.h>
#include "syscall.h"

int sigaltstack(const stack_t *restrict ss, stack_t *restrict old)
{
	if (ss && ss->ss_flags != SS_DISABLE) {
		if (ss->ss_flags) {
			errno = EINVAL;
			return -1;
		}
		if (ss->ss_size < MINSIGSTKSZ) {
			errno = ENOMEM;
			return -1;
		}
	}
	return syscall(SYS_sigaltstack, ss, old);
}
debug log:

solving 017b53bc ...
found 017b53bc in https://inbox.vuxu.org/musl/20180207010432.GP4418@port70.net/
found 62cb81ad in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 62cb81adfe16ea1a112448f1654d55a859718374	src/signal/sigaltstack.c

applying [1/1] https://inbox.vuxu.org/musl/20180207010432.GP4418@port70.net/
diff --git a/src/signal/sigaltstack.c b/src/signal/sigaltstack.c
index 62cb81ad..017b53bc 100644

Checking patch src/signal/sigaltstack.c...
Applied patch src/signal/sigaltstack.c cleanly.

index at:
100644 017b53bc5c88b455da27faf5bcfbb38dcf6ee3be	src/signal/sigaltstack.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).