about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/i386/sysdep.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-11-07 01:35:04 +0000
committerUlrich Drepper <drepper@redhat.com>1996-11-07 01:35:04 +0000
commitb57910379e9a0fa1c6985840bbbe19b30595e361 (patch)
tree9bf68210227e7cc5022fdefaa8510313b651e709 /sysdeps/unix/sysv/linux/i386/sysdep.h
parent2c6fe0bd3b270fc644dd4c773f2d47b93f404efe (diff)
downloadglibc-b57910379e9a0fa1c6985840bbbe19b30595e361.tar.gz
glibc-b57910379e9a0fa1c6985840bbbe19b30595e361.tar.xz
glibc-b57910379e9a0fa1c6985840bbbe19b30595e361.zip
update from 961105, second try cvs/libc-961107
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/i386/sysdep.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
index 5d378fd179..7418982c2a 100644
--- a/sysdeps/unix/sysv/linux/i386/sysdep.h
+++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
@@ -40,16 +40,15 @@ Cambridge, MA 02139, USA.  */
    negative even if the call succeeded.  E.g., the `lseek' system call
    might return a large offset.  Therefore we must not anymore test
    for < 0, but test for a real error by making sure the value in %eax
-   is a real error number.  For now (as of 2.1.1) 122 is the largest
-   defined error number.  Given a bit room for development, Linus
-   chose in <asm/unistd.h> to use the values -125 to -1 for error
-   values.  We follow him here.  */
+   is a real error number.  Linus said he will make sure the no syscall
+   returns a value in -1 .. -4095 as a valid result so we can savely
+   test with -4095.  */
 #undef	PSEUDO
 #define	PSEUDO(name, syscall_name, args)				      \
   .text;								      \
   ENTRY (name)								      \
     DO_CALL (args, syscall_name);					      \
-    cmpl $-125, %eax;							      \
+    cmpl $-4095, %eax;							      \
     jae syscall_error;
 
 #undef	PSEUDO_END