فهرست منبع

* split into ptypes and ctypes

marco 22 سال پیش
والد
کامیت
bdfdf058e5
1فایلهای تغییر یافته به همراه47 افزوده شده و 21 حذف شده
  1. 47 21
      rtl/freebsd/ptypes.inc

+ 47 - 21
rtl/freebsd/ptypes.inc

@@ -20,43 +20,61 @@
 {                       POSIX TYPE DEFINITIONS                          }
 {***********************************************************************}
 
+{$I ctypes.inc}
+
 type
-    { the following type definitions are compiler dependant }
-    { and system dependant                                  }
-
-    cint8  = shortint;
-    cuint8 = byte;
-    cuint16= word;
-    cint16 = smallint;
-    cint32 = longint;
-    cuint32= cardinal;
-    cint64 = int64;
-{$ifndef VER_1_0}
-    cuint64= qword;
-{$endif}
-
-    cint   = longint;           { minimum range is : 32-bit    }
-    cuint  = Cardinal;          { minimum range is : 32-bit    }
-    clong  = longint;
-    culong = Cardinal;
-    cshort = integer;
-    cushort= word;
 
     dev_t    = cuint32;         { used for device numbers      }
+    TDev     = dev_t;
+    pDev     = ^dev_t;
+
     gid_t    = cuint32;         { used for group IDs           }
+    TGid     = gid_t;
+    pGid     = ^gid_t;
+
     ino_t    = clong;           { used for file serial numbers }
+    TIno     = ino_t;
+    pIno     = ^ino_t;
+
     mode_t   = cuint16;         { used for file attributes     }
+    TMode    = mode_t;
+    pMode    = ^mode_t;
+
     nlink_t  = cuint16;         { used for link counts         }
+    TnLink   = nlink_t;
+    pnLink   = ^nlink_t;
+
     off_t    = cint64;          { used for file sizes          }
+    TOff     = off_t;
+    pOff     = ^off_t;
+
     pid_t    = cint32;          { used as process identifier   }
+    TPid     = pid_t;
+    pPid     = ^pid_t;
+
     size_t   = cuint32;         { as definied in the C standard}
+    TSize    = size_t;
+    pSize    = ^size_t;		
+
     ssize_t  = cint32;          { used by function for returning number of bytes }
+    TsSize   = ssize_t;
+    psSize   = ^ssize_t;		
+
     uid_t    = cuint32;         { used for user ID type        }
+    TUid     = Uid_t;
+    pUid     = ^Uid_t;
+
     clock_t  = culong;
+    TClock   = clock_t;
+    pClock   = ^clock_t;
 
     time_t   = clong;           { used for returning the time  }
-    ptime_t  = ^time_t;
+    TTime    = time_t; 
+    pTime    = ^time_t;
+
     socklen_t= cuint32;
+    TSocklen = socklen_t;
+    pSocklen = ^socklen_t;
 
 CONST
    { System limits, POSIX value in parentheses, used for buffer and stack allocation }
@@ -65,3 +83,11 @@ CONST
     PATH_MAX = 1024;    {255}   { Maximum number of bytes in pathname }
 
     SYS_NMLN = 32;              {BSD utsname struct limit}
+
+{
+  $Log$
+  Revision 1.5  2003-01-03 13:11:32  marco
+   * split into ptypes and ctypes
+
+
+}