2023-04-10 17:56:03 +00:00
|
|
|
/* bits/struct_stat.h: The stat structure. */
|
|
|
|
|
|
|
|
#ifndef _BITS_STRUCT_STAT_H
|
|
|
|
#define _BITS_STRUCT_STAT_H
|
|
|
|
|
2023-08-08 11:33:40 +00:00
|
|
|
#include <bits/timespec.h>
|
2023-04-10 17:56:03 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
struct stat
|
|
|
|
{
|
|
|
|
ino_t st_ino;
|
|
|
|
mode_t st_mode;
|
|
|
|
nlink_t st_nlink;
|
2023-05-23 18:45:24 +00:00
|
|
|
dev_t st_dev;
|
2023-04-10 17:56:03 +00:00
|
|
|
uid_t st_uid;
|
|
|
|
gid_t st_gid;
|
|
|
|
off_t st_size;
|
2023-05-23 18:45:24 +00:00
|
|
|
dev_t st_rdev;
|
2023-08-08 11:33:40 +00:00
|
|
|
struct timespec st_atim;
|
|
|
|
struct timespec st_mtim;
|
|
|
|
struct timespec st_ctim;
|
|
|
|
|
|
|
|
#define st_atime st_atim.tv_sec
|
|
|
|
#define st_mtime st_mtim.tv_sec
|
|
|
|
#define st_ctime st_ctim.tv_sec
|
2023-04-10 17:56:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|