diff options
author | Roland McGrath <roland@gnu.org> | 2002-11-24 23:56:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-11-24 23:56:47 +0000 |
commit | bf2cc5fb028fecf8d6b1adffd952f7402f685923 (patch) | |
tree | 52589daf3f86896ace602af8803d9b92593ca9d4 /sysdeps/posix | |
parent | 13a571a7470a1830736e6a1b1cd46b1553db041c (diff) | |
download | glibc-bf2cc5fb028fecf8d6b1adffd952f7402f685923.tar glibc-bf2cc5fb028fecf8d6b1adffd952f7402f685923.tar.gz glibc-bf2cc5fb028fecf8d6b1adffd952f7402f685923.tar.bz2 glibc-bf2cc5fb028fecf8d6b1adffd952f7402f685923.zip |
* sysdeps/posix/readv.c: Include <errno.h>, use __set_errno macro.
* sysdeps/posix/writev.c: Likewise.
From Momchil Velikov <velco@fadata.bg>.
* elf/dl-error.c [! _LIBC_REENTRANT]: Use a static variable instead of
calling *GL(dl_error_catch_tsd) for a thread-local location.
* elf/rtld.c (startup_error_tsd): Conditionalize on [_LIBC_REENTRANT].
(dl_main): Same for GL(dl_error_catch_tsd) initialization.
* elf/dl-tsd.c: Conditionalize contents on [_LIBC_REENTRANT].
* libio/iofflush.c: Add libc_hidden_def.
* libio/iofwrite.c: Likewise.
* sysdeps/generic/sigtimedwait.c: Likewise.
* sysdeps/generic/sigwaitinfo.c: Likewise.
* sysdeps/posix/sigwait.c: Likewise.
Reported by Momchil Velikov <velco@fadata.bg>.
* inet/inet_lnaof.c (inet_lnaof): Change return type to in_addr_t
to match <arpa/inet.h> declaration.
* inet/inet_netof.c (inet_netof): Likewise.
* inet/inet_mkadr.c (inet_makeaddr): Likewise for argument types.
Reported by Momchil Velikov <velco@fadata.bg>.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r-- | sysdeps/posix/readv.c | 3 | ||||
-rw-r--r-- | sysdeps/posix/sigwait.c | 1 | ||||
-rw-r--r-- | sysdeps/posix/writev.c | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c index bde57b44fa..f0e78e6662 100644 --- a/sysdeps/posix/readv.c +++ b/sysdeps/posix/readv.c @@ -23,6 +23,7 @@ #include <stdbool.h> #include <sys/param.h> #include <sys/uio.h> +#include <errno.h> /* Read data from file descriptor FD, and put the result in the buffers described by VECTOR, which is a vector of COUNT `struct iovec's. @@ -46,7 +47,7 @@ __libc_readv (int fd, const struct iovec *vector, int count) /* Check for ssize_t overflow. */ if (SSIZE_MAX - bytes < vector[i].iov_len) { - errno = EINVAL; + __set_errno (EINVAL); return -1; } bytes += vector[i].iov_len; diff --git a/sysdeps/posix/sigwait.c b/sysdeps/posix/sigwait.c index 1c54970898..f2be3225c4 100644 --- a/sysdeps/posix/sigwait.c +++ b/sysdeps/posix/sigwait.c @@ -80,6 +80,7 @@ __sigwait (const sigset_t *set, int *sig) *sig = was_sig; return was_sig == -1 ? -1 : 0; } +libc_hidden_def (__sigwait) weak_alias (__sigwait, sigwait) diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c index ae5ef1efb4..a347cc2eac 100644 --- a/sysdeps/posix/writev.c +++ b/sysdeps/posix/writev.c @@ -23,6 +23,7 @@ #include <stdbool.h> #include <sys/param.h> #include <sys/uio.h> +#include <errno.h> /* Write data pointed by the buffers described by VECTOR, which is a vector of COUNT `struct iovec's, to file descriptor FD. @@ -46,7 +47,7 @@ __libc_writev (int fd, const struct iovec *vector, int count) /* Check for ssize_t overflow. */ if (SSIZE_MAX - bytes < vector[i].iov_len) { - errno = EINVAL; + __set_errno (EINVAL); return -1; } bytes += vector[i].iov_len; |