svn commit: trunk/uClibc/libc/sysdeps/linux/common

psm at uclibc.org psm at uclibc.org
Wed Feb 15 11:48:39 UTC 2006


Author: psm
Date: 2006-02-15 03:48:36 -0800 (Wed, 15 Feb 2006)
New Revision: 14054

Log:
Move hidden prototypes to proper place and get rid of duplicate hidden

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/getdents.c
   trunk/uClibc/libc/sysdeps/linux/common/getdents64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/getdents.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/getdents.c	2006-02-15 11:46:59 UTC (rev 14053)
+++ trunk/uClibc/libc/sysdeps/linux/common/getdents.c	2006-02-15 11:48:36 UTC (rev 14054)
@@ -24,9 +24,6 @@
  * version / arch details.
  */
 
-libc_hidden_proto(memcpy)
-libc_hidden_proto(lseek)
-
 #ifndef offsetof
 # define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
 #endif
@@ -39,10 +36,13 @@
 	char d_name[256];
 };
 
-ssize_t attribute_hidden __getdents (int fd, char *buf, size_t nbytes);
+ssize_t __getdents (int fd, char *buf, size_t nbytes) attribute_hidden;
 
 #if ! defined __UCLIBC_HAS_LFS__ || ! defined __NR_getdents64
 
+libc_hidden_proto(memcpy)
+libc_hidden_proto(lseek)
+
 #define __NR___syscall_getdents __NR_getdents
 static inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count);
 
@@ -105,7 +105,7 @@
 
 libc_hidden_proto(memmove)
 
-extern attribute_hidden __typeof(__getdents) __getdents64;
+extern __typeof(__getdents) __getdents64 attribute_hidden;
 ssize_t __getdents (int fd, char *buf, size_t nbytes)
 {
     struct dirent *dp;

Modified: trunk/uClibc/libc/sysdeps/linux/common/getdents64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/getdents64.c	2006-02-15 11:46:59 UTC (rev 14053)
+++ trunk/uClibc/libc/sysdeps/linux/common/getdents64.c	2006-02-15 11:48:36 UTC (rev 14054)
@@ -39,8 +39,8 @@
 # define __NR___syscall_getdents64 __NR_getdents64
 static inline _syscall3(int, __syscall_getdents64, int, fd, unsigned char *, dirp, size_t, count);
 
-ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes);
-ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes)
+ssize_t __getdents64 (int fd, char *buf, size_t nbytes) attribute_hidden;
+ssize_t __getdents64 (int fd, char *buf, size_t nbytes)
 {
     struct dirent64 *dp;
     off64_t last_offset = -1;




More information about the uClibc-cvs mailing list