mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
Remove __set_errno definition.
This commit is contained in:
parent
d7fafc1a39
commit
841f536f46
@ -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__));
|
||||
|
@ -57,5 +57,3 @@
|
||||
# define ENOSPC 31
|
||||
# define EBUSY 32
|
||||
#endif
|
||||
|
||||
#define __set_errno(val) errno = (val)
|
||||
|
@ -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
|
||||
|
@ -32,5 +32,3 @@
|
||||
#define ENOMSG 35
|
||||
#define ENOSYS 251
|
||||
#endif
|
||||
|
||||
#define __set_errno(val) errno = (val)
|
||||
|
@ -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 ())
|
||||
|
@ -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 ())
|
||||
|
@ -166,5 +166,3 @@
|
||||
# define ESTALE 151 /* Stale NFS file handle. */
|
||||
|
||||
#endif
|
||||
|
||||
#define __set_errno(val) errno = (val)
|
||||
|
Loading…
Reference in New Issue
Block a user