From eb6f503badb9d8f5475ad81f1146466090c98b09 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Sun, 7 Jun 2020 19:09:08 +0000 Subject: [PATCH] * fix O_LARGEFILE for Aarch64, RISC-V 32-bit and RISC-V 64-bit git-svn-id: trunk@45613 - --- rtl/linux/ostypes.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rtl/linux/ostypes.inc b/rtl/linux/ostypes.inc index 756efccc7b..35f09806c0 100644 --- a/rtl/linux/ostypes.inc +++ b/rtl/linux/ostypes.inc @@ -306,7 +306,7 @@ CONST { SIGCHLD or CLONE_CHILD_CLEARTID or CLONE_CHILD_SETTID } clone_flags_fork = $01200011; -{$if defined(cpuarm) or defined(cpualpha) or defined(cpublackfin) or defined(cpum68k) or defined(aarch64) or defined(riscv32) or defined(riscv64)} +{$if defined(cpuarm) or defined(cpualpha) or defined(cpublackfin) or defined(cpum68k) or defined(cpuaarch64)} O_LARGEFILE = $20000; {$endif} {$if defined(cpusparc) or defined(cpusparc64)} @@ -315,11 +315,14 @@ CONST {$if defined(cpupowerpc)} O_LARGEFILE = $10000; {$endif} -{$if defined(cpui386) or defined(cpux86_64) or defined(cpuia64) or defined(cpuxtensa)} +{$if defined(cpui386) or defined(cpux86_64) or defined(cpuia64) or defined(cpuxtensa) or defined(cpuriscv32)} O_LARGEFILE = $8000; {$endif} {$if defined(cpumips) or defined(cpumipsel)} O_LARGEFILE = $2000; +{$endif} +{$if defined(cpuriscv64)} + O_LARGEFILE = $0; {$endif} { mode_t possible values } S_IRUSR = %0100000000; { Read permission for owner }