about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-02-17 18:43:17 +0000
committerUlrich Drepper <drepper@redhat.com>1998-02-17 18:43:17 +0000
commit86d2b0b5bfdb9a26397d61b79acf01ad4e98c815 (patch)
tree9162d8adf131fded4db1b7974ff7c29fb4252e95
parentc6222ab921cee390ea3aab57795e028d587b77e2 (diff)
downloadglibc-86d2b0b5bfdb9a26397d61b79acf01ad4e98c815.tar.gz
glibc-86d2b0b5bfdb9a26397d61b79acf01ad4e98c815.tar.xz
glibc-86d2b0b5bfdb9a26397d61b79acf01ad4e98c815.zip
Update.
1998-02-17  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/bits/errno.h (__set_errno): Don't assign
	to global errno variable anymore.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/bits/errno.h14
2 files changed, 8 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index fb69047b19..555034e402 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-02-17  Ulrich Drepper  <drepper@cygnus.com>
+
+	* sysdeps/unix/sysv/linux/bits/errno.h (__set_errno): Don't assign
+	to global errno variable anymore.
+
 1998-02-17 17:41  Ulrich Drepper  <drepper@cygnus.com>
 
 	* elf/dl-load.c (open_path): Take extra argument PRELOADED.
diff --git a/sysdeps/unix/sysv/linux/bits/errno.h b/sysdeps/unix/sysv/linux/bits/errno.h
index abcbd9b801..5aed3a38ef 100644
--- a/sysdeps/unix/sysv/linux/bits/errno.h
+++ b/sysdeps/unix/sysv/linux/bits/errno.h
@@ -1,5 +1,5 @@
 /* Error constants.  Linux specific version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,16 +31,8 @@ extern int errno;
 extern int *__errno_location __P ((void)) __attribute__ ((__const__));
 
 #  if defined _LIBC
-#   ifdef _LIBC_REENTRANT
-static inline int
-__set_errno (int __err)
-{
-  return *__errno_location () = errno = __err;
-}
-#    define __set_errno __set_errno
-#   else /* !_LIBC_REENTRANT */
-#    define __set_errno(val) errno = (val)
-#   endif /* _LIBC_REENTRANT */
+/* We wouldn't need a special macro anymore but it is history.  */
+#   define __set_errno(val) (*__errno_location ()) = (val)
 #  endif /* _LIBC */
 
 #  if !defined _LIBC || defined _LIBC_REENTRANT