public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Philip Blundell <Philip.Blundell@pobox.com>
To: libc-hacker@sources.redhat.com
Subject: support PSEUDO_ERRVAL on arm
Date: Mon, 25 Aug 2003 15:09:00 -0000	[thread overview]
Message-ID: <1061824174.792.41.camel@kc.cam.armlinux.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 30 bytes --]

Here's a patch for this.

p.


[-- Attachment #2: pseudo_errval.diff --]
[-- Type: text/plain, Size: 1075 bytes --]

2003-08-25  Philip Blundell  <philb@gnu.org>

	* sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_ERRVAL): Define.
	(PSEUDO_END_ERRVAL, ret_ERRVAL): Likewise.

Index: sysdeps/unix/sysv/linux/arm/sysdep.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/arm/sysdep.h,v
retrieving revision 1.24
diff -u -p -r1.24 sysdep.h
--- sysdeps/unix/sysv/linux/arm/sysdep.h	27 Mar 2003 02:45:49 -0000	1.24
+++ sysdeps/unix/sysv/linux/arm/sysdep.h	25 Aug 2003 15:07:51 -0000
@@ -80,6 +80,20 @@
 #define	PSEUDO_END_NOERRNO(name)					      \
   END (name)
 
+/* The function has to return the error code.  */
+#undef	PSEUDO_ERRVAL
+#define	PSEUDO_ERRVAL(name, syscall_name, args) \
+  .text;								      \
+  ENTRY (name)								      \
+    DO_CALL (syscall_name, args);					      \
+    rsb r0, r0, #0
+
+#undef	PSEUDO_END_ERRVAL
+#define	PSEUDO_END_ERRVAL(name) \
+  END (name)
+
+#define ret_ERRVAL PSEUDO_RET_NOERRNO
+
 #if NOT_IN_libc
 # define SYSCALL_ERROR __local_syscall_error
 # define SYSCALL_ERROR_HANDLER					\

             reply	other threads:[~2003-08-25 15:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-25 15:09 Philip Blundell [this message]
2003-08-25 15:12 ` Jakub Jelinek
2003-08-31 14:37   ` Philip Blundell
2003-08-31 18:14     ` Ulrich Drepper
2003-08-25 18:31 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1061824174.792.41.camel@kc.cam.armlinux.org \
    --to=philip.blundell@pobox.com \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).