mailing list of musl libc
 help / color / mirror / code / Atom feed
00af1ca5980eb2407e736e7d99f9f37f1fd84c96 blob 296 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include <sys/timeb.h>
#include <time.h>

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

int ftime(struct timeb *tp)
{
	struct timespec ts;
	__clock_gettime(CLOCK_REALTIME, &ts);
	tp->time = ts.tv_sec;
	tp->millitm = ts.tv_nsec / 1000000;
	tp->timezone = tp->dstflag = 0;
	return 0;
}
debug log:

solving 00af1ca ...
found 00af1ca in https://inbox.vuxu.org/musl/e055ebf55ff719cd25cb1446a642c8c032475223.1409524413.git.Jens.Gustedt@inria.fr/
found a1734d0 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 a1734d0f9182852853c3a29800fac26e8774d7f9	src/time/ftime.c

applying [1/1] https://inbox.vuxu.org/musl/e055ebf55ff719cd25cb1446a642c8c032475223.1409524413.git.Jens.Gustedt@inria.fr/
diff --git a/src/time/ftime.c b/src/time/ftime.c
index a1734d0..00af1ca 100644

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

index at:
100644 00af1ca5980eb2407e736e7d99f9f37f1fd84c96	src/time/ftime.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).