Added st_dev to struct stat.
This commit is contained in:
parent
db7781c54a
commit
ac7e55ffbd
|
@ -0,0 +1,4 @@
|
||||||
|
#ifndef _DEV_T_DECL
|
||||||
|
#define _DEV_T_DECL
|
||||||
|
typedef __dev_t dev_t;
|
||||||
|
#endif
|
|
@ -32,6 +32,7 @@
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
@include(blkcnt_t.h)
|
@include(blkcnt_t.h)
|
||||||
@include(blksize_t.h)
|
@include(blksize_t.h)
|
||||||
|
@include(dev_t.h)
|
||||||
@include(ino_t.h)
|
@include(ino_t.h)
|
||||||
@include(mode_t.h)
|
@include(mode_t.h)
|
||||||
@include(nlink_t.h)
|
@include(nlink_t.h)
|
||||||
|
|
|
@ -32,6 +32,7 @@ __BEGIN_DECLS
|
||||||
|
|
||||||
struct stat
|
struct stat
|
||||||
{
|
{
|
||||||
|
dev_t st_dev;
|
||||||
ino_t st_ino;
|
ino_t st_ino;
|
||||||
mode_t st_mode;
|
mode_t st_mode;
|
||||||
nlink_t st_nlink;
|
nlink_t st_nlink;
|
||||||
|
|
|
@ -129,6 +129,7 @@ typedef __off_t __blksize_t;
|
||||||
typedef __off_t __blkcnt_t;
|
typedef __off_t __blkcnt_t;
|
||||||
typedef unsigned int __nlink_t;
|
typedef unsigned int __nlink_t;
|
||||||
typedef __uintmax_t __ino_t;
|
typedef __uintmax_t __ino_t;
|
||||||
|
typedef __uintptr_t __dev_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,7 @@ typedef __off_t __blksize_t;
|
||||||
typedef __off_t __blkcnt_t;
|
typedef __off_t __blkcnt_t;
|
||||||
typedef unsigned int __nlink_t;
|
typedef unsigned int __nlink_t;
|
||||||
typedef __uintmax_t __ino_t;
|
typedef __uintmax_t __ino_t;
|
||||||
|
typedef __uintptr_t __dev_t;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue