mailing list of musl libc
 help / color / mirror / code / Atom feed
6ecbbdc46ae536a5b71d677db4d52c6e9fcef81c blob 350 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#include <time.h>

extern int __clock_getres(clockid_t clk, struct timespec *ts);

/* There is no other implemented value than TIME_UTC; all other values
 * are considered erroneous. */
int timespec_getres(struct timespec * ts, int base)
{
	if (base != TIME_UTC) return 0;
	int ret = __clock_getres(CLOCK_REALTIME, ts);
	return ret < 0 ? 0 : base;
}
debug log:

solving 6ecbbdc4 ...
found 6ecbbdc4 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/

applying [1/2] https://inbox.vuxu.org/musl/59f95d06c1294c74217358bda83757b61740bda4.1684932978.git.Jens.Gustedt@inria.fr/
diff --git a/src/time/timespec_getres.c b/src/time/timespec_getres.c
new file mode 100644
index 00000000..6ecbbdc4

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

skipping https://inbox.vuxu.org/musl/b55261712476d5134001937123c0900509ab1f16.1685534799.git.Jens.Gustedt@inria.fr/ for 6ecbbdc4
index at:
100644 6ecbbdc46ae536a5b71d677db4d52c6e9fcef81c	src/time/timespec_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).