Home | History | Annotate | Download | only in include
      1 /*
      2  * fcntl.h
      3  */
      4 
      5 #ifndef _FCNTL_H
      6 #define _FCNTL_H
      7 
      8 #include <klibc/extern.h>
      9 #include <klibc/compiler.h>
     10 #include <sys/types.h>
     11 
     12 /* None of these are actually supported, although O_RDONLY works */
     13 /* Note this is different from the classical Unix way of doing it */
     14 #define	O_RDONLY	1
     15 #define O_WRONLY	2
     16 #define O_RDWR		3
     17 #define O_DIRECTORY	010
     18 #define O_CREAT		0100
     19 #define O_EXCL		0200
     20 #define O_TRUNC		01000
     21 #define O_APPEND	02000
     22 
     23 __extern int open(const char *, int, ...);
     24 
     25 #endif /* _FCNTL_H */
     26