1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 210b3a979SDavid Howells #ifndef _M68K_STAT_H 310b3a979SDavid Howells #define _M68K_STAT_H 410b3a979SDavid Howells 510b3a979SDavid Howells struct __old_kernel_stat { 610b3a979SDavid Howells unsigned short st_dev; 710b3a979SDavid Howells unsigned short st_ino; 810b3a979SDavid Howells unsigned short st_mode; 910b3a979SDavid Howells unsigned short st_nlink; 1010b3a979SDavid Howells unsigned short st_uid; 1110b3a979SDavid Howells unsigned short st_gid; 1210b3a979SDavid Howells unsigned short st_rdev; 1310b3a979SDavid Howells unsigned long st_size; 1410b3a979SDavid Howells unsigned long st_atime; 1510b3a979SDavid Howells unsigned long st_mtime; 1610b3a979SDavid Howells unsigned long st_ctime; 1710b3a979SDavid Howells }; 1810b3a979SDavid Howells 1910b3a979SDavid Howells struct stat { 2010b3a979SDavid Howells unsigned short st_dev; 2110b3a979SDavid Howells unsigned short __pad1; 2210b3a979SDavid Howells unsigned long st_ino; 2310b3a979SDavid Howells unsigned short st_mode; 2410b3a979SDavid Howells unsigned short st_nlink; 2510b3a979SDavid Howells unsigned short st_uid; 2610b3a979SDavid Howells unsigned short st_gid; 2710b3a979SDavid Howells unsigned short st_rdev; 2810b3a979SDavid Howells unsigned short __pad2; 2910b3a979SDavid Howells unsigned long st_size; 3010b3a979SDavid Howells unsigned long st_blksize; 3110b3a979SDavid Howells unsigned long st_blocks; 3210b3a979SDavid Howells unsigned long st_atime; 3310b3a979SDavid Howells unsigned long __unused1; 3410b3a979SDavid Howells unsigned long st_mtime; 3510b3a979SDavid Howells unsigned long __unused2; 3610b3a979SDavid Howells unsigned long st_ctime; 3710b3a979SDavid Howells unsigned long __unused3; 3810b3a979SDavid Howells unsigned long __unused4; 3910b3a979SDavid Howells unsigned long __unused5; 4010b3a979SDavid Howells }; 4110b3a979SDavid Howells 4210b3a979SDavid Howells /* This matches struct stat64 in glibc2.1, hence the absolutely 4310b3a979SDavid Howells * insane amounts of padding around dev_t's. 4410b3a979SDavid Howells */ 4510b3a979SDavid Howells struct stat64 { 4610b3a979SDavid Howells unsigned long long st_dev; 4710b3a979SDavid Howells unsigned char __pad1[2]; 4810b3a979SDavid Howells 4910b3a979SDavid Howells #define STAT64_HAS_BROKEN_ST_INO 1 5010b3a979SDavid Howells unsigned long __st_ino; 5110b3a979SDavid Howells 5210b3a979SDavid Howells unsigned int st_mode; 5310b3a979SDavid Howells unsigned int st_nlink; 5410b3a979SDavid Howells 5510b3a979SDavid Howells unsigned long st_uid; 5610b3a979SDavid Howells unsigned long st_gid; 5710b3a979SDavid Howells 5810b3a979SDavid Howells unsigned long long st_rdev; 5910b3a979SDavid Howells unsigned char __pad3[2]; 6010b3a979SDavid Howells 6110b3a979SDavid Howells long long st_size; 6210b3a979SDavid Howells unsigned long st_blksize; 6310b3a979SDavid Howells 6410b3a979SDavid Howells unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ 6510b3a979SDavid Howells 6610b3a979SDavid Howells unsigned long st_atime; 6710b3a979SDavid Howells unsigned long st_atime_nsec; 6810b3a979SDavid Howells 6910b3a979SDavid Howells unsigned long st_mtime; 7010b3a979SDavid Howells unsigned long st_mtime_nsec; 7110b3a979SDavid Howells 7210b3a979SDavid Howells unsigned long st_ctime; 7310b3a979SDavid Howells unsigned long st_ctime_nsec; 7410b3a979SDavid Howells 7510b3a979SDavid Howells unsigned long long st_ino; 7610b3a979SDavid Howells }; 7710b3a979SDavid Howells 7810b3a979SDavid Howells #endif /* _M68K_STAT_H */ 79