Fix aliases in stub lseek.
authorRoland McGrath <roland@hack.frob.com>
Tue, 5 Feb 2013 19:38:14 +0000 (11:38 -0800)
committerRoland McGrath <roland@hack.frob.com>
Tue, 5 Feb 2013 19:39:20 +0000 (11:39 -0800)
ChangeLog
io/lseek.c

index 9c97e4b..1661df9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-02-05  Roland McGrath  <roland@hack.frob.com>
 
+       * io/lseek.c (__lseek): Rename to __libc_lseek.
+       Define __lseek as an alias.
+
        * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
 
 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
index b65c50d..63cd75f 100644 (file)
@@ -21,7 +21,7 @@
 
 /* Seek to OFFSET on FD, starting from WHENCE.  */
 off_t
-__lseek (fd, offset, whence)
+__libc_lseek (fd, offset, whence)
      int fd;
      off_t offset;
      int whence;
@@ -45,7 +45,8 @@ __lseek (fd, offset, whence)
   __set_errno (ENOSYS);
   return -1;
 }
+weak_alias (__libc_lseek, __lseek)
+weak_alias (__libc_lseek, lseek)
 stub_warning (lseek)
-libc_hidden_def (__lseek)
 
-weak_alias (__lseek, lseek)
+libc_hidden_def (__lseek)