summaryrefslogtreecommitdiffstats
path: root/newlib/libc/posix/creat.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/posix/creat.c')
-rw-r--r--newlib/libc/posix/creat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/posix/creat.c b/newlib/libc/posix/creat.c
index 6b1116206..b8a4f9a14 100644
--- a/newlib/libc/posix/creat.c
+++ b/newlib/libc/posix/creat.c
@@ -5,7 +5,9 @@
#include <fcntl.h>
int
-creat (const char *path, mode_t mode)
+_DEFUN(creat, (path, mode),
+ const char *path _AND
+ mode_t mode)
{
return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
}