Procházet zdrojové kódy

* 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 -

pierre před 5 roky
rodič
revize
4d25558519
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      rtl/linux/ostypes.inc

+ 6 - 2
rtl/linux/ostypes.inc

@@ -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;