summaryrefslogtreecommitdiff
path: root/rtl/linux/i386/stat.inc
blob: f9dcb08f1099ce56f0729b6aa1d6a8387a9467de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
    $Id: stat.inc,v 1.3 2005/02/14 17:13:30 peter Exp $
    This file is part of the Free Pascal run time library.
    Copyright (c) 1999-2000 by Jonas Maebe,
    member of the Free Pascal development team.

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}

{$ifndef FPC_USE_LIBC} // kernel record

  Stat = Packed Record  // No unix typing because of differences
                              // kernel <->libc
    case byte of
      0: (st_dev     : word;
          pad1       : word;
          st_ino     : longint;
          st_mode,
          st_nlink,
          st_uid,
          st_gid        : word;
          st_rdev       : word;
          pad2       : word;
          st_size,
          st_blksze,
          st_blocks,
          st_atime,
          unused1,
          st_mtime,
          unused2,
          st_ctime,
          unused3,
          unused4,
          unused5   : longint;);
      1: (
          dev     : word;
          pad1_dummy    : word;
          ino     : longint;
          mode,
          nlink,
          uid,
          gid           : word;
          rdev          : word;
          pad2_dummy    : word;
          size,
          blksze,
          blocks,
          atime,
          unused1_dummy,
          mtime,
          unused2_dummy,
          ctime,
          unused3_dummy,
          unused4_dummy,
          unused5_dummy : longint;
         );
  end;
{$else}

{$packrecords C}
  Stat =  Record  // No unix typing because of differences
                              // kernel <->libc
    case byte of
      0: (st_dev     : int64;
          pad1       : word;
          st_ino     : longint;
          st_mode,
          st_nlink,
          st_uid,
          st_gid        : longint;
          st_rdev       : int64;
          pad2          : word;
          st_size,
          st_blksze,
          st_blocks,
          st_atime,
          unused1,
          st_mtime,
          unused2,
          st_ctime,
          unused3,
          unused4,
          unused5   : longint;);
      1: (
          dev        : int64;
          pad1_dummy : word;
          ino        : longint;
          mode,
          nlink,
          uid,
          gid        : longint;
          rdev       : int64;
          pad2_dummy : word;
          size,
          blksze,
          blocks,
          atime,
          unused1_dummy,
          mtime,
          unused2_dummy,
          ctime,
          unused3_dummy,
          unused4_dummy,
          unused5_dummy   : longint;

         );
  end;


{$endif}

{
  $Log: stat.inc,v $
  Revision 1.3  2005/02/14 17:13:30  peter
    * truncate log

}