OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/fcntl.h b/include/fcntl.h new file mode 100644 index 0000000..5274e33 --- /dev/null +++ b/include/fcntl.h @@ -0,0 +1,25 @@ +#ifndef _FCNTL_H +#define _FCNTL_H + +#include <sys/types.h> + +#define O_ACCMODE 0003 +#define O_RDONLY 00 +#define O_WRONLY 01 +#define O_RDWR 02 + +#define O_CREATE 0100 +#define O_TRUNC 0200 + +#ifdef __cplusplus +extern "C" { +#endif + +int open(const char *name, int flags, ...); /* mode_t mode */ +int create(const char *name, mode_t mode); + +#ifdef __cplusplus +} +#endif + +#endif