aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-10 16:02:10 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-10 16:02:10 +0100
commit55c86c04d3abfa597f9dc27ddc14159193f51ceb (patch)
treee7f3e736d5d89ac0af103b2390d671d6a602ba27 /lib
parent95eff1f66b1e6e53dc34d0540af63c1bec033e65 (diff)
add stat_t
Diffstat (limited to 'lib')
-rw-r--r--lib/sys/stat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys/stat.h b/lib/sys/stat.h
index a6aa9a8..0e02295 100644
--- a/lib/sys/stat.h
+++ b/lib/sys/stat.h
@@ -36,7 +36,7 @@
#define S_IWOTH 00002
#define S_IXOTH 00001
-struct stat {
+typedef struct stat {
i64 dev;
i64 ino;
u64 nlink;
@@ -53,7 +53,7 @@ struct stat {
struct timespec ctime;
u64 __[3];
-};
+} stat_t;
static int stat(const char * filename, struct stat * statbuf)
{