libc/newlib: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.
Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
[yann.morin.1998@free.fr: fix indentation]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <d02252752d4dc5e68ae3.1349931202@localhost.localdomain>
PatchWork-Id: 190795
3 sysdeps/unix/sysv/linux/posix_fadvise.c | 13 +++++++++++++
4 1 file changed, 13 insertions(+)
6 diff -durN glibc-2.13.orig/sysdeps/unix/sysv/linux/posix_fadvise.c glibc-2.13/sysdeps/unix/sysv/linux/posix_fadvise.c
7 --- glibc-2.13.orig/sysdeps/unix/sysv/linux/posix_fadvise.c 2003-08-17 02:36:22.000000000 +0200
8 +++ glibc-2.13/sysdeps/unix/sysv/linux/posix_fadvise.c 2009-11-13 00:50:03.000000000 +0100
10 return INTERNAL_SYSCALL_ERRNO (ret, err);
13 +# ifdef __NR_fadvise64_64
14 + INTERNAL_SYSCALL_DECL (err);
15 + int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
16 + __LONG_LONG_PAIR ((long) (offset >> 31),
18 + __LONG_LONG_PAIR ((long) (len >> 31),
21 + if (INTERNAL_SYSCALL_ERROR_P (ret, err))
22 + return INTERNAL_SYSCALL_ERRNO (ret, err);