Pyrogenesis  trunk
Macros | Functions
wfilesystem.h File Reference
#include <sys/stat.h>
Include dependency graph for wfilesystem.h:

Go to the source code of this file.

Macros

#define S_IRUSR   _S_IREAD
 
#define S_IRGRP   _S_IREAD
 
#define S_IROTH   _S_IREAD
 
#define S_IWUSR   _S_IWRITE
 
#define S_IWGRP   _S_IWRITE
 
#define S_IWOTH   _S_IWRITE
 
#define S_IXUSR   0
 
#define S_IXGRP   0
 
#define S_IXOTH   0
 
#define S_IRWXU   (S_IRUSR|S_IWUSR|S_IXUSR)
 
#define S_IRWXG   (S_IRGRP|S_IWGRP|S_IXGRP)
 
#define S_IRWXO   (S_IROTH|S_IWOTH|S_IXOTH)
 
#define S_ISDIR(m)   (m & S_IFDIR)
 
#define S_ISREG(m)   (m & S_IFREG)
 

Functions

int read (int fd, void *buf, size_t nbytes)
 
int write (int fd, void *buf, size_t nbytes)
 
off_t lseek (int fd, off_t ofs, int whence)
 

Macro Definition Documentation

◆ S_IRGRP

#define S_IRGRP   _S_IREAD

◆ S_IROTH

#define S_IROTH   _S_IREAD

◆ S_IRUSR

#define S_IRUSR   _S_IREAD

◆ 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_ISDIR

#define S_ISDIR (   m)    (m & S_IFDIR)

◆ S_ISREG

#define S_ISREG (   m)    (m & S_IFREG)

◆ S_IWGRP

#define S_IWGRP   _S_IWRITE

◆ S_IWOTH

#define S_IWOTH   _S_IWRITE

◆ S_IWUSR

#define S_IWUSR   _S_IWRITE

◆ S_IXGRP

#define S_IXGRP   0

◆ S_IXOTH

#define S_IXOTH   0

◆ S_IXUSR

#define S_IXUSR   0

Function Documentation

◆ lseek()

off_t lseek ( int  fd,
off_t  ofs,
int  whence 
)

◆ read()

int read ( int  fd,
void *  buf,
size_t  nbytes 
)

◆ write()

int write ( int  fd,
void *  buf,
size_t  nbytes 
)