From fc00c656c96528112d05cf0edf8631bd5eaea446 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 20:10:31 +0100 Subject: Add build system scaffolding and libc headers --- include/bits/stat.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 include/bits/stat.h (limited to 'include/bits/stat.h') diff --git a/include/bits/stat.h b/include/bits/stat.h new file mode 100644 index 00000000..faa23771 --- /dev/null +++ b/include/bits/stat.h @@ -0,0 +1,38 @@ +#ifndef __BITS_STAT_H +#define __BITS_STAT_H + +#ifndef __BITS_STAT_H_ +#error "Internal header — include the public API header instead." +#endif + +#define __BITS_TIMESPEC_H_ +#include +#undef __BITS_TIMESPEC_H_ + +typedef __UINT64_TYPE__ dev_t; +typedef __UINT64_TYPE__ ino_t; +typedef __UINT32_TYPE__ mode_t; +typedef __UINT32_TYPE__ nlink_t; +typedef __UINT32_TYPE__ uid_t; +typedef __UINT32_TYPE__ gid_t; +typedef __INT64_TYPE__ off_t; +typedef __INT32_TYPE__ blksize_t; +typedef __INT64_TYPE__ blkcnt_t; + +struct stat { + dev_t st_dev; + ino_t st_ino; + mode_t st_mode; + nlink_t st_nlink; + uid_t st_uid; + gid_t st_gid; + dev_t st_rdev; + off_t st_size; + struct timespec st_atim; + struct timespec st_mtim; + struct timespec st_ctim; + blksize_t st_blksize; + blkcnt_t st_blocks; +}; + +#endif -- cgit v1.2.3