This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, ibm/2.8/master, updated. glibc-2.8-30-g8b06a40


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, ibm/2.8/master has been updated
       via  8b06a408445a9b0fb5a9f774e5c994f4583d3d30 (commit)
      from  4b137bd5fc6be539f99df76c32093df36a146439 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8b06a408445a9b0fb5a9f774e5c994f4583d3d30

commit 8b06a408445a9b0fb5a9f774e5c994f4583d3d30
Author: Steven Munroe <munroesj@us.ibm.com>
Date:   Fri Jul 31 14:25:58 2009 -0500

    This patch corrects compile errors when we build -maltivec
    
    where gcc-4.3 takes vector as a key word.
    
    2009-07-31  Steven Munroe  <munroesj@us.ibm.com>
    
    	* misc/readv.c (__libc_readv): Change vector to io_vector to
    	avoid -altivec keyword.
    	* misc/writev.c (__libc_writev): Ditto.
    	* sysdeps/posix/readv.c (__libc_readv): Ditto.
    	* sysdeps/posix/writev.c (__libc_writev): Ditto.
    	* sysdeps/unix/sysv/linux/readv.c (do_readv, __libc_readv):
    	Ditto.
    	* sysdeps/unix/sysv/linux/writev.c (do_writev, __libc_writev):
    	Ditto.

diff --git a/misc/readv.c b/misc/readv.c
index b33444c..f170b7b 100644
--- a/misc/readv.c
+++ b/misc/readv.c
@@ -26,9 +26,9 @@
    Operates just like `read' (see <unistd.h>) except that data are
    put in VECTOR instead of a contiguous buffer.  */
 ssize_t
-__libc_readv (fd, vector, count)
+__libc_readv (fd, io_vector, count)
      int fd;
-     const struct iovec *vector;
+     const struct iovec *io_vector;
      int count;
 {
   __set_errno (ENOSYS);
diff --git a/misc/writev.c b/misc/writev.c
index d424c72..ae1c17b 100644
--- a/misc/writev.c
+++ b/misc/writev.c
@@ -26,9 +26,9 @@
    Operates just like `write' (see <unistd.h>) except that the data
    are taken from VECTOR instead of a contiguous buffer.  */
 ssize_t
-__libc_writev (fd, vector, count)
+__libc_writev (fd, io_vector, count)
      int fd;
