* [PATCH] SH: Support PSEUDO_ERRVAL
@ 2003-09-01 3:46 kaz Kojima
2003-09-01 4:06 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: kaz Kojima @ 2003-09-01 3:46 UTC (permalink / raw)
To: libc-hacker
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; \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] SH: Support PSEUDO_ERRVAL
2003-09-01 3:46 [PATCH] SH: Support PSEUDO_ERRVAL kaz Kojima
@ 2003-09-01 4:06 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-09-01 4:06 UTC (permalink / raw)
To: kaz Kojima; +Cc: libc-hacker
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
kaz Kojima wrote:
> 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.
Applied. Thanks,
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/UsWS2ijCOnn/RHQRAmTLAJ93lJCRzLopQ7gu/65UIxn8KnVgXwCfWrdn
61KcpMZL1zdLZ7PxCPFnW1A=
=isRw
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-01 4:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 3:46 [PATCH] SH: Support PSEUDO_ERRVAL kaz Kojima
2003-09-01 4:06 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).