Browse Source

* remove deprecated parts linux stat records (FPC 1.0 leftovers)

git-svn-id: trunk@39644 -
marco 7 years ago
parent
commit
bffbff73e1

+ 0 - 25
rtl/linux/aarch64/stat.inc

@@ -24,8 +24,6 @@
 
 
 {$PACKRECORDS C}
 {$PACKRECORDS C}
   stat = record
   stat = record
-    case integer of
-    0 : (
       st_dev        : cULong;
       st_dev        : cULong;
       st_ino        : cULong;
       st_ino        : cULong;
       st_mode       : cUInt;
       st_mode       : cUInt;
@@ -46,27 +44,4 @@
       st_ctime_nsec : cULong;
       st_ctime_nsec : cULong;
       __unused4a    : cUInt;
       __unused4a    : cUInt;
       __unused5a    : cUInt;
       __unused5a    : cUInt;
-      );
-    1 : (
-      dev           : cULong deprecated;
-      ino           : cULong deprecated;
-      mode          : cUInt deprecated;
-      nlink         : cUInt deprecated;
-      uid           : cUInt deprecated;
-      gid           : cUInt deprecated;
-      rdev          : cULong deprecated;
-      __pad1b       : cULong deprecated;
-      size          : cLong deprecated;
-      blksize       : cInt deprecated;
-      __pad2b       : cInt deprecated;
-      blocks        : cLong deprecated;
-      atime         : cLong deprecated;
-      atime_nsec    : cULong deprecated;
-      mtime         : cLong deprecated;
-      mtime_nsec    : cULong deprecated;
-      ctime         : cLong deprecated;
-      ctime_nsec    : cULong deprecated;
-      __unused4b    : cUInt deprecated;
-      __unused5b    : cUInt deprecated;
-      );
   end;
   end;

+ 2 - 24
rtl/linux/arm/stat.inc

@@ -13,29 +13,7 @@
  **********************************************************************}
  **********************************************************************}
 
 
   Stat = record  // No unix typing because of differences
   Stat = record  // No unix typing because of differences
-    case byte of
-    0:
-      (dev    : culonglong deprecated;
-      __pad0    : array[0..3] of cuchar deprecated;
-      __st_ino  : culong deprecated;
-      mode   : cuint deprecated;
-      nlink  : cuint deprecated;
-      uid    : culong deprecated;
-      gid    : culong deprecated;
-      rdev   : culonglong deprecated;
-      __pad3 : array[0..3] of cuchar deprecated;
-      size   : culonglong deprecated;
-      blksize: culong deprecated;
-      blocks : culonglong deprecated;
-      atime  : culong deprecated;
-      atime_nsec : culong deprecated;
-      mtime  : culong deprecated;
-      mtime_nsec : culong deprecated;
-      ctime  : culong deprecated;
-      ctime_nsec : culong deprecated;
-      ino    : culonglong deprecated;);
-    1:
-      (st_dev    : culonglong;
+      st_dev    : culonglong;
       __pad0_    : array[0..3] of cuchar;
       __pad0_    : array[0..3] of cuchar;
       __st_ino_  : culong;
       __st_ino_  : culong;
       st_mode   : cuint;
       st_mode   : cuint;
@@ -53,6 +31,6 @@
       st_mtime_nsec : culong;
       st_mtime_nsec : culong;
       st_ctime  : culong;
       st_ctime  : culong;
       st_ctime_nsec : culong;
       st_ctime_nsec : culong;
-      st_ino    : culonglong);
+      st_ino    : culonglong;
   end;
   end;
 
 

+ 6 - 79
rtl/linux/i386/stat.inc

@@ -15,29 +15,7 @@
 {$ifndef FPC_USE_LIBC} // kernel record
 {$ifndef FPC_USE_LIBC} // kernel record
 
 
   Stat = packed record  
   Stat = packed record  
-    case byte of
-      0:
-        (dev        : qword    deprecated;
-        __pad0      : array[0..3] of byte deprecated;
-        __ino       : cardinal deprecated;
-        mode        : cardinal deprecated;
-        nlink       : cardinal deprecated;
-        uid	    : cardinal deprecated;
-        gid         : cardinal deprecated;
-        rdev        : qword deprecated;
-        __pad3      : array[0..3] of byte deprecated;
-        size        : qword    deprecated;
-        blksize     : cardinal deprecated;
-        blocks      : qword    deprecated;
-        atime	    : cardinal deprecated;
-        atime_nsec  : cardinal deprecated;
-        mtime	    : cardinal deprecated; 
-        mtime_nsec  : cardinal deprecated;
-        ctime	    : cardinal deprecated;
-        ctime_nsec  : cardinal deprecated;
-        ino         : qword    deprecated);
-      1:		// Unix typing will be reintroduced.
-        (st_dev   : qword;
+        st_dev   : qword;
         __pad0_   : array[0..3] of byte;
         __pad0_   : array[0..3] of byte;
         __st_ino_,
         __st_ino_,
         st_mode,
         st_mode,
@@ -55,7 +33,7 @@
         st_mtime_nsec,
         st_mtime_nsec,
         st_ctime,
         st_ctime,
         st_ctime_nsec : cardinal;
         st_ctime_nsec : cardinal;
-        st_ino    : qword);
+        st_ino    : qword;
   end;
   end;
 
 
 {$else}
 {$else}
