summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/posix_fadvise.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-29 11:36:48 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-29 11:36:48 +0000
commit0e4d33b939d8ca3b5408b3ed5fe0df9306d16698 (patch)
tree435efd1d22df0a4943ecfa3e6591a46f736ac633 /libc/sysdeps/linux/i386/posix_fadvise.c
parentcdc25d86e3dc7139db435ec79ed298445009f5ba (diff)
- now passes all LTP tests
Diffstat (limited to 'libc/sysdeps/linux/i386/posix_fadvise.c')
-rw-r--r--libc/sysdeps/linux/i386/posix_fadvise.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/libc/sysdeps/linux/i386/posix_fadvise.c b/libc/sysdeps/linux/i386/posix_fadvise.c
deleted file mode 100644
index 25373bcd5..000000000
--- a/libc/sysdeps/linux/i386/posix_fadvise.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* vi: set sw=4 ts=4: */
-/*
- * posix_fadvise() for uClibc
- *
- * Copyright (C) 2008 Bernhard Reutner-Fischer <uclibc@uclibc.org>
- *
- * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */
-
-#include <sys/syscall.h>
-#if defined __USE_GNU
-#include <fcntl.h>
-
-
-#if defined __NR_fadvise64_64 || defined __NR_fadvise64
-extern int __libc_posix_fadvise64 (int, __off64_t, __off64_t, int ) __THROW;
-
-libc_hidden_proto(__libc_posix_fadvise64)
-libc_hidden_proto(posix_fadvise)
-int posix_fadvise(int fd, off_t offset, off_t len, int advice)
-{
- if (__libc_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