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
);
Types and Values
blkcnt_t
# define blkcnt_t blkcnt_t
blksize_t
#define blksize_t
dev_t
# define dev_t dev_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)