shithub: npe

Download patch

ref: caf026b08552e401a28cf71c2824c44cb20eccb3
parent: 7b27e37a6498f15b926528c764d10b4248652c29
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Mar 17 12:41:58 EDT 2021

add strftime nop stub

--- a/include/npe/time.h
+++ b/include/npe/time.h
@@ -19,5 +19,6 @@
 
 #define localtime npe_localtime
 struct tm *npe_localtime(time_t *timep);
+size_t strftime(char *s, size_t max, const char *format, const struct tm *tm);
 
 #endif
--- a/libnpe/mkfile
+++ b/libnpe/mkfile
@@ -33,6 +33,7 @@
 	round.$O\
 	sigaction.$O\
 	stat.$O\
+	strftime.$O\
 	trunc.$O\
 	usleep.$O\
 
--- /dev/null
+++ b/libnpe/strftime.c
@@ -1,0 +1,11 @@
+#include <time.h>
+
+size_t
+strftime(char *s, size_t max, const char *format, const struct tm *tm)
+{
+	/* FIXME */
+	USED(max, format, tm);
+	s[0] = 0;
+
+	return 0;
+}