[Next] [Up] [Previous]
Next: Variables Up: TypeVariable and Constant Previous: TypeVariable and Constant

Types

  PGlob and TGlob are 2 types used in the Glob function:

PGlob = ^TGlob;
TGlob = record
  Name : PChar;
  Next : PGlob;
  end;
The following types are used in the signal-processing procedures.
{$Packrecords 1}
SignalHandler   = Procedure ( Sig : Integer);
PSignalHandler  = ^SignalHandler;
SignalRestorer  = Procedure;
PSignalrestorer = ^SignalRestorer;

SigActionRec = Record
  Sa_Handler  : PSignalhandler;
  Sa_Mask     : Longint;
  Sa_flags    : Integer;
  Sa_Restorer : PSignalRestorer;
end;
PSigActionRec = ^SigActionRec;
Stat is used to store information about a file. It is defined in the syscalls unit.

  stat = record
     dev    : word;
     pad1   : word;
     ino    : longint;
     mode   : word;
     nlink  : word;
     uid    : word;
     gid    : word;
     rdev   : word;
     pad2   : word;
     size   : longint;
     blksze : Longint;
     blocks : Longint;
     atime  : Longint;
     unused1 : longint;
     mtime   : Longint;
     unused2 : longint;
     ctime   : Longint;
     unused3 : longint;
     unused4 : longint;
     unused5 : longint;
     end;

Statfs is used to store information about a filesystem. It is defined in the syscalls unit.

   statfs = record
     fstype   : longint;
     bsize    : longint;
     blocks   : longint;
     bfree    : longint;
     bavail   : longint;
     files    : longint;
     ffree    : longint;
     fsid     : longint;
     namelen  : longint; 
     spare    : array [0..6] of longint;
     end
Glob is used in the Glob function to return files in a directory.
 Pglob = ^Glob;
 Glob = Record  
   Name : pchar; 
   Next : Pglob 
   end;



Michael Van Canneyt
Thu Dec 12 15:40:07 MET 1996