shithub: npe

Download patch

ref: 6212e95d0985e27dc4161dbf1fcee82d3843f31d
parent: ff6414e7db54f48c71465ba63fb22931f44a43c2
author: Jacob Moody <moody@posixcafe.org>
date: Fri Dec 12 00:12:42 EST 2025

libnpe: flesh out stat struct

--- a/include/npe/unistd.h
+++ b/include/npe/unistd.h
@@ -43,11 +43,19 @@
 #define stat npe_stat
 #define fstat npe_fstat
 
+typedef int mode_t;
+
 struct stat {
 	uvlong st_size;
-	int st_mode;
+	mode_t st_mode;
 	long st_mtime;
 	long st_atime;
+	long st_ctime;
+	int st_dev, st_ino;
+	int st_nlink;
+	int st_uid, st_gid;
+	int st_rdev;
+	int st_blocks, st_blksize;
 };
 
 int npe_stat(char *filename, struct stat *buf);
--