-     const struct iovec *vector;
+     const struct iovec *io_vector;
      int count;
 {
   __set_errno (ENOSYS);
diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c
index f0e78e6..8d709e3 100644
--- a/sysdeps/posix/readv.c
+++ b/sysdeps/posix/readv.c
@@ -31,7 +31,7 @@
    Operates just like `read' (see <unistd.h>) except that data are
    put in VECTOR instead of a contiguous buffer.  */
 ssize_t
-__libc_readv (int fd, const struct iovec *vector, int count)
+__libc_readv (int fd, const struct iovec *io_vector, int count)
 {
   char *buffer;
   char *buffer_start;
@@ -45,12 +45,12 @@ __libc_readv (int fd, const struct iovec *vector, int count)
   for (i = 0; i < count; ++i)
     {
       /* Check for ssize_t overflow.  */
-      if (SSIZE_MAX - bytes < vector[i].iov_len)
+      if (SSIZE_MAX - bytes < io_vector[i].iov_len)
 	{
 	  __set_errno (EINVAL);
 	  return -1;
 	}
-      bytes += vector[i].iov_len;
+      bytes += io_vector[i].iov_len;
     }
 
   /* Allocate a temporary buffer to hold the data.  We should normally
@@ -80,9 +80,9 @@ __libc_readv (int fd, const struct iovec *vector, int count)
   buffer_start = buffer;
   for (i = 0; i < count; ++i)
     {
-      size_t copy = MIN (vector[i].iov_len, bytes);
+      size_t copy = MIN (io_vector[i].iov_len, bytes);
 
-      (void) memcpy ((void *) vector[i].iov_base, (void *) buffer, copy);
+      (void) memcpy ((void *) io_vector[i].iov_base, (void *) buffer, copy);
 
       buffer += copy;
       bytes -= copy;
diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c
index a347cc2..cf642db 100644
--- a/sysdeps/posix/writev.c
+++ b/sysdeps/posix/writev.c
@@ -31,7 +31,7 @@
    Operates just like `write' (see <unistd.h>) except that the data
    are taken from VECTOR instead of a contiguous buffer.  */
 ssize_t
-__libc_writev (int fd, const struct iovec *vector, int count)
+__libc_writev (int fd, const struct iovec *io_vector, int count)
 {
   char *buffer;
   register char *bp;
@@ -45,12 +45,12 @@ __libc_writev (int fd, const struct iovec *vector, int count)
   for (i = 0; i < count; ++i)
     {
       /* Check for ssize_t overflow.  */
-      if (SSIZE_MAX - bytes < vector[i].iov_len)
+      if (SSIZE_MAX - bytes < io_vector[i].iov_len)
 	{
 	  __set_errno (EINVAL);
 	  return -1;
 	}
-      bytes += vector[i].iov_len;
+      bytes += io_vector[i].iov_len;
     }
 
   /* Allocate a temporary buffer to hold the data.  We should normally
@@ -75,9 +75,9 @@ __libc_writev (int fd, const struct iovec *vector, int count)
   bp = buffer;
   for (i = 0; i < count; ++i)
     {
-      size_t copy = MIN (vector[i].iov_len, to_copy);
+      size_t copy = MIN (io_vector[i].iov_len, to_copy);
 
-      bp = __mempcpy ((void *) bp, (void *) vector[i].iov_base, copy);
+      bp = __mempcpy ((void *) bp, (void *) io_vector[i].iov_base, copy);
 
       to_copy -= copy;
       if (to_copy == 0)
diff --git a/sysdeps/unix/sysv/linux/readv.c b/sysdeps/unix/sysv/linux/readv.c
index 250c00a..8de3720 100644
--- a/sysdeps/unix/sysv/linux/readv.c
+++ b/sysdeps/unix/sysv/linux/readv.c
@@ -39,31 +39,31 @@ static ssize_t __atomic_readv_replacement (int, __const struct iovec *,
 /* We should deal with kernel which have a smaller UIO_FASTIOV as well
    as a very big count.  */
 static ssize_t
-do_readv (int fd, const struct iovec *vector, int count)
+do_readv (int fd, const struct iovec *io_vector, int count)
 {
   ssize_t bytes_read;
 
-  bytes_read = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count);
+  bytes_read = INLINE_SYSCALL (readv, 3, fd, CHECK_N (io_vector, count), count);
 
   if (bytes_read >= 0 || errno != EINVAL || count <= UIO_FASTIOV)
     return bytes_read;
 
-  return __atomic_readv_replacement (fd, vector, count);
+  return __atomic_readv_replacement (fd, io_vector, count);
 }
 
 
 ssize_t
-__libc_readv (fd, vector, count)
+__libc_readv (fd, io_vector, count)
      int fd;
-     const struct iovec *vector;
+     const struct iovec *io_vector;
      int count;
 {
   if (SINGLE_THREAD_P)
-    return do_readv (fd, vector, count);
+    return do_readv (fd, io_vector, count);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  int result = do_readv (fd, vector, count);
+  int result = do_readv (fd, io_vector, count);
 
   LIBC_CANCEL_RESET (oldtype);
 
diff --git a/sysdeps/unix/sysv/linux/writev.c b/sysdeps/unix/sysv/linux/writev.c
index 0597866..d6dbdaa 100644
--- a/sysdeps/unix/sysv/linux/writev.c
+++ b/sysdeps/unix/sysv/linux/writev.c
@@ -39,30 +39,30 @@ static ssize_t __atomic_writev_replacement (int, const struct iovec *,
 /* We should deal with kernel which have a smaller UIO_FASTIOV as well
    as a very big count.  */
 static ssize_t
-do_writev (int fd, const struct iovec *vector, int count)
+do_writev (int fd, const struct iovec *io_vector, int count)
 {
   ssize_t bytes_written;
 
-  bytes_written = INLINE_SYSCALL (writev, 3, fd, CHECK_N (vector, count), count);
+  bytes_written = INLINE_SYSCALL (writev, 3, fd, CHECK_N (io_vector, count), count);
 
   if (bytes_written >= 0 || errno != EINVAL || count <= UIO_FASTIOV)
     return bytes_written;
 
-  return __atomic_writev_replacement (fd, vector, count);
+  return __atomic_writev_replacement (fd, io_vector, count);
 }
 
 ssize_t
-__libc_writev (fd, vector, count)
+__libc_writev (fd, io_vector, count)
      int fd;
-     const struct iovec *vector;
+     const struct iovec *io_vector;
      int count;
 {
   if (SINGLE_THREAD_P)
-    return do_writev (fd, vector, count);
+    return do_writev (fd, io_vector, count);
 
   int oldtype = LIBC_CANCEL_ASYNC ();
 
-  ssize_t result = do_writev (fd, vector, count);
+  ssize_t result = do_writev (fd, io_vector, count);
 
   LIBC_CANCEL_RESET (oldtype);
 

-----------------------------------------------------------------------

Summary of changes:
 misc/readv.c                     |    4 ++--
 misc/writev.c                    |    4 ++--
 sysdeps/posix/readv.c            |   10 +++++-----
 sysdeps/posix/writev.c           |   10 +++++-----
 sysdeps/unix/sysv/linux/readv.c  |   14 +++++++-------
 sysdeps/unix/sysv/linux/writev.c |   14 +++++++-------
 6 files changed, 28 insertions(+), 28 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]