Warning: This file is not a C or C++ file. It does not have highlighting.

1#ifndef _KERNEL_STAT_H
2#define _KERNEL_STAT_H
3
4/* Definition of `struct stat' used in the kernel */
5struct kernel_stat
6 {
7 unsigned int st_dev;
8 unsigned long int st_ino;
9 unsigned int st_mode;
10 short int st_nlink;
11 unsigned int st_uid;
12 unsigned int st_gid;
13 unsigned int st_rdev;
14 long int st_size;
15 long int st_atime_sec;
16 long int st_mtime_sec;
17 long int st_ctime_sec;
18 long int st_blksize;
19 long int st_blocks;
20 unsigned long int __glibc_reserved1;
21 unsigned long int __glibc_reserved2;
22 };
23
24/* Definition of `struct stat64' used in the kernel. */
25struct kernel_stat64
26 {
27 unsigned long int st_dev;
28 unsigned long int st_ino;
29 unsigned long int st_nlink;
30
31 unsigned int st_mode;
32 unsigned int st_uid;
33 unsigned int st_gid;
34 unsigned int __pad0;
35
36 unsigned long int st_rdev;
37 long int st_size;
38 long int st_blksize;
39 long int st_blocks;
40
41 unsigned long int st_atime_sec;
42 unsigned long int st_atime_nsec;
43 unsigned long int st_mtime_sec;
44 unsigned long int st_mtime_nsec;
45 unsigned long int st_ctime_sec;
46 unsigned long int st_ctime_nsec;
47 long int __glibc_reserved[3];
48 };
49
50#define STAT_IS_KERNEL_STAT 0
51#define STAT64_IS_KERNEL_STAT64 0
52#define XSTAT_IS_XSTAT64 1
53#ifdef __arch64__
54# define STATFS_IS_STATFS64 1
55#else
56# define STATFS_IS_STATFS64 0
57#endif
58#endif /* _KERNEL_STAT_H */
59

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of glibc/sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h