Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
authorRoland McGrath <roland@gnu.org>
Wed, 19 Jun 1996 06:37:47 +0000 (06:37 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 19 Jun 1996 06:37:47 +0000 (06:37 +0000)
* sysdeps/unix/alpha/sysdep.S: Renamed from
sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
  as well.
* sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
  EWOULDBLOCK -> EAGAIN mapping was unnecessary since
  EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).

sysdeps/unix/alpha/sysdep.S [moved from sysdeps/unix/bsd/osf/alpha/sysdep.S with 72% similarity]

similarity index 72%
rename from sysdeps/unix/bsd/osf/alpha/sysdep.S
rename to sysdeps/unix/alpha/sysdep.S
index bc4865c..3e7666f 100644 (file)
@@ -20,21 +20,20 @@ Cambridge, MA 02139, USA.  */
 #define _ERRNO_H
 #include <errnos.h>
 
-ENTRY(syscall_error)
-#ifdef EWOULDBLOCK_sys
-       /* We translate the system's EWOULDBLOCK error into EAGAIN.
-          The GNU C library always defines EWOULDBLOCK==EAGAIN.
-          EWOULDBLOCK_sys is the original number.  */
-       subq v0, EWOULDBLOCK_sys, t0
-       cmoveq t0, EAGAIN, v0
+       .comm errno, 4
+#ifdef __ELF__
+       .type errno, @object
 #endif
 
-       /* Store it in errno... */
-!      ldgp gp, 0(t12)
-       stl v0, errno
+LEAF(__syscall_error, 0)
+       .prologue 1
+
+       /* Store return value in errno... */
+       ldgp    gp, 0(t12)
+       stl     v0, errno
 
        /* And just kick back a -1.  */
-       ldil v0, -1
+       ldi     v0, -1
        ret
 
-       .end syscall_error
+       END(__syscall_error)