libroken: Build on windows
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 30 Oct 2010 14:17:09 +0000 (15:17 +0100)
committerDerrick Brashear <shadow@dementia.org>
Wed, 17 Nov 2010 16:12:29 +0000 (08:12 -0800)
commite2b4fde0b5850e42cb0ed00852f581fb7d24f8ff
treeafb77f42a30404a6bcc95c513e2b9a0bd15dca2b
parentccb6e3a5d64aced06c3ff415806735bddf0a900d
libroken: Build on windows

A minimal change set to get libroken to build on Windows. Sadly,
libroken contains definitions for a number of platform compatibility
macros which were previously scattered throughout the windows code.
These scattered macros have to be removed in order to build libroken.

The impact of this removal is that a very large number of files
throughout the tree require the addition of "roken.h" to pick up the
new compatibility code. The bulk of this change is adding these
includes.

In addition, some of the added includes add roken dependencies to the
Unix build. So, also add libroken to the build rules in affected Unix
Makefiles.

Change-Id: Ifba431bd37e67b1e273fbc6f69b805a232193456
Reviewed-on: http://gerrit.openafs.org/3205
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
419 files changed:
NTMakefile
src/WINNT/afsadmsvr/TaAfsAdmSvr.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrCallback.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrCell.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrDebug.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrGeneral.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrGroup.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrMain.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrProperties.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrSearch.cpp
src/WINNT/afsadmsvr/TaAfsAdmSvrUser.cpp
src/WINNT/afsapplib/al_browse.cpp
src/WINNT/afsapplib/al_creds.cpp
src/WINNT/afsapplib/al_dynlink.cpp
src/WINNT/afsapplib/al_misc.cpp
src/WINNT/afsclass/afsclassfn.cpp
src/WINNT/afsclass/c_agg.cpp
src/WINNT/afsclass/c_cell.cpp
src/WINNT/afsclass/c_grp.cpp
src/WINNT/afsclass/c_ident.cpp
src/WINNT/afsclass/c_identlist.cpp
src/WINNT/afsclass/c_notify.cpp
src/WINNT/afsclass/c_set.cpp
src/WINNT/afsclass/c_svc.cpp
src/WINNT/afsclass/c_svr.cpp
src/WINNT/afsclass/c_usr.cpp
src/WINNT/afsclass/internal.cpp
src/WINNT/afsclass/worker.cpp
src/WINNT/afsd/NTMakefile
src/WINNT/afsd/afscpcc.c
src/WINNT/afsd/afsd_eventlog.c
src/WINNT/afsd/afsd_flushvol.c
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/afsd_service.c
src/WINNT/afsd/afskfw.c
src/WINNT/afsd/afslogon.c
src/WINNT/afsd/cklog.c
src/WINNT/afsd/cm_access.c
src/WINNT/afsd/cm_aclent.c
src/WINNT/afsd/cm_btree.c
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_callback.c
src/WINNT/afsd/cm_cell.c
src/WINNT/afsd/cm_config.c
src/WINNT/afsd/cm_conn.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_dir.c
src/WINNT/afsd/cm_dnlc.c
src/WINNT/afsd/cm_dns.c
src/WINNT/afsd/cm_freelance.c
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_memmap.c
src/WINNT/afsd/cm_performance.c
src/WINNT/afsd/cm_rpc.c
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_server.c
src/WINNT/afsd/cm_user.c
src/WINNT/afsd/cm_utils.c
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/cm_volstat.c
src/WINNT/afsd/cm_volume.c
src/WINNT/afsd/ctokens.c
src/WINNT/afsd/cunlog.c
src/WINNT/afsd/fs.c
src/WINNT/afsd/fs_utils.c
src/WINNT/afsd/msrpc.c
src/WINNT/afsd/rawops.c
src/WINNT/afsd/rpc_srvsvc.c
src/WINNT/afsd/rpc_wkssvc.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c
src/WINNT/afsd/smb_ioctl.c
src/WINNT/afsd/smb_rpc.c
src/WINNT/afsd/symlink.c
src/WINNT/afsreg/afssw.c
src/WINNT/afssvrcfg/admin_info_dlg.cpp
src/WINNT/afssvrcfg/afscfg.cpp
src/WINNT/afssvrcfg/backup_server_page.cpp
src/WINNT/afssvrcfg/cfg_utils.cpp
src/WINNT/afssvrcfg/config_server_page.cpp
src/WINNT/afssvrcfg/create_partition_dlg.cpp
src/WINNT/afssvrcfg/db_server_page.cpp
src/WINNT/afssvrcfg/file_server_page.cpp
src/WINNT/afssvrcfg/get_cur_config.cpp
src/WINNT/afssvrcfg/get_pw_dlg.cpp
src/WINNT/afssvrcfg/graphics.cpp
src/WINNT/afssvrcfg/info2_page.cpp
src/WINNT/afssvrcfg/info_page.cpp
src/WINNT/afssvrcfg/intro_page.cpp
src/WINNT/afssvrcfg/logfile.cpp
src/WINNT/afssvrcfg/partition_page.cpp
src/WINNT/afssvrcfg/partition_utils.cpp
src/WINNT/afssvrcfg/partitions_page.cpp
src/WINNT/afssvrcfg/replicatition_page.cpp
src/WINNT/afssvrcfg/root_afs_page.cpp
src/WINNT/afssvrcfg/salvage_dlg.cpp
src/WINNT/afssvrcfg/salvage_results_dlg.cpp
src/WINNT/afssvrcfg/services_page.cpp
src/WINNT/afssvrcfg/sys_control_page.cpp
src/WINNT/afssvrcfg/toolbox.cpp
src/WINNT/afssvrcfg/validation.cpp
src/WINNT/afssvrcfg/volume_utils.cpp
src/WINNT/afssvrmgr/creds.cpp
src/WINNT/aklog/NTMakefile
src/WINNT/aklog/aklog.c
src/WINNT/client_config/drivemap.cpp
src/WINNT/client_config/tab_general.cpp
src/WINNT/client_config/tab_hosts.cpp
src/WINNT/client_creds/advtab.cpp
src/WINNT/client_creds/afswiz.cpp
src/WINNT/client_creds/creds.cpp
src/WINNT/client_creds/credstab.cpp
src/WINNT/client_creds/ipaddrchg.c
src/WINNT/client_creds/main.cpp
src/WINNT/client_creds/misc.cpp
src/WINNT/client_creds/mounttab.cpp
src/WINNT/client_creds/settings.cpp
src/WINNT/client_creds/shortcut.cpp
src/WINNT/client_creds/trayicon.cpp
src/WINNT/client_creds/window.cpp
src/WINNT/client_exp/gui2fs.cpp
src/WINNT/client_exp/klog_dlg.cpp
src/WINNT/client_exp/unlog_dlg.cpp
src/WINNT/netidmgr_plugin/afsconfigdlg.c
src/WINNT/netidmgr_plugin/afsext.c
src/WINNT/netidmgr_plugin/afsfuncs.c
src/WINNT/netidmgr_plugin/afshelp.c
src/WINNT/netidmgr_plugin/afsicon.c
src/WINNT/netidmgr_plugin/afsnewcreds.c
src/WINNT/netidmgr_plugin/afsplugin.c
src/WINNT/netidmgr_plugin/main.c
src/afs/UKERNEL/sysincludes.h
src/afsd/Makefile.in
src/afsmonitor/Makefile.in
src/aklog/Makefile.in
src/audit/audit.c
src/auth/NTMakefile
src/auth/authcon.c
src/auth/cellconfig.c
src/auth/ktc_nt.c
src/auth/setkey.c
src/auth/token.c
src/auth/userok.c
src/auth/writeconfig.c
src/bozo/Makefile.in
src/bozo/NTMakefile
src/bozo/bnode.c
src/bozo/bos.c
src/bozo/bosoprocs.c
src/bozo/bosserver.c
src/bozo/cronbnodeops.c
src/bozo/ezbnodeops.c
src/bozo/fsbnodeops.c
src/bubasics/NTMakefile
src/bucoord/Makefile.in
src/bucoord/NTMakefile
src/bucoord/bc_status.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/main.c
src/bucoord/restore.c
src/bucoord/server.c
src/bucoord/status.c
src/bucoord/tape_hosts.c
src/bucoord/ubik_db_if.c
src/bucoord/vol_sets.c
src/bucoord/volstub.c
src/budb/Makefile.in
src/budb/NTMakefile
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/Makefile.in
src/butc/NTMakefile
src/butc/dbentries.c
src/butc/dump.c
src/butc/list.c
src/butc/lwps.c
src/butc/recoverDb.c
src/butc/tcmain.c
src/butc/tcprocs.c
src/butc/tcstatus.c
src/butc/tcudbprocs.c
src/butm/NTMakefile
src/butm/file_tm.c
src/butm/test_ftm.c
src/comerr/error_msg.c
src/config/NTMakefile
src/config/afsconfig-windows.h
src/config/param.amd64_w2k.h
src/crypto/hcrypto/NTMakefile
src/crypto/hcrypto/roken.h
src/dir/buffer.c
src/dviced/Makefile.in
src/dviced/NTMakefile
src/dvolser/Makefile.in
src/dvolser/NTMakefile
src/external/heimdal/roken/getopt.c
src/finale/Makefile.in
src/finale/translate_et_nt.c
src/fsint/afsaux.c
src/fsprobe/Makefile.in
src/kauth/Makefile.in
src/kauth/NTMakefile
src/kauth/admin_tools.c
src/kauth/authclient.c
src/kauth/client.c
src/kauth/kaaux.c
src/kauth/kaauxdb.c
src/kauth/kadatabase.c
src/kauth/kalocalcell.c
src/kauth/kalog.c
src/kauth/kaprocs.c
src/kauth/kas.c
src/kauth/kaserver.c
src/kauth/katoken.c
src/kauth/kautils.c
src/kauth/kpasswd.c
src/kauth/krb_tf.c
src/kauth/krb_udp.c
src/kauth/rebuild.c
src/kauth/user_nt.c
src/libacl/aclprocs.c
src/libacl/netprocs.c
src/libadmin/adminutil/afs_utilAdmin.c
src/libadmin/bos/afs_bosAdmin.c
src/libadmin/cfg/cfgclient.c
src/libadmin/cfg/cfgdb.c
src/libadmin/cfg/cfghost.c
src/libadmin/cfg/cfginternal.c
src/libadmin/cfg/cfgservers.c
src/libadmin/client/afs_clientAdmin.c
src/libadmin/kas/afs_kasAdmin.c
src/libadmin/pts/afs_ptsAdmin.c
src/libadmin/samples/Makefile.in
src/libadmin/test/Makefile.in
src/libadmin/test/afscp.c
src/libadmin/test/bos.c
src/libadmin/test/client.c
src/libadmin/test/kas.c
src/libadmin/test/pts.c
src/libadmin/test/util.c
src/libadmin/test/vos.c
src/libadmin/vos/afs_vosAdmin.c
src/libadmin/vos/lockprocs.c
src/libadmin/vos/vosutils.c
src/libadmin/vos/vsprocs.c
src/libafsauthent/NTMakefile
src/libafsrpc/NTMakefile
src/libuafs/Makefile.common.in
src/log/Makefile.in
src/lwp/lock.c
src/ptserver/Makefile.in
src/ptserver/NTMakefile
src/ptserver/db_verify.c
src/ptserver/display.c
src/ptserver/pt_util.c
src/ptserver/ptclient.c
src/ptserver/ptprocs.c
src/ptserver/pts.c
src/ptserver/ptserver.c
src/ptserver/ptuser.c
src/ptserver/ptutils.c
src/ptserver/readgroup.c
src/ptserver/readpwd.c
src/ptserver/testpt.c
src/ptserver/ubik.c
src/ptserver/utils.c
src/roken/NTMakefile [new file with mode: 0644]
src/roken/afsroken.def [new file with mode: 0644]
src/roken/afsroken.rc [new file with mode: 0644]
src/roken/config.h
src/rx/rx.c
src/rx/rx_conncache.c
src/rx/rx_event.c
src/rx/rx_globals.c
src/rx/rx_identity.c
src/rx/rx_lwp.c
src/rx/rx_misc.c
src/rx/rx_multi.c
src/rx/rx_null.c
src/rx/rx_opaque.c
src/rx/rx_packet.c
src/rx/rx_packet.h
src/rx/rx_pthread.c
src/rx/rx_rdwr.c
src/rx/rx_stats.c
src/rx/rx_trace.c
src/rx/rx_user.c
src/rx/rx_xmit_nt.c
src/rx/rx_xmit_nt.h
src/rx/xdr.c
src/rx/xdr_array.c
src/rx/xdr_refernce.c
src/rx/xdr_rx.c
src/rxdebug/Makefile.in
src/rxdebug/rxdebug.c
src/rxgen/rpc_main.c
src/rxkad/bg-fcrypt.c
src/rxkad/crc.c
src/rxkad/crypt_conn.c
src/rxkad/md4.c
src/rxkad/md5.c
src/rxkad/rxkad_client.c
src/rxkad/rxkad_common.c
src/rxkad/rxkad_server.c
src/rxkad/ticket.c
src/rxkad/ticket5.c
src/rxstat/rxstat.c
src/scout/Makefile.in
src/sys/Makefile.in
src/sys/pioctl_nt.c
src/tbutc/Makefile.in
src/tbutc/NTMakefile
src/tsalvaged/Makefile.in
src/tsm41/Makefile.in
src/tviced/Makefile.in
src/tviced/NTMakefile
src/tviced/serialize_state.c
src/tvolser/Makefile.in
src/tvolser/NTMakefile
src/ubik/Makefile.in
src/ubik/beacon.c
src/ubik/disk.c
src/ubik/lock.c
src/ubik/phys.c
src/ubik/recovery.c
src/ubik/remote.c
src/ubik/ubik.c
src/ubik/ubikclient.c
src/ubik/ubikcmd.c
src/ubik/udebug.c
src/ubik/uinit.c
src/ubik/vote.c
src/update/Makefile.in
src/update/NTMakefile
src/update/client.c
src/update/server.c
src/update/utils.c
src/uss/Makefile.in
src/util/get_krbrlm.c
src/util/netutils.c
src/util/serverLog.c
src/util/uuid.c
src/venus/Makefile.in
src/venus/afsio.c
src/venus/cmdebug.c
src/viced/Makefile.in
src/viced/NTMakefile
src/viced/afsfileprocs.c
src/viced/callback.c
src/viced/host.c
src/viced/physio.c
src/viced/viced.c
src/vlserver/Makefile.in
src/vlserver/NTMakefile
src/vlserver/vlclient.c
src/vlserver/vldb_check.c
src/vlserver/vlprocs.c
src/vlserver/vlserver.c
src/vlserver/vlutils.c
src/vol/Makefile.in
src/vol/NTMakefile
src/vol/clone.c
src/vol/daemon_com.c
src/vol/fssync-client.c
src/vol/fssync-server.c
src/vol/ihandle.c
src/vol/namei_ops.c
src/vol/ntops.c
src/vol/nuke.c
src/vol/partition.c
src/vol/physio.c
src/vol/purge.c
src/vol/salvager.c
src/vol/vg_cache.c
src/vol/vg_scan.c
src/vol/vnode.c
src/vol/vol-info.c
src/vol/vol-salvage.c
src/vol/volume.c
src/vol/vutil.c
src/volser/Makefile.in
src/volser/NTMakefile
src/volser/common.c
src/volser/dumpstuff.c
src/volser/lockprocs.c
src/volser/physio.c
src/volser/volmain.c
src/volser/volprocs.c
src/volser/voltrans.c
src/volser/vos.c
src/volser/vsprocs.c
src/volser/vsutils.c
src/xstat/Makefile.in
src/xstat/NTMakefile
src/xstat/xstat_cm.c
src/xstat/xstat_cm_test.c
src/xstat/xstat_fs.c
src/xstat/xstat_fs_callback.c
src/xstat/xstat_fs_test.c
tests/rpctestlib/NTMakefile
tests/rpctestlib/rpc_test_cb_procs.c
tests/rpctestlib/rpc_test_main.c
tests/rpctestlib/rpc_test_procs.c