mirror of git://sourceware.org/git/glibc.git
* include/errno.h (__set_errno): Define as errno = val
unconditionally.
This commit is contained in:
parent
bf2cc5fb02
commit
983d597e9f
|
@ -1,3 +1,8 @@
|
||||||
|
2002-11-25 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* include/errno.h (__set_errno): Define as errno = val
|
||||||
|
unconditionally.
|
||||||
|
|
||||||
2002-11-24 Roland McGrath <roland@redhat.com>
|
2002-11-24 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
|
* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
# undef errno
|
# undef errno
|
||||||
# define errno errno /* For #ifndef errno tests. */
|
# define errno errno /* For #ifndef errno tests. */
|
||||||
extern int errno attribute_hidden;
|
extern int errno attribute_hidden;
|
||||||
# define __set_errno(val) (errno = (val))
|
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
|
@ -30,13 +29,12 @@ extern int errno attribute_hidden;
|
||||||
# define errno errno /* For #ifndef errno tests. */
|
# define errno errno /* For #ifndef errno tests. */
|
||||||
# endif
|
# endif
|
||||||
extern __thread int errno attribute_tls_model_ie;
|
extern __thread int errno attribute_tls_model_ie;
|
||||||
# define __set_errno(val) (errno = (val))
|
|
||||||
# else
|
|
||||||
# define __set_errno(val) (*__errno_location ()) = (val)
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# endif /* RTLD_PRIVATE_ERRNO */
|
# endif /* RTLD_PRIVATE_ERRNO */
|
||||||
|
|
||||||
|
# define __set_errno(val) (errno = (val))
|
||||||
|
|
||||||
#endif /* _ERRNO_H */
|
#endif /* _ERRNO_H */
|
||||||
|
|
||||||
#endif /* ! _ERRNO_H */
|
#endif /* ! _ERRNO_H */
|
||||||
|
|
Loading…
Reference in New Issue