diff --git a/include/fcntl.h b/include/fcntl.h index ba256275c..4627e5c13 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -65,6 +65,9 @@ int mkdir (const char* name, ...); /* May take a mode argument */ int rmdir (const char* name); off_t __fastcall__ lseek(int fd, off_t offset, int whence); +/* Macros */ +#define creat(name, mode) open (name, O_WRONLY | O_CREAT | O_TRUNC, mode) + /* End of fcntl.h */