From 0111c50d8e048b1b3aa8b38100373c410a8a290e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 25 Feb 2011 02:52:54 +0000 Subject: =?UTF-8?q?2011-02-25=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/src/creat.c: Remove. * libcsupport/Makefile.am: Reflect changes above. * configure.ac: Error out if libc doesn't provide creat. --- cpukit/libcsupport/Makefile.am | 2 +- cpukit/libcsupport/src/creat.c | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 cpukit/libcsupport/src/creat.c (limited to 'cpukit/libcsupport') 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 - -int -creat (const char *path, mode_t mode) -{ - return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); -} -#endif -- cgit v1.2.3