summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysdep.h
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-18 15:14:15 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-09-18 15:14:15 +0000
commit0f8269c12af221c163ed28b0388242506d3aee8a (patch)
treee52bb037accfcb175b1cdb7e18429442c26bea2b /libpthread/nptl/sysdeps/unix/sysdep.h
parent7bae7ba631cbb0677f1e08a9e6e9a41a554aef0b (diff)
downloaduClibc-alpine-0f8269c12af221c163ed28b0388242506d3aee8a.tar.bz2
uClibc-alpine-0f8269c12af221c163ed28b0388242506d3aee8a.tar.xz
Fixes posix_fadvise[64] functions to return the
error number in case of failure instead of -1 and setting errno, according to SuSv3 (IEEE Std 1003.1 2004 edition) specification. Also refactor sysdep.h and syscalls.h moving INTERNAL_SYSCALL macro to the latter (as other archs do in uclibc). Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysdep.h')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysdep.h b/libpthread/nptl/sysdeps/unix/sysdep.h
index 3f5d1721c..0e7c9da5a 100644
--- a/libpthread/nptl/sysdeps/unix/sysdep.h
+++ b/libpthread/nptl/sysdeps/unix/sysdep.h
@@ -58,4 +58,6 @@
/* Wrappers around system calls should normally inline the system call code.
But sometimes it is not possible or implemented and we use this code. */
+#ifndef INLINE_SYSCALL
#define INLINE_SYSCALL(name, nr, args...) __syscall_##name (args)
+#endif