mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 02:19:27 +02:00
linux: removed some old junk which was commented out over a decade ago
git-svn-id: trunk@37718 -
This commit is contained in:
parent
ee37c507d0
commit
961757934a
@ -68,7 +68,6 @@ begin
|
|||||||
result:=do_syscall(syscall_nr_lseek,tsysparam(fd),tsysparam(offset),tsysparam(whence));
|
result:=do_syscall(syscall_nr_lseek,tsysparam(fd),tsysparam(offset),tsysparam(whence));
|
||||||
{$else}
|
{$else}
|
||||||
if do_syscall(syscall_nr__llseek,tsysparam(fd),
|
if do_syscall(syscall_nr__llseek,tsysparam(fd),
|
||||||
// {$ifdef FPC_ABI_EABI} 0, { align parameters as required with dummy } {$endif FPC_ABI_EABI}
|
|
||||||
tsysparam(hi(offset)),tsysparam(lo(offset)),
|
tsysparam(hi(offset)),tsysparam(lo(offset)),
|
||||||
tsysparam(@result), tsysparam(whence)) = -1 then
|
tsysparam(@result), tsysparam(whence)) = -1 then
|
||||||
result:=off_t(-1);
|
result:=off_t(-1);
|
||||||
@ -86,19 +85,7 @@ function Fpwrite(fd: cint;buf:pchar; nbytes : size_t): ssize_t; [public, alias :
|
|||||||
begin
|
begin
|
||||||
Fpwrite:=do_syscall(syscall_nr_write,Fd,TSysParam(buf),nbytes);
|
Fpwrite:=do_syscall(syscall_nr_write,Fd,TSysParam(buf),nbytes);
|
||||||
end;
|
end;
|
||||||
{
|
|
||||||
function Fppread(fd: cint; buf: pchar; nbytes : size_t; offset:Toff): ssize_t; [public, alias : 'FPC_SYSC_PREAD'];
|
|
||||||
!! check 64 bit off_t sycall
|
|
||||||
begin
|
|
||||||
Fpread:=do_syscall(syscall_nr_pread,Fd,TSysParam(buf),nbytes,offset);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function Fppwrite(fd: cint;buf:pchar; nbytes : size_t; offset:Toff): ssize_t; [public, alias : 'FPC_SYSC_PWRITE'];
|
|
||||||
!! check 64 bit off_t sycall
|
|
||||||
begin
|
|
||||||
Fpwrite:=do_syscall(syscall_nr_pwrite,Fd,TSysParam(buf),nbytes,offset);
|
|
||||||
end;
|
|
||||||
}
|
|
||||||
function Fpunlink(path: pchar): cint; [public, alias : 'FPC_SYSC_UNLINK'];
|
function Fpunlink(path: pchar): cint; [public, alias : 'FPC_SYSC_UNLINK'];
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user