diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-25 02:52:54 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-25 02:52:54 +0000 |
commit | 0111c50d8e048b1b3aa8b38100373c410a8a290e (patch) | |
tree | e8230f0a884281bbb7a5d038834ba6d0fd7defb4 /cpukit/libcsupport/src/creat.c | |
parent | 2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-0111c50d8e048b1b3aa8b38100373c410a8a290e.tar.bz2 |
2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/creat.c: Remove.
* libcsupport/Makefile.am: Reflect changes above.
* configure.ac: Error out if libc doesn't provide creat.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/creat.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cpukit/libcsupport/src/creat.c b/cpukit/libcsupport/src/creat.c deleted file mode 100644 index 46fd4b5b60..0000000000 --- a/cpukit/libcsupport/src/creat.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * $Id$ - */ - -/* creat() "system call" */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#ifndef HAVE_CREAT -/* This is needed by f2c and therefore the SPEC benchmarks. */ - -#include <fcntl.h> - -int -creat (const char *path, mode_t mode) -{ - return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); -} -#endif |