xref: /aosp_15_r20/prebuilts/build-tools/sysroots/i686-unknown-linux-musl/include/bits/stat.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1*cda5da8dSAndroid Build Coastguard Worker /* copied from kernel definition, but with padding replaced
2*cda5da8dSAndroid Build Coastguard Worker  * by the corresponding correctly-sized userspace types. */
3*cda5da8dSAndroid Build Coastguard Worker 
4*cda5da8dSAndroid Build Coastguard Worker struct stat {
5*cda5da8dSAndroid Build Coastguard Worker 	dev_t st_dev;
6*cda5da8dSAndroid Build Coastguard Worker 	int __st_dev_padding;
7*cda5da8dSAndroid Build Coastguard Worker 	long __st_ino_truncated;
8*cda5da8dSAndroid Build Coastguard Worker 	mode_t st_mode;
9*cda5da8dSAndroid Build Coastguard Worker 	nlink_t st_nlink;
10*cda5da8dSAndroid Build Coastguard Worker 	uid_t st_uid;
11*cda5da8dSAndroid Build Coastguard Worker 	gid_t st_gid;
12*cda5da8dSAndroid Build Coastguard Worker 	dev_t st_rdev;
13*cda5da8dSAndroid Build Coastguard Worker 	int __st_rdev_padding;
14*cda5da8dSAndroid Build Coastguard Worker 	off_t st_size;
15*cda5da8dSAndroid Build Coastguard Worker 	blksize_t st_blksize;
16*cda5da8dSAndroid Build Coastguard Worker 	blkcnt_t st_blocks;
17*cda5da8dSAndroid Build Coastguard Worker 	struct {
18*cda5da8dSAndroid Build Coastguard Worker 		long tv_sec;
19*cda5da8dSAndroid Build Coastguard Worker 		long tv_nsec;
20*cda5da8dSAndroid Build Coastguard Worker 	} __st_atim32, __st_mtim32, __st_ctim32;
21*cda5da8dSAndroid Build Coastguard Worker 	ino_t st_ino;
22*cda5da8dSAndroid Build Coastguard Worker 	struct timespec st_atim;
23*cda5da8dSAndroid Build Coastguard Worker 	struct timespec st_mtim;
24*cda5da8dSAndroid Build Coastguard Worker 	struct timespec st_ctim;
25*cda5da8dSAndroid Build Coastguard Worker };
26