From c33ff7855e85a47e3b08b5e971d7110207e4a55b Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 13 Jun 2007 17:55:28 +0000 Subject: 2007-06-13 Patrick Mansfield * libc/machine/spu/creat.c: New file copied from libc/posix/creat.c, it just calls open with appropriate arguments. * libc/machine/spu/Makefile.am: Add creat.c. * libc/machine/spu/Makefile.in: Regenerate. --- newlib/libc/machine/spu/creat.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 newlib/libc/machine/spu/creat.c (limited to 'newlib/libc/machine/spu/creat.c') diff --git a/newlib/libc/machine/spu/creat.c b/newlib/libc/machine/spu/creat.c new file mode 100644 index 000000000..3cd714306 --- /dev/null +++ b/newlib/libc/machine/spu/creat.c @@ -0,0 +1,15 @@ +/* creat() "system call" */ + +/* copied from libc/posix/creat.c */ + +/* This is needed by f2c and therefore the SPEC benchmarks. */ + +#include + +int +_DEFUN(creat, (path, mode), + const char *path _AND + mode_t mode) +{ + return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); +} -- cgit v1.2.3