From d1a7efe8e6e502cf5d2dbc8ce25d0f18a3b8c757 Mon Sep 17 00:00:00 2001 From: Bernhard Fischer Date: Fri, 19 Sep 2008 23:53:48 +0200 Subject: [PATCH] remove obsolete patch --- .../uClibc/uClibc.058-i386-posix_fadvise.patch | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 toolchain/uClibc/uClibc.058-i386-posix_fadvise.patch diff --git a/toolchain/uClibc/uClibc.058-i386-posix_fadvise.patch b/toolchain/uClibc/uClibc.058-i386-posix_fadvise.patch deleted file mode 100644 index c93babe..0000000 --- a/toolchain/uClibc/uClibc.058-i386-posix_fadvise.patch +++ /dev/null @@ -1,53 +0,0 @@ -Index: uClibc/libc/sysdeps/linux/i386/posix_fadvise.c -=================================================================== ---- uClibc/libc/sysdeps/linux/i386/posix_fadvise.c (revision 0) -+++ uClibc/libc/sysdeps/linux/i386/posix_fadvise.c (revision 0) -@@ -0,0 +1,34 @@ -+/* vi: set sw=4 ts=4: */ -+/* -+ * posix_fadvise() for uClibc -+ * -+ * Copyright (C) 2008 Bernhard Reutner-Fischer -+ * -+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+ */ -+ -+#include -+#if defined __USE_GNU -+#include -+ -+ -+#if defined __NR_fadvise64_64 || defined __NR_fadvise64 -+libc_hidden_proto(posix_fadvise64) -+libc_hidden_proto(posix_fadvise) -+int posix_fadvise(int fd, off_t offset, off_t len, int advice) -+{ -+ if (posix_fadvise64(fd, offset, len, advice) != 0) -+ return errno; -+ return 0; -+} -+libc_hidden_def(posix_fadvise) -+#elif defined __UCLIBC_HAS_STUBS__ -+libc_hidden_proto(posix_fadvise) -+int posix_fadvise(int fd attribute_unused, off_t offset attribute_unused, -+ off_t len attribute_unused, int advice attribute_unused) -+{ -+ return ENOSYS; -+} -+libc_hidden_def(posix_fadvise) -+#endif -+#endif -Index: uClibc/libc/sysdeps/linux/i386/Makefile.arch -=================================================================== ---- uClibc/libc/sysdeps/linux/i386/Makefile.arch (revision 23434) -+++ uClibc/libc/sysdeps/linux/i386/Makefile.arch (working copy) -@@ -11,4 +11,9 @@ SSRC := \ - __longjmp.S vfork.S clone.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \ - sync_file_range.S syscall.S mmap.S mmap64.S - -+ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y) -+SSRC += posix_fadvise64.S -+CSRC += posix_fadvise.c -+endif -+ - include $(top_srcdir)libc/sysdeps/linux/Makefile.commonarch -- 2.11.4.GIT