#ifndef _ASM_X86_STAT_H #define _ASM_X86_STAT_H #define STAT_HAVE_NSEC 1 #ifdef __i386__ struct stat { unsigned long st_dev; unsigned long st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned long st_rdev; unsigned long st_size; unsigned long st_blksize; unsigned long st_blocks; unsigned long st_atime; unsigned long st_atime_nsec; unsigned long st_mtime; unsigned long st_mtime_nsec; unsigned long st_ctime; unsigned long st_ctime_nsec; unsigned long __unused4; unsigned long __unused5; }; /* We don't need to memset the whole thing just to initialize the padding */ #define INIT_STRUCT_STAT_PADDING(st) do { \ st.__unused4 = 0; \ st.__unused5 = 0; \ } while (0) #define STAT64_HAS_BROKEN_ST_INO 1 /* This matches struct stat64 in glibc2.1, hence the absolutely * insane amounts of padding around dev_t's. */ struct stat64 { unsigned long long st_dev; unsigned char __pad0[4]; unsigned long __st_ino; unsigned int st_mode; unsigned int st_nlink; unsigned long st_uid; unsigned long st_gid; unsigned long long st_rdev; unsigned char __pad3[4]; long long st_size; unsigned long st_blksize; /* Number 512-byte blocks allocated. */ unsigned long long st_blocks; unsigned long st_atime; unsigned long st_atime_nsec; unsigned long st_mtime; unsigned int st_mtime_nsec; unsigned long st_ctime; unsigned long st_ctime_nsec; unsigned long long st_ino; }; /* We don't need to memset the whole thing just to initialize the padding */ #define INIT_STRUCT_STAT64_PADDING(st) do { \ memset(&st.__pad0, 0, sizeof(st.__pad0)); \ memset(&st.__pad3, 0, sizeof(st.__pad3)); \ } while (0) #else /* __i386__ */ struct stat { unsigned long st_dev; unsigned long st_ino; unsigned long st_nlink; unsigned int st_mode; unsigned int st_uid; unsigned int st_gid; unsigned int __pad0; unsigned long st_rdev; long st_size; long st_blksize; long st_blocks; /* Number 512-byte blocks allocated. */ unsigned long st_atime; unsigned long st_atime_nsec; unsigned long st_mtime; unsigned long st_mtime_nsec; unsigned long st_ctime; unsigned long st_ctime_nsec; long __unused[3]; }; /* We don't need to memset the whole thing just to initialize the padding */ #define INIT_STRUCT_STAT_PADDING(st) do { \ st.__pad0 = 0; \ st.__unused[0] = 0; \ st.__unused[1] = 0; \ st.__unused[2] = 0; \ } while (0) #endif /* for 32bit emulation and 32 bit kernels */ struct __old_kernel_stat { unsigned short st_dev; unsigned short st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; #ifdef __i386__ unsigned long st_size; unsigned long st_atime; unsigned long st_mtime; unsigned long st_ctime; #else unsigned int st_size; unsigned int st_atime; unsigned int st_mtime; unsigned int st_ctime; #endif }; #endif /* _ASM_X86_STAT_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
a.out.h | File | 693 B | 0644 |
|
auxvec.h | File | 483 B | 0644 |
|
bitsperlong.h | File | 229 B | 0644 |
|
boot.h | File | 260 B | 0644 |
|
bootparam.h | File | 4.39 KB | 0644 |
|
bpf_perf_event.h | File | 40 B | 0644 |
|
byteorder.h | File | 137 B | 0644 |
|
debugreg.h | File | 3.15 KB | 0644 |
|
e820.h | File | 2.63 KB | 0644 |
|
errno.h | File | 31 B | 0644 |
|
fcntl.h | File | 31 B | 0644 |
|
hw_breakpoint.h | File | 6 B | 0644 |
|
hyperv.h | File | 12.98 KB | 0644 |
|
ioctl.h | File | 31 B | 0644 |
|
ioctls.h | File | 32 B | 0644 |
|
ipcbuf.h | File | 32 B | 0644 |
|
ist.h | File | 790 B | 0644 |
|
kvm.h | File | 6.81 KB | 0644 |
|
kvm_para.h | File | 2.8 KB | 0644 |
|
kvm_perf.h | File | 325 B | 0644 |
|
ldt.h | File | 963 B | 0644 |
|
mce.h | File | 1.22 KB | 0644 |
|
mman.h | File | 1.01 KB | 0644 |
|
msgbuf.h | File | 32 B | 0644 |
|
msr-index.h | File | 29.04 KB | 0644 |
|
msr.h | File | 283 B | 0644 |
|
mtrr.h | File | 4.06 KB | 0644 |
|
param.h | File | 31 B | 0644 |
|
perf_regs.h | File | 1.24 KB | 0644 |
|
poll.h | File | 30 B | 0644 |
|
posix_types.h | File | 161 B | 0644 |
|
posix_types_32.h | File | 702 B | 0644 |
|
posix_types_64.h | File | 546 B | 0644 |
|
posix_types_x32.h | File | 518 B | 0644 |
|
prctl.h | File | 190 B | 0644 |
|
processor-flags.h | File | 6.32 KB | 0644 |
|
ptrace-abi.h | File | 1.76 KB | 0644 |
|
ptrace.h | File | 1.17 KB | 0644 |
|
resource.h | File | 34 B | 0644 |
|
sembuf.h | File | 699 B | 0644 |
|
setup.h | File | 6 B | 0644 |
|
shmbuf.h | File | 32 B | 0644 |
|
sigcontext.h | File | 5.11 KB | 0644 |
|
sigcontext32.h | File | 1.64 KB | 0644 |
|
siginfo.h | File | 431 B | 0644 |
|
signal.h | File | 2.77 KB | 0644 |
|
socket.h | File | 32 B | 0644 |
|
sockios.h | File | 33 B | 0644 |
|
stat.h | File | 2.89 KB | 0644 |
|
statfs.h | File | 353 B | 0644 |
|
svm.h | File | 5.09 KB | 0644 |
|
swab.h | File | 661 B | 0644 |
|
termbits.h | File | 34 B | 0644 |
|
termios.h | File | 33 B | 0644 |
|
types.h | File | 113 B | 0644 |
|
ucontext.h | File | 339 B | 0644 |
|
unistd.h | File | 296 B | 0644 |
|
unistd_32.h | File | 9.37 KB | 0644 |
|
unistd_64.h | File | 8.59 KB | 0644 |
|
unistd_x32.h | File | 15.12 KB | 0644 |
|
vm86.h | File | 2.98 KB | 0644 |
|
vmx.h | File | 6.53 KB | 0644 |
|
vsyscall.h | File | 375 B | 0644 |
|