]> git.sur5r.net Git - cc65/blobdiff - include/fcntl.h
Added a creat macro
[cc65] / include / fcntl.h
index ba256275c7ecc4ca2091cf2f2659597ca5d25e91..4627e5c13b463990383cf9b8b607502cac11a879 100644 (file)
@@ -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 */