mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 20:20:16 +02:00
* fix O_LARGEFILE for Aarch64, RISC-V 32-bit and RISC-V 64-bit
git-svn-id: trunk@45613 -
This commit is contained in:
parent
d1cb341cfa
commit
eb6f503bad
@ -306,7 +306,7 @@ CONST
|
|||||||
{ SIGCHLD or CLONE_CHILD_CLEARTID or CLONE_CHILD_SETTID }
|
{ SIGCHLD or CLONE_CHILD_CLEARTID or CLONE_CHILD_SETTID }
|
||||||
clone_flags_fork = $01200011;
|
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;
|
O_LARGEFILE = $20000;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$if defined(cpusparc) or defined(cpusparc64)}
|
{$if defined(cpusparc) or defined(cpusparc64)}
|
||||||
@ -315,11 +315,14 @@ CONST
|
|||||||
{$if defined(cpupowerpc)}
|
{$if defined(cpupowerpc)}
|
||||||
O_LARGEFILE = $10000;
|
O_LARGEFILE = $10000;
|
||||||
{$endif}
|
{$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;
|
O_LARGEFILE = $8000;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$if defined(cpumips) or defined(cpumipsel)}
|
{$if defined(cpumips) or defined(cpumipsel)}
|
||||||
O_LARGEFILE = $2000;
|
O_LARGEFILE = $2000;
|
||||||
|
{$endif}
|
||||||
|
{$if defined(cpuriscv64)}
|
||||||
|
O_LARGEFILE = $0;
|
||||||
{$endif}
|
{$endif}
|
||||||
{ mode_t possible values }
|
{ mode_t possible values }
|
||||||
S_IRUSR = %0100000000; { Read permission for owner }
|
S_IRUSR = %0100000000; { Read permission for owner }
|
||||||
|
Loading…
Reference in New Issue
Block a user