mailing list of musl libc
 help / color / mirror / code / Atom feed
601c3cc63fb728a694cd77d9e6aa264fbe20d9e8 blob 342 bytes (raw)

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

int __clock_gettime(clockid_t clk, struct timespec *ts);

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

solving 601c3cc ...
found 601c3cc in https://inbox.vuxu.org/musl/e055ebf55ff719cd25cb1446a642c8c032475223.1409524413.git.Jens.Gustedt@inria.fr/

applying [1/1] https://inbox.vuxu.org/musl/e055ebf55ff719cd25cb1446a642c8c032475223.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/time/timespec_get.c b/src/time/timespec_get.c
new file mode 100644
index 0000000..601c3cc

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

index at:
100644 601c3cc63fb728a694cd77d9e6aa264fbe20d9e8	src/time/timespec_get.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).