ref: 31f730351e04573e401681991e266cbe84c332b8
parent: ea4e9e55d8fd27607c4204416d4c3a36370ff359
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Mar 15 10:46:44 EDT 2021
fix stat()
--- a/include/npe/unistd.h
+++ b/include/npe/unistd.h
@@ -33,12 +33,12 @@
#define getcwd getwd
#define stat npe_stat
-struct stat9 {
+struct stat {
uvlong st_size;
int st_mode;
};
-int npe_stat(char *filename, struct stat9 *buf);
+int npe_stat(char *filename, struct stat *buf);
int access(char *name, int mode);
void usleep(useconds_t us);
--- a/libnpe/stat.c
+++ b/libnpe/stat.c
@@ -3,7 +3,7 @@
#undef stat
int
-npe_stat(char *filename, struct stat9 *buf)
+npe_stat(char *filename, struct npe_stat *buf)
{
Dir *d;