Sun Nov 4 22:20:03 2012 UTC ()
include the needed headers


(christos)
diff -r1.103 -r1.104 src/sbin/init/init.c

cvs diff -r1.103 -r1.104 src/sbin/init/init.c (expand / switch to unified diff)

--- src/sbin/init/init.c 2012/03/20 18:50:31 1.103
+++ src/sbin/init/init.c 2012/11/04 22:20:03 1.104
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: init.c,v 1.103 2012/03/20 18:50:31 matt Exp $ */ 1/* $NetBSD: init.c,v 1.104 2012/11/04 22:20:03 christos Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1991, 1993 4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to Berkeley by 7 * This code is derived from software contributed to Berkeley by
8 * Donn Seeley at Berkeley Software Design, Inc. 8 * Donn Seeley at Berkeley Software Design, Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -32,52 +32,58 @@ @@ -32,52 +32,58 @@
32 * SUCH DAMAGE. 32 * SUCH DAMAGE.
33 */ 33 */
34 34
35#include <sys/cdefs.h> 35#include <sys/cdefs.h>
36#ifndef lint 36#ifndef lint
37__COPYRIGHT("@(#) Copyright (c) 1991, 1993\ 37__COPYRIGHT("@(#) Copyright (c) 1991, 1993\
38 The Regents of the University of California. All rights reserved."); 38 The Regents of the University of California. All rights reserved.");
39#endif /* not lint */ 39#endif /* not lint */
40 40
41#ifndef lint 41#ifndef lint
42#if 0 42#if 0
43static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95"; 43static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
44#else 44#else
45__RCSID("$NetBSD: init.c,v 1.103 2012/03/20 18:50:31 matt Exp $"); 45__RCSID("$NetBSD: init.c,v 1.104 2012/11/04 22:20:03 christos Exp $");
46#endif 46#endif
47#endif /* not lint */ 47#endif /* not lint */
48 48
49#include <sys/param.h> 49#include <sys/param.h>
50#include <sys/sysctl.h> 50#include <sys/sysctl.h>
51#include <sys/wait.h> 51#include <sys/wait.h>
52#include <sys/mman.h> 52#include <sys/mman.h>
53#include <sys/stat.h> 53#include <sys/stat.h>
54#include <sys/mount.h> 54#include <sys/mount.h>
55#include <machine/cpu.h> 55#include <machine/cpu.h>
56 56
57#include <db.h> 57#include <db.h>
58#include <errno.h> 58#include <errno.h>
59#include <fcntl.h> 59#include <fcntl.h>
60#include <signal.h> 60#include <signal.h>
61#include <stdio.h> 61#include <stdio.h>
62#include <stdlib.h> 62#include <stdlib.h>
63#include <string.h> 63#include <string.h>
64#include <syslog.h> 64#include <syslog.h>
65#include <time.h> 65#include <time.h>
66#include <ttyent.h> 66#include <ttyent.h>
67#include <unistd.h> 67#include <unistd.h>
68#include <util.h> 68#include <util.h>
69#include <paths.h> 69#include <paths.h>
70#include <err.h> 70#include <err.h>
 71#ifdef SUPPORT_UTMP
 72#include <utmp.h>
 73#endif
 74#ifdef SUPPORT_UTMPX
 75#include <utmpx.h>
 76#endif
71 77
72#include <stdarg.h> 78#include <stdarg.h>
73 79
74#ifdef SECURE 80#ifdef SECURE
75#include <pwd.h> 81#include <pwd.h>
76#endif 82#endif
77 83
78#include "pathnames.h" 84#include "pathnames.h"
79 85
80#define XSTR(x) #x 86#define XSTR(x) #x
81#define STR(x) XSTR(x) 87#define STR(x) XSTR(x)
82 88
83/* 89/*