OSDN Git Service

provide internal hidden version of __fcntl_nocancel
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 3 Mar 2011 15:04:03 +0000 (16:04 +0100)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 3 Mar 2011 17:22:53 +0000 (18:22 +0100)
guard the prototype with _LIBC, it is only for internal use

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
include/fcntl.h
libc/sysdeps/linux/common/__syscall_fcntl.c

index 3a98734..26ad1fe 100644 (file)
@@ -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
 
index 5da3c5f..6d4c339 100644 (file)
@@ -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, ...)
 {