summaryrefslogtreecommitdiff
path: root/rtl/linux/riscv64/stat.inc
blob: 6d69441361c98db07d1445012f564096f68c034c (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
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 1999-2000 by Jonas Maebe, (c) 2005 Thomas Schatzl,
    members of the Free Pascal development team.

    Contains the definition of the stat type for the PowerPC64 platform.

    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.

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

{ This structure was adapted from

    include/uapi/asm-generic/stat.h

  in Linux 4.0. Note that the stat record is the same for direct
  syscalls as for when linking to libc.
}

{$PACKRECORDS C}
  stat = record
    case integer of
    0 : (
      st_dev        : cULong;
      st_ino        : cULong;
      st_mode       : cUInt;
      st_nlink      : cUInt;
      st_uid        : cUInt;
      st_gid        : cUInt;
      st_rdev       : cULong;
      __pad1a       : cULong;
      st_size       : cLong;
      st_blksize    : cInt;
      __pad2a       : cInt;
      st_blocks     : cLong;
      st_atime      : cLong;
      st_atime_nsec : cULong;
      st_mtime      : cLong;
      st_mtime_nsec : cULong;
      st_ctime      : cLong;
      st_ctime_nsec : cULong;
      __unused4a    : 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;