* Use off_t type for l_start and l_end fields instead of kernel_off_t

+ Distinguish rlim_t type depending on fs32bit macro being set or not.

git-svn-id: trunk@44879 -
This commit is contained in:
pierre 2020-04-20 09:50:07 +00:00
parent 4888c379c4
commit 4d25558519

View File

@ -170,8 +170,8 @@ type
FLock = Record
l_type : cshort; { lock type: read/write, etc. }
l_whence: cshort; { type of l_start }
l_start : kernel_off_t; { starting offset }
l_len : kernel_off_t; { len = 0 means until end of file }
l_start : off_t; { starting offset }
l_len : off_t; { len = 0 means until end of file }
l_pid : pid_t; { lock owner }
{$if defined(cpusparc) or defined(cpusparc64)}
__pad : cshort;
@ -399,7 +399,11 @@ const
RLIMIT_LOCKS = 10; { maximum file locks held }
type
{$ifdef fs32bit}
rlim_t = cULong;
{$else}
rlim_t = cULongLong;
{$endif}
PRLimit = ^TRLimit;
TRLimit = record
rlim_cur : rlim_t;