diff --git a/libmaxsi/decl/dev_t.h b/libmaxsi/decl/dev_t.h new file mode 100644 index 00000000..bc99ab43 --- /dev/null +++ b/libmaxsi/decl/dev_t.h @@ -0,0 +1,4 @@ +#ifndef _DEV_T_DECL +#define _DEV_T_DECL +typedef __dev_t dev_t; +#endif diff --git a/libmaxsi/include/sys/stat.h b/libmaxsi/include/sys/stat.h index 515aabf7..b19b9375 100644 --- a/libmaxsi/include/sys/stat.h +++ b/libmaxsi/include/sys/stat.h @@ -32,6 +32,7 @@ __BEGIN_DECLS @include(blkcnt_t.h) @include(blksize_t.h) +@include(dev_t.h) @include(ino_t.h) @include(mode_t.h) @include(nlink_t.h) diff --git a/sortix/stat.h b/sortix/stat.h index 7775fb4e..2d364ab7 100644 --- a/sortix/stat.h +++ b/sortix/stat.h @@ -32,6 +32,7 @@ __BEGIN_DECLS struct stat { + dev_t st_dev; ino_t st_ino; mode_t st_mode; nlink_t st_nlink; diff --git a/sortix/x64/bits.h b/sortix/x64/bits.h index b161df4a..e67c94ec 100644 --- a/sortix/x64/bits.h +++ b/sortix/x64/bits.h @@ -129,6 +129,7 @@ typedef __off_t __blksize_t; typedef __off_t __blkcnt_t; typedef unsigned int __nlink_t; typedef __uintmax_t __ino_t; +typedef __uintptr_t __dev_t; #endif diff --git a/sortix/x86/bits.h b/sortix/x86/bits.h index d5b3b0cd..c8c41033 100644 --- a/sortix/x86/bits.h +++ b/sortix/x86/bits.h @@ -129,6 +129,7 @@ typedef __off_t __blksize_t; typedef __off_t __blkcnt_t; typedef unsigned int __nlink_t; typedef __uintmax_t __ino_t; +typedef __uintptr_t __dev_t; #endif