Remove __set_errno definition.

This commit is contained in:
Ulrich Drepper 2002-07-20 01:02:01 +00:00
parent d7fafc1a39
commit 841f536f46
7 changed files with 0 additions and 27 deletions

View 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__));

View File

@ -57,5 +57,3 @@
# define ENOSPC 31
# define EBUSY 32
#endif
#define __set_errno(val) errno = (val)

View File

@ -144,10 +144,6 @@
# 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

View File

@ -32,5 +32,3 @@
#define ENOMSG 35
#define ENOSYS 251
#endif
#define __set_errno(val) errno = (val)

View File

@ -29,17 +29,9 @@
# 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 ())

View File

@ -28,17 +28,9 @@
# 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 ())

View File

@ -166,5 +166,3 @@
# define ESTALE 151 /* Stale NFS file handle. */
#endif
#define __set_errno(val) errno = (val)