From 5da06322c21e27d5bc60459ae2f80a80d2c8162b Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 15 Nov 2005 20:23:33 +0000 Subject: Hide more of stdio,getdents, use internal __raise --- libc/sysdeps/linux/common/bits/uClibc_stdio.h | 4 +++- libc/sysdeps/linux/common/getdents.c | 2 +- libc/sysdeps/linux/common/getdents64.c | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/common/bits/uClibc_stdio.h b/libc/sysdeps/linux/common/bits/uClibc_stdio.h index 18d3a2a65..b5e466f47 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_stdio.h +++ b/libc/sysdeps/linux/common/bits/uClibc_stdio.h @@ -374,7 +374,9 @@ extern struct __STDIO_FILE_STRUCT *_stdio_openlist; extern pthread_mutex_t _stdio_openlist_lock; extern int _stdio_openlist_delflag; extern int _stdio_user_locking; -extern void __stdio_init_mutex(pthread_mutex_t *m); +#ifdef _LIBC +extern void __stdio_init_mutex(pthread_mutex_t *m) attribute_hidden; +#endif #endif #endif diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 416ced4ea..623041866 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -44,7 +44,7 @@ struct kernel_dirent static inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count); -ssize_t __getdents (int fd, char *buf, size_t nbytes) +ssize_t attribute_hidden __getdents (int fd, char *buf, size_t nbytes) { struct dirent *dp; off_t last_offset = -1; diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c index 1b4b0c368..7b4c0d4ce 100644 --- a/libc/sysdeps/linux/common/getdents64.c +++ b/libc/sysdeps/linux/common/getdents64.c @@ -49,7 +49,7 @@ struct kernel_dirent64 static inline _syscall3(int, __syscall_getdents64, int, fd, unsigned char *, dirp, size_t, count); -ssize_t __getdents64 (int fd, char *buf, size_t nbytes) +ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes) { struct dirent64 *dp; off64_t last_offset = -1; @@ -104,8 +104,8 @@ ssize_t __getdents64 (int fd, char *buf, size_t nbytes) return (char *) dp - buf; } #else -ssize_t __getdents (int fd, char *buf, size_t nbytes); -ssize_t __getdents64 (int fd, char *buf, size_t nbytes) +extern ssize_t __getdents (int fd, char *buf, size_t nbytes) attribute_hidden; +ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes) { return(__getdents(fd, buf, nbytes)); } -- cgit v1.2.3