shithub: npe

Download patch

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

stat(2): set st_mtime

--- a/include/npe/unistd.h
+++ b/include/npe/unistd.h
@@ -36,6 +36,7 @@
 struct stat {
 	uvlong st_size;
 	int st_mode;
+	long st_mtime;
 };
 
 int npe_stat(char *filename, struct stat *buf);
--- a/libnpe/stat.c
+++ b/libnpe/stat.c
@@ -12,6 +12,7 @@
 
 	buf->st_size = d->length;
 	buf->st_mode = d->mode;
+	buf->st_mtime = d->mtime;
 	free(d);
 
 	return 0;