From: cuz Date: Thu, 9 Jan 2003 12:00:51 +0000 (+0000) Subject: Added a creat macro X-Git-Tag: V2.12.0~1787 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1b4442361432b14844fec56eaa53491041265a1b;p=cc65 Added a creat macro git-svn-id: svn://svn.cc65.org/cc65/trunk@1897 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */