stat

stat

Functions

#define S_ISBLK()
#define S_ISCHR()
#define S_ISDIR()
#define S_ISFIFO()
#define S_ISREG()
#define S_ISLNK()
#define S_ISSOCK()
int chmod ()
int fchmod ()
int fchmodat ()
int fstat ()
int fstatat ()
int lstat ()
int mkdir ()
int mkdirat ()
int mkfifo ()
int mkfifoat ()
int mknod ()
int mknodat ()
int stat ()
mode_t umask ()

Types and Values

#define blkcnt_t
#define blksize_t
#define dev_t
#define gid_t
#define id_t
#define ino_t
#define mode_t
#define nlink_t
#define off_t
#define time_t
#define uid_t
#define S_IFMT
#define S_IFSOCK
#define S_IFLNK
#define S_IFREG
#define S_IFBLK
#define S_IFDIR
#define S_IFCHR
#define S_IFIFO
#define S_ISUID
#define S_ISGID
#define S_ISVTX
#define S_IRUSR
#define S_IWUSR
#define S_IXUSR
#define S_IRWXU
#define S_IRGRP
#define S_IWGRP
#define S_IXGRP
#define S_IRWXG
#define S_IROTH
#define S_IWOTH
#define S_IXOTH
#define S_IRWXO

Description

Functions

S_ISBLK()

# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)

S_ISCHR()

# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)

S_ISDIR()

# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)

S_ISFIFO()

# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)

S_ISREG()

# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)

S_ISLNK()

# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)

S_ISSOCK()

# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)

chmod ()

int
chmod (char const *name,
       mode_t mode);

fchmod ()

int
fchmod (int fd,
        mode_t mode);

fchmodat ()

int
fchmodat (int fd,
          char const *name,
          mode_t mode,
          int flags);

fstat ()

int
fstat (int fd,
       struct stat *st);

fstatat ()

int
fstatat (int fd,
         char const *name,
         struct stat *st,
         int flags);

lstat ()

int
lstat (char const *name,
       struct stat *st);

mkdir ()

int
mkdir (char const *name,
       mode_t mode);

mkdirat ()

int
mkdirat (int fd,
         char const *name,
         mode_t mode);

mkfifo ()

int
mkfifo (char const *name,
        mode_t mode);

mkfifoat ()

int
mkfifoat (int fd,
          char const *name,
          mode_t mode);

mknod ()

int
mknod (char const *name,
       mode_t mode,
       dev_t dev);

mknodat ()

int
mknodat (int fd,
         char const *name,
         mode_t mode,
         dev_t dev);

stat ()

int
stat (char const *name,
      struct stat *st);

umask ()

mode_t
umask (mode_t mask);

Types and Values

blkcnt_t

#  define blkcnt_t blkcnt_t

blksize_t

#define             blksize_t

dev_t

#  define dev_t dev_t

gid_t

#define             gid_t

id_t

#define             id_t

ino_t

#define             ino_t

mode_t

#define             mode_t

nlink_t

#define             nlink_t

off_t

#define             off_t

time_t

#define             time_t

uid_t

#define             uid_t

S_IFMT

# define S_IFMT		0170000

S_IFSOCK

# define S_IFSOCK 0140000

S_IFLNK

# define S_IFLNK 0120000

S_IFREG

# define S_IFREG 0100000

S_IFBLK

# define S_IFBLK 0060000

S_IFDIR

# define S_IFDIR 0040000

S_IFCHR

# define S_IFCHR 0020000

S_IFIFO

# define S_IFIFO 0010000

S_ISUID

# define S_ISUID 0004000

S_ISGID

# define S_ISGID 0002000

S_ISVTX

# define S_ISVTX 0001000

S_IRUSR

# define S_IRUSR 0000400

S_IWUSR

# define S_IWUSR 0000200

S_IXUSR

# define S_IXUSR 0000100

S_IRWXU

# define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)

S_IRGRP

# define S_IRGRP 0000040

S_IWGRP

# define S_IWGRP 0000020

S_IXGRP

# define S_IXGRP 0000010

S_IRWXG

# define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)

S_IROTH

# define S_IROTH 0000004

S_IWOTH

# define S_IWOTH 0000002

S_IXOTH

# define S_IXOTH 0000001

S_IRWXO

# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)