]> Git Repo - uclibc-ng.git/commitdiff
Added __BEGIN_DECLS and __END_DECLS to the files that didn't have
authorDavid McCullough <[email protected]>
Wed, 11 Jul 2001 13:47:45 +0000 (13:47 -0000)
committerDavid McCullough <[email protected]>
Wed, 11 Jul 2001 13:47:45 +0000 (13:47 -0000)
it and that I could see needed it.

Should be pretty low impact as these are only defined when using C++.

58 files changed:
include/cfgfile.h
include/crypt.h
include/ctype.h
include/errno.h
include/grp.h
include/locale.h
include/malloc.h
include/math.h
include/net/slcompress.h
include/net/vjcompress.h
include/pty.h
include/pwd.h
include/resolv.h
include/stdlib.h
include/string.h
include/sys/utsname.h
include/termcap.h
include/utime.h
include/utmp.h
libc/sysdeps/linux/arm/bits/dlfcn.h
libc/sysdeps/linux/arm/bits/errno.h
libc/sysdeps/linux/arm/bits/mathcalls.h
libc/sysdeps/linux/arm/bits/sigset.h
libc/sysdeps/linux/arm/bits/sigthread.h
libc/sysdeps/linux/arm/bits/sockaddr.h
libc/sysdeps/linux/i386/bits/cmathcalls.h
libc/sysdeps/linux/i386/bits/errno.h
libc/sysdeps/linux/i386/bits/mathcalls.h
libc/sysdeps/linux/i386/bits/sigset.h
libc/sysdeps/linux/i386/bits/sigthread.h
libc/sysdeps/linux/i386/bits/sockaddr.h
libc/sysdeps/linux/m68k/bits/cmathcalls.h
libc/sysdeps/linux/m68k/bits/errno.h
libc/sysdeps/linux/m68k/bits/setjmp.h
libc/sysdeps/linux/m68k/bits/sigthread.h
libc/sysdeps/linux/m68k/bits/sockaddr.h
libc/sysdeps/linux/m68k/bits/socket.h
libc/sysdeps/linux/mips/bits/cmathcalls.h
libc/sysdeps/linux/mips/bits/dlfcn.h
libc/sysdeps/linux/mips/bits/errno.h
libc/sysdeps/linux/mips/bits/libc-lock.h
libc/sysdeps/linux/mips/bits/sigset.h
libc/sysdeps/linux/mips/bits/sigthread.h
libc/sysdeps/linux/powerpc/bits/dlfcn.h
libc/sysdeps/linux/powerpc/bits/errno.h
libc/sysdeps/linux/powerpc/bits/sigset.h
libc/sysdeps/linux/powerpc/bits/sigthread.h
libc/sysdeps/linux/powerpc/bits/sockaddr.h
libc/sysdeps/linux/sh/bits/cmathcalls.h
libc/sysdeps/linux/sh/bits/errno.h
libc/sysdeps/linux/sh/bits/sigset.h
libc/sysdeps/linux/sh/bits/sigthread.h
libc/sysdeps/linux/sh/bits/sockaddr.h
libc/sysdeps/linux/sparc/bits/cmathcalls.h
libc/sysdeps/linux/sparc/bits/errno.h
libc/sysdeps/linux/sparc/bits/sigset.h
libc/sysdeps/linux/sparc/bits/sigthread.h
libc/sysdeps/linux/sparc/bits/sockaddr.h

index 1eae1bc94e9f1448645189ecda98785bc8436b63..3e26f9c4cc0a605ac54679aa3773d7af2934338b 100644 (file)
@@ -2,7 +2,10 @@
 #define __CFGFILE_H__
 
 #include <stdio.h>
+
+__BEGIN_DECLS
 char ** cfgread(FILE *fp);
 char ** cfgfind(FILE *fp, char *var);
+__END_DECLS
 
 #endif /* __CFGFILE_H__ */
index fd5d0f67fb77a7b3236daf77842b4684f5d74280..6c7f6c85d81b72d1a946bf1255b2888a415c2c41 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <features.h>
 
+__BEGIN_DECLS
+
 /* Encrypt characters from KEY using salt to perturb the encryption method.
  * If salt begins with "$1$", md5 hashing is used instead of DES. */
 extern char *crypt (const char *__key, const char *__salt);
