30#ifndef ZEPHYR_POSIX_SYS_STAT_H_ 
   31#define ZEPHYR_POSIX_SYS_STAT_H_ 
   42#ifndef _DEV_T_DECLARED 
   44#define _DEV_T_DECLARED 
   47#ifndef _INO_T_DECLARED 
   49#define _INO_T_DECLARED 
   52#ifndef _NLINK_T_DECLARED 
   54#define _NLINK_T_DECLARED 
   57#ifndef _UID_T_DECLARED 
   59#define _UID_T_DECLARED 
   62#ifndef _GID_T_DECLARED 
   64#define _GID_T_DECLARED 
   67#ifndef _BLKSIZE_T_DECLARED 
   69#define _BLKSIZE_T_DECLARED 
   72#ifndef _BLKCNT_T_DECLARED 
   74#define _BLKCNT_T_DECLARED 
   87#include <cygwin/stat.h> 
   99#if defined(__linux) && defined(__x86_64__) 
  103#if defined(__linux) && !defined(__x86_64__) 
  104        unsigned short int __pad2;
 
  113#define st_atime st_atim.tv_sec  
  114#define st_mtime st_mtim.tv_sec 
  115#define st_ctime st_ctim.tv_sec 
  116#if defined(__linux) && defined(__x86_64__) 
  117        __uint64_t __glibc_reserved[3];
 
  120#if defined(__rtems__) 
  128#if defined(__svr4__) && !defined(__PPC__) && !defined(__sun__) 
  138#if !defined(__rtems__) 
  146#if !(defined(__svr4__) && !defined(__PPC__) && !defined(__sun__)) 
  147#define st_atime st_atim.tv_sec 
  148#define st_ctime st_ctim.tv_sec 
  149#define st_mtime st_mtim.tv_sec 
  155#define _IFDIR  0040000  
  156#define _IFCHR  0020000  
  157#define _IFBLK  0060000  
  158#define _IFREG  0100000  
  159#define _IFLNK  0120000  
  160#define _IFSOCK 0140000  
  161#define _IFIFO  0010000  
  163#define S_BLKSIZE 1024  
  165#define S_ISUID 0004000  
  166#define S_ISGID 0002000  
  167#define S_ISVTX 0001000  
  169#define S_IREAD  0000400  
  170#define S_IWRITE 0000200  
  171#define S_IEXEC  0000100  
  172#define S_ENFMT  0002000  
  176#define S_IFDIR  _IFDIR 
  177#define S_IFCHR  _IFCHR 
  178#define S_IFBLK  _IFBLK 
  179#define S_IFREG  _IFREG 
  180#define S_IFLNK  _IFLNK 
  181#define S_IFSOCK _IFSOCK 
  182#define S_IFIFO  _IFIFO 
  190#define _S_IFDIR  _IFDIR 
  191#define _S_IFCHR  _IFCHR 
  192#define _S_IFIFO  _IFIFO 
  193#define _S_IFREG  _IFREG 
  194#define _S_IREAD  0000400 
  195#define _S_IWRITE 0000200 
  196#define _S_IEXEC  0000100 
  199#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) 
  200#define S_IRUSR 0000400  
  201#define S_IWUSR 0000200  
  202#define S_IXUSR 0000100  
  203#define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP) 
  204#define S_IRGRP 0000040  
  205#define S_IWGRP 0000020  
  206#define S_IXGRP 0000010  
  207#define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) 
  208#define S_IROTH 0000004  
  209#define S_IWOTH 0000002  
  210#define S_IXOTH 0000001  
  213#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO)                                
  214#define ALLPERMS    (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)  
  215#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)  
  218#define S_ISBLK(m)  (((m)&_IFMT) == _IFBLK) 
  219#define S_ISCHR(m)  (((m)&_IFMT) == _IFCHR) 
  220#define S_ISDIR(m)  (((m)&_IFMT) == _IFDIR) 
  221#define S_ISFIFO(m) (((m)&_IFMT) == _IFIFO) 
  222#define S_ISREG(m)  (((m)&_IFMT) == _IFREG) 
  223#define S_ISLNK(m)  (((m)&_IFMT) == _IFLNK) 
  224#define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK) 
  226#if defined(__CYGWIN__) || defined(__rtems__) 
  229#define UTIME_OMIT -1L 
  237int stat(
const char *__restrict __path, 
struct stat *__restrict __sbuf);
 
  240#if defined(__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__) 
  241int lstat(
const char *__restrict __path, 
struct stat *__restrict __buf);
 
  242int mknod(
const char *__path, 
mode_t __mode, 
dev_t __dev);
 
  245#if __ATFILE_VISIBLE && !defined(__INSIDE_CYGWIN__) 
  246int fchmodat(
int __fd, 
const char *__path, 
mode_t __mode, 
int __flag);
 
  247int fstatat(
int __fd, 
const char *__restrict __path, 
struct stat *__restrict __buf, 
int __flag);
 
  248int mkdirat(
int __fd, 
const char *__path, 
mode_t __mode);
 
  249int mkfifoat(
int __fd, 
const char *__path, 
mode_t __mode);
 
  250int mknodat(
int __fd, 
const char *__path, 
mode_t __mode, 
dev_t __dev);
 
  251int utimensat(
int __fd, 
const char *__path, 
const struct timespec __times[2], 
int __flag);
 
  253#if __POSIX_VISIBLE >= 200809 && !defined(__INSIDE_CYGWIN__) 
  254int futimens(
int __fd, 
const struct timespec __times[2]);
 
  262int _fstat(
int __fd, 
struct stat *__sbuf);
 
  263int _stat(
const char *__restrict __path, 
struct stat *__restrict __sbuf);
 
  264int _mkdir(
const char *_path, 
mode_t __mode);
 
  265#ifdef __LARGE64_FILES 
  267int _stat64(
const char *__restrict __path, 
struct stat64 *__restrict __sbuf);
 
  268int _fstat64(
int __fd, 
struct stat64 *__sbuf);
 
