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

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

int clock_getres(clockid_t clk, struct timespec *ts)
{
#ifdef SYS_clock_getres_time64
	int r = __syscall(SYS_clock_getres_time64, clk, ts);
	if (SYS_clock_getres == SYS_clock_getres_time64 || r != -ENOSYS)
		return __syscall_ret(r);
	long ts32[2];
	r = __syscall(SYS_clock_getres, clk, ts32);
	if (!r && ts) {
		ts->tv_sec = ts32[0];
		ts->tv_nsec = ts32[1];
	}
	return __syscall_ret(r);
#else
	return syscall(SYS_clock_getres, clk, ts);
#endif
}
debug log:

solving eb563509b420 ...
found eb563509b420 in https://inbox.vuxu.org/musl/20201227184032.22413-4-alobakin@pm.me/
found 81c6703761d4 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 81c6703761d4484f4001d10a22123a9a5b859ce6	src/time/clock_getres.c

applying [1/1] https://inbox.vuxu.org/musl/20201227184032.22413-4-alobakin@pm.me/
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c
index 81c6703761d4..eb563509b420 100644

Checking patch src/time/clock_getres.c...
Applied patch src/time/clock_getres.c cleanly.

index at:
100644 eb563509b42043eb8ba598ba2610060b79314069	src/time/clock_getres.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).