summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/ChangeLog8
-rw-r--r--cpukit/configure.ac4
-rw-r--r--cpukit/libcsupport/Makefile.am2
-rw-r--r--cpukit/libcsupport/src/creat.c21
4 files changed, 10 insertions, 25 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 589669fdd2..a1168252f4 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,10 +1,16 @@
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.
+
+2011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* libcsupport/src/opendir.c, libcsupport/src/closedir.c,
libcsupport/src/readdir.c, libcsupport/src/rewinddir.c,
libcsupport/src/scandir.c, libcsupport/src/seekdir.c,
libcsupport/src/telldir.c: Remove.
- * libcsuppport/Makefile.am: Reflect changes above.
+ * libcsupport/Makefile.am: Reflect changes above.
* configure.ac: Error out if libc doesn't provide
opendir, closedir, readdir, rewinddir, scandir, seekdir,
telldir.
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index a39c972e4d..1e8c410a64 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -51,11 +51,11 @@ AC_CHECK_FUNCS([isascii fileno])
AC_CHECK_FUNCS([sleep usleep \
readdir_r \
isatty])
-AC_CHECK_FUNCS([opendir closedir readdir rewinddir scandir seekdir telldir],,
+AC_CHECK_FUNCS([creat \
+ opendir closedir readdir rewinddir scandir seekdir telldir],,
[rtems_missing_func="$ac_func";break])
AS_IF([test -n "$rtems_missing_func"],
AC_MSG_ERROR([Missing function $rtems_missing_func in libc])])
-AC_CHECK_FUNCS([creat])
AC_CHECK_FUNCS([__assert])
AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
AC_CHECK_FUNCS([regcomp regexec regerror regfree])
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