vfsck: Tidy header includes
[openafs.git] / src / vfsck / vprintf.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /* I don't really need all thes, but I can't tell which ones I need
11  * and which I don't.
12  */
13 #include <afsconfig.h>
14 #include <afs/param.h>
15
16 #include <roken.h>
17
18 #include <ctype.h>
19
20 #define VICE                    /* allow us to put our changes in at will */
21
22 #ifdef AFS_SUN_ENV
23 #define KERNEL
24 #endif
25 #include <sys/mount.h>
26 #ifdef AFS_SUN_ENV
27 #undef KERNEL
28 #endif /* AFS_SUN_ENV */
29
30 #include <sys/file.h>
31
32 #ifdef  AFS_OSF_ENV
33 #include <sys/vnode.h>
34 #include <sys/mount.h>
35 #include <ufs/inode.h>
36 #include <ufs/fs.h>
37 #define _BSD
38 #define _KERNEL
39 #include <ufs/dir.h>
40 #undef  _KERNEL
41 #undef  _BSD
42 #else /* AFS_OSF_ENV */
43 #ifdef AFS_VFSINCL_ENV
44 #define VFS
45 #include <sys/vnode.h>
46 #ifdef    AFS_SUN5_ENV
47 #include <sys/fs/ufs_inode.h>
48 #include <sys/fs/ufs_fs.h>
49 #define _KERNEL
50 #include <sys/fs/ufs_fsdir.h>
51 #undef _KERNEL
52 #include <sys/fs/ufs_mount.h>
53 #else
54 #include <ufs/inode.h>
55 #include <ufs/fs.h>
56 #define KERNEL
57 #include <ufs/fsdir.h>
58 #undef KERNEL
59 #endif
60 #else /* AFS_VFSINCL_ENV */
61
62 #include <sys/inode.h>
63 #ifdef  AFS_HPUX_ENV
64 #define LONGFILENAMES   1
65 #include <sys/sysmacros.h>
66 #include <sys/ino.h>
67 #define DIRSIZ_MACRO
68 #ifdef HAVE_USR_OLD_USR_INCLUDE_NDIR_H
69 #include </usr/old/usr/include/ndir.h>
70 #else
71 #include <ndir.h>
72 #endif
73 #else
74 #define KERNEL
75 #include <sys/dir.h>
76 #undef KERNEL
77 #endif
78 #include <sys/fs.h>
79 #endif /* AFS_VFSINCL_ENV */
80 #endif /* AFS_OSF_ENV */
81
82 #include <sys/wait.h>
83 #include "fsck.h"
84
85 /* Vice printf:  lob the message into /vice/file/vfsck.log if it isn't the root */
86 /* If we're salvaging the root, it wouldn't be such a good idea to lob stuff there */
87 vfscklogprintf(s, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
88      char *s;
89      long a1, a2, a3, a4, a5, a6, a7, a8, a9, a10;
90 {
91     printf(s, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
92     if (logfile) {
93         fprintf(logfile, s, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
94         fflush(logfile);
95     }
96 }