[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/5] linux-user: Fix member types of target_dirent64
From: |
Laurent Vivier |
Subject: |
[PULL 3/5] linux-user: Fix member types of target_dirent64 |
Date: |
Mon, 22 Nov 2021 09:23:08 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
The host uint64_t (etc) does not have the correct
alignment constraint as the guest: use abi_* types.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211114103539.298686-4-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/syscall_defs.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 98b09ee6d656..41aaafbac12c 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -437,9 +437,9 @@ struct target_dirent {
};
struct target_dirent64 {
- uint64_t d_ino;
- int64_t d_off;
- unsigned short d_reclen;
+ abi_ullong d_ino;
+ abi_llong d_off;
+ abi_ushort d_reclen;
unsigned char d_type;
char d_name[];
};
--
2.31.1
- [PULL 0/5] Linux user for 6.2 patches, Laurent Vivier, 2021/11/22
- [PULL 1/5] linux-user: Split out do_getdents, do_getdents64, Laurent Vivier, 2021/11/22
- [PULL 3/5] linux-user: Fix member types of target_dirent64,
Laurent Vivier <=
- [PULL 5/5] linux-user: fix Coverity CID 1464101, Laurent Vivier, 2021/11/22
- [PULL 2/5] linux-user: Always use flexible arrays for dirent d_name, Laurent Vivier, 2021/11/22
- [PULL 4/5] linux-user: Rewrite do_getdents, do_getdents64, Laurent Vivier, 2021/11/22
- Re: [PULL 0/5] Linux user for 6.2 patches, Richard Henderson, 2021/11/22