18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_SH_STAT_H 38c2ecf20Sopenharmony_ci#define __ASM_SH_STAT_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_cistruct __old_kernel_stat { 68c2ecf20Sopenharmony_ci unsigned short st_dev; 78c2ecf20Sopenharmony_ci unsigned short st_ino; 88c2ecf20Sopenharmony_ci unsigned short st_mode; 98c2ecf20Sopenharmony_ci unsigned short st_nlink; 108c2ecf20Sopenharmony_ci unsigned short st_uid; 118c2ecf20Sopenharmony_ci unsigned short st_gid; 128c2ecf20Sopenharmony_ci unsigned short st_rdev; 138c2ecf20Sopenharmony_ci unsigned long st_size; 148c2ecf20Sopenharmony_ci unsigned long st_atime; 158c2ecf20Sopenharmony_ci unsigned long st_mtime; 168c2ecf20Sopenharmony_ci unsigned long st_ctime; 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cistruct stat { 208c2ecf20Sopenharmony_ci unsigned long st_dev; 218c2ecf20Sopenharmony_ci unsigned long st_ino; 228c2ecf20Sopenharmony_ci unsigned short st_mode; 238c2ecf20Sopenharmony_ci unsigned short st_nlink; 248c2ecf20Sopenharmony_ci unsigned short st_uid; 258c2ecf20Sopenharmony_ci unsigned short st_gid; 268c2ecf20Sopenharmony_ci unsigned long st_rdev; 278c2ecf20Sopenharmony_ci unsigned long st_size; 288c2ecf20Sopenharmony_ci unsigned long st_blksize; 298c2ecf20Sopenharmony_ci unsigned long st_blocks; 308c2ecf20Sopenharmony_ci unsigned long st_atime; 318c2ecf20Sopenharmony_ci unsigned long st_atime_nsec; 328c2ecf20Sopenharmony_ci unsigned long st_mtime; 338c2ecf20Sopenharmony_ci unsigned long st_mtime_nsec; 348c2ecf20Sopenharmony_ci unsigned long st_ctime; 358c2ecf20Sopenharmony_ci unsigned long st_ctime_nsec; 368c2ecf20Sopenharmony_ci unsigned long __unused4; 378c2ecf20Sopenharmony_ci unsigned long __unused5; 388c2ecf20Sopenharmony_ci}; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* This matches struct stat64 in glibc2.1, hence the absolutely 418c2ecf20Sopenharmony_ci * insane amounts of padding around dev_t's. 428c2ecf20Sopenharmony_ci */ 438c2ecf20Sopenharmony_cistruct stat64 { 448c2ecf20Sopenharmony_ci unsigned long long st_dev; 458c2ecf20Sopenharmony_ci unsigned char __pad0[4]; 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#define STAT64_HAS_BROKEN_ST_INO 1 488c2ecf20Sopenharmony_ci unsigned long __st_ino; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci unsigned int st_mode; 518c2ecf20Sopenharmony_ci unsigned int st_nlink; 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci unsigned long st_uid; 548c2ecf20Sopenharmony_ci unsigned long st_gid; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci unsigned long long st_rdev; 578c2ecf20Sopenharmony_ci unsigned char __pad3[4]; 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci long long st_size; 608c2ecf20Sopenharmony_ci unsigned long st_blksize; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci unsigned long st_atime; 658c2ecf20Sopenharmony_ci unsigned long st_atime_nsec; 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci unsigned long st_mtime; 688c2ecf20Sopenharmony_ci unsigned long st_mtime_nsec; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci unsigned long st_ctime; 718c2ecf20Sopenharmony_ci unsigned long st_ctime_nsec; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci unsigned long long st_ino; 748c2ecf20Sopenharmony_ci}; 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define STAT_HAVE_NSEC 1 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci#endif /* __ASM_SH_STAT_H */ 79