summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-25 02:52:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-25 02:52:54 +0000
commit0111c50d8e048b1b3aa8b38100373c410a8a290e (patch)
treee8230f0a884281bbb7a5d038834ba6d0fd7defb4 /cpukit/libcsupport
parent2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-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 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/Makefile.am2
-rw-r--r--cpukit/libcsupport/src/creat.c21
2 files changed, 1 insertions, 22 deletions
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am
index a92d440d2d..090ca0b0f1 100644
--- a/cpukit/libcsupport/Makefile.am
+++ b/cpukit/libcsupport/Makefile.am
@@ -66,7 +66,7 @@ SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \
src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/fchown.c src/chown.c \
src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \
src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
- src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \
+ src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c src/utimes.c src/lchown.c
## Until sys/uio.h is moved to libcsupport, we have to have networking
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