mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 06:20:57 +02:00
# revisions: 43880,44093
git-svn-id: branches/fixes_3_2@45533 -
This commit is contained in:
parent
f6a3332e36
commit
7201fbe85e
rtl/linux
@ -521,7 +521,7 @@ Function fpLstat(path:pchar;Info:pstat):cint;
|
||||
|
||||
begin
|
||||
{$if defined(generic_linux_syscalls)}
|
||||
fpLStat:=do_syscall(syscall_nr_fstatat,AT_FDCWD,TSysParam(path),TSysParam(info),0)
|
||||
fpLStat:=do_syscall(syscall_nr_fstatat,AT_FDCWD,TSysParam(path),TSysParam(info),AT_SYMLINK_NOFOLLOW)
|
||||
{$else}
|
||||
fpLStat:=do_syscall(
|
||||
{$ifdef cpu64}
|
||||
|
@ -270,7 +270,8 @@ type
|
||||
TEPoll_Data = Epoll_Data;
|
||||
PEPoll_Data = ^Epoll_Data;
|
||||
|
||||
EPoll_Event = {$ifdef cpu64} packed {$endif} record
|
||||
{ x86_64 uses a packed record so it is compatible with i386 }
|
||||
EPoll_Event = {$ifdef cpux86_64} packed {$endif} record
|
||||
Events: cuint32;
|
||||
Data : TEpoll_Data;
|
||||
end;
|
||||
@ -555,7 +556,7 @@ function epoll_wait(epfd: cint; events: pepoll_event; maxevents, timeout: cint):
|
||||
begin
|
||||
{$if defined(generic_linux_syscalls)}
|
||||
epoll_wait := do_syscall(syscall_nr_epoll_pwait, tsysparam(epfd),
|
||||
tsysparam(events), tsysparam(maxevents), tsysparam(timeout),0);
|
||||
tsysparam(events), tsysparam(maxevents), tsysparam(timeout),0,sizeof(TSigSet));
|
||||
{$else}
|
||||
epoll_wait := do_syscall(syscall_nr_epoll_wait, tsysparam(epfd),
|
||||
tsysparam(events), tsysparam(maxevents), tsysparam(timeout));
|
||||
|
Loading…
Reference in New Issue
Block a user