From 1b4442361432b14844fec56eaa53491041265a1b Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 9 Jan 2003 12:00:51 +0000 Subject: [PATCH] Added a creat macro git-svn-id: svn://svn.cc65.org/cc65/trunk@1897 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/fcntl.h | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.39.5