From ac7e55ffbde8c57e130c6d580cf1eaa36e179e81 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Mar 2012 16:48:24 +0100 Subject: [PATCH] Added st_dev to struct stat. --- libmaxsi/decl/dev_t.h | 4 ++++ libmaxsi/include/sys/stat.h | 1 + sortix/stat.h | 1 + sortix/x64/bits.h | 1 + sortix/x86/bits.h | 1 + 5 files changed, 8 insertions(+) create mode 100644 libmaxsi/decl/dev_t.h 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