diff options
Diffstat (limited to 'riscv/trunk/rtl/linux/riscv32/stat.inc')
-rw-r--r-- | riscv/trunk/rtl/linux/riscv32/stat.inc | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/riscv/trunk/rtl/linux/riscv32/stat.inc b/riscv/trunk/rtl/linux/riscv32/stat.inc new file mode 100644 index 0000000000..6d69441361 --- /dev/null +++ b/riscv/trunk/rtl/linux/riscv32/stat.inc @@ -0,0 +1,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; |