mailing list of musl libc
 help / color / mirror / code / Atom feed
43a6803b0972278ee2a1ad7591f5e23d2d1055be blob 515 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
 
#define _GNU_SOURCE
#include <errno.h>
#include <stdarg.h>
#include <unistd.h>
#include <sched.h>
#include "pthread_impl.h"
#include "syscall.h"

int clone(int (*func)(void *), void *stack, int flags, void *arg, ...)
{
	va_list ap;
	pid_t *ptid, *ctid;
	void  *tls;

	if (!stack) {
		return __syscall_ret(-EINVAL);
	}

	va_start(ap, arg);
	ptid = va_arg(ap, pid_t *);
	tls  = va_arg(ap, void *);
	ctid = va_arg(ap, pid_t *);
	va_end(ap);

	return __syscall_ret(__clone(func, stack, flags, arg, ptid, tls, ctid));
}
debug log:

solving 43a6803b ...
found 43a6803b in https://inbox.vuxu.org/musl/20220802113036.302819-1-tudor.cretu@arm.com/
found 8c1af7d3 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 8c1af7d3dc83e76a10cf7393aa6cbb5dc26111cf	src/linux/clone.c

applying [1/1] https://inbox.vuxu.org/musl/20220802113036.302819-1-tudor.cretu@arm.com/
diff --git a/src/linux/clone.c b/src/linux/clone.c
index 8c1af7d3..43a6803b 100644

Checking patch src/linux/clone.c...
Applied patch src/linux/clone.c cleanly.

index at:
100644 43a6803b0972278ee2a1ad7591f5e23d2d1055be	src/linux/clone.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).