~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/rtl/linux/x86_64/stat.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
    This file is part of the Free Pascal run time library.
 
3
    Copyright (c) 1999-2004 by Jonas Maebe,
 
4
    member of the Free Pascal development team.
 
5
 
 
6
    See the file COPYING.FPC, included in this distribution,
 
7
    for details about the copyright.
 
8
 
 
9
    This program is distributed in the hope that it will be useful,
 
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
12
 
 
13
 **********************************************************************}
 
14
 
 
15
{$ifndef FPC_USE_LIBC} // kernel record
 
16
 
 
17
  stat = packed record  // No unix typing because of differences
 
18
    case byte of
 
19
      0:
 
20
        (dev,
 
21
        ino,
 
22
        nlink  : qword deprecated;
 
23
 
 
24
        mode,
 
25
        uid,
 
26
        gid,
 
27
        __pad0 : cardinal deprecated;
 
28
        rdev   : qword deprecated;
 
29
        size,
 
30
        blksize,
 
31
        blocks : int64 deprecated;
 
32
 
 
33
        atime,
 
34
        atime_nsec,
 
35
        mtime,
 
36
        mtime_nsec,
 
37
        ctime,
 
38
        ctime_nsec : qword deprecated;
 
39
        __unused  : array[0..2] of qword deprecated);
 
40
      1:
 
41
        (st_dev,
 
42
        st_ino,
 
43
        st_nlink  : qword;
 
44
 
 
45
        st_mode,
 
46
        st_uid,
 
47
        st_gid,
 
48
        __pad1    : cardinal;
 
49
        st_rdev   : qword;
 
50
        st_size,
 
51
        st_blksize,
 
52
        st_blocks : int64;
 
53
 
 
54
        st_atime,
 
55
        st_atime_nsec,
 
56
        st_mtime,
 
57
        st_mtime_nsec,
 
58
        st_ctime,
 
59
        st_ctime_nsec : qword;
 
60
        __unused2  : array[0..2] of qword;);
 
61
  end;
 
62
 
 
63
{$else}
 
64
 
 
65
{$packrecords C}
 
66
// god from /usr/include/asm-x86_64 some -dev of linux-headers must be installed
 
67
 
 
68
  Stat = record
 
69
  case Byte of
 
70
    0:(dev: cuLong deprecated;
 
71
    ino: cuLong deprecated;
 
72
    nlink: cuLong deprecated;
 
73
 
 
74
    mode: cuInt deprecated;
 
75
    uid: cuInt deprecated;
 
76
    gid: cuInt deprecated;
 
77
    __pad0: cuInt deprecated;
 
78
    rdev: cuLong deprecated;
 
79
    size: cLong deprecated;
 
80
    blksize: cLong deprecated;
 
81
    blocks: cLong       deprecated; //* Number 512-byte blocks allocated. */
 
82
 
 
83
    atime: cuLong deprecated;
 
84
    atime_nsec: cuLong deprecated;
 
85
    mtime: cuLong deprecated;
 
86
    mtime_nsec: cuLong deprecated;
 
87
    ctime: cuLong deprecated;
 
88
    ctime_nsec: cuLong deprecated;
 
89
    __unused: array[0..2] of cLong deprecated;);
 
90
 
 
91
    1:(st_dev: cuLong;
 
92
    st_ino: cuLong;
 
93
    st_nlink: cuLong;
 
94
 
 
95
    st_mode: cuInt;
 
96
    st_uid: cuInt;
 
97
    st_gid: cuInt;
 
98
    __pad1: cuInt;
 
99
    st_rdev: cuLong;
 
100
    st_size: cLong;
 
101
    st_blksize: cLong;
 
102
    st_blocks: cLong;   //* Number 512-byte blocks allocated. */
 
103
 
 
104
    st_atime: cuLong;
 
105
    st_atime_nsec: cuLong; 
 
106
    st_mtime: cuLong;
 
107
    st_mtime_nsec: cuLong;
 
108
    st_ctime: cuLong;
 
109
    st_ctime_nsec: cuLong;
 
110
    __unused2: array[0..2] of cLong);
 
111
  end;
 
112
 
 
113
{$endif}
 
114