]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
bu*: Tidy header includes
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 24 Mar 2011 20:42:37 +0000 (20:42 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 28 Mar 2011 22:14:09 +0000 (15:14 -0700)
Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.

Change-Id: If20a2ef67d4cbc70156c1707264a5b7360cfa11a
Reviewed-on: http://gerrit.openafs.org/4323
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
49 files changed:
src/bu_utils/fms.c
src/bucoord/bc_status.c
src/bucoord/btest.c
src/bucoord/commands.c
src/bucoord/config.c
src/bucoord/dlq.c
src/bucoord/dsstub.c
src/bucoord/dsvs.c
src/bucoord/dump.c
src/bucoord/dump_sched.c
src/bucoord/expire.c
src/bucoord/main.c
src/bucoord/restore.c
src/bucoord/server.c
src/bucoord/status.c
src/bucoord/tape_hosts.c
src/bucoord/ttest.c
src/bucoord/ubik_db_if.c
src/bucoord/vol_sets.c
src/bucoord/volstub.c
src/budb/database.c
src/budb/db_alloc.c
src/budb/db_dump.c
src/budb/db_hash.c
src/budb/db_lock.c
src/budb/db_text.c
src/budb/dbs_dump.c
src/budb/ol_verify.c
src/budb/procs.c
src/budb/server.c
src/budb/struct_ops.c
src/butc/afsxbsa.c
src/butc/butc_xbsa.c
src/butc/dbentries.c
src/butc/dump.c
src/butc/list.c
src/butc/lwps.c
src/butc/read_tape.c
src/butc/recoverDb.c
src/butc/tcmain.c
src/butc/tcprocs.c
src/butc/tcstatus.c
src/butc/tcudbprocs.c
src/butc/tdump.c
src/butc/test.c
src/butc/test_budb.c
src/butm/butm_test.c
src/butm/file_tm.c
src/butm/test_ftm.c

index 6d4878bb58db7d3e66376dab32cc6545ab42efd2..b1e1a2141b63b85dad2770841d51f6777ed15a1c 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <afs/procmgmt.h>
+#include <roken.h>
 
-#undef IN
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>         /* for mtio.h */
 #include <afs/cmd.h>
-#include <afs/procmgmt.h>
 #include <afs/usd.h>
 
 /* structure for writing data to tape */
index 265562cd82fca91f33df0a593e429883d37d7c04..818cc5821a080473225237ebb957836ba6d55f2e 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
 #include <afs/com_err.h>
 #include <afs/bubasics.h>
 #include <lock.h>
 #include <afs/tcdata.h>
 #include <afs/cmd.h>
+
 #include "bc.h"
 #include "error_macros.h"
 #include "bucoord_internal.h"
index 8a1aae5990c5300c3014e2ea6f31dfbee3678e35..d0dfae211cd115ccc247bc771f8bb3b69fdcbccc 100644 (file)
@@ -7,10 +7,11 @@
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
+
 #include <lwp.h>
 #include <rx/rx.h>
 #include <afs/bubasics.h>
@@ -18,9 +19,8 @@
 
 #include "AFS_component_version_number.c"
 
-main(argc, argv)
-     int argc;
-     char **argv;
+int
+main(int argc, char **argv)
 {
     struct rx_securityClass *rxsc;
     struct rx_connection *tconn;
index 5e4ba53d65150995a5fe978d550d5cc26ad21a09..99bf933728a0bcec1df01d1d138ef1c6c56d002b 100644 (file)
@@ -9,23 +9,15 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#if defined(AFS_LINUX24_ENV)
-#define _REGEX_RE_COMP
+#ifdef HAVE_POSIX_REGEX                /* use POSIX regexp library */
+#include <regex.h>
 #endif
-#include <sys/types.h>
+
 #include <afs/cmd.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <errno.h>
 #include <afs/com_err.h>
 #include <afs/afsutil.h>
 #include <afs/budb.h>
 #include <afs/vldbint.h>       /* PA */
 #include <afs/ktime.h>         /* PA */
 #include <ubik.h>
-#include <time.h>
 #include <lock.h>
-#include <afs/butc.h>
 #include <afs/tcdata.h>
 #include <afs/butx.h>
 #include <afs/vsutils_prototypes.h>
-#ifdef HAVE_POSIX_REGEX                /* use POSIX regexp library */
-#include <regex.h>
-#endif
+
 #include "bc.h"
 #include "error_macros.h"
 #include "bucoord_internal.h"
index 86624fd505fdb7478d2e651a0652c112a627bc42..f88ea2940e9028984ec482d0b95fbca6da5772ea 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <errno.h>
-
 #include "bc.h"
 
 struct bc_config *bc_globalConfig;
index a8b315875082a556565088d1d1bce9ba2cc8e558..642d26d7dfa367521f38af1315bfd0432f9cfdd1 100644 (file)
 
 #include <roken.h>
 
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
 #include "bc.h"
 #include <afs/bubasics.h>
 #include "bucoord_prototypes.h"
index 0d356dea32a627511d4d383a475e0246b1a98ae1..717ee3e987db9e998fbcc0a8acf4f5bf5c0a14ee 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
 #include <afs/cmd.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <stdio.h>
-#include <string.h>
-#include <dirent.h>
 #include <afs/afsutil.h>
 #include <afs/budb.h>
 #include <afs/bubasics.h>
 #include <afs/volser.h>
+
 #include "bc.h"
 
 /* protos */
index c48a58539495eadebf74d6e6e38af84ad1068a8a..0ec37147c29bb775937266c358f5833547995988 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
 #include <afs/cmd.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/param.h>
-#endif
 #include <afs/com_err.h>
-
 #include <afs/bubasics.h>
+
 #include "bc.h"
 #include "bucoord_internal.h"
 
index 6f5d175b15fb3b8e388d3ca676bf5852ac5553d9..3c67a7fc365d28a1f280d0a45af4b3c58f49dd9f 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
 #include <afs/cmd.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/param.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/time.h>
-#endif
 #include <lwp.h>
 #include <rx/rx.h>
 #include <afs/bubasics.h>
index 95146f3572f9a171bc9af53e921eb989ef2c13f9..62f934268a92b0ff369cc6ed6e6ef2aa5dd31fb1 100644 (file)
  * ALL RIGHTS RESERVED
  */
 
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
 #include <afsconfig.h>
 #include <afs/param.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <errno.h>
 #include <afs/ktime.h>
 #include <afs/budb_client.h>
 #include <afs/cmd.h>
 #include <afs/com_err.h>
 #include <afs/bubasics.h>
+
 #include "bc.h"
 #include "error_macros.h"
 #include "bucoord_internal.h"
index 4ec586bda8136cba691bba795f90b0a705e85d66..6ceccc9f3ecb764bbd82dd57052592e115abf099 100644 (file)
@@ -9,17 +9,16 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
+#include <roken.h>
+
+#include <ctype.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
 #include <afs/ktime.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
 #include <afs/cmd.h>
-#include <ctype.h>
-#include "bc.h"
 
+#include "bc.h"
 
 #define        MAX_YEAR_VALUE  0
 #define        MAX_MONTH_VALUE 11
index ce3d7a253c25d7e79bb9e96d7b05c02cf38600b6..ad0801c16a2c09be41d26fe04ae7247e9b30dc85 100644 (file)
@@ -9,31 +9,16 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
 
-#include <errno.h>
 #include <afs/cmd.h>
 #include <rx/rx.h>
 #include <rx/rx_globals.h>
 #include <lwp.h>
 #include <afs/bubasics.h>
-#include <fcntl.h>
 #include <afs/afsutil.h>
 #include <afs/auth.h>
 #include <afs/cellconfig.h>
index 8c61bc965be6f32c103dd6277e86b449905d177b..ee11a8dc8192f606181a03f444370674ae878b28 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
 #include <afs/cmd.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/time.h>
-#endif
 #include <lwp.h>
 #include <afs/bubasics.h>
 #include "bc.h"
@@ -34,6 +25,7 @@
 #include <afs/butc.h>
 #include <afs/budb.h>
 #include <afs/vlserver.h>
+
 #include "error_macros.h"
 #include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
index 02dda6d0da588c580b4527e78474f2fc6010459e..aa2ebfd099da488c482fd12a0b5df261bbab16e9 100644 (file)
@@ -7,17 +7,11 @@
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-#include <sys/types.h>
 #include <afsconfig.h>
 #include <afs/param.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#endif
 #include <rx/rx.h>
 
 /* services available on incoming message port */
index ed5a5d66f38a299a4e4e804a7498ba013067e551..3ca7cc0fb59edb05e3b8d2ba4dba9df5a5ac7bd4 100644 (file)
@@ -9,21 +9,13 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/time.h>
-#endif
 #include <afs/com_err.h>
 #include <afs/bubasics.h>
+
 #include "bc.h"
 #include "error_macros.h"
 #include "bucoord_internal.h"
index 47bc05e4e92a60b820f5db87bf34111fb5f4f083..1da0bfb3447cdb4cfb7ad4f129c1df96914a1f14 100644 (file)
@@ -9,25 +9,17 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
 #include <afs/budb_client.h>
 #include <afs/cmd.h>
 #include <afs/com_err.h>
 #include <afs/bubasics.h>
+
 #include "bc.h"
 #include "error_macros.h"
-#include <errno.h>
 #include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
 
index 338ea70990a1be22ea137e8abf1e68e324a11475..121002c2e77c7c16d40519aff149fe40394e33b3 100644 (file)
@@ -7,13 +7,13 @@
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
+
 #include <lwp.h>
 #include <rx/rx.h>
-#include <rpc/types.h>
 #include <afs/bubasics.h>
 #include <afs/butc.h>
 #include <afs/budb.h>
index 1c0a917d1387171f74324e16f76f42d5773c6884..22b0e6a7ebca0d5cb375bcdc7bbbc576158345a2 100644 (file)
 # pragma GCC diagnostic warning "-Wstrict-prototypes"
 #endif
 
-#include <sys/types.h>
-#include <fcntl.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#elif defined(AFS_SUN5_ENV)
-#include <netdb.h>
-#else
-#include <sys/param.h>         /* for hostnames etc */
-#endif
 #include <afs/auth.h>
 #include <afs/cellconfig.h>
 #include <ubik.h>
@@ -37,7 +28,6 @@
 #include <afs/budb_client.h>
 #include <afs/budb.h>
 #include <afs/com_err.h>
-#include <errno.h>
 
 #include "bc.h"
 #include "error_macros.h"
index 581cada4d08403544276e8cce6c7e1fe9ee0f932..fafdcf71d6704d58dfaa88bcab9a8dd19ef07638 100644 (file)
@@ -9,23 +9,15 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <afs/stds.h>
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <errno.h>
 #include <afs/budb_client.h>
 #include <afs/cmd.h>
 #include <afs/com_err.h>
 #include <afs/bubasics.h>
+
 #include "bc.h"
 #include "error_macros.h"
 #include "bucoord_internal.h"
index b2e3020267958ea867471fd9c3947c4c18c637a9..e149f44acb7461865e66439191d258c56a8be3bb 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
 #include <rx/xdr.h>
 #include <afs/vlserver.h>      /*Misc server-side Volume Location stuff */
 #include <ubik.h>
 #include <afs/volser.h>
+
 #include "bc.h"
 #include <afs/volint.h>
 #include <afs/volser.h>
index 94045e2d2d7b93f92c1c5c599074b6ae51df2c47..a57d830b18cd5c995f9f1d43e7fdff48b1557e9e 100644 (file)
@@ -9,24 +9,18 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <sys/types.h>
-#include <afs/stds.h>
 #include <ubik.h>
 #include <afs/bubasics.h>
+#include <afs/audit.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "error_macros.h"
 #include "budb_internal.h"
-#include "afs/audit.h"
-#include <string.h>
 
 int pollCount;
 struct memoryDB db;            /* really allocate it here */
index 54e1f00c3193ba0f739f93f9b825d4806fd26597..48468c56a76cbc239e02307daadaf73b626e6d5b 100644 (file)
@@ -9,19 +9,13 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <string.h>
-#include <sys/types.h>
-#include <afs/stds.h>
 #include <ubik.h>
 #include <afs/bubasics.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "budb_internal.h"
index beb9009327752423141ad0ca2021cb7ba63cd58c..a1510ac557aaa52b92ececc698aed2751a8355de 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <sys/param.h>
-#endif
-#include <afs/stds.h>
-#include <sys/types.h>
 #include <ubik.h>
 #include <lock.h>
-#include <string.h>
+#include <afs/audit.h>
 
 #include "database.h"
 #include "budb.h"
@@ -35,7 +28,6 @@
 #include "error_macros.h"
 #include "budb_errs.h"
 #include "budb_internal.h"
-#include "afs/audit.h"
 
 
 /* dump ubik database - routines to scan the database and dump all
index bfe12ed51d6ddf9dec91ebe34d7bf182273327de..af7c6437cd0bb280f306844ef5739e14e0333b79 100644 (file)
@@ -9,19 +9,13 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <string.h>
-#include <sys/types.h>
-#include <afs/stds.h>
 #include <ubik.h>
 #include <afs/bubasics.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "budb_internal.h"
index 5f499a36de811390a9d6ec907666f38cdeb9e5cd..244175a38602813ffea32428a71291efc3d19f23 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <sys/time.h>
-#endif
-#include <afs/afsutil.h>
 #include <ubik.h>
+#include <afs/afsutil.h>
+#include <afs/audit.h>
 #include <afs/bubasics.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "budb_internal.h"
 #include "error_macros.h"
-#include "afs/audit.h"
 
 #define        DBH_POS(ptr)            ( (char *) (ptr) - (char *) &db.h )
 
index c5ceed68dfd3f35959f2a33582f9537c969bf59c..ee76d9794c47deaadad15aae7b90f5795efa2ffc 100644 (file)
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#include <fcntl.h>
-#include <io.h>
-#else
-#include <netinet/in.h>
-#include <sys/file.h>
-#include <sys/param.h>
-#endif
-#include <string.h>
-#include <sys/types.h>
 #include <ubik.h>
 #include <afs/bubasics.h>
+#include <afs/audit.h>
+#include <afs/afsutil.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "error_macros.h"
 #include "budb_internal.h"
-#include "afs/audit.h"
-#include <afs/afsutil.h>
 
 /* --------------------------------
  * interface & support code to manage text blocks within the
index 17db2bd1c950d02795ddf7c4b336f41ed68aa5cb..f1dc0b3d7f11093aaa88f452d2c5ee189e3489b7 100644 (file)
@@ -9,42 +9,25 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#include <io.h>
-#include <fcntl.h>
-#else
-#include <netinet/in.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <sys/file.h>
-#endif
-#include <time.h>
-#include <sys/types.h>
-#include <afs/stds.h>
-#include <stdio.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
 #include <lock.h>
 #include <ubik.h>
 #include <lwp.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <rx/rxkad.h>
-#include <string.h>
 #include <afs/cellconfig.h>
-#include <errno.h>
+#include <afs/audit.h>
+
 #include "budb.h"
 #include "budb_errs.h"
 #include "database.h"
 #include "budb_internal.h"
 #include "error_macros.h"
 #include "globals.h"
-#include "afs/audit.h"
 
 afs_int32 DumpDB(struct rx_call *, int, afs_int32, charListT *, afs_int32 *);
 afs_int32 RestoreDbHeader(struct rx_call *, struct DbHeader *);
index e52a4215a5b9aa903d36fc053988235e8b7dbad3..f6cdd353d04b7c532ce4328b461663d174957dee 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <string.h>
-#include <afs/stds.h>
-#include <sys/types.h>
 #include <lock.h>
 #include <ubik.h>
+#include <afs/cellconfig.h>
+#include <afs/audit.h>
+
 #include "database.h"
 #include "error_macros.h"
 #include "budb_errs.h"
 #include "budb_internal.h"
-#include <afs/cellconfig.h>
-#include "afs/audit.h"
 
 #undef min
 #undef max
index 75b14a82368f3d017bff43255f863d47895c2ab7..f53368f68fdedd757739f39b3a4482e1a8054f3d 100644 (file)
 
 #include <roken.h>
 
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <sys/file.h>
-#include <sys/param.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-#endif
-
-#include <string.h>
-#include <sys/types.h>
 #include <afs/stds.h>
 #include <afs/bubasics.h>
-#include <stdio.h>
 #include <lock.h>
 #include <ubik.h>
 #include <lwp.h>
 #include <rx/rxkad.h>
 #include <afs/cellconfig.h>
 #include <afs/auth.h>
-#include <errno.h>
+#include <afs/audit.h>
+#include <afs/afsutil.h>
+
 #include "budb.h"
 #include "budb_errs.h"
 #include "database.h"
 #include "budb_internal.h"
 #include "error_macros.h"
 #include "globals.h"
-#include "afs/audit.h"
-#include <afs/afsutil.h>
 
 #undef min
 #undef max
index 5a7528a9ce45db2cd99251cc8a1434257c1f1970..4c202ee959c28ad4df658711c3737f80fdef2f52 100644 (file)
@@ -9,25 +9,15 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
 #include <fcntl.h>
-#include <sys/stat.h>
+
 #ifdef AFS_NT40_ENV
-#include <winsock2.h>
 #include <WINNT/afsevent.h>
-#else
-#include <netinet/in.h>
-#include <sys/file.h>
-#include <sys/time.h>
-#include <netdb.h>
 #endif
-#include <string.h>
-#include <afs/stds.h>
-#include <sys/types.h>
-#include <time.h>
-#include <stdio.h>
 #include <afs/cmd.h>
 #include <lwp.h>
 #include <ubik.h>
 #include <afs/bubasics.h>
 #include <afs/afsutil.h>
 #include <afs/com_err.h>
-#include <errno.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
+#include <afs/audit.h>
+
 #include "budb_errs.h"
 #include "database.h"
 #include "error_macros.h"
 #include "budb_internal.h"
 #include "globals.h"
-#include "afs/audit.h"
 
 struct ubik_dbase *BU_dbase;
 struct afsconf_dir *BU_conf;   /* for getting cell info */
index 1d67f786345d89bfb8a3ced0eddba908a0c00c20..367a01766237dbd13b39f2028382befe612953cf 100644 (file)
@@ -9,24 +9,15 @@
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
 #include <roken.h>
 
-#include <stdio.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <sys/file.h>
-#endif
-#include <sys/types.h>
-
-#include <afs/stds.h>
 #include <afs/bubasics.h>
 #include <afs/afsutil.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
-#include <string.h>
+
 #include "budb.h"
 #include "budb_errs.h"
 #include "database.h"
index cb8a7a1d5a3025700f2e64d692e3ceccf9ad7ce9..c951661ef3e00889f595dd084568fd3574c84557 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
-
-#include <sys/types.h>
 #include <afs/stds.h>
-#include <stdio.h>
 
+#include <roken.h>
 
 #if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_LINUX26_ENV)
 #include <dlfcn.h>
 #endif
 
-#include <errno.h>
 #include "butc_xbsa.h"
 #include <afs/butx.h>
 
index f009cba7946a51b50f124abcaec09cb094f9e0a6..fcafeb69555184e989fe2b2cc24fc93a9a5d879b 100644 (file)
 
 #include <afsconfig.h>
 #include <afs/param.h>
+#include <afs/stds.h>
 
+#include <roken.h>
 
-#include <sys/types.h>
-#include <afs/stds.h>
-#include <stdio.h>
 #if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV)
 #include <dlfcn.h>
 #endif
-#include <errno.h>
+
 #include "butc_xbsa.h"
 #include <afs/butx.h>
 #include <afs/bubasics.h>
index 728c68d8538217b222f427d694cfd656b8f806a3..be9b34327ff600fae2d36e0179e0faa12883502d 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <netdb.h>
-#endif
-#include <stdlib.h>
-#include <string.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <lwp.h>
@@ -32,7 +20,6 @@
 #include <afs/bubasics.h>
 #include <afs/budb_client.h>
 #include <afs/vldbint.h>
-
 #include <afs/vlserver.h>
 #include <afs/volser.h>
 #include <afs/volint.h>
@@ -40,7 +27,6 @@
 #include <afs/bucoord_prototypes.h>
 
 #include "butc_internal.h"
-
 #include "error_macros.h"
 
 dlqlinkT savedEntries;
index e1da036f3e6ac42770304f5be98523de1dedf2b2..532324f89aba3153e908a49500c9fd08807fe621 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/time.h>
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#endif
-#include <stdlib.h>
-#include <string.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <lwp.h>
 #include <lock.h>
-#include <errno.h>
 #include <afs/tcdata.h>
 #include <afs/bubasics.h>
 #include <afs/budb_client.h>
index 9c09f520f593eda9120920e29c069abafb5bf77f..5521ba55dc1626c7ecd4cacbaca2cccbeb9cd837 100644 (file)
 
 #include <roken.h>
 
-#ifndef AFS_NT40_ENV
-#include <sys/time.h>
-#endif
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <lock.h>
 #include <lwp.h>
-#include <errno.h>
 #include <afs/tcdata.h>
 
 #include "error_macros.h"
index 31c8ad0aab79b6acdb99cd6e53d38612b49da03d..1124f1165f091696405e5a55c2d971651b47da36 100644 (file)
 #include <afs/procmgmt.h>
 #include <roken.h>
 
-#include <sys/types.h>
-#include <string.h>
 #ifdef AFS_NT40_ENV
-#include <winsock2.h>
 #include <conio.h>
-#else
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
 #endif
 
-#include <afs/procmgmt.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
-#include <time.h>
 #include <lwp.h>
 #include <lock.h>
 #include <afs/tcdata.h>
@@ -41,9 +29,9 @@
 #include <afs/volser.h>
 #include <afs/volser_prototypes.h>
 #include <afs/com_err.h>
-#include "error_macros.h"
 #include <afs/afsutil.h>
-#include <errno.h>
+
+#include "error_macros.h"
 #include "butc_xbsa.h"
 #include "butc_internal.h"
 
index a4856592b78d7a1e28573ae4db948b837b9513c8..c8818a3dedf77c3827bf3bd045158b5df0a26398 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include <afs/cmd.h>
 #include <lock.h>
 #include <afs/tcdata.h>
-
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-
 #include <afs/usd.h>
 
 usd_handle_t fd;
index b5aa3b50a2f9c4afe65c95cc433774e58d823573..40813164b5fb0b963018ce9c40b01c325c05d9a7 100644 (file)
 
 #include <roken.h>
 
-#include <stdio.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/time.h>
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <strings.h>
-#endif
-#include <sys/types.h>
-#include <string.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <lwp.h>
@@ -38,6 +23,7 @@
 #include <afs/budb_prototypes.h>
 #include <afs/butm_prototypes.h>
 #include <afs/bucoord_prototypes.h>
+
 #include "error_macros.h"
 #include "butc_internal.h"
 
index ca2c4364ca8893168f9b7884ad2eccaf28bdb34c..61c28f809f85d8e88bfe87c6613d840686b94dd7 100644 (file)
@@ -10,7 +10,6 @@
 #include <afsconfig.h>
 #include <afs/param.h>
 
-
 #include <afs/procmgmt.h>
 #include <roken.h>
 
 # pragma GCC diagnostic warning "-Wimplicit-function-declaration"
 #endif
 
-#include <sys/types.h>
-#include <sys/stat.h>
 #ifdef AFS_NT40_ENV
-#include <winsock2.h>
 #include <WINNT/afsevent.h>
-#else
-#include <netinet/in.h>
-#include <sys/time.h>
 #endif
-#include <afs/procmgmt.h>
+
+#include <ctype.h>
+
+#include <rx/rx.h>
+#include <rx/rx_globals.h>
+#include <rx/rxkad.h>
 #include <rx/xdr.h>
+
 #include <afs/afsint.h>
-#include <stdio.h>
 #include <afs/afs_assert.h>
 #include <afs/prs_fs.h>
 #include <afs/nfs.h>
-#include <string.h>
 #include <afs/vlserver.h>
 #include <lwp.h>
 #include <lock.h>
 #include <afs/afsutil.h>
-#include <rx/rx.h>
-#include <rx/rx_globals.h>
-#include <rx/rxkad.h>
 #include <afs/cellconfig.h>
 #include <afs/keys.h>
 #include <afs/volser.h>
 #include <ubik.h>
 #include <afs/com_err.h>
-#include <errno.h>
 #include <afs/cmd.h>
 #include <afs/tcdata.h>
 #include <afs/bubasics.h>
-#include <ctype.h>
-#include "error_macros.h"
 #include <afs/budb_errs.h>
 #include <afs/budb_client.h>
 #include <afs/bucoord_prototypes.h>
-#include "afs/butx.h"
+#include <afs/butx.h>
+#include <afs/kautils.h>
+#include <afs/bc.h>
+
+#include "error_macros.h"
 #define XBSA_TCMAIN
 #include "butc_xbsa.h"
 #include "butc_prototypes.h"
-#include <afs/kautils.h>
-#include <afs/bc.h>
 
 #define N_SECURITY_OBJECTS 3
 #define ERRCODE_RANGE 8                /* from error_table.h */
index 24492c65cd4ea1259b74121dad76ec40afcc167a..596ed55990008abc74469befd1995df67e94daf7 100644 (file)
 #include <afs/procmgmt.h>
 #include <roken.h>
 
-#include <sys/types.h>
-#include <errno.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <sys/file.h>
-#include <netinet/in.h>
-#endif
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <afs/afsint.h>
-#include <stdio.h>
-#include <string.h>
-#include <afs/procmgmt.h>
 #include <afs/afs_assert.h>
 #include <afs/prs_fs.h>
-#include <sys/stat.h>
 #include <afs/nfs.h>
 #include <lwp.h>
 #include <lock.h>
@@ -44,6 +29,7 @@
 #include <afs/tcdata.h>
 #include <afs/budb_client.h>
 #include <afs/bucoord_prototypes.h>
+
 #include "error_macros.h"
 #include "butc_xbsa.h"
 #include "butc_prototypes.h"
index 923832bc191de5e357544ea7b030eae479a84cb5..fbe46a49f95d8b8c10d7affa829859c635138bf7 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <strings.h>
-#endif
-#include <stdio.h>
-#include <string.h>
 #include <afs/com_err.h>
 #include <lock.h>
 #include <afs/bubasics.h>
 #include <afs/butc.h>
 #include <afs/budb_client.h>
 #include <afs/bucoord_prototypes.h>
-#include "butc_internal.h"
 
+#include "butc_internal.h"
 #include "error_macros.h"
 #include "butc_xbsa.h"
+
 /* tape coordinator - task status management */
 extern afs_int32 xbsaType;
 
index 1dcaf90f822fd621d96fa460555b8f7647dcc276..6d70941042e00c43828d29cdf0b976bc0b3af951 100644 (file)
 # pragma GCC diagnostic warning "-Wimplicit-function-declaration"
 #endif
 
-#include <sys/types.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#include <io.h>
-#else
-#include <sys/time.h>
-#include <sys/file.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#include <errno.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <afs/afsint.h>
-#include <stdio.h>
-#include <string.h>
-#include <afs/procmgmt.h>
 #include <afs/afs_assert.h>
 #include <afs/prs_fs.h>
-#include <fcntl.h>
 #include <afs/nfs.h>
 #include <lwp.h>
 #include <lock.h>
@@ -57,6 +39,7 @@
 #include <afs/butm_prototypes.h>
 #include <afs/budb_prototypes.h>
 #include <afs/afsutil.h>
+
 #include "butc_internal.h"
 #include "error_macros.h"
 
index db82ccd7a1f1a978722159496e12d09375c240e3..ef184af4f42b58fa9d074712aab0bddb5eaddc10 100644 (file)
@@ -7,11 +7,10 @@
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
-#include <sys/types.h
-#include <sys/file.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
 
 #define BLKSIZE (4096+24)      /* actual block size on our backup tapes */
 
index 1ce6a25e036f84c6ff77b135de2525cbd5b63135..0453fe165e914cc803986acaeb209281b5e58c9a 100644 (file)
@@ -6,17 +6,16 @@
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
 
-#include <sys/types.h>
-#include <sys/file.h>
-#include <sys/stat.h>
 #ifdef AFS_AIX_ENV
 #include <sys/statfs.h>
 #endif
-#include <netdb.h>
-#include <sys/errno.h>
+
 #include <lock.h>
-#include <netinet/in.h>
 #include <rx/xdr.h>
 #include <rx/rx.h>
 #include <rx/rx_globals.h>
@@ -29,9 +28,6 @@
 #include <afs/cmd.h>
 #include <rx/rxkad.h>
 #include <afs/tcdata.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
 
 #define SERVERNAME "server1"
 
index ce86a5db4a46757ec31b09fbcb2fbd66ef327d97..c32421608cc4f5b200e82695591dde5419def1d0 100644 (file)
@@ -6,13 +6,10 @@
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
  */
-
-#include <sys/types.h>
-#include <netinet/in.h>
-
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
 #include <afs/budb_client.h>
 #include <afs/budb.h>
index ef0454cb1b5e54626912b8c80f465e27cf9818b0..001faf4a023233ba523dd783edb18a1ab2de279a 100644 (file)
 #include <afsconfig.h>
 #include <afs/param.h>
 
+#include <roken.h>
 
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/file.h>
-#include <sys/stat.h>
 #include <afs/com_err.h>
-#include <stdio.h>
-#include <sys/ioctl.h>
-#include <netinet/in.h>
 #include <lwp.h>
 #include <afs/butm.h>
 #include "AFS_component_version_number.c"
index d5390e85c21a5c7eb02150b07242a218cfcee0c8..68a8f2045a70705eea4ed1106e946838df2fb9c0 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#ifdef AFS_NT40_ENV
-#include <winsock2.h>
-#else
-#include <netinet/in.h>
+#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
-#include <fcntl.h>
-#include <errno.h>
+
 #include <limits.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <string.h>
 #include <ctype.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
+
 #include <lwp.h>
 #include <afs/com_err.h>
 #include <afs/butm.h>
 #include <afs/usd.h>
+
 #include "error_macros.h"
 #include "butm_prototypes.h"
 
index 218af80fe7ec58f8be5befab3df7c089501de608..1d86c58ca337775b9140423cbae80ef09565a18f 100644 (file)
 
 #include <roken.h>
 
-#include <sys/types.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <time.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#else
-#include <sys/time.h>
-#include <netinet/in.h>
-#endif
-#include <afs/afsutil.h>
 #include <limits.h>
-#include <sys/stat.h>
-#include <stdio.h>
 #include <ctype.h>
+
+#include <afs/afsutil.h>
 #include <lwp.h>
 #include <afs/com_err.h>
 #include <afs/butm.h>
+
 #include "error_macros.h"
 
 int isafile = 0, debugLevel = 1;