mailing list of musl libc
 help / color / mirror / code / Atom feed
248e6d18059f2288d6ef61621603a304c6b0efba blob 631 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
 
#include <time.h>
#include "syscall.h"

int __clock_getres(clockid_t clk, struct timespec *ts)
{
#ifdef SYS_clock_getres_time64
	/* On a 32-bit arch, use the old syscall if it exists. */
	if (SYS_clock_getres != SYS_clock_getres_time64) {
		long ts32[2];
		int r = __syscall(SYS_clock_getres, clk, ts32);
		if (!r && ts) {
			ts->tv_sec = ts32[0];
			ts->tv_nsec = ts32[1];
		}
		return __syscall_ret(r);
	}
#endif
	/* If reaching this point, it's a 64-bit arch or time64-only
	 * 32-bit arch and we can get result directly into timespec. */
	return syscall(SYS_clock_getres, clk, ts);
}

weak_alias(__clock_getres, clock_getres);
debug log:

solving 248e6d18 ...
found 248e6d18 in https://inbox.vuxu.org/musl/59f95d06c1294c74217358bda83757b61740bda4.1684932978.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/b55261712476d5134001937123c0900509ab1f16.1685534799.git.Jens.Gustedt@inria.fr/
found 81c67037 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 81c6703761d4484f4001d10a22123a9a5b859ce6	src/time/clock_getres.c

applying [1/2] https://inbox.vuxu.org/musl/59f95d06c1294c74217358bda83757b61740bda4.1684932978.git.Jens.Gustedt@inria.fr/
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c
index 81c67037..248e6d18 100644

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

skipping https://inbox.vuxu.org/musl/b55261712476d5134001937123c0900509ab1f16.1685534799.git.Jens.Gustedt@inria.fr/ for 248e6d18
index at:
100644 248e6d18059f2288d6ef61621603a304c6b0efba	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).