shithub: npe

Download patch

ref: 8b38bd687515f59401bde1026aa19d6284b9e209
parent: 79415728d062bab70c67feef94aa59b49648db12
author: Noam Preil <noam@pixelhero.dev>
date: Thu Dec 11 23:36:54 EST 2025

fixup

--- /dev/null
+++ b/libnpe/nanosleep.c
@@ -1,0 +1,15 @@
+#include <unistd.h>
+#include <npe/time.h>
+#include "_npe.h"
+
+int
+nanosleep(struct timespec *req, struct timespec *rem)
+{
+	uvlong ns;
+
+	ns = req->tv_sec * 1000000000 + req->tv_nsec;
+	npe_nsleep(ns);
+	if(rem)
+		rem->tv_sec = rem->tv_nsec = 0;
+	return 0;
+}
--