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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include "time32.h"
#include <time.h>
#include <errno.h>
#include <stdint.h>

time32_t __mktime32(struct tm *tm)
{
	time_t t = mktime(tm);
	if (t < INT32_MIN || t > INT32_MAX) {
		errno = EOVERFLOW;
		return -1;
	}
	return t;
}
debug log:

solving aeef9890 ...
found aeef9890 in https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/

applying [1/1] https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/
diff --git a/compat/time32/mktime32.c b/compat/time32/mktime32.c
new file mode 100644
index 00000000..aeef9890

Checking patch compat/time32/mktime32.c...
Applied patch compat/time32/mktime32.c cleanly.

index at:
100644 aeef9890f39cd210deeb35f1faaff4b994e448b9	compat/time32/mktime32.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).