/* statoldP.h - old struct stat definition header */ /* * Copyright (c) 2023 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. */ /* modification history -------------------- 29sep23,kch Adapted from VxWorks 7 */ #ifndef __INCstatoldPh #define __INCstatoldPh #include #ifdef __cplusplus extern "C" { #endif /* * structure definition used for the FIOFSTATGET ioctl control function * to support binary compatible with user applications built based on a 32-bit * VSB with no support for 64-bit time_t. * * This private data structure is based on 'struct stat' defined in * target/h/sys/stat.h, the only differences being that the 'st_atime, * 'st_mtime' and 'st_ctime' are of timespecOld type. */ struct stat_old2 { dev_t st_dev; /* Device ID number */ ino_t st_ino; /* File serial number */ mode_t st_mode; /* Mode of file */ nlink_t st_nlink; /* Number of hard links to file */ uid_t st_uid; /* User ID of file */ gid_t st_gid; /* Group ID of file */ dev_t st_rdev; /* Device ID if special file */ INT64 st_size; /* File size in bytes */ timeold_t st_atime; /* Time of last access */ timeold_t st_mtime; /* Time of last modification */ timeold_t st_ctime; /* Time of last status change */ blksize_t st_blksize; /* File system block size */ blkcnt_t st_blocks; /* Number of blocks containing file */ UINT8 st_attrib; /* DOSFS only - file attributes */ int st_reserved1; /* reserved for future use */ int st_reserved2; /* reserved for future use */ int st_reserved3; /* reserved for future use */ int st_reserved4; /* reserved for future use */ }; #ifdef __cplusplus } #endif #endif /* __INCstatoldPh */