_TIME_T_ time_t
Definition: _timespec.h:14
 
int dev_t
Definition: stat.h:43
 
int stat(const char *__restrict __path, struct stat *__restrict __sbuf)
 
int fstat(int __fd, struct stat *__sbuf)
 
#define st_ctime
Definition: stat.h:148
 
unsigned short gid_t
Definition: stat.h:63
 
#define st_atime
Definition: stat.h:147
 
unsigned long blksize_t
Definition: stat.h:68
 
int fchmod(int __fd, mode_t __mode)
 
unsigned short uid_t
Definition: stat.h:58
 
int ino_t
Definition: stat.h:48
 
mode_t umask(mode_t __mask)
 
unsigned short nlink_t
Definition: stat.h:53
 
int chmod(const char *__path, mode_t __mode)
 
unsigned long blkcnt_t
Definition: stat.h:73
 
int mkfifo(const char *__path, mode_t __mode)
 
#define st_mtime
Definition: stat.h:149
 
int mkdir(const char *_path, mode_t __mode)
 
__INTPTR_TYPE__ off_t
Definition: types.h:36
 
unsigned int mode_t
Definition: types.h:14
 
off_t st_size
Definition: stat.h:106
 
nlink_t st_nlink
Definition: stat.h:96
 
long st_spare4[2]
Definition: stat.h:139
 
blksize_t st_blksize
Definition: stat.h:136
 
blkcnt_t st_blocks
Definition: stat.h:137
 
uid_t st_uid
Definition: stat.h:97
 
mode_t st_mode
Definition: stat.h:95
 
struct timespec st_mtim
Definition: stat.h:134
 
struct timespec st_atim
Definition: stat.h:133
 
struct timespec st_ctim
Definition: stat.h:135
 
ino_t st_ino
Definition: stat.h:94
 
dev_t st_rdev
Definition: stat.h:102
 
gid_t st_gid
Definition: stat.h:98
 
dev_t st_dev
Definition: stat.h:93
 
Definition: _timespec.h:22