123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- {
- 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 PowerPC 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 ported from
- /usr/include/asm-ppc/stat.h
- on a 2.6.11 kernel.
- }
- {$PACKRECORDS C}
- {$IFNDEF FPC_USE_LIBC}
- Stat = record // No unix typing because of differences
- st_dev : culonglong;
- st_ino : culonglong;
- st_mode : cuint;
- st_nlink : cuint;
- st_uid : cuint;
- st_gid : cuint;
- st_rdev : culonglong;
- __pad2 : cushort;
- st_size : clonglong;
- st_blksize: clong;
- st_blocks : clonglong;
- st_atime : clong;
- st_atime_nsec : culong;
- st_mtime : clong;
- st_mtime_nsec : culong;
- st_ctime : clong;
- __unused3 : culong;
- __unused4 : culong;
- __unused5 : culong;
- end;
- {$ELSE FPC_USE_LIBC}
- { when linking to libc, we need to use some other, 64 bit enhanced stat type.
- Found out by having too much time on hand and some sophisticated guessing. }
- stat = record
- case byte of
- 0: (
- 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);
- 1: (
- 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,
- __unused1_dummy,
- mtime,
- __unused2_dummy,
- ctime,
- __unused3_dummy,
- __unused4_dummy,
- __unused5_dummy : cULong);
- end;
- {$ENDIF FPC_USE_LIBC}
|