* SUCH DAMAGE.
*
* $FreeBSD: src/sbin/dump/cache.c,v 1.1.2.1 2003/01/25 18:54:59 dillon Exp $
- * $DragonFly: src/sbin/dump/cache.c,v 1.5 2006/10/21 04:10:02 pavalos Exp $
*/
/*
* Block cache for dump
#include <ctype.h>
#include <stdio.h>
-#ifdef __STDC__
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#endif
+
#include "dump.h"
typedef struct Block {
*
* @(#)dumprmt.c 8.3 (Berkeley) 4/28/95
* $FreeBSD: src/sbin/dump/dumprmt.c,v 1.14.2.1 2000/07/01 06:31:52 ps Exp $
- * $DragonFly: src/sbin/dump/dumprmt.c,v 1.13 2005/04/14 10:17:23 y0netan1 Exp $
*/
#include <sys/param.h>
#include <netdb.h>
#include <pwd.h>
#include <stdio.h>
-#ifdef __STDC__
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#endif
#include "pathnames.h"
#include "dump.h"
*
* @(#)itime.c 8.1 (Berkeley) 6/5/93
* $FreeBSD: src/sbin/dump/itime.c,v 1.3.2.1 2001/08/01 06:29:35 obrien Exp $
- * $DragonFly: src/sbin/dump/itime.c,v 1.11 2006/10/21 04:10:02 pavalos Exp $
*/
#include <sys/param.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
-#endif
#include "dump.h"
*
* @(#)tape.c 8.4 (Berkeley) 5/1/95
* $FreeBSD: src/sbin/dump/tape.c,v 1.12.2.3 2002/02/23 22:32:51 iedowse Exp $
- * $DragonFly: src/sbin/dump/tape.c,v 1.14 2005/08/28 04:35:12 dillon Exp $
*/
#include <sys/param.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#else
-int write(), read();
-#endif
#include "dump.h"
*
* @(#)traverse.c 8.7 (Berkeley) 6/15/95
* $FreeBSD: src/sbin/dump/traverse.c,v 1.10.2.6 2003/04/14 20:10:35 johan Exp $
- * $DragonFly: src/sbin/dump/traverse.c,v 1.15 2006/10/21 04:10:02 pavalos Exp $
*/
#include <sys/param.h>
#include <ctype.h>
#include <stdio.h>
-#ifdef __STDC__
#include <errno.h>
#include <string.h>
#include <unistd.h>
-#endif
#include "dump.h"
* SUCH DAMAGE.
*
* $FreeBSD: src/sbin/fsck/fsutil.c,v 1.2.2.1 2001/08/01 05:47:55 obrien Exp $
- * $DragonFly: src/sbin/fsck/fsutil.c,v 1.6 2006/10/12 04:04:03 dillon Exp $
- *
- * $NetBSD: fsutil.c,v 1.7 1998/07/30 17:41:03 thorpej Exp $
*/
#include <sys/cdefs.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <errno.h>
#include <fstab.h>
#include <err.h>
*
* $NetBSD: main.c,v 1.10 1997/10/01 02:18:14 enami Exp $
* $FreeBSD: src/sbin/fsck_msdosfs/main.c,v 1.4.2.1 2001/08/01 05:47:56 obrien Exp $
- * $DragonFly: src/sbin/fsck_msdosfs/main.c,v 1.4 2003/11/01 17:15:58 drhodus Exp $
*/
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "fsutil.h"
#include "ext.h"
* @(#) Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved.
* @(#)init.c 8.1 (Berkeley) 7/15/93
* $FreeBSD: src/sbin/init/init.c,v 1.38.2.8 2001/10/22 11:27:32 des Exp $
- * $DragonFly: src/sbin/init/init.c,v 1.10 2007/11/25 18:10:07 swildner Exp $
*/
#include <sys/param.h>
#include <sys/reboot.h>
#include <err.h>
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#ifdef SECURE
#include <pwd.h>
* @(#) Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved.
* @(#)init.c 8.1 (Berkeley) 7/15/93
* $FreeBSD: src/sbin/init/init.c,v 1.38.2.8 2001/10/22 11:27:32 des Exp $
- * $DragonFly: src/sbin/init/init.c,v 1.10 2007/11/25 18:10:07 swildner Exp $
*/
#include <sys/param.h>
#include <sys/reboot.h>
#include <err.h>
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "pathnames.h"
#include <sys/mman.h>
#endif
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include "mntopts.h"
#include "defs.h"
#define RTF_PROBEMTU RTF_PROTO1
#ifdef _KERNEL
-# ifdef __STDC__
struct rtentry;
struct rttimer;
struct in6_multi;
-# endif
+
void icmp6_init (void);
void icmp6_paramerror (struct mbuf *, int);
void icmp6_error (struct mbuf *, int, int, int);
*
* @(#)mount.h 8.21 (Berkeley) 5/20/95
* $FreeBSD: src/sys/sys/mount.h,v 1.89.2.7 2003/04/04 20:35:57 tegge Exp $
- * $DragonFly: src/sys/sys/mount.h,v 1.47 2008/09/17 21:44:19 dillon Exp $
*/
#ifndef _SYS_MOUNT_H_
/*
* Operations supported on mounted file system.
*/
-#ifdef __STDC__
struct nlookupdata;
struct nlookupdata;
struct mbuf;
-#endif
typedef int vfs_mount_t(struct mount *mp, char *path, caddr_t data,
struct ucred *cred);
*
* @(#)utsname.h 8.1 (Berkeley) 1/4/94
* $FreeBSD: src/sys/sys/utsname.h,v 1.7 1999/12/29 04:24:49 peter Exp $
- * $DragonFly: src/sys/sys/utsname.h,v 1.4 2006/05/20 02:42:13 dillon Exp $
*/
#ifndef _SYS_UTSNAME_H_
#ifndef _KERNEL
-#ifdef __STDC__
__BEGIN_DECLS
int uname (struct utsname *);
__END_DECLS
#else
-extern int uname();
-#endif
-#else
extern struct utsname utsname;
#endif /* _KERNEL */
/* Scanner skeleton version:
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
* $FreeBSD: src/usr.bin/lex/flex.skl,v 1.4 1999/10/27 07:56:44 obrien Exp $
- * $DragonFly: src/usr.bin/lex/flex.skl,v 1.9 2008/10/16 01:52:32 swildner Exp $
*/
#define FLEX_SCANNER
#include <unistd.h>
-#if __STDC__
-
#define YY_USE_PROTOS
#define YY_USE_CONST
-#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
-#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
-#else
-/* Just try to get by without declaring the routines. This will fail
- * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
- * or sizeof(void*) != sizeof(int).
- */
-#endif
#endif
/* Amount of stuff to slurp up with each read. */
/* @(#) $Header: /home/daffy/u0/vern/flex/RCS/flexdef.h,v 2.53 95/04/20 11:17:36 vern Exp $ (LBL) */
/* $FreeBSD: src/usr.bin/lex/flexdef.h,v 1.5 1999/10/27 07:56:44 obrien Exp $ */
-/* $DragonFly: src/usr.bin/lex/flexdef.h,v 1.4 2005/08/04 17:31:22 drhodus Exp $ */
#include <stdio.h>
#include <ctype.h>
#endif
#ifndef PROTO
-#if __STDC__
#define PROTO(proto) proto
-#else
-#define PROTO(proto) ()
-#endif
#endif
/* Scanner skeleton version:
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
* $FreeBSD: src/usr.bin/lex/initscan.c,v 1.6 1999/10/27 07:56:45 obrien Exp $
- * $DragonFly: src/usr.bin/lex/initscan.c,v 1.5 2005/08/04 17:31:22 drhodus Exp $
*/
#define FLEX_SCANNER
#else /* ! __cplusplus */
-#if __STDC__
-
#define YY_USE_PROTOS
#define YY_USE_CONST
-#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
-#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
-#else
-/* Just try to get by without declaring the routines. This will fail
- * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
- * or sizeof(void*) != sizeof(int).
- */
-#endif
#endif
/* Amount of stuff to slurp up with each read. */
/* $Header: /home/daffy/u0/vern/flex/RCS/misc.c,v 2.47 95/04/28 11:39:39 vern Exp $ */
/* $FreeBSD: src/usr.bin/lex/misc.c,v 1.5 1999/10/27 07:56:45 obrien Exp $ */
-/* $DragonFly: src/usr.bin/lex/misc.c,v 1.4 2005/08/04 17:31:22 drhodus Exp $ */
#include "flexdef.h"
case 'n': return '\n';
case 'r': return '\r';
case 't': return '\t';
-
-#if __STDC__
case 'a': return '\a';
case 'v': return '\v';
-#else
- case 'a': return '\007';
- case 'v': return '\013';
-#endif
case '0':
case '1':
case '\n': return "\\n";
case '\r': return "\\r";
case '\t': return "\\t";
-
-#if __STDC__
case '\a': return "\\a";
case '\v': return "\\v";
-#endif
default:
(void) sprintf( rform, "\\%.3o",
* @(#)skeleton.c 5.8 (Berkeley) 4/29/95
*
* $FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28.2.1 2001/07/19 05:46:39 peter Exp $
- * $DragonFly: src/usr.bin/yacc/skeleton.c,v 1.7 2008/07/12 16:52:48 mneumann Exp $
*/
#include "defs.h"
"#define yyclearin (yychar=(YYEMPTY))",
"#define yyerrok (yyerrflag=0)",
"#define YYRECOVERING() (yyerrflag!=0)",
- "#if defined(__cplusplus) || __STDC__",
"static int yygrowstack(void);",
- "#else",
- "static int yygrowstack();",
- "#endif",
NULL
};
"#define YYERROR goto yyerrlab",
"",
"#ifndef YYPARSE_PARAM",
- "#if defined(__cplusplus) || __STDC__",
"#define YYPARSE_PARAM_ARG void",
"#define YYPARSE_PARAM_DECL",
- "#else /* ! ANSI-C/C++ */",
- "#define YYPARSE_PARAM_ARG",
- "#define YYPARSE_PARAM_DECL",
- "#endif /* ANSI-C/C++ */",
"#else /* YYPARSE_PARAM */",
"#ifndef YYPARSE_PARAM_TYPE",
"#define YYPARSE_PARAM_TYPE void *",
"#endif",
- "#if defined(__cplusplus) || __STDC__",
"#define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM",
"#define YYPARSE_PARAM_DECL",
- "#else /* ! ANSI-C/C++ */",
- "#define YYPARSE_PARAM_ARG YYPARSE_PARAM",
- "#define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;",
- "#endif /* ANSI-C/C++ */",
"#endif /* ! YYPARSE_PARAM */",
"",
"int",
*
*
* $FreeBSD: src/usr.sbin/mrouted/defs.h,v 1.12.2.1 2001/07/19 01:41:11 kris Exp $
- * $DragonFly: src/usr.sbin/mrouted/defs.h,v 1.6 2004/02/10 02:59:42 rob Exp $
* defs.h,v 3.8.4.15 1998/03/01 02:51:42 fenner Exp
*/
#define DEL_ALL_ROUTES 1
/* for Deleting kernel table entries */
-/* obnoxious gcc gives an extraneous warning about this constant... */
-#if defined(__STDC__) || defined(__GNUC__)
#define JAN_1970 2208988800UL /* 1970 - 1900 in seconds */
-#else
-#define JAN_1970 2208988800L /* 1970 - 1900 in seconds */
-#define const /**/
-#endif
#ifdef RSRR
#define BIT_ZERO(X) ((X) = 0)
* main.c,v 3.8.4.29 1998/03/01 01:49:00 fenner Exp
*
* $FreeBSD: src/usr.sbin/mrouted/main.c,v 1.16.2.4 2002/09/12 16:27:49 nectar Exp $
- * $DragonFly: src/usr.sbin/mrouted/main.c,v 1.5 2004/12/18 22:48:04 swildner Exp $
*/
/*
#include <err.h>
#include "defs.h"
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <fcntl.h>
#include <paths.h>
x = htonl(~((1 << (32 - (i))) - 1)); \
};
-#if defined(__STDC__) || defined(__GNUC__)
#define JAN_1970 2208988800UL /* 1970 - 1900 in seconds */
-#else
-#define JAN_1970 2208988800L /* 1970 - 1900 in seconds */
-#define const /**/
-#endif
/* $FreeBSD: src/usr.sbin/route6d/route6d.c,v 1.2.2.5 2001/07/03 11:02:09 ume Exp $ */
-/* $DragonFly: src/usr.sbin/route6d/route6d.c,v 1.8 2005/12/05 02:40:28 swildner Exp $ */
/* $KAME: route6d.c,v 1.64 2001/05/08 04:36:37 itojun Exp $ */
/*
#include <stdlib.h>
#include <string.h>
#include <signal.h>
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <syslog.h>
#include <stddef.h>
#include <errno.h>
va_list ap;
char buf[1024];
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
vsnprintf(buf, sizeof(buf), fmt, ap);
perror(buf);
syslog(LOG_ERR, "%s: %s", buf, strerror(errno));
{
va_list ap;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
if (level <= dflag) {
fprintf(stderr, "%s: ", hms());
vfprintf(stderr, fmt, ap);
{
va_list ap;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
if (level <= dflag)
vfprintf(stderr, fmt, ap);
if (dflag) {