Prechádzať zdrojové kódy

Mark __syscall_*sigaction hidden and add guard to the header

Peter S. Mazinger 19 rokov pred
rodič
commit
2f9d92c9be

+ 6 - 1
libc/sysdeps/linux/alpha/bits/kernel_sigaction.h

@@ -1,3 +1,6 @@
+#ifndef _BITS_SIGACTION_STRUCT_H
+#define _BITS_SIGACTION_STRUCT_H
+
 /* This is the sigaction struction from the Linux 2.1.20 kernel.  */
 
 struct old_kernel_sigaction {
@@ -15,4 +18,6 @@ struct kernel_sigaction {
 };
 
 extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
-	struct kernel_sigaction *__unbounded, size_t);
+	struct kernel_sigaction *__unbounded, size_t) attribute_hidden;
+
+#endif

+ 5 - 5
libc/sysdeps/linux/common/bits/kernel_sigaction.h

@@ -1,5 +1,5 @@
-#ifndef _BITS_STAT_STRUCT_H
-#define _BITS_STAT_STRUCT_H
+#ifndef _BITS_SIGACTION_STRUCT_H
+#define _BITS_SIGACTION_STRUCT_H
 
 /* This file provides whatever this particular arch's kernel thinks 
  * the sigaction struct should look like... */
@@ -59,10 +59,10 @@ struct kernel_sigaction {
 
 #ifndef NO_OLD_SIGACTION
 extern int __syscall_sigaction (int, const struct old_kernel_sigaction *__unbounded,
-	struct old_kernel_sigaction *__unbounded);
+	struct old_kernel_sigaction *__unbounded) attribute_hidden;
 #endif
 
 extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
-	struct kernel_sigaction *__unbounded, size_t);
+	struct kernel_sigaction *__unbounded, size_t) attribute_hidden;
 
-#endif /* _BITS_STAT_STRUCT_H */
+#endif /* _BITS_SIGACTION_STRUCT_H */

+ 6 - 1
libc/sysdeps/linux/hppa/bits/kernel_sigaction.h

@@ -1,3 +1,6 @@
+#ifndef _BITS_SIGACTION_STRUCT_H
+#define _BITS_SIGACTION_STRUCT_H
+
 /* We have a separate header file here because we do not support
    SA_RESTORER on hppa. */
 
@@ -18,4 +21,6 @@ struct kernel_sigaction {
 };
 
 extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
-	struct kernel_sigaction *__unbounded, size_t);
+	struct kernel_sigaction *__unbounded, size_t) attribute_hidden;
+
+#endif

+ 6 - 1
libc/sysdeps/linux/mips/bits/kernel_sigaction.h

@@ -1,3 +1,6 @@
+#ifndef _BITS_SIGACTION_STRUCT_H
+#define _BITS_SIGACTION_STRUCT_H
+
 /* This is the sigaction structure from the Linux 2.1.24 kernel.  */
 
 #include <sgidefs.h>
@@ -40,4 +43,6 @@ struct kernel_sigaction {
 };
 
 extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
-	struct kernel_sigaction *__unbounded, size_t);
+	struct kernel_sigaction *__unbounded, size_t) attribute_hidden;
+
+#endif