summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-04-10 06:14:51 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-04-10 06:14:51 +0000
commit1d0c13b9987ef62017ef1745d1f27fe973722754 (patch)
tree1970c43df511844566421ddc7558c826da630d88
parent8332498dda5bc0295d0b715ed8b92235baa1d599 (diff)
Generic implemention works for v850 now, so we don't need a special version.
-rw-r--r--libc/sysdeps/linux/v850/ftruncate64.c33
-rw-r--r--libc/sysdeps/linux/v850/truncate64.c34
2 files changed, 0 insertions, 67 deletions
diff --git a/libc/sysdeps/linux/v850/ftruncate64.c b/libc/sysdeps/linux/v850/ftruncate64.c
deleted file mode 100644
index 929332751..000000000
--- a/libc/sysdeps/linux/v850/ftruncate64.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * libc/sysdeps/linux/v850/ftruncate64.c -- `ftruncate64' syscall for linux/v850
- *
- * Copyright (C) 2002 NEC Corporation
- * Copyright (C) 2002 Miles Bader <miles@gnu.org>
- *
- * This file is subject to the terms and conditions of the GNU Lesser
- * General Public License. See the file COPYING.LIB in the main
- * directory of this archive for more details.
- *
- * Written by Miles Bader <miles@gnu.org>
- */
-
-#include <features.h>
-#include <unistd.h>
-#include <errno.h>
-#include <sys/syscall.h>
-
-#ifdef __UCLIBC_HAVE_LFS__
-
-/* A version of ftruncate64 that passes in the 64-bit length argument as two
- 32-bit arguments, as required by system call interface on the v850. */
-#define __NR__ftruncate64 __NR_ftruncate64
-extern inline _syscall3 (int, _ftruncate64,
- int, fd, unsigned long, len_lo, long, len_hi);
-
-/* The exported ftruncate64. */
-int ftruncate64 (int fd, __off64_t length)
-{
- return _ftruncate64 (fd, (unsigned long)length, (long)(length >> 32));
-}
-
-#endif /* __UCLIBC_HAVE_LFS__ */
diff --git a/libc/sysdeps/linux/v850/truncate64.c b/libc/sysdeps/linux/v850/truncate64.c
deleted file mode 100644
index fd8a8a0ba..000000000
--- a/libc/sysdeps/linux/v850/truncate64.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * libc/sysdeps/linux/v850/truncate64.c -- `truncate64' syscall for linux/v850
- *
- * Copyright (C) 2002 NEC Corporation
- * Copyright (C) 2002 Miles Bader <miles@gnu.org>
- *
- * This file is subject to the terms and conditions of the GNU Lesser
- * General Public License. See the file COPYING.LIB in the main
- * directory of this archive for more details.
- *
- * Written by Miles Bader <miles@gnu.org>
- */
-
-#include <features.h>
-#include <unistd.h>
-#include <errno.h>
-#include <sys/syscall.h>
-
-#ifdef __UCLIBC_HAVE_LFS__
-
-/* A version of truncate64 that passes in the 64-bit length argument as two
- 32-bit arguments, as required by system call interface on the v850. */
-#define __NR__truncate64 __NR_truncate64
-extern inline _syscall3 (int, _truncate64,
- const char *, file,
- unsigned long, len_lo, long, len_hi);
-
-/* The exported truncate64. */
-int truncate64 (const char *file, __off64_t length)
-{
- return _truncate64 (file, (unsigned long)length, (long)(length >> 32));
-}
-
-#endif /* __UCLIBC_HAVE_LFS__ */