Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stat.h File Reference
#include <time.h>
#include <sys/cdefs.h>
#include <zephyr/posix/posix_types.h>

Go to the source code of this file.

Data Structures

struct  stat
 

Macros

#define st_atime   st_atim.tv_sec
 
#define st_ctime   st_ctim.tv_sec
 
#define st_mtime   st_mtim.tv_sec
 
#define S_BLKSIZE   1024 /* size of a block */
 
#define S_ISUID   0004000 /* set user id on execution */
 
#define S_ISGID   0002000 /* set group id on execution */
 
#define S_ISVTX   0001000 /* save swapped text even after use */
 
#define S_IFMT   _IFMT
 
#define S_IFDIR   _IFDIR
 
#define S_IFCHR   _IFCHR
 
#define S_IFBLK   _IFBLK
 
#define S_IFREG   _IFREG
 
#define S_IFLNK   _IFLNK
 
#define S_IFSOCK   _IFSOCK
 
#define S_IFIFO   _IFIFO
 
#define S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)
 
#define S_IRUSR   0000400 /* read permission, owner */
 
#define S_IWUSR   0000200 /* write permission, owner */
 
#define S_IXUSR   0000100 /* execute/search permission, owner */
 
#define S_IRWXG   (S_IRGRP | S_IWGRP | S_IXGRP)
 
#define S_IRGRP   0000040 /* read permission, group */
 
#define S_IWGRP   0000020 /* write permission, grougroup */
 
#define S_IXGRP   0000010 /* execute/search permission, group */
 
#define S_IRWXO   (S_IROTH | S_IWOTH | S_IXOTH)
 
#define S_IROTH   0000004 /* read permission, other */
 
#define S_IWOTH   0000002 /* write permission, other */
 
#define S_IXOTH   0000001 /* execute/search permission, other */
 
#define S_ISBLK(m)
 
#define S_ISCHR(m)
 
#define S_ISDIR(m)
 
#define S_ISFIFO(m)
 
#define S_ISREG(m)
 
#define S_ISLNK(m)
 
#define S_ISSOCK(m)
 

Functions

int chmod (const char *__path, mode_t __mode)
 
int fchmod (int __fd, mode_t __mode)
 
int fstat (int __fd, struct stat *__sbuf)
 
int mkdir (const char *_path, mode_t __mode)
 
int mkfifo (const char *__path, mode_t __mode)
 
int stat (const char *__restrict __path, struct stat *__restrict __sbuf)
 
mode_t umask (mode_t __mask)
 

Macro Definition Documentation

◆ S_BLKSIZE

#define S_BLKSIZE   1024 /* size of a block */

◆ S_IFBLK

#define S_IFBLK   _IFBLK

◆ S_IFCHR

#define S_IFCHR   _IFCHR

◆ S_IFDIR

#define S_IFDIR   _IFDIR

◆ S_IFIFO

#define S_IFIFO   _IFIFO

◆ S_IFLNK

#define S_IFLNK   _IFLNK

◆ S_IFMT

#define S_IFMT   _IFMT

◆ S_IFREG

#define S_IFREG   _IFREG

◆ S_IFSOCK

#define S_IFSOCK   _IFSOCK

◆ S_IRGRP

#define S_IRGRP   0000040 /* read permission, group */

◆ S_IROTH

#define S_IROTH   0000004 /* read permission, other */

◆ S_IRUSR

#define S_IRUSR   0000400 /* read permission, owner */

◆ S_IRWXG

#define S_IRWXG   (S_IRGRP | S_IWGRP | S_IXGRP)

◆ S_IRWXO

#define S_IRWXO   (S_IROTH | S_IWOTH | S_IXOTH)

◆ S_IRWXU

#define S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)

◆ S_ISBLK

#define S_ISBLK ( m)
Value:
(((m)&_IFMT) == _IFBLK)

◆ S_ISCHR

#define S_ISCHR ( m)
Value:
(((m)&_IFMT) == _IFCHR)

◆ S_ISDIR

#define S_ISDIR ( m)
Value:
(((m)&_IFMT) == _IFDIR)

◆ S_ISFIFO

#define S_ISFIFO ( m)
Value:
(((m)&_IFMT) == _IFIFO)

◆ S_ISGID

#define S_ISGID   0002000 /* set group id on execution */

◆ S_ISLNK

#define S_ISLNK ( m)
Value:
(((m)&_IFMT) == _IFLNK)

◆ S_ISREG

#define S_ISREG ( m)
Value:
(((m)&_IFMT) == _IFREG)

◆ S_ISSOCK

#define S_ISSOCK ( m)
Value:
(((m)&_IFMT) == _IFSOCK)

◆ S_ISUID

#define S_ISUID   0004000 /* set user id on execution */

◆ S_ISVTX

#define S_ISVTX   0001000 /* save swapped text even after use */

◆ S_IWGRP

#define S_IWGRP   0000020 /* write permission, grougroup */

◆ S_IWOTH

#define S_IWOTH   0000002 /* write permission, other */

◆ S_IWUSR

#define S_IWUSR   0000200 /* write permission, owner */

◆ S_IXGRP

#define S_IXGRP   0000010 /* execute/search permission, group */

◆ S_IXOTH

#define S_IXOTH   0000001 /* execute/search permission, other */

◆ S_IXUSR

#define S_IXUSR   0000100 /* execute/search permission, owner */

◆ st_atime

#define st_atime   st_atim.tv_sec

◆ st_ctime

#define st_ctime   st_ctim.tv_sec

◆ st_mtime

#define st_mtime   st_mtim.tv_sec

Function Documentation

◆ chmod()

int chmod ( const char * __path,
mode_t __mode )

◆ fchmod()

int fchmod ( int __fd,
mode_t __mode )

◆ fstat()

int fstat ( int __fd,
struct stat * __sbuf )

◆ mkdir()

int mkdir ( const char * _path,
mode_t __mode )

◆ mkfifo()

int mkfifo ( const char * __path,
mode_t __mode )

◆ stat()

int stat ( const char *__restrict __path,
struct stat *__restrict __sbuf )

◆ umask()

mode_t umask ( mode_t __mask)