about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-10-30 20:56:34 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-10-30 20:56:34 +0000
commite19c95fd5ed81c1d47c6784c18942c552e6f4562 (patch)
treef0b7593352df1d68f0e217bd9e95e19872b4c5ed /misc
parent65b00b6c51c09bbce4876fac87ec4f8ad8399697 (diff)
downloadglibc-e19c95fd5ed81c1d47c6784c18942c552e6f4562.tar.gz
glibc-e19c95fd5ed81c1d47c6784c18942c552e6f4562.tar.xz
glibc-e19c95fd5ed81c1d47c6784c18942c552e6f4562.zip
Remove __libc_readv and __libc_writev function names.
Continuing the removal of __libc_* function names that are no longer
used anywhere, this patch removes the __libc_readv and __libc_writev
names.

Tested for x86_64 that stripped installed shared libraries are
unchanged by the patch.

	* include/sys/uio.h (__libc_readv): Remove declaration.
	(__libc_writev): Likewise.
	* misc/readv.c (__libc_readv): Rename to __readv.
	(__readv): Do not define as alias.
	(readv): Define as alias of __readv.
	* misc/writev.c (__libc_writev): Rename to __writev.
	(__writev): Do not define as alias.
	(writev): Define as alias of __writev.
	* sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
	(__readv): Do not define as alias.
	(readv): Define unconditionally as alias of __readv.
	* sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
	(__writev): Do not define as alias.
	(writev): Define unconditionally as alias of __writev.
	* sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
	name.
	(writev): Do not define __libc_writev name.
Diffstat (limited to 'misc')
-rw-r--r--misc/readv.c5
-rw-r--r--misc/writev.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/misc/readv.c b/misc/readv.c
index 5cc24eba25..a624e789cd 100644
--- a/misc/readv.c
+++ b/misc/readv.c
@@ -25,7 +25,7 @@
    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)
+__readv (fd, vector, count)
      int fd;
      const struct iovec *vector;
      int count;
@@ -33,7 +33,6 @@ __libc_readv (fd, vector, count)
   __set_errno (ENOSYS);
   return -1;
 }
-strong_alias (__libc_readv, __readv)
-weak_alias (__libc_readv, readv)
+weak_alias (__readv, readv)
 
 stub_warning (readv)
diff --git a/misc/writev.c b/misc/writev.c
index b703aacd9a..f2eb92cbb4 100644
--- a/misc/writev.c
+++ b/misc/writev.c
@@ -25,7 +25,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 (fd, vector, count)
+__writev (fd, vector, count)
      int fd;
      const struct iovec *vector;
      int count;
@@ -33,7 +33,6 @@ __libc_writev (fd, vector, count)
   __set_errno (ENOSYS);
   return -1;
 }
-strong_alias (__libc_writev, __writev)
-weak_alias (__libc_writev, writev)
+weak_alias (__writev, writev)
 
 stub_warning (writev)