18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _M68K_STAT_H 38c2ecf20Sopenharmony_ci#define _M68K_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 short st_dev; 218c2ecf20Sopenharmony_ci unsigned short __pad1; 228c2ecf20Sopenharmony_ci unsigned long st_ino; 238c2ecf20Sopenharmony_ci unsigned short st_mode; 248c2ecf20Sopenharmony_ci unsigned short st_nlink; 258c2ecf20Sopenharmony_ci unsigned short st_uid; 268c2ecf20Sopenharmony_ci unsigned short st_gid; 278c2ecf20Sopenharmony_ci unsigned short st_rdev; 288c2ecf20Sopenharmony_ci unsigned short __pad2; 298c2ecf20Sopenharmony_ci unsigned long st_size; 308c2ecf20Sopenharmony_ci unsigned long st_blksize; 318c2ecf20Sopenharmony_ci unsigned long st_blocks; 328c2ecf20Sopenharmony_ci unsigned long st_atime; 338c2ecf20Sopenharmony_ci unsigned long __unused1; 348c2ecf20Sopenharmony_ci unsigned long st_mtime; 358c2ecf20Sopenharmony_ci unsigned long __unused2; 368c2ecf20Sopenharmony_ci unsigned long st_ctime; 378c2ecf20Sopenharmony_ci unsigned long __unused3; 388c2ecf20Sopenharmony_ci unsigned long __unused4; 398c2ecf20Sopenharmony_ci unsigned long __unused5; 408c2ecf20Sopenharmony_ci}; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci/* This matches struct stat64 in glibc2.1, hence the absolutely 438c2ecf20Sopenharmony_ci * insane amounts of padding around dev_t's. 448c2ecf20Sopenharmony_ci */ 458c2ecf20Sopenharmony_cistruct stat64 { 468c2ecf20Sopenharmony_ci unsigned long long st_dev; 478c2ecf20Sopenharmony_ci unsigned char __pad1[2]; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#define STAT64_HAS_BROKEN_ST_INO 1 508c2ecf20Sopenharmony_ci unsigned long __st_ino; 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci unsigned int st_mode; 538c2ecf20Sopenharmony_ci unsigned int st_nlink; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci unsigned long st_uid; 568c2ecf20Sopenharmony_ci unsigned long st_gid; 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci unsigned long long st_rdev; 598c2ecf20Sopenharmony_ci unsigned char __pad3[2]; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci long long st_size; 628c2ecf20Sopenharmony_ci unsigned long st_blksize; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci unsigned long st_atime; 678c2ecf20Sopenharmony_ci unsigned long st_atime_nsec; 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci unsigned long st_mtime; 708c2ecf20Sopenharmony_ci unsigned long st_mtime_nsec; 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci unsigned long st_ctime; 738c2ecf20Sopenharmony_ci unsigned long st_ctime_nsec; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci unsigned long long st_ino; 768c2ecf20Sopenharmony_ci}; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci#endif /* _M68K_STAT_H */ 79