X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/45e1f8b055043e54be35462852ab6649d634da7c..2a49908006b177c4d6354309333d06b1b96e4887:/lunaix-os/includes/usr/lunaix/fcntl_defs.h?ds=sidebyside diff --git a/lunaix-os/includes/usr/lunaix/fcntl_defs.h b/lunaix-os/includes/usr/lunaix/fcntl_defs.h new file mode 100644 index 0000000..c6cbe4f --- /dev/null +++ b/lunaix-os/includes/usr/lunaix/fcntl_defs.h @@ -0,0 +1,24 @@ +#ifndef __LUNAIX_SYS_FCNTL_DEFS_H +#define __LUNAIX_SYS_FCNTL_DEFS_H + +#define FO_CREATE 0x1 +#define FO_APPEND 0x2 +#define FO_DIRECT 0x4 +#define FO_WRONLY 0x8 +#define FO_RDONLY 0x10 +#define FO_RDWR 0x20 + +#define FSEEK_SET 0x1 +#define FSEEK_CUR 0x2 +#define FSEEK_END 0x3 + +#define O_CREAT FO_CREATE +#define O_APPEND FO_APPEND +#define O_DIRECT FO_DIRECT +#define O_WRONLY FO_WRONLY +#define O_RDONLY FO_RDONLY +#define O_RDWR FO_RDWR + +#define MNT_RO 0x1 + +#endif /* __LUNAIX_FNCTL_DEFS_H */