summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/bits
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/i386/bits')
-rw-r--r--libc/sysdeps/linux/i386/bits/cmathcalls.h3
-rw-r--r--libc/sysdeps/linux/i386/bits/errno.h4
-rw-r--r--libc/sysdeps/linux/i386/bits/mathcalls.h3
-rw-r--r--libc/sysdeps/linux/i386/bits/sigset.h3
-rw-r--r--libc/sysdeps/linux/i386/bits/sigthread.h4
-rw-r--r--libc/sysdeps/linux/i386/bits/sockaddr.h3
6 files changed, 20 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/i386/bits/cmathcalls.h b/libc/sysdeps/linux/i386/bits/cmathcalls.h
index f063042b0..c1b0781b0 100644
--- a/libc/sysdeps/linux/i386/bits/cmathcalls.h
+++ b/libc/sysdeps/linux/i386/bits/cmathcalls.h
@@ -47,6 +47,7 @@
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
@@ -155,3 +156,5 @@ __MATH_PRECNAME(conj) (_Mdouble_complex_ __z)
}
#endif
+
+__END_DECLS
diff --git a/libc/sysdeps/linux/i386/bits/errno.h b/libc/sysdeps/linux/i386/bits/errno.h
index 35bd61109..992358eb7 100644
--- a/libc/sysdeps/linux/i386/bits/errno.h
+++ b/libc/sysdeps/linux/i386/bits/errno.h
@@ -24,6 +24,8 @@
# undef ERANGE
# include <linux/errno.h>
+__BEGIN_DECLS
+
/* Linux has no ENOTSUP error code. */
# define ENOTSUP EOPNOTSUPP
@@ -50,6 +52,8 @@ extern int *__errno_location __P ((void)) __attribute__ ((__const__));
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
+__END_DECLS
+
#if !defined _ERRNO_H && defined __need_Emath
/* This is ugly but the kernel header is not clean enough. We must
define only the values EDOM and ERANGE in case __need_Emath is
diff --git a/libc/sysdeps/linux/i386/bits/mathcalls.h b/libc/sysdeps/linux/i386/bits/mathcalls.h
index 97bda451a..f261ace0f 100644
--- a/libc/sysdeps/linux/i386/bits/mathcalls.h
+++ b/libc/sysdeps/linux/i386/bits/mathcalls.h
@@ -47,6 +47,7 @@
#error "Never include <bits/mathcalls.h> directly; include <math.h> instead."
#endif
+__BEGIN_DECLS
/* Trigonometric functions. */
@@ -334,3 +335,5 @@ __MATHDECL_1 (int, __signbit,, (_Mdouble_ __value))
/* Multiply-add function computed as a ternary operation. */
__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
#endif /* Use ISO C 9X. */
+
+__END_DECLS
diff --git a/libc/sysdeps/linux/i386/bits/sigset.h b/libc/sysdeps/linux/i386/bits/sigset.h
index 66a9c51c5..de852a8a0 100644
--- a/libc/sysdeps/linux/i386/bits/sigset.h
+++ b/libc/sysdeps/linux/i386/bits/sigset.h
@@ -97,6 +97,8 @@ typedef struct
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
@@ -121,5 +123,6 @@ __SIGSETFN (__sigdelset, ((__set->__val[__word] &= ~__mask), 0), )
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
diff --git a/libc/sysdeps/linux/i386/bits/sigthread.h b/libc/sysdeps/linux/i386/bits/sigthread.h
index c9b1dcf1b..a63319c52 100644
--- a/libc/sysdeps/linux/i386/bits/sigthread.h
+++ b/libc/sysdeps/linux/i386/bits/sigthread.h
@@ -26,6 +26,8 @@
/* Functions for handling signals. */
+__BEGIN_DECLS
+
/* Modify the signal mask for the calling thread. The arguments have
the same meaning as for sigprocmask(2). */
extern int pthread_sigmask __P ((int __how, __const __sigset_t *__newmask,
@@ -34,4 +36,6 @@ extern int pthread_sigmask __P ((int __how, __const __sigset_t *__newmask,
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
diff --git a/libc/sysdeps/linux/i386/bits/sockaddr.h b/libc/sysdeps/linux/i386/bits/sockaddr.h
index 1c523444b..1cddab4d8 100644
--- a/libc/sysdeps/linux/i386/bits/sockaddr.h
+++ b/libc/sysdeps/linux/i386/bits/sockaddr.h
@@ -24,6 +24,7 @@
#ifndef _BITS_SOCKADDR_H
#define _BITS_SOCKADDR_H 1
+__BEGIN_DECLS
/* POSIX.1g specifies this type name for the `sa_family' member. */
typedef unsigned short int sa_family_t;
@@ -39,6 +40,8 @@ typedef unsigned short int sa_family_t;
/* Return the length of a `sockaddr' structure. */
#define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
+
extern int __libc_sa_len __P ((sa_family_t __af));
+__END_DECLS
#endif /* bits/sockaddr.h */