@@ -65,4 +67,7 @@ extern void setkey_r (const char *__key,
 
 extern void encrypt_r (char *__block, int __edflag,
                       struct crypt_data * __data);
+
+__END_DECLS
+
 #endif /* crypt.h */
index 9ed73879c222b0336a7d4648d12ac49dd56f3dc5..477fac9b888be5da3cb19bf2343cea9f8e5183cd 100644 (file)
@@ -6,6 +6,8 @@
 
 #include <features.h>
 
+__BEGIN_DECLS
+
 /* For now, just always use the functions instead of the macros...*/
 #define __USE_CTYPE_C_FUNCTIONS
 
@@ -58,4 +60,6 @@ extern int toupper(int c);
 
 #endif
 
+__END_DECLS
+
 #endif /* __CTYPE_H */
index da7f7a0e4d715df85bf4c9c93e70d8d4f901c7b0..aa7e6bcaea3d50722db221c7c90ff9e2da140393 100644 (file)
@@ -4,6 +4,8 @@
 #include <features.h>
 #include <bits/errno.h>
 
+__BEGIN_DECLS
+
 extern int sys_nerr;
 extern const char *const sys_errlist[];
 
@@ -16,5 +18,6 @@ extern int    errno;
 extern void    perror __P ((__const char* __s));
 extern char*   strerror __P ((int __errno));
 
+__END_DECLS
 
 #endif
index 4ecef44f021391dd2014fb2e35a6e3dbc800d157..c0db17e44cf1abb55c3348d76d74d04d25f67dc5 100644 (file)
@@ -5,6 +5,8 @@
 #include <features.h>
 #include <stdio.h>
 
+__BEGIN_DECLS
+
 /* The group structure */
 struct group
 {
@@ -31,6 +33,8 @@ extern int initgroups __P ((__const char * user, gid_t gid));
 extern struct group * __getgrent __P ((int grp_fd));
 #endif
 
+__END_DECLS
+
 #endif /* _GRP_H */
 
 
index 937c0f0d17da285ff8358ff1fafa4a3ab047e6da..00e75d5b5d6eee0ccdbade5e462bd5b879d0d099 100644 (file)
@@ -70,9 +70,13 @@ struct lconv
   char n_sign_posn;
 };
 
+__BEGIN_DECLS
+
 extern char *setlocale(int __category, __const char *__locale);
 
 /* Return the numeric/monetary information for the current locale.  */
 extern struct lconv *localeconv __P ((void));
 
+__END_DECLS
+
 #endif /* locale.h  */
index c35ffe45949c7e000ff47822d57e0a6f6347c3da..7ef63d8c7873f7ac8d63eb1ed9c43ccb1332b982 100644 (file)
@@ -4,6 +4,8 @@
 #include <features.h>
 #include <sys/types.h>
 
+__BEGIN_DECLS
+
 extern void free __P((void *));
 extern void *malloc __P((size_t));
 extern void *realloc __P((void *, size_t));
@@ -11,4 +13,6 @@ extern void *alloca __P((size_t));
 
 extern void *(*__alloca_alloc) __P((size_t));
 
+__END_DECLS
+
 #endif
index 9aada8e427d11db9cf87ab898d61087d7fd5fbdb..752b12bdfcf68ee380d52a7f1bc2846a6c05bfee 100644 (file)
@@ -184,8 +184,10 @@ typedef struct
 
 
 /* Variable for error reporting.  See mtherr.c.  */
+__BEGIN_DECLS
 extern int mtherr(char *name, int code);
 extern int merror;
+__END_DECLS
 
 
 /* If you define UNK, then be sure to set BIGENDIAN properly. */
@@ -197,6 +199,7 @@ extern int merror;
 #endif
 
 
+
 #define __USE_ISOC9X
 /* Get general and ISO C 9X specific information.  */
 #include <bits/mathdef.h>
@@ -265,6 +268,7 @@ enum
      (sizeof (x) == sizeof (float) ? __fpclassifyf (x) : __fpclassify (x))
 #endif
 
+__BEGIN_DECLS
 
 #ifdef __UCLIBC_HAS_LIBM_DOUBLE__
 /* Return nonzero value if sign of X is negative.  */
@@ -610,5 +614,6 @@ extern long double fmal(long double x, long double y, long double z);
       fpclassify (__u) == FP_NAN || fpclassify (__v) == FP_NAN; }))
 # endif
 
