it and that I could see needed it.
Should be pretty low impact as these are only defined when using C++.
#define __CFGFILE_H__
#include <stdio.h>
+
+__BEGIN_DECLS
char ** cfgread(FILE *fp);
char ** cfgfind(FILE *fp, char *var);
+__END_DECLS
#endif /* __CFGFILE_H__ */
#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);
extern void encrypt_r (char *__block, int __edflag,
struct crypt_data * __data);
+
+__END_DECLS
+
#endif /* crypt.h */
#include <features.h>
+__BEGIN_DECLS
+
/* For now, just always use the functions instead of the macros...*/
#define __USE_CTYPE_C_FUNCTIONS
#endif
+__END_DECLS
+
#endif /* __CTYPE_H */
#include <features.h>
#include <bits/errno.h>
+__BEGIN_DECLS
+
extern int sys_nerr;
extern const char *const sys_errlist[];
extern void perror __P ((__const char* __s));
extern char* strerror __P ((int __errno));
+__END_DECLS
#endif
#include <features.h>
#include <stdio.h>
+__BEGIN_DECLS
+
/* The group structure */
struct group
{
extern struct group * __getgrent __P ((int grp_fd));
#endif
+__END_DECLS
+
#endif /* _GRP_H */
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 */
#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));
extern void *(*__alloca_alloc) __P((size_t));
+__END_DECLS
+
#endif
/* 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. */
#endif
+
#define __USE_ISOC9X
/* Get general and ISO C 9X specific information. */
#include <bits/mathdef.h>
(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. */
fpclassify (__u) == FP_NAN || fpclassify (__v) == FP_NAN; }))
# endif
+__END_DECLS
#endif /* math.h */
/*
* 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.
/* 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 *,
int sl_uncompress_tcp_core __P((u_char *, int, int, u_int,
struct slcompress *, u_char **, u_int *));
+__END_DECLS
+
#endif /* _SLCOMPRESS_H_ */
/*
* 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.
/* 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,
struct vjcompress *comp, u_char **hdrp,
u_int *hlenp));
+__END_DECLS
+
#endif /* _VJCOMPRESS_H_ */
#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
extern int forkpty (int *__amaster, char *__name,
struct termios *__termp, struct winsize *__winp);
+__END_DECLS
+
#endif /* pty.h */
#include <features.h>
#include <stdio.h>
+__BEGIN_DECLS
+
/* The passwd structure. */
struct passwd
{
size_t buflen, int pwd_fd);
#endif
+__END_DECLS
#endif /* pwd.h */
#include <stdio.h>
#include <netinet/in.h>
+__BEGIN_DECLS
+
struct resolv_header {
int id;
int qr,opcode,aa,tc,rd,ra,rcode;
extern int res_query(const char *dname, int class, int type,
unsigned char *answer, int anslen);
+__END_DECLS
+
#endif /*_RESOLV_H_*/
#include <sys/types.h>
#include <limits.h>
+__BEGIN_DECLS
+
/* Don't overwrite user definitions of NULL */
#ifndef NULL
#define NULL ((void *) 0)
extern char *mktemp __P ((char *__template));
extern int mkstemp __P ((char *__template));
+__END_DECLS
#endif /* __STDLIB_H */
#include <sys/types.h>
#include <stddef.h>
+__BEGIN_DECLS
/* Basic string functions */
/* Return the length of S. */
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 *));
(char *) memcpy (__new, __old, __len); \
}))
+__END_DECLS
+
#endif
char domainname[65];
};
+__BEGIN_DECLS
extern int uname __P ((struct utsname * __utsbuf));
+__END_DECLS
#endif
#include <features.h>
#include <sys/types.h>
+__BEGIN_DECLS
+
extern char PC;
extern char *UP;
extern char *BC;
extern int tputs __P((const char *, int, int (*)(int)));
extern char *tgoto __P((const char *, int, int));
+__END_DECLS
+
#endif /* _TERMCAP_H */
#include <features.h>
#include <sys/types.h>
+__BEGIN_DECLS
+
struct utimbuf {
time_t actime;
time_t modtime;
extern int utime __P ((const char *__filename, struct utimbuf *__utimebuf));
+__END_DECLS
+
#endif
#define USER_PROCESS 7
#define DEAD_PROCESS 8
+__BEGIN_DECLS
+
struct utmp
{
short ut_type; /* type of login */
struct utmp * __getutent __P ((int));
#endif
+__END_DECLS
+
#endif /* __UTMP_H */
(_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
# define ECANCELED 125
# ifndef __ASSEMBLER__
+ __BEGIN_DECLS
/* We now need a declaration of the `errno' variable. */
extern int errno;
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif
+ __END_DECLS
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
#endif
+__BEGIN_DECLS
/* Trigonometric functions. */
/* Arc cosine of X. */
/* Multiply-add function computed as a ternary operation. */
__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
+
#endif /* Use ISO C99. */
+
+__END_DECLS
#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
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
#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 */
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
}
#endif
+
+__END_DECLS
# undef ERANGE
# include <linux/errno.h>
+__BEGIN_DECLS
+
/* Linux has no ENOTSUP error code. */
# define ENOTSUP EOPNOTSUPP
# 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
#error "Never include <bits/mathcalls.h> directly; include <math.h> instead."
#endif
+__BEGIN_DECLS
/* Trigonometric functions. */
/* Multiply-add function computed as a ternary operation. */
__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
#endif /* Use ISO C 9X. */
+
+__END_DECLS
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
/* 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,
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
/* 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 */
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
{
return ~__z;
}
-
#endif
+
+__END_DECLS
# undef ERANGE
# include <linux/errno.h>
+__BEGIN_DECLS
+
/* Linux has no ENOTSUP error code. */
# define ENOTSUP EOPNOTSUPP
# define EILSEQ 84 /* Illegal byte sequence. */
# define ERANGE 34 /* Math result not representable. */
#endif /* !_ERRNO_H && __need_Emath */
+
+__END_DECLS
/* 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)
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
#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 */
+ 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
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
}
#endif
+
+__END_DECLS
# 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
# define ENOTSUP EOPNOTSUPP
# ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
/* We now need a declaration of the `errno' variable. */
extern int errno;
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif
+
+__END_DECLS
+
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
/* 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);
void (*__parent) (void),
void (*__child) (void));
+__END_DECLS
/* Make the pthread functions weak so that we can elide them from
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill (pthread_t __thread, int __signo) __THROW;
+__END_DECLS
+
#endif /* bits/sigthread.h */
(_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
# define ECANCELED 125
# ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
/* We now need a declaration of the `errno' variable. */
extern int errno;
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif
+
+__END_DECLS
+
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
#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 */
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
}
#endif
+
+__END_DECLS
# define ECANCELED 125
# ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
/* We now need a declaration of the `errno' variable. */
extern int errno;
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif
+
+__END_DECLS
+
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
#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 */
#define _Mdouble_complex_ _Mdouble_ _Complex
+__BEGIN_DECLS
/* Trigonometric functions. */
}
#endif
+
+__END_DECLS
# define ECANCELED 125
# ifndef __ASSEMBLER__
+
+__BEGIN_DECLS
+
/* We now need a declaration of the `errno' variable. */
extern int errno;
/* When using threads, errno is a per-thread value. */
# define errno (*__errno_location ())
# endif
+
+__END_DECLS
+
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
# endif
# endif
+__BEGIN_DECLS
+
/* These functions needn't check for a bogus signal number -- error
checking is done in the non __ versions. */
# undef __SIGSETFN
# endif
+__END_DECLS
#endif /* ! _SIGSET_H_fns. */
# 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
/* Send signal SIGNO to the given thread. */
extern int pthread_kill __P ((pthread_t __thread, int __signo));
+__END_DECLS
+
#endif /* bits/sigthread.h */
#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;
#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 */