about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/sigtimedwait.c3
-rw-r--r--sysdeps/generic/sigwaitinfo.c1
-rw-r--r--sysdeps/posix/readv.c3
-rw-r--r--sysdeps/posix/sigwait.c1
-rw-r--r--sysdeps/posix/writev.c3
5 files changed, 8 insertions, 3 deletions
diff --git a/sysdeps/generic/sigtimedwait.c b/sysdeps/generic/sigtimedwait.c
index eaf05beae4..7b114a3133 100644
--- a/sysdeps/generic/sigtimedwait.c
+++ b/sysdeps/generic/sigtimedwait.c
@@ -1,5 +1,5 @@
 /* Implementation of sigtimedwait function from POSIX.1b.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,6 +27,7 @@ __sigtimedwait (const sigset_t *set, siginfo_t *info,
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__sigtimedwait)
 weak_alias (__sigtimedwait, sigtimedwait)
 
 stub_warning (sigtimedwait)
diff --git a/sysdeps/generic/sigwaitinfo.c b/sysdeps/generic/sigwaitinfo.c
index ad24efe29b..e0659b0243 100644
--- a/sysdeps/generic/sigwaitinfo.c
+++ b/sysdeps/generic/sigwaitinfo.c
@@ -26,6 +26,7 @@ __sigwaitinfo (const sigset_t *set, siginfo_t *info)
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__sigwaitinfo)
 weak_alias (__sigwaitinfo, sigwaitinfo)
 
 stub_warning (sigwaitinfo)
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;