mailing list of musl libc
 help / color / mirror / code / Atom feed
bdcba9c572488b6356b9a1f9c232c696b6f00453 blob 541 bytes (raw)

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

int sched_rr_get_interval(pid_t pid, struct timespec *ts)
{
#ifdef SYS_sched_rr_get_interval_time64
	int r = __syscall(SYS_sched_rr_get_interval_time64, pid, ts);
	if (SYS_sched_rr_get_interval == SYS_sched_rr_get_interval_time64 || r != -ENOSYS)
		return __syscall_ret(r);
	long ts32[2];
	r = __syscall(SYS_sched_rr_get_interval, pid, ts32);
	if (!r) {
		ts->tv_sec = ts32[0];
		ts->tv_nsec = ts32[1];
	}
	return __syscall_ret(r);
#else
	return syscall(SYS_sched_rr_get_interval, pid, ts);
#endif
}
debug log:

solving bdcba9c57248 ...
found bdcba9c57248 in https://inbox.vuxu.org/musl/20201227184032.22413-18-alobakin@pm.me/
found 33a3d1aeed43 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 33a3d1aeed43bf2860ffa89540b7848c0854fdd4	src/sched/sched_rr_get_interval.c

applying [1/1] https://inbox.vuxu.org/musl/20201227184032.22413-18-alobakin@pm.me/
diff --git a/src/sched/sched_rr_get_interval.c b/src/sched/sched_rr_get_interval.c
index 33a3d1aeed43..bdcba9c57248 100644

Checking patch src/sched/sched_rr_get_interval.c...
Applied patch src/sched/sched_rr_get_interval.c cleanly.

index at:
100644 bdcba9c572488b6356b9a1f9c232c696b6f00453	src/sched/sched_rr_get_interval.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).