aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-08-16 06:13:49 +0000
committerUlrich Drepper <drepper@redhat.com>2003-08-16 06:13:49 +0000
commit0be7f50d109347678e55eaa140ce4b60b1112c23 (patch)
tree4b8247f35efac0b1c8c7caeb6a29906694c5f71b /sysdeps/unix/sysv
parent591ef241f8e6e003de64ba07a3dded04d737ef1e (diff)
downloadglibc-0be7f50d109347678e55eaa140ce4b60b1112c23.tar
glibc-0be7f50d109347678e55eaa140ce4b60b1112c23.tar.gz
glibc-0be7f50d109347678e55eaa140ce4b60b1112c23.tar.bz2
glibc-0be7f50d109347678e55eaa140ce4b60b1112c23.zip
AIX posix_madvise implementation.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/aix/posix_madvise.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/aix/posix_madvise.c b/sysdeps/unix/sysv/aix/posix_madvise.c
new file mode 100644
index 0000000000..7ab4bed8e0
--- /dev/null
+++ b/sysdeps/unix/sysv/aix/posix_madvise.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+#include <sys/mman.h>
+
+int
+posix_madvise (void *addr, size_t len, int advise)
+{
+ return madvise (addr, len, advise) ? errno : 0;
+}