git: 86fde4e64528 - stable/13 - linux(4): Make struct stat64 to match Linux actual one
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Jun 2023 08:20:25 UTC
The branch stable/13 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=86fde4e64528d9e5979623f61207c690631ff1ee
commit 86fde4e64528d9e5979623f61207c690631ff1ee
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-04-28 08:55:04 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-06-29 08:15:43 +0000
linux(4): Make struct stat64 to match Linux actual one
(cherry picked from commit 80d8a4a0030849229cb9ebd434682ef927bc9963)
---
sys/amd64/linux32/linux.h | 11 +++++------
sys/i386/linux/linux.h | 11 +++++------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h
index 9ad288e339df..32f2f42b0108 100644
--- a/sys/amd64/linux32/linux.h
+++ b/sys/amd64/linux32/linux.h
@@ -216,19 +216,18 @@ struct l_old_stat {
};
struct l_stat64 {
- l_ushort st_dev;
- u_char __pad0[10];
+ l_ulonglong st_dev;
+ u_char __pad0[4];
l_ulong __st_ino;
l_uint st_mode;
l_uint st_nlink;
l_ulong st_uid;
l_ulong st_gid;
- l_ushort st_rdev;
- u_char __pad3[10];
+ l_ulonglong st_rdev;
+ u_char __pad3[4];
l_longlong st_size;
l_ulong st_blksize;
- l_ulong st_blocks;
- l_ulong __pad4;
+ l_ulonglong st_blocks;
struct l_timespec st_atim;
struct l_timespec st_mtim;
struct l_timespec st_ctim;
diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h
index 32f92d8c637b..91102eeaa2be 100644
--- a/sys/i386/linux/linux.h
+++ b/sys/i386/linux/linux.h
@@ -189,19 +189,18 @@ struct l_old_stat {
};
struct l_stat64 {
- l_ushort st_dev;
- u_char __pad0[10];
+ l_ulonglong st_dev;
+ u_char __pad0[4];
l_ulong __st_ino;
l_uint st_mode;
l_uint st_nlink;
l_ulong st_uid;
l_ulong st_gid;
- l_ushort st_rdev;
- u_char __pad3[10];
+ l_ulonglong st_rdev;
+ u_char __pad3[4];
l_longlong st_size;
l_ulong st_blksize;
- l_ulong st_blocks;
- l_ulong __pad4;
+ l_ulonglong st_blocks;
struct l_timespec st_atim;
struct l_timespec st_mtim;
struct l_timespec st_ctim;