This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, The attached is a patch to support PSEUDO_ERRVAL on SH and update Versions file for fadvise64 and fallocate64. Regards, kaz -- 2003-08-31 Kaz Kojima <kkojima@rr.iij4u.or.jp> * 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. diff -u3prN ORIG/libc/sysdeps/unix/sysv/linux/sh/Versions LOCAL/libc/sysdeps/unix/sysv/linux/sh/Versions --- ORIG/libc/sysdeps/unix/sysv/linux/sh/Versions Thu Oct 26 11:29:19 2000 +++ LOCAL/libc/sysdeps/unix/sysv/linux/sh/Versions Mon Sep 1 05:56:56 2003 @@ -21,4 +21,7 @@ libc { # v* versionsort64; } + GLIBC_2.3.3 { + posix_fadvise64; posix_fallocate64; + } } diff -u3prN ORIG/libc/sysdeps/unix/sysv/linux/sh/sysdep.h LOCAL/libc/sysdeps/unix/sysv/linux/sh/sysdep.h --- ORIG/libc/sysdeps/unix/sysv/linux/sh/sysdep.h Wed Mar 26 12:57:54 2003 +++ LOCAL/libc/sysdeps/unix/sysv/linux/sh/sysdep.h Mon Aug 25 20:29:16 2003 @@ -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; \
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |