Remove __set_errno definition.
authorUlrich Drepper <drepper@redhat.com>
Sat, 20 Jul 2002 01:02:01 +0000 (01:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 20 Jul 2002 01:02:01 +0000 (01:02 +0000)
sysdeps/standalone/arm/bits/errno.h
sysdeps/standalone/bits/errno.h
sysdeps/unix/sysv/aix/bits/errno.h
sysdeps/unix/sysv/hpux/bits/errno.h
sysdeps/unix/sysv/linux/hppa/bits/errno.h
sysdeps/unix/sysv/linux/mips/bits/errno.h
sysdeps/unix/sysv/sysv4/solaris2/bits/errno.h

index 2700c17..d7db91d 100644 (file)
@@ -60,7 +60,6 @@
 # define EOVERFLOW     32
 #endif
 
-#define __set_errno(val) errno = (val)
 
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location __P ((void)) __attribute__ ((__const__));
index c7d3755..217c6d5 100644 (file)
@@ -57,5 +57,3 @@
 # define ENOSPC 31
 # define EBUSY 32
 #endif
-
-#define __set_errno(val) errno = (val)
index f2cdba8..9f22a96 100644 (file)
 # define EMULTIHOP     125     /* Multihop is not allowed.  */
 # define ENOLINK       126     /* The link has been severed.  */
 # define EOVERFLOW     127     /* Value too large to be stored in data type.*/
-
-# ifdef _LIBC
-#  define __set_errno(val) errno = (val)
-# endif
 #endif
 
 #if !defined _ERRNO_H && defined __need_Emath
index acae484..c9903c6 100644 (file)
@@ -32,5 +32,3 @@
 #define ENOMSG         35
 #define ENOSYS         251
 #endif
-
-#define __set_errno(val) errno = (val)
index 8b1fa44..4d75ff1 100644 (file)
 # define ECANCELED     125
 
 # ifndef __ASSEMBLER__
-/* We now need a declaration of the `errno' variable.  */
-extern int errno;
-
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
 
-#  if defined _LIBC
-/* 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
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
index 29ba980..8220c2e 100644 (file)
 # define ENOTSUP EOPNOTSUPP
 
 # ifndef __ASSEMBLER__
-/* We now need a declaration of the `errno' variable.  */
-extern int errno;
-
 /* Function to get address of global `errno' variable.  */
 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
 
-#  if defined _LIBC
-/* 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
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
index 8d5d49e..6c0de92 100644 (file)
 # define ESTALE                151     /* Stale NFS file handle.  */
 
 #endif
-
-#define __set_errno(val) errno = (val)