mailing list of musl libc
 help / color / mirror / code / Atom feed
35ee2628bc4a74f09327ac56de01b41a14395266 blob 500 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
 
#include <sys/ptrace.h>
#include <stdarg.h>
#include <unistd.h>
#include "syscall.h"

long ptrace(enum __ptrace_request req, ...)
{
	va_list ap;
	pid_t pid;
	void *addr, *data, *addr2;
	long ret, result;

	va_start(ap, req);
	pid = va_arg(ap, pid_t);
	addr = va_arg(ap, void *);
	data = va_arg(ap, void *);
	addr2 = va_arg(ap, void *);
	va_end(ap);

	if (req-1U < 3) data = &result;
	ret = syscall(SYS_ptrace, req, pid, addr, data, addr2);

	if (ret < 0 || req-1U >= 3) return ret;
	return result;
}
debug log:

solving 35ee262 ...
found 35ee262 in https://inbox.vuxu.org/musl/8B7D5EC97CB15C4DBFDCE766959C1607C6ABD1@hhmail02.hh.imgtec.org/ ||
	https://inbox.vuxu.org/musl/8B7D5EC97CB15C4DBFDCE766959C1607C6ABD1@hhmail02.hh.imgtec.org/
found 83b8022 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 83b8022beefa8afc9abeb19dfc7e9bac35d605e8	src/linux/ptrace.c

applying [1/2] https://inbox.vuxu.org/musl/8B7D5EC97CB15C4DBFDCE766959C1607C6ABD1@hhmail02.hh.imgtec.org/
diff --git a/src/linux/ptrace.c b/src/linux/ptrace.c
index 83b8022..35ee262 100644

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

skipping https://inbox.vuxu.org/musl/8B7D5EC97CB15C4DBFDCE766959C1607C6ABD1@hhmail02.hh.imgtec.org/ for 35ee262
index at:
100644 35ee2628bc4a74f09327ac56de01b41a14395266	src/linux/ptrace.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).