mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* fixed fpftruncate, fplseek: removed ppc64 part of "$if defined(cpu64) and not defined(cpupowerpc64)"
git-svn-id: trunk@5392 -
This commit is contained in:
parent
8998a04bf6
commit
66607303af
@ -43,7 +43,7 @@ end;
|
||||
|
||||
function Fplseek(fd : cint; offset : off_t; whence : cint): off_t; [public, alias : 'FPC_SYSC_LSEEK'];
|
||||
begin
|
||||
{$if defined(cpu64) and not defined(cpupowerpc64)}
|
||||
{$if defined(cpu64)}
|
||||
result:=do_syscall(syscall_nr_lseek,tsysparam(fd),tsysparam(offset),tsysparam(whence));
|
||||
{$else}
|
||||
if do_syscall(syscall_nr__llseek,tsysparam(fd),tsysparam(hi(offset)),tsysparam(lo(offset)),
|
||||
@ -299,7 +299,7 @@ function Fpftruncate(fd : cint; flength : off_t): cint; [public, alias : 'FPC_SY
|
||||
doesn't have the returnvalue 64-bit problem)}
|
||||
|
||||
begin
|
||||
{$if defined(cpu64) and not defined(cpupowerpc64)}
|
||||
{$if defined(cpu64)}
|
||||
Fpftruncate:=Do_syscall(syscall_nr_ftruncate,TSysParam(fd),TSysParam(flength));
|
||||
{$else}
|
||||
Fpftruncate:=Do_syscall(syscall_nr_ftruncate64,TSysParam(fd),TSysParam(lo(flength)),
|
||||
|
Loading…
Reference in New Issue
Block a user