Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
stat.h File Reference
#include <time.h>
#include <sys/types.h>
#include <sys/cdefs.h>

Go to the source code of this file.

Classes

struct  stat

Defines

#define S_ISUID   0004000 /* set user id on execution */
#define S_ISGID   0002000 /* set group id on execution */
#define S_IRWXU   0000700 /* RWX mask for owner */
#define S_IRUSR   0000400 /* R for owner */
#define S_IWUSR   0000200 /* W for owner */
#define S_IXUSR   0000100 /* X for owner */
#define S_IRWXG   0000070 /* RWX mask for group */
#define S_IRGRP   0000040 /* R for group */
#define S_IWGRP   0000020 /* W for group */
#define S_IXGRP   0000010 /* X for group */
#define S_IRWXO   0000007 /* RWX mask for other */
#define S_IROTH   0000004 /* R for other */
#define S_IWOTH   0000002 /* W for other */
#define S_IXOTH   0000001 /* X for other */
#define S_IFMT   0170000 /* type of file mask */
#define S_IFIFO   0010000 /* named pipe (fifo) */
#define S_IFCHR   0020000 /* character special */
#define S_IFDIR   0040000 /* directory */
#define S_IFBLK   0060000 /* block special */
#define S_IFREG   0100000 /* regular */
#define S_IFLNK   0120000 /* symbolic link */
#define S_IFSOCK   0140000 /* socket */
#define S_ISDIR(m)   ((m & 0170000) == 0040000) /* directory */
#define S_ISCHR(m)   ((m & 0170000) == 0020000) /* char special */
#define S_ISBLK(m)   ((m & 0170000) == 0060000) /* block special */
#define S_ISREG(m)   ((m & 0170000) == 0100000) /* regular file */
#define S_ISFIFO(m)
#define S_ISLNK(m)   ((m & 0170000) == 0120000) /* symbolic link */
#define S_ISSOCK(m)

Functions

__BEGIN_DECLS int chmod __P ((const char *, mode_t))
int fstat __P ((int, struct stat *))
int mkdir __P ((const char *,...))
int stat __P ((const char *, struct stat *))

Class Documentation

struct stat

Definition at line 48 of file stat.h.

Class Members
time_t st_atime
unsigned long st_blksize
long st_blocks
time_t st_ctime
dev_t st_dev
unsigned long st_flags
gid_t st_gid
ino_t st_ino
mode_t st_mode
time_t st_mtime
nlink_t st_nlink
dev_t st_rdev
off_t st_size
uid_t st_uid

Define Documentation

#define S_IFBLK   0060000 /* block special */

Definition at line 87 of file stat.h.

#define S_IFCHR   0020000 /* character special */

Definition at line 85 of file stat.h.

#define S_IFDIR   0040000 /* directory */

Definition at line 86 of file stat.h.

#define S_IFIFO   0010000 /* named pipe (fifo) */

Definition at line 84 of file stat.h.

#define S_IFLNK   0120000 /* symbolic link */

Definition at line 89 of file stat.h.

#define S_IFMT   0170000 /* type of file mask */

Definition at line 83 of file stat.h.

#define S_IFREG   0100000 /* regular */

Definition at line 88 of file stat.h.

#define S_IFSOCK   0140000 /* socket */

Definition at line 90 of file stat.h.

#define S_IRGRP   0000040 /* R for group */

Definition at line 74 of file stat.h.

#define S_IROTH   0000004 /* R for other */

Definition at line 79 of file stat.h.

#define S_IRUSR   0000400 /* R for owner */

Definition at line 69 of file stat.h.

#define S_IRWXG   0000070 /* RWX mask for group */

Definition at line 73 of file stat.h.

#define S_IRWXO   0000007 /* RWX mask for other */

Definition at line 78 of file stat.h.

#define S_IRWXU   0000700 /* RWX mask for owner */

Definition at line 68 of file stat.h.

#define S_ISBLK (   m)    ((m & 0170000) == 0060000) /* block special */

Definition at line 94 of file stat.h.

#define S_ISCHR (   m)    ((m & 0170000) == 0020000) /* char special */

Definition at line 93 of file stat.h.

#define S_ISDIR (   m)    ((m & 0170000) == 0040000) /* directory */

Definition at line 92 of file stat.h.

#define S_ISFIFO (   m)
Value:
((m & 0170000) == 0100000 || \
                      (m & 0170000) == 0140000)  /* fifo or socket */

Definition at line 96 of file stat.h.

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

Definition at line 66 of file stat.h.

#define S_ISLNK (   m)    ((m & 0170000) == 0120000) /* symbolic link */

Definition at line 98 of file stat.h.

#define S_ISREG (   m)    ((m & 0170000) == 0100000) /* regular file */

Definition at line 95 of file stat.h.

#define S_ISSOCK (   m)
Value:
((m & 0170000) == 0100000 || \
                      (m & 0170000) == 0140000)  /* fifo or socket */

Definition at line 99 of file stat.h.

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

Definition at line 65 of file stat.h.

#define S_IWGRP   0000020 /* W for group */

Definition at line 75 of file stat.h.

#define S_IWOTH   0000002 /* W for other */

Definition at line 80 of file stat.h.

#define S_IWUSR   0000200 /* W for owner */

Definition at line 70 of file stat.h.

#define S_IXGRP   0000010 /* X for group */

Definition at line 76 of file stat.h.

#define S_IXOTH   0000001 /* X for other */

Definition at line 81 of file stat.h.

#define S_IXUSR   0000100 /* X for owner */

Definition at line 71 of file stat.h.


Function Documentation

int fstat __P ( (int, struct stat *)  )
int mkdir __P ( (const char *,...)  )
int lstat __P ( (const char *, struct stat *)  )