From 5acf789a5ac76e8ca8e6edb2fe8ea4d6accccea1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 1 Sep 2003 04:06:40 +0000 Subject: Update. 2003-08-31 Kaz Kojima * sysdeps/unix/sysv/linux/sh/Versions: Add posix_fadvise64 and posix_fallocate64 at GLIBC_2.3.3. * sysdeps/unix/sysv/linux/sh/sysdep.h (PSEUDO_ERRVAL): Define. (PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise. --- sysdeps/unix/sysv/linux/sh/Versions | 3 +++ sysdeps/unix/sysv/linux/sh/sysdep.h | 11 +++++++++++ 2 files changed, 14 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/sh/Versions b/sysdeps/unix/sysv/linux/sh/Versions index 090e938f26..763be60222 100644 --- a/sysdeps/unix/sysv/linux/sh/Versions +++ b/sysdeps/unix/sysv/linux/sh/Versions @@ -21,4 +21,7 @@ libc { # v* versionsort64; } + GLIBC_2.3.3 { + posix_fadvise64; posix_fallocate64; + } } diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.h b/sysdeps/unix/sysv/linux/sh/sysdep.h index a2542fbb09..ee6eec1956 100644 --- a/sysdeps/unix/sysv/linux/sh/sysdep.h +++ b/sysdeps/unix/sysv/linux/sh/sysdep.h @@ -77,6 +77,17 @@ #define ret_NOERRNO ret +#define PSEUDO_ERRVAL(name, syscall_name, args) \ + .text; \ + ENTRY (name); \ + DO_CALL (syscall_name, args); + +#undef PSEUDO_END_ERRVAL +#define PSEUDO_END_ERRVAL(name) \ + END (name) + +#define ret_ERRVAL ret + #ifndef PIC # define SYSCALL_ERROR_HANDLER \ mov.l 0f,r1; \ -- cgit 1.4.1