Iros
 
Loading...
Searching...
No Matches
stat.h File Reference
#include <ccpp/bits/off_t.h>
#include <ccpp/bits/stat.h>

Go to the source code of this file.

Macros

#define S_IFMT   00170000
 
#define S_IFBLK   0060000
 
#define S_IFCHR   0020000
 
#define S_IFIFO   0010000
 
#define S_IFREG   0100000
 
#define S_IFDIR   0040000
 
#define S_IFLNK   0120000
 
#define S_IFSOCK   0140000
 
#define S_ISBLK(mode)
 
#define S_ISCHR(mode)
 
#define S_ISFIFO(mode)
 
#define S_ISREG(mode)
 
#define S_ISDIR(mode)
 
#define S_ISLNK(mode)
 
#define S_ISSOCK(mode)
 
#define S_IRWXU   0700
 
#define S_IRUSR   0400
 
#define S_IWUSR   0200
 
#define S_IXUSR   0100
 
#define S_IRWXG   070
 
#define S_IRGRP   040
 
#define S_IWGRP   020
 
#define S_IXGRP   010
 
#define S_IRWXO   07
 
#define S_IROTH   04
 
#define S_IWOTH   02
 
#define S_IXOTH   01
 
#define S_ISUID   04000
 
#define S_ISGID   02000
 
#define S_ISVTX   01000
 

Functions

int stat (char const *__CCPP_RESTRICT __path, struct stat *__CCPP_RESTRICT __info)
 
int lstat (char const *__CCPP_RESTRICT __path, struct stat *__CCPP_RESTRICT __info)
 
int fstat (int __fd, struct stat *__info)
 
int chmod (char const *__path, mode_t mode)
 
int fchmod (int __fd, mode_t mode)
 
int mkdir (char const *__path, mode_t mode)
 

Macro Definition Documentation

◆ S_IFBLK

#define S_IFBLK   0060000

◆ S_IFCHR

#define S_IFCHR   0020000

◆ S_IFDIR

#define S_IFDIR   0040000

◆ S_IFIFO

#define S_IFIFO   0010000

◆ S_IFLNK

#define S_IFLNK   0120000

◆ S_IFMT

#define S_IFMT   00170000

◆ S_IFREG

#define S_IFREG   0100000

◆ S_IFSOCK

#define S_IFSOCK   0140000

◆ S_IRGRP

#define S_IRGRP   040

◆ S_IROTH

#define S_IROTH   04

◆ S_IRUSR

#define S_IRUSR   0400

◆ S_IRWXG

#define S_IRWXG   070

◆ S_IRWXO

#define S_IRWXO   07

◆ S_IRWXU

#define S_IRWXU   0700

◆ S_ISBLK

#define S_ISBLK ( mode)
Value:
(((mode) & S_IFMT) == S_IFBLK)
#define S_IFBLK
Definition stat.h:9
#define S_IFMT
Definition stat.h:8

◆ S_ISCHR

#define S_ISCHR ( mode)
Value:
(((mode) & S_IFMT) == S_IFCHR)
#define S_IFCHR
Definition stat.h:10

◆ S_ISDIR

#define S_ISDIR ( mode)
Value:
(((mode) & S_IFMT) == S_IFDIR)
#define S_IFDIR
Definition stat.h:13

◆ S_ISFIFO

#define S_ISFIFO ( mode)
Value:
(((mode) & S_IFMT) == S_IFIFO)
#define S_IFIFO
Definition stat.h:11

◆ S_ISGID

#define S_ISGID   02000

◆ S_ISLNK

#define S_ISLNK ( mode)
Value:
(((mode) & S_IFMT) == S_IFLNK)
#define S_IFLNK
Definition stat.h:14

◆ S_ISREG

#define S_ISREG ( mode)
Value:
(((mode) & S_IFMT) == S_IFREG)
#define S_IFREG
Definition stat.h:12

◆ S_ISSOCK

#define S_ISSOCK ( mode)
Value:
(((mode) & S_IFMT) == S_IFSOCK)
#define S_IFSOCK
Definition stat.h:15

◆ S_ISUID

#define S_ISUID   04000

◆ S_ISVTX

#define S_ISVTX   01000

◆ S_IWGRP

#define S_IWGRP   020

◆ S_IWOTH

#define S_IWOTH   02

◆ S_IWUSR

#define S_IWUSR   0200

◆ S_IXGRP

#define S_IXGRP   010

◆ S_IXOTH

#define S_IXOTH   01

◆ S_IXUSR

#define S_IXUSR   0100

Function Documentation

◆ chmod()

int chmod ( char const * __path,
mode_t mode )

◆ fchmod()

int fchmod ( int __fd,
mode_t mode )

◆ fstat()

int fstat ( int __fd,
struct stat * __info )

◆ lstat()

int lstat ( char const *__CCPP_RESTRICT __path,
struct stat *__CCPP_RESTRICT __info )

◆ mkdir()

int mkdir ( char const * __path,
mode_t mode )

◆ stat()

int stat ( char const *__CCPP_RESTRICT __path,
struct stat *__CCPP_RESTRICT __info )