My Kernel
v0.1.0
fcntl.h
1
#ifndef UAPI_FCNTL_H
2
#define UAPI_FCNTL_H
3
4
#include <fcntl.h>
5
6
#define O_READABLE(_flags) ((_flags & O_ACCMODE) != O_WRONLY)
7
#define O_WRITABLE(_flags) ((_flags & O_ACCMODE) != O_RDONLY)
8
9
#define S_IRWU (S_IRUSR | S_IWUSR)
10
#define S_IRWG (S_IRGRP | S_IWGRP)
11
#define S_IRWO (S_IROTH | S_IWOTH)
12
13
#endif
/* UAPI_FCNTL_H */
include
uapi
fcntl.h
Generated by
1.9.5