From 55c86c04d3abfa597f9dc27ddc14159193f51ceb Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 10 Feb 2023 16:02:10 +0100 Subject: add stat_t --- lib/sys/stat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sys/stat.h') 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) { -- cgit v1.2.3-70-g09d2