+__END_DECLS
 
 #endif /* math.h  */
index 658edb7f8df7fe8af54569dd1dfbe4fd6f981c22..fc3b000a99a5d442a9b2cacf23d26faff2bbe9eb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Definitions for tcp compression routines.
  *
- * $Id: slcompress.h,v 1.1 2001/01/16 10:03:48 andersen Exp $
+ * $Id: slcompress.h,v 1.2 2001/07/11 13:47:42 davidm Exp $
  *
  * Copyright (c) 1989 Regents of the University of California.
  * All rights reserved.
@@ -137,6 +137,8 @@ struct slcompress {
 /* flag values */
 #define SLF_TOSS 1             /* tossing rcvd frames because of input err */
 
+__BEGIN_DECLS
+
 void   sl_compress_init __P((struct slcompress *));
 void   sl_compress_setup __P((struct slcompress *, int));
 u_int  sl_compress_tcp __P((struct mbuf *,
@@ -145,4 +147,6 @@ int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *));
 int    sl_uncompress_tcp_core __P((u_char *, int, int, u_int,
            struct slcompress *, u_char **, u_int *));
 
+__END_DECLS
+
 #endif /* _SLCOMPRESS_H_ */
index 83785b277e7b77bc872497632d7a3dbe7bbb2398..c792fe5e7c6895c13f97a3bba49d2776b8983eac 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Definitions for tcp compression routines.
  *
- * $Id: vjcompress.h,v 1.1 2001/01/16 10:03:48 andersen Exp $
+ * $Id: vjcompress.h,v 1.2 2001/07/11 13:47:42 davidm Exp $
  *
  * Copyright (c) 1989 Regents of the University of California.
  * All rights reserved.
@@ -130,6 +130,8 @@ struct vjcompress {
 /* flag values */
 #define VJF_TOSS 1             /* tossing rcvd frames because of input err */
 
+__BEGIN_DECLS
+
 extern void  vj_compress_init __P((struct vjcompress *comp, int max_state));
 extern u_int vj_compress_tcp __P((struct ip *ip, u_int mlen,
                                struct vjcompress *comp, int compress_cid_flag,
@@ -141,4 +143,6 @@ extern int   vj_uncompress_tcp __P((u_char *buf, int buflen, int total_len,
                                struct vjcompress *comp, u_char **hdrp,
                                u_int *hlenp));
 
+__END_DECLS
+
 #endif /* _VJCOMPRESS_H_ */
index d8550840ec44f04600a86a2a79e5ab513e43433b..7c64359d2d3ce8ae89b68f5e1696e676c776725f 100644 (file)
@@ -25,6 +25,7 @@
 #include <termios.h>
 #include <sys/ioctl.h>
 
+__BEGIN_DECLS
 
 /* Create pseudo tty master slave pair with NAME and set terminal
    attributes according to TERMP and WINP and return handles for both
@@ -37,4 +38,6 @@ extern int openpty (int *__amaster, int *__aslave, char *__name,
 extern int forkpty (int *__amaster, char *__name,
                    struct termios *__termp, struct winsize *__winp);
 
+__END_DECLS
+
 #endif /* pty.h */
index 64d8bc6effbd68073741a96d0dde7e7728b2e2fe..3377afd88e690acf265db5c3857201815f8bc574 100644 (file)
@@ -5,6 +5,8 @@
 #include <features.h>
 #include <stdio.h>
 
+__BEGIN_DECLS
+
 /* The passwd structure.  */
 struct passwd
 {
@@ -53,6 +55,7 @@ extern int __getpwent_r(struct passwd * passwd, char * line_buff,
        size_t buflen, int pwd_fd);
 #endif
 
+__END_DECLS
 
 #endif /* pwd.h  */
 
index e988347ad58574178cc9f510e061218ee6bb9862..9ac45959a8664ed548b97d918e5e448e5cf04e5b 100644 (file)
@@ -23,6 +23,8 @@
 #include <stdio.h>
 #include <netinet/in.h>
 
+__BEGIN_DECLS
+
 struct resolv_header {
        int id;
        int qr,opcode,aa,tc,rd,ra,rcode;
@@ -83,4 +85,6 @@ extern int res_init(void);
 extern int res_query(const char *dname, int class, int type,
        unsigned char *answer, int anslen);
 
+__END_DECLS
+
 #endif /*_RESOLV_H_*/
index cdb3e8fee67b8f17d144a27fd2ba73214e052040..e5588cb3ba4d3e26b0dc29c7ee643efb4ad813e8 100644 (file)
@@ -6,6 +6,8 @@
 #include <sys/types.h>
 #include <limits.h>
 
+__BEGIN_DECLS
+
 /* Don't overwrite user definitions of NULL */
 #ifndef NULL
 #define NULL ((void *) 0)
@@ -121,5 +123,6 @@ extern ldiv_t ldiv __P ((long int __numer, long int __denom)) __attribute__ ((__
 extern char *mktemp __P ((char *__template));
 extern int mkstemp __P ((char *__template));
 
+__END_DECLS
 
 #endif /* __STDLIB_H */
index 939b1a4b5f62cc1271572f8c64575c23073bbf9c..7122b795951f22d6a965f4c854af5c1acac987b1 100644 (file)
@@ -5,6 +5,7 @@
 #include <sys/types.h>
 #include <stddef.h>
 
+__BEGIN_DECLS
 /* Basic string functions */
 
 /* Return the length of S.  */
@@ -117,7 +118,7 @@ extern size_t strspn __P ((__const char *__s, __const char *__accept));
 extern char *strsignal __P ((int __sig));
 
 /* More BSD compatabilty */
-int bcmp(const void *s1, const void *s2, size_t n);
+extern int bcmp(const void *s1, const void *s2, size_t n);
 
 /* Linux silly hour */
 char *strfry __P ((char *));
@@ -147,4 +148,6 @@ extern size_t strnlen __P ((__const char *__string, size_t __maxlen));
       (char *) memcpy (__new, __old, __len);                                 \
     }))
 
+__END_DECLS
+
 #endif
index 0cbc37f2a0c2ff82522631aeb8abc282cfc3564b..7625a5b6b8adebcd2e00acd9a3611c8eb42ed22e 100644 (file)
@@ -13,6 +13,8 @@ struct utsname {
        char domainname[65];
 };
 
+__BEGIN_DECLS
 extern int uname __P ((struct utsname * __utsbuf));
+__END_DECLS
 
 #endif
index a7ae37b720b39d97b5bd74f20143cccac552c531..97624192cc872a46976d93b784e2fb5db983d84e 100644 (file)
@@ -5,6 +5,8 @@
 #include <features.h>
 #include <sys/types.h>
 
+__BEGIN_DECLS
+
 extern char PC;
 extern char *UP;
 extern char *BC;
@@ -18,4 +20,6 @@ extern char *tgetstr __P((const char *, char **));
 extern int tputs __P((const char *, int, int (*)(int)));
 extern char *tgoto __P((const char *, int, int));
 
+__END_DECLS
+
 #endif /* _TERMCAP_H */
index 687e1348eaf3ae8da9dd6fe13e83a29118871b4e..d2e42b2752c87d604d3985f3d421812d5acfc4e5 100644 (file)
@@ -4,6 +4,8 @@
 #include <features.h>
 #include <sys/types.h>
 
+__BEGIN_DECLS
+
 struct utimbuf {
        time_t actime;
        time_t modtime;
@@ -11,5 +13,7 @@ struct utimbuf {
 
 extern int utime __P ((const char *__filename, struct utimbuf *__utimebuf));
 
+__END_DECLS
+
 #endif
 
index e362181aa419d4e1141a3112dfbfb8676e9e1af9..a9d5f53ebd15b6b867041a8b5ccf9a8e71ad8ebe 100644 (file)
@@ -23,6 +23,8 @@
 #define USER_PROCESS 7
 #define DEAD_PROCESS 8
 
+__BEGIN_DECLS
+
 struct utmp
 {
   short   ut_type;                 /* type of login */
@@ -52,5 +54,7 @@ extern void logwtmp (const char *line, const char *name, const char *host);
 struct utmp *           __getutent __P ((int));
 #endif
 
+__END_DECLS
+
 #endif /* __UTMP_H */
 
index 0039eda147f34c6247b2e25446fa24408ad33fa5..f724d0fdf2347ae64151107563259600571d3c00 100644 (file)
@@ -55,5 +55,7 @@
   (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
 
 /* This function calls the profiling functions.  */
+__BEGIN_DECLS
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+__END_DECLS
 #endif
index 0c33c9c0ac0e218caa7d774667fa3cef8c24dea8..ba3049599bfaf01844691b922f7475e4d013fa83 100644 (file)
@@ -32,6 +32,7 @@
 # define ECANCELED     125
 
 # ifndef __ASSEMBLER__
+   __BEGIN_DECLS
 /* We now need a declaration of the `errno' variable.  */
 extern int errno;
 
@@ -47,6 +48,7 @@ extern int *__errno_location (void) __attribute__ ((__const__));
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
 #  endif
+   __END_DECLS
 # endif /* !__ASSEMBLER__ */
 #endif /* _ERRNO_H */
 
index 9334e7fa4976bfbdd429bd6a1872b540d6118ec0..a3ab887855c8d7551e1330ca538843c4d65cbd9d 100644 (file)
@@ -48,6 +48,7 @@
 #endif
 
 
+__BEGIN_DECLS
 /* Trigonometric functions.  */
 
 /* Arc cosine of X.  */
@@ -338,4 +339,7 @@ __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 C99.  */
+
+__END_DECLS
index 66a9c51c546ec8f157ce5a69a2949a5400539827..0c751af500d8b350d5a4f581733321dce98e793d 100644 (file)
@@ -32,7 +32,6 @@ typedef struct
 
 #endif
 
-
 /* We only want to define these functions if <signal.h> was actually
    included; otherwise we were included just to define the types.  Since we
    are namespace-clean, it wouldn't hurt to define extra macros.  But
@@ -97,6 +96,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 +122,6 @@ __SIGSETFN (__sigdelset, ((__set->__val[__word] &= ~__mask), 0), )
 #  undef __SIGSETFN
 # endif
 
+__END_DECLS
 
 #endif /* ! _SIGSET_H_fns.  */
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..c213614be5cd8324f1f5a87b10b5ff2143f06644 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..8078963a8af6d10fef2e1bea09973c4118770bb4 100644 (file)
@@ -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;
@@ -41,4 +42,6 @@ typedef unsigned short int sa_family_t;
 #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 */
index f063042b09feb1adb900057bdd55f8df29ac3487..c1b0781b0c32c48b4d7ba9cdef7f722641e19d59 100644 (file)
@@ -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
index 35bd61109deea7c15ed7f033eb18c30f35fbc61c..992358eb78ab7e573f77f6340c496f2f6ad3ac15 100644 (file)
@@ -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
index 97bda451aae5ab673932041658e65253eaa737be..f261ace0f5c4d0d610486b04b15875baaa1ca9fa 100644 (file)
@@ -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
index 66a9c51c546ec8f157ce5a69a2949a5400539827..de852a8a0b03bae35df8176826ee576ceda13fd9 100644 (file)
@@ -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.  */
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..a63319c525bbc2b6c4f4e07d1df11fd161db99a9 100644 (file)
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..1cddab4d844fb7e8b3d70848abc5395685de2f9b 100644 (file)
@@ -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 */
index f063042b09feb1adb900057bdd55f8df29ac3487..842d2c13572a55078451635bad2047e2c2d2d6df 100644 (file)
@@ -47,6 +47,7 @@
 
 #define _Mdouble_complex_ _Mdouble_ _Complex
 
+__BEGIN_DECLS
 
 /* Trigonometric functions.  */
 
@@ -153,5 +154,6 @@ __MATH_PRECNAME(conj) (_Mdouble_complex_ __z)
 {
   return ~__z;
 }
-
 #endif
+
+__END_DECLS
index 35bd61109deea7c15ed7f033eb18c30f35fbc61c..7a0bd8150f483ad9dce208c8e0ce85e214b5d81a 100644 (file)
@@ -24,6 +24,8 @@
 # undef ERANGE
 # include <linux/errno.h>
 
+__BEGIN_DECLS
+
 /* Linux has no ENOTSUP error code.  */
 # define ENOTSUP EOPNOTSUPP
 
@@ -58,3 +60,5 @@ extern int *__errno_location __P ((void)) __attribute__ ((__const__));
 # define EILSEQ        84      /* Illegal byte sequence.  */
 # define ERANGE        34      /* Math result not representable.  */
 #endif /* !_ERRNO_H && __need_Emath */
+
+__END_DECLS
index 5680ffe049f41f4b4cf32f3f08f045a67f19f634..08b2d250096542c6affde7fce9b233e344b9267e 100644 (file)
@@ -49,8 +49,10 @@ typedef struct
 
 /* Simple version of sigsetjmp and siglongjmp */
 
+__BEGIN_DECLS
 extern int __setjmp(__jmp_buf __buf);
 extern int __longjmp(__jmp_buf __buf, int __val);
+__END_DECLS
 
 #define longjmp(buf, val) __longjmp(buf, val)
 
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..c213614be5cd8324f1f5a87b10b5ff2143f06644 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..8078963a8af6d10fef2e1bea09973c4118770bb4 100644 (file)
@@ -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;
@@ -41,4 +42,6 @@ typedef unsigned short int sa_family_t;
 #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 */
index dc2d58cfc406a68b92ab6578b68550bd60118f6a..a4b090e2b8b3957521904a9677259d92a02f23d8 100644 (file)
@@ -244,8 +244,10 @@ struct cmsghdr
                         + CMSG_ALIGN (sizeof (struct cmsghdr)))
 #define CMSG_LEN(len)   (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
 
+__BEGIN_DECLS
 extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr,
                                           struct cmsghdr *__cmsg));
+__END_DECLS
 #ifdef __USE_EXTERN_INLINES
 # ifndef _EXTERN_INLINE
 #  define _EXTERN_INLINE extern __inline
index 2d186c41e948564195fc734f3faf9612e7f98d22..6679500be1efc994c7b95e86e1acf5336eabba51 100644 (file)
@@ -47,6 +47,7 @@
 
 #define _Mdouble_complex_ _Mdouble_ _Complex
 
+__BEGIN_DECLS
 
 /* Trigonometric functions.  */
 
@@ -156,3 +157,5 @@ __MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW
 }
 
 #endif
+
+__END_DECLS
index 006eeb683810c373d55f3ccafdf304fd891a2520..21aac6542981acf869698edab03fc76808fcbfc5 100644 (file)
@@ -54,6 +54,8 @@
 # define DL_CALL_FCT(fctp, args) \
   (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
 
+__BEGIN_DECLS
 /* This function calls the profiling functions.  */
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+__END_DECLS
 #endif
index e0c1dc5c658ae4e8f46ece6705aca8800f352c87..53db5dd7baf0b9538feb739ef199074621e862a4 100644 (file)
@@ -28,6 +28,9 @@
 # define ENOTSUP EOPNOTSUPP
 
 # ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
 /* We now need a declaration of the `errno' variable.  */
 extern int errno;
 
@@ -43,6 +46,9 @@ extern int *__errno_location (void);
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
 #  endif
+
+__END_DECLS
+
 # endif /* !__ASSEMBLER__ */
 #endif /* _ERRNO_H */
 
index dbd9cc14fd61d54e6f9eb8a3b21be14f2739d73f..fa43d4839b2755f7c0bae4316aeb38816cbd0ecd 100644 (file)
@@ -200,6 +200,8 @@ typedef pthread_key_t __libc_key_t;
 /* Functions that are used by this file and are internal to the GNU C
    library.  */
 
+__BEGIN_DECLS
+
 extern int __pthread_mutex_init (pthread_mutex_t *__mutex,
                                 __const pthread_mutexattr_t *__mutex_attr);
 
@@ -250,6 +252,7 @@ extern int __pthread_atfork (void (*__prepare) (void),
                             void (*__parent) (void),
                             void (*__child) (void));
 
+__END_DECLS
 
 
 /* Make the pthread functions weak so that we can elide them from
index 66a9c51c546ec8f157ce5a69a2949a5400539827..de852a8a0b03bae35df8176826ee576ceda13fd9 100644 (file)
@@ -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.  */
index b86e75f20ef20d83305173d0c2a6e0b765b6962d..8ca688c591888149fcee535fac32c5266cbcfe68 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -35,4 +37,6 @@ extern int pthread_sigmask (int __how,
 /* Send signal SIGNO to the given thread. */
 extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
 
+__END_DECLS
+
 #endif /* bits/sigthread.h */
index 0039eda147f34c6247b2e25446fa24408ad33fa5..f724d0fdf2347ae64151107563259600571d3c00 100644 (file)
@@ -55,5 +55,7 @@
   (_dl_mcount_wrapper_check (fctp), (*(fctp)) args)
 
 /* This function calls the profiling functions.  */
+__BEGIN_DECLS
 extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;
+__END_DECLS
 #endif
index 7da7daf795a3809a89ba5482253d8b03969cc70c..a5365caba408f9d3a39960d6b7da5086ddb8dfef 100644 (file)
@@ -32,6 +32,9 @@
 # define ECANCELED     125
 
 # ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
 /* We now need a declaration of the `errno' variable.  */
 extern int errno;
 
@@ -47,6 +50,9 @@ extern int *__errno_location (void);
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
 #  endif
+
+__END_DECLS
+
 # endif /* !__ASSEMBLER__ */
 #endif /* _ERRNO_H */
 
index 66a9c51c546ec8f157ce5a69a2949a5400539827..de852a8a0b03bae35df8176826ee576ceda13fd9 100644 (file)
@@ -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.  */
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..c213614be5cd8324f1f5a87b10b5ff2143f06644 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..8078963a8af6d10fef2e1bea09973c4118770bb4 100644 (file)
@@ -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;
@@ -41,4 +42,6 @@ typedef unsigned short int sa_family_t;
 #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 */
index f063042b09feb1adb900057bdd55f8df29ac3487..c1b0781b0c32c48b4d7ba9cdef7f722641e19d59 100644 (file)
@@ -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
index 35bd61109deea7c15ed7f033eb18c30f35fbc61c..968e178ea5aa9c5cb72ed4a8beb711f0c6fdd6d0 100644 (file)
@@ -32,6 +32,9 @@
 # define ECANCELED     125
 
 # ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
 /* We now need a declaration of the `errno' variable.  */
 extern int errno;
 
@@ -47,6 +50,9 @@ extern int *__errno_location __P ((void)) __attribute__ ((__const__));
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
 #  endif
+
+__END_DECLS
+
 # endif /* !__ASSEMBLER__ */
 #endif /* _ERRNO_H */
 
index 66a9c51c546ec8f157ce5a69a2949a5400539827..de852a8a0b03bae35df8176826ee576ceda13fd9 100644 (file)
@@ -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.  */
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..c213614be5cd8324f1f5a87b10b5ff2143f06644 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..8078963a8af6d10fef2e1bea09973c4118770bb4 100644 (file)
@@ -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;
@@ -41,4 +42,6 @@ typedef unsigned short int sa_family_t;
 #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 */
index f063042b09feb1adb900057bdd55f8df29ac3487..c1b0781b0c32c48b4d7ba9cdef7f722641e19d59 100644 (file)
@@ -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
index 35bd61109deea7c15ed7f033eb18c30f35fbc61c..968e178ea5aa9c5cb72ed4a8beb711f0c6fdd6d0 100644 (file)
@@ -32,6 +32,9 @@
 # define ECANCELED     125
 
 # ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
 /* We now need a declaration of the `errno' variable.  */
 extern int errno;
 
@@ -47,6 +50,9 @@ extern int *__errno_location __P ((void)) __attribute__ ((__const__));
 /* When using threads, errno is a per-thread value.  */
 #   define errno (*__errno_location ())
 #  endif
+
+__END_DECLS
+
 # endif /* !__ASSEMBLER__ */
 #endif /* _ERRNO_H */
 
index 66a9c51c546ec8f157ce5a69a2949a5400539827..de852a8a0b03bae35df8176826ee576ceda13fd9 100644 (file)
@@ -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.  */
index c9b1dcf1be91a2fd61753d09a584ccb1077a4b60..c213614be5cd8324f1f5a87b10b5ff2143f06644 100644 (file)
@@ -24,6 +24,8 @@
 # error "Never include this file directly.  Use <pthread.h> instead"
 #endif
 
+__BEGIN_DECLS
+
 /* Functions for handling signals. */
 
 /* Modify the signal mask for the calling thread.  The arguments have
@@ -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 */
index 1c523444ba7ab1adb366189ecf3c87de3070374d..8078963a8af6d10fef2e1bea09973c4118770bb4 100644 (file)
@@ -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;
@@ -41,4 +42,6 @@ typedef unsigned short int sa_family_t;
 #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 */
This page took 0.092541 seconds and 4 git commands to generate.