#ifndef _FCNTL_H #define _FCNTL_H #include #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