[git commit prelink] provide internal hidden version of __fcntl_nocancel

Peter S. Mazinger ps.m at gmx.net
Wed Mar 30 11:53:36 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=5ebef433698a13e5171f4b7dca04f2006bd92468
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/prelink

guard the prototype with _LIBC, it is only for internal use

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 include/fcntl.h                             |    3 +++
 libc/sysdeps/linux/common/__syscall_fcntl.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/fcntl.h b/include/fcntl.h
index 3a98734..26ad1fe 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -234,7 +234,10 @@ extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);
 # endif
 #endif
 
+#ifdef _LIBC
 extern int __fcntl_nocancel (int fd, int cmd, ...);
+libc_hidden_proto(__fcntl_nocancel)
+#endif
 
 __END_DECLS
 
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c
index 5da3c5f..6d4c339 100644
--- a/libc/sysdeps/linux/common/__syscall_fcntl.c
+++ b/libc/sysdeps/linux/common/__syscall_fcntl.c
@@ -40,6 +40,7 @@ int __fcntl_nocancel (int fd, int cmd, ...)
 # endif
 	return INLINE_SYSCALL (fcntl, 3, fd, cmd, arg);
 }
+libc_hidden_def(__fcntl_nocancel)
 
 int __libc_fcntl (int fd, int cmd, ...)
 {
-- 
1.7.3.4



More information about the uClibc-cvs mailing list