@@ -66,27 +44,7 @@
 
 
 {$ifdef fs32bit}
 {$ifdef fs32bit}
   Stat =  Record
   Stat =  Record
-    case byte of
-      0:(dev: cuLong deprecated;
-         ino: cuLong deprecated;
-         mode: cuShort deprecated;
-         nlink: cuShort deprecated; 
-         uid: cuShort deprecated;
-         gid: cuShort deprecated;
-         rdev: cuLong deprecated;
-         size: cuLong deprecated;
-         blksize: cuLong deprecated;
-         blocks: cuLong deprecated;
-         atime: cuLong deprecated; 
-         atime_nsec: cuLong deprecated;
-         mtime: cuLong deprecated;
-         mtime_nsec: cuLong deprecated;
-         ctime: cuLong deprecated;
-         ctime_nsec: cuLong deprecated;
-         __unused4: cuLong deprecated;
-         __unused5: cuLong deprecated);
-
-      1:(st_dev: cuLong;
+         st_dev: cuLong;
          st_ino: cuLong;
          st_ino: cuLong;
          st_mode: cuShort;
          st_mode: cuShort;
          st_nlink: cuShort; 
          st_nlink: cuShort; 
@@ -103,44 +61,13 @@
          st_ctime: cuLong;
          st_ctime: cuLong;
          st_ctime_nsec: cuLong;
          st_ctime_nsec: cuLong;
          __unused4_: cuLong;
          __unused4_: cuLong;
-         __unused5_: cuLong);
+         __unused5_: cuLong;
   end;
   end;
 
 
 {$else} // 64 bit stat
 {$else} // 64 bit stat
 
 
   Stat = record
   Stat = record
-    case Byte of
-    0 :(dev: cuLongLong deprecated;
-    __pad0: array[0..3] of cuChar deprecated;
-
-    __ino: cuLong deprecated;
-
-    mode: cuInt deprecated;
-    nlink: cuInt deprecated;
-
-    uid: cuLong deprecated;
-    gid: cuLong deprecated;
-
-    rdev: cuLongLong deprecated;
-    __pad3: array[0..3] of cuChar deprecated;
-
-    size: cLongLong deprecated;
-    blksize: cuLong deprecated;
-
-    blocks: cuLongLong deprecated;	//* Number 512-byte blocks allocated. */
-
-    atime: cuLong deprecated;
-    atime_nsec: cuLong deprecated;
-
-    mtime: cuLong deprecated;
-    mtime_nsec: cuInt deprecated;
-
-    ctime: cuLong deprecated;
-    ctime_nsec: cuLong deprecated;
-
-    ino: cuLongLong deprecated);
-
-    1 :(st_dev: cuLongLong;
+    st_dev: cuLongLong;
     __pad0_: array[0..3] of cuChar;
     __pad0_: array[0..3] of cuChar;
 
 
     __st_ino: cuLong;
     __st_ino: cuLong;
@@ -168,7 +95,7 @@
     st_ctime: cuLong;
     st_ctime: cuLong;
     st_ctime_nsec: cuLong;
     st_ctime_nsec: cuLong;
 
 
-    st_ino: cuLongLong);
+    st_ino: cuLongLong;
   end;
   end;
 
 
 {$endif}
 {$endif}

+ 2 - 24
rtl/linux/m68k/stat.inc

@@ -13,29 +13,7 @@
  **********************************************************************}
  **********************************************************************}
 
 
   Stat = packed record  // No unix typing because of differences
   Stat = packed record  // No unix typing because of differences
-    case byte of
-      0:
-        (dev    : qword;
-        __pad0  : array[0..1] of byte;
-        __ino,
-        mode,
-        nlink,
-        uid,
-        gid     : cardinal;
-        rdev    : qword;
-        __pad3  : array[0..1] of byte;
-        size    : qword;
-        blksize : cardinal;
-        blocks  : qword;
-        atime,
-        atime_nsec,
-        mtime,
-        mtime_nsec,
-        ctime,
-        ctime_nsec : cardinal;
-        ino    : qword);
-      1:
-        (st_dev   : qword;
+        st_dev   : qword;
         __pad0_   : array[0..1] of byte;
         __pad0_   : array[0..1] of byte;
         __st_ino_,
         __st_ino_,
         st_mode,
         st_mode,
@@ -53,5 +31,5 @@
         st_mtime_nsec,
         st_mtime_nsec,
         st_ctime,
         st_ctime,
         st_ctime_nsec : cardinal;
         st_ctime_nsec : cardinal;
-        st_ino    : qword);
+        st_ino    : qword;
   end;
   end;

