mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-23 23:51:37 +02:00
113 lines
2.7 KiB
PHP
113 lines
2.7 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 1999-2003 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}
|
|
|
|
Stat = packed record // No unix typing because of differences
|
|
case byte of
|
|
0:
|
|
(dev : culonglong;
|
|
ino : culonglong;
|
|
mode : cuint;
|
|
nlink : cuint;
|
|
uid : cuint;
|
|
gid : cuint;
|
|
rdev : culonglong;
|
|
__pad3 : array[0..7] of cuchar;
|
|
size : clonglong;
|
|
blksize: cuint;
|
|
__pad4 : array[0..7] of cuchar;
|
|
blocks : cuint;
|
|
atime : cuint;
|
|
atime_nsec : cuint;
|
|
mtime : cuint;
|
|
mtime_nsec : cuint;
|
|
ctime : cuint;
|
|
ctime_nsec : cuint;
|
|
__unused4 : cuint;
|
|
__unused5 : cuint);
|
|
1:
|
|
(st_dev : culonglong;
|
|
st_ino : culonglong;
|
|
st_mode : cuint;
|
|
st_nlink : cuint;
|
|
st_uid : cuint;
|
|
st_gid : cuint;
|
|
st_rdev : culonglong;
|
|
__pad3_ : array[0..7] of cuchar;
|
|
st_size : clonglong;
|
|
st_blksize: cuint;
|
|
__pad4_ : array[0..7] of cuchar;
|
|
st_blocks : cuint;
|
|
st_atime : cuint;
|
|
st_atime_nsec : cuint;
|
|
st_mtime : cuint;
|
|
st_mtime_nsec : cuint;
|
|
st_ctime : cuint;
|
|
st_ctime_nsec : cuint;
|
|
__unused4_ : cuint;
|
|
__unused5_ : cuint);
|
|
end;
|
|
|
|
{$ELSE FPC_USE_LIBC}
|
|
|
|
{$PACKRECORDS C}
|
|
|
|
Stat = record
|
|
case byte of
|
|
0:
|
|
(dev : cULongLong;
|
|
ino : cULongLong;
|
|
mode : mode_t;
|
|
nlink : nlink_t;
|
|
uid : uid_t;
|
|
gid : gid_t;
|
|
rdev : cULongLong;
|
|
__pad2 : cushort;
|
|
size : cLongLong;
|
|
blksize : cULong;
|
|
blocks : cULongLong;
|
|
atime,
|
|
atime_nsec,
|
|
mtime,
|
|
mtime_nsec,
|
|
ctime,
|
|
ctime_nsec,
|
|
__unused4,
|
|
__unused5 : cULong);
|
|
1:
|
|
(st_dev : cULongLong;
|
|
st_ino : cULongLong;
|
|
st_mode : mode_t;
|
|
st_nlink : nlink_t;
|
|
st_uid : uid_t;
|
|
st_gid : gid_t;
|
|
st_rdev : cULongLong;
|
|
__pad2_ : cushort;
|
|
st_size : cLongLong;
|
|
st_blksize : cULong;
|
|
st_blocks : cULongLong;
|
|
st_atime,
|
|
st_atime_nsec,
|
|
st_mtime,
|
|
st_mtime_nsec,
|
|
st_ctime,
|
|
st_ctime_nsec,
|
|
__unused4_,
|
|
__unused5-) : cULong);
|
|
end;
|
|
|
|
{$ENDIF FPC_USE_LIBC}
|
|
|