mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
linux(4): Make struct newstat to match actual Linux one
In the struct stat the st_dev, st_rdev are unsigned long.
This commit is contained in:
parent
023e688496
commit
e0bfe0d62c
4 changed files with 9 additions and 13 deletions
|
|
@ -134,14 +134,14 @@ struct l_timespec {
|
|||
};
|
||||
|
||||
struct l_newstat {
|
||||
l_dev_t st_dev;
|
||||
l_ulong st_dev;
|
||||
l_ino_t st_ino;
|
||||
l_ulong st_nlink;
|
||||
l_uint st_mode;
|
||||
l_uid_t st_uid;
|
||||
l_gid_t st_gid;
|
||||
l_uint __st_pad1;
|
||||
l_dev_t st_rdev;
|
||||
l_uint __st_pad0;
|
||||
l_ulong st_rdev;
|
||||
l_off_t st_size;
|
||||
l_long st_blksize;
|
||||
l_long st_blocks;
|
||||
|
|
|
|||
|
|
@ -180,15 +180,13 @@ struct l_timespec64 {
|
|||
};
|
||||
|
||||
struct l_newstat {
|
||||
l_ushort st_dev;
|
||||
l_ushort __pad1;
|
||||
l_ulong st_dev;
|
||||
l_ulong st_ino;
|
||||
l_ushort st_mode;
|
||||
l_ushort st_nlink;
|
||||
l_ushort st_uid;
|
||||
l_ushort st_gid;
|
||||
l_ushort st_rdev;
|
||||
l_ushort __pad2;
|
||||
l_ulong st_rdev;
|
||||
l_ulong st_size;
|
||||
l_ulong st_blksize;
|
||||
l_ulong st_blocks;
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ struct l_timespec {
|
|||
#define LINUX_O_LARGEFILE 000400000
|
||||
|
||||
struct l_newstat {
|
||||
l_dev_t st_dev;
|
||||
l_ulong st_dev;
|
||||
l_ino_t st_ino;
|
||||
l_uint st_mode;
|
||||
l_uint st_nlink;
|
||||
|
|
@ -136,7 +136,7 @@ struct l_newstat {
|
|||
l_uid_t st_uid;
|
||||
l_gid_t st_gid;
|
||||
|
||||
l_dev_t st_rdev;
|
||||
l_ulong st_rdev;
|
||||
l_ulong __st_pad1;
|
||||
l_off_t st_size;
|
||||
l_int st_blksize;
|
||||
|
|
|
|||
|
|
@ -153,15 +153,13 @@ struct l_timespec64 {
|
|||
};
|
||||
|
||||
struct l_newstat {
|
||||
l_ushort st_dev;
|
||||
l_ushort __pad1;
|
||||
l_ulong st_dev;
|
||||
l_ulong st_ino;
|
||||
l_ushort st_mode;
|
||||
l_ushort st_nlink;
|
||||
l_ushort st_uid;
|
||||
l_ushort st_gid;
|
||||
l_ushort st_rdev;
|
||||
l_ushort __pad2;
|
||||
l_ulong st_rdev;
|
||||
l_ulong st_size;
|
||||
l_ulong st_blksize;
|
||||
l_ulong st_blocks;
|
||||
|
|
|
|||
Loading…
Reference in a new issue