+ 1 - 23
rtl/linux/powerpc64/stat.inc

@@ -24,8 +24,6 @@
 
 
 {$PACKRECORDS C}
 {$PACKRECORDS C}
   stat = record 
   stat = record 
-    case integer of
-    0 : (
       st_dev     : cULong;
       st_dev     : cULong;
       st_ino     : cULong;     { wrongly defined in RTL? }
       st_ino     : cULong;     { wrongly defined in RTL? }
       st_nlink   : cULong;     { wrongly defined in RTL? }
       st_nlink   : cULong;     { wrongly defined in RTL? }
@@ -45,25 +43,5 @@
       st_mtime_nsec : cULong;
       st_mtime_nsec : cULong;
       st_ctime : cULong;
       st_ctime : cULong;
       st_ctime_nsec : cULong;
       st_ctime_nsec : cULong;
-      __unused : array[0..2] of cULong
-      );
-    1 : (
-      dev        : cULong deprecated;
-      ino        : cULong deprecated;
-      nlink      : cULong deprecated;
-      mode       : mode_t deprecated;
-      uid        : uid_t deprecated;
-      gid        : gid_t deprecated;
-      rdev       : cULong deprecated;
-      size       : off_t deprecated;
-      blksize,
-      blocks,
-      atime,
-      atime_nsec,
-      mtime,
-      mtime_nsec,
-      ctime,
-      ctime_nsec : cULong deprecated;
-      __unused_dummy : array[0..2] of cULong deprecated;
-      );
+      __unused : array[0..2] of cULong;
   end;
   end;

+ 4 - 49
rtl/linux/x86_64/stat.inc

@@ -15,30 +15,7 @@
 {$ifndef FPC_USE_LIBC} // kernel record
 {$ifndef FPC_USE_LIBC} // kernel record
 
 
   stat = packed record  // No unix typing because of differences
   stat = packed record  // No unix typing because of differences
-    case byte of
-      0:
-        (dev,
-        ino,
-        nlink  : qword deprecated;
-
-        mode,
-        uid,
-        gid,
-        __pad0 : cardinal deprecated;
-        rdev   : qword deprecated;
-        size,
-        blksize,
-        blocks : int64 deprecated;
-
-        atime,
-        atime_nsec,
-        mtime,
-        mtime_nsec,
-        ctime,
-        ctime_nsec : qword deprecated;
-        __unused  : array[0..2] of qword deprecated);
-      1:
-        (st_dev,
+        st_dev,
         st_ino,
         st_ino,
         st_nlink  : qword;
         st_nlink  : qword;
 
 
@@ -57,7 +34,7 @@
         st_mtime_nsec,
         st_mtime_nsec,
         st_ctime,
         st_ctime,
         st_ctime_nsec : qword;
         st_ctime_nsec : qword;
-        __unused2  : array[0..2] of qword;);
+        __unused2  : array[0..2] of qword;
   end;
   end;
 
 
 {$else}
 {$else}
@@ -66,29 +43,7 @@
 // god from /usr/include/asm-x86_64 some -dev of linux-headers must be installed
 // god from /usr/include/asm-x86_64 some -dev of linux-headers must be installed
 
 
   Stat = record
   Stat = record
-  case Byte of
-    0:(dev: cuLong deprecated;
-    ino: cuLong deprecated;
-    nlink: cuLong deprecated;
-
-    mode: cuInt deprecated;
-    uid: cuInt deprecated;
-    gid: cuInt deprecated;
-    __pad0: cuInt deprecated;
-    rdev: cuLong deprecated;
-    size: cLong deprecated;
-    blksize: cLong deprecated;
-    blocks: cLong	deprecated; //* Number 512-byte blocks allocated. */
-
-    atime: cuLong deprecated;
-    atime_nsec: cuLong deprecated;
-    mtime: cuLong deprecated;
-    mtime_nsec: cuLong deprecated;
-    ctime: cuLong deprecated;
-    ctime_nsec: cuLong deprecated;
-    __unused: array[0..2] of cLong deprecated;);
-
-    1:(st_dev: cuLong;
+    st_dev: cuLong;
     st_ino: cuLong;
     st_ino: cuLong;
     st_nlink: cuLong;
     st_nlink: cuLong;
 
 
@@ -107,7 +62,7 @@
     st_mtime_nsec: cuLong;
     st_mtime_nsec: cuLong;
     st_ctime: cuLong;
     st_ctime: cuLong;
     st_ctime_nsec: cuLong;
     st_ctime_nsec: cuLong;
-    __unused2: array[0..2] of cLong);
+    __unused2: array[0..2] of cLong;
   end;
   end;
 
 
 {$endif}
 {$endif}