]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-ubik-call-sucks-20060704
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 31 Jul 2006 22:51:17 +0000 (22:51 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jul 2006 22:51:17 +0000 (22:51 +0000)
make ubik_Call removal work on Windows.

(cherry picked from commit 941ac04165a9239a11b4ab908350dbfae24edfb9)

24 files changed:
src/NTMakefile
src/WINNT/afsd/NTMakefile
src/bozo/NTMakefile
src/bubasics/NTMakefile
src/budb/NTMakefile
src/fsint/NTMakefile
src/kauth/NTMakefile
src/libadmin/kas/NTMakefile
src/libadmin/pts/NTMakefile
src/libadmin/vos/NTMakefile
src/libafsauthent/afsauthent.def
src/libafsrpc/NTMakefile
src/ptserver/NTMakefile
src/ptserver/ptclient.c
src/rx/rx_clock_nt.c
src/rx/rx_globals.c
src/rx/rx_globals.h
src/rxgen/rpc_parse.c
src/rxstat/NTMakefile
src/tviced/NTMakefile
src/ubik/NTMakefile
src/update/NTMakefile
src/vlserver/NTMakefile
src/volser/NTMakefile

index af94461fa866c72db4a5dc354e2036c40b358b23..3fdc5f472527fac366ee7f6fc37f83843767ad0b 100644 (file)
@@ -134,7 +134,14 @@ rx: des
        $(NTMAKE)
        $(CD) ..\..
 
-rxstat: rx
+ubik_headers: rx
+     echo ***** $@
+       $(DOCD) $(SRC)\ubik
+       $(CD) $(SRC)\ubik
+       $(NTMAKE_HEADERS)
+       $(CD) ..\..
+
+rxstat: ubik_headers
      echo ***** $@
        $(DOCD) $(SRC)\$@
        $(CD) $(SRC)\$@
index e7432e87ff66f8f0bd6031f03a7a844450fe3210..efbaca350dbcd3ae23154fc2358f4a0e273745ba 100644 (file)
@@ -223,8 +223,6 @@ LOGON_DLLOBJS =\
 LOGON_DLLLIBS =\
     $(DESTDIR)\lib\afsauthent.lib \
     $(DESTDIR)\lib\libafsconf.lib \
-    $(DESTDIR)\lib\afsrxkad.lib \
-    $(DESTDIR)\lib\afsdes.lib \
     $(LANAHELPERLIB) \
     $(AFSKFWLIB)
 
index d9faa3cfcf1e809c4b2aac7f5d4eaf825743dc44..2980504372274659f7178b909728bd00cc5fa64e 100644 (file)
@@ -116,9 +116,17 @@ $(CL_BOS_EXEFILE): $(RS_BOS_EXEFILE)
 ############################################################################
 # Definitions for generating files via RXGEN
 
-bosint.h bosint.cs.c bosint.ss.c bosint.xdr.c: bosint.xg
-       $(RXGEN) -x $**
+bosint.cs.c: bosint.xg bosint.h
+       $(RXGEN) -x -C -o $@ bosint.xg
 
+bosint.ss.c: bosint.xg bosint.h
+       $(RXGEN) -x -S -o $@ bosint.xg
+
+bosint.xdr.c: bosint.xg bosint.h
+       $(RXGEN) -x -c -o $@ bosint.xg
+
+bosint.h: bosint.xg
+       $(RXGEN) -x -h -o $@ bosint.xg
 
 ############################################################################
 # Definitions for generating files via COMPILE_ET
index a296ad0a97a1281c4fca97d65c4b420b7c4910af..de5f59f6f94cc060dd0c51a794b75ec305d2461b 100644 (file)
@@ -46,12 +46,29 @@ $(LIBFILE): $(LIBOBJS)
 ############################################################################
 # rxgen on butc.xg and bumon.xg
 
-butc.h butc.xdr.c butc.ss.c butc.cs.c: butc.xg
-       $(RXGEN) $**
+butc.xdr.c: butc.xg butc.h
+       $(RXGEN) -c -o $@ butc.xg
 
-bumon.h bumon.xdr.c bumon.ss.c bumon.cs.c: bumon.xg
-       $(RXGEN) $**
+butc.ss.c: butc.xg butc.h
+       $(RXGEN) -S -o $@ butc.xg
 
+butc.cs.c: butc.xg butc.h
+       $(RXGEN) -C -o $@ butc.xg
+
+butc.h: butc.xg
+       $(RXGEN) -h -o $@ butc.xg
+
+bumon.xdr.c: bumon.xg bumon.h
+       $(RXGEN) -c -o $@ bumon.xg
+
+bumon.ss.c: bumon.xg bumon.h
+       $(RXGEN) -S -o $@ bumon.xg
+
+bumon.cs.c: bumon.xg bumon.h
+       $(RXGEN) -C -o $@ bumon.xg
+
+bumon.h: bumon.xg
+       $(RXGEN) -h -o $@ bumon.xg
 
 ############################################################################
 # compile_et on butm_errs.et and butc_errs.et 
index 10d69c2ef651421058475617ec055e430aa4ed7b..2d24118cb04481a55bf294a618f429adc6b9aa42 100644 (file)
@@ -91,8 +91,20 @@ $(OUT)\buserver.res: AFS_component_version_number.h
 
 ############################################################################
 # rxgen budb.rg
-budb.xdr.c budb.cs.c budb.ss.c         $(INCFILEDIR)\budb.h: budb.rg
-       $(RXGEN) $**
+
+budb.cs.c: budb.rg budb.h
+       $(RXGEN) -u -C -o $@ budb.rg
+
+budb.ss.c: budb.rg budb.h
+       $(RXGEN) -S -o $@ budb.rg
+
+budb.xdr.c: budb.rg budb.h
+       $(RXGEN) -c -o $@ budb.rg
+
+budb.h: budb.rg
+       $(RXGEN) -u -h -o budb.h budb.rg
+
+$(INCFILEDIR)\budb.h: budb.h
        $(COPY) budb.h $(INCFILEDIR)\budb.h 
 
 ############################################################################
index 96901d4f2dc20a047c01efdb5540fe1492bd2c70..a6954d56760de1b44c6692668c534eeeea9d1e3a 100644 (file)
@@ -37,11 +37,30 @@ $(LIBFILE): $(LIBOBJS)
        $(LIBARCH)  
 
 # use rxgen on afscbint.xg and afsint.xg
-afscbint.cs.c afscbint.ss.c afscbint.xdr.c afscbint.h : afscbint.xg common.xg
-       $(RXGEN) -x -y afscbint.xg
+afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h 
+       $(RXGEN) -x -C -o afscbint.cs.c afscbint.xg
+
+afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h
+       $(RXGEN) -x -S -o afscbint.ss.c afscbint.xg
+
+afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h
+       $(RXGEN) -x -y -c -o afscbint.xdr.c afscbint.xg
+
+afscbint.h: common.xg afscbint.xg
+       $(RXGEN) -x -h -o afscbint.h afscbint.xg
+
+afsint.cs.c: common.xg afsint.xg afsint.h
+       $(RXGEN) -x -C -o afsint.cs.c afsint.xg
+
+afsint.ss.c: common.xg afsint.xg afsint.h
+       $(RXGEN) -x -S -o afsint.ss.c afsint.xg
+
+afsint.xdr.c: common.xg afsint.xg
+       $(RXGEN) -x -c -o afsint.xdr.c afsint.xg
+
+afsint.h: common.xg afsint.xg
+       $(RXGEN) -x -h -o afsint.h afsint.xg
 
-afsint.cs.c afsint.ss.c afsint.xdr.c afsint.h: afsint.xg common.xg
-       $(RXGEN) -x afsint.xg
 
 # mtafsint.lib
 
index 8572f9aaa8b4e83e338350ec367cdd145a79d2be..d2f25758d4e8a086824457a7363e250d909c4b51 100644 (file)
@@ -192,8 +192,17 @@ $(INCFILES):$$(@F)
 ############################################################################
 # rxgen on kauth.rg
 
-kauth.ss.c kauth.cs.c kauth.xdr.c kauth.h: kauth.rg
-       $(RXGEN) -x $**
+kauth.cs.c: kauth.rg kauth.h
+       $(RXGEN) -u -x -C -o $@ kauth.rg
+
+kauth.ss.c: kauth.rg kauth.h
+       $(RXGEN) -x -S -o $@ kauth.rg
+
+kauth.xdr.c: kauth.rg kauth.h
+       $(RXGEN) -x -c -o $@ kauth.rg
+
+kauth.h: kauth.rg
+       $(RXGEN) -u -x -h -o $@ kauth.rg
 
 ############################################################################
 # compile_et on kaerrors.c 
index f32c6df1a08162d06cbbc93cd48c9f92e0c7e0da..b94081ea4954527365e7a8b7f51fa528789d7543 100644 (file)
@@ -35,7 +35,8 @@ DLLLIBS =\
        $(DESTDIR)\lib\afs\afsadminutil.lib \
        $(DESTDIR)\lib\afsauthent.lib \
        $(DESTDIR)\lib\afsrpc.lib \
-       $(DESTDIR)\lib\afspthread.lib
+       $(DESTDIR)\lib\afspthread.lib \
+       $(DESTDIR)\lib\afs\afsutil.lib
 
 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
        $(DLLCONLINK) /DEF:kasadmin.def
index a61c41f72e98272c5f04af2fbe24f94de9617e4b..d581fdb1d5779fdbce701be88c26b6bfaa15d9fc 100644 (file)
@@ -38,7 +38,8 @@ DLLLIBS =\
        $(DESTDIR)\lib\afs\afsadminutil.lib \
        $(DESTDIR)\lib\afsauthent.lib \
        $(DESTDIR)\lib\afsrpc.lib \
-       $(DESTDIR)\lib\afspthread.lib
+       $(DESTDIR)\lib\afspthread.lib \
+       $(DESTDIR)\lib\afs\afsutil.lib
 
 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
        $(DLLCONLINK) /DEF:ptsadmin.def
index 32b0816c5fe17a7d5493fab2cb1f25337130c3e6..53737d0132f09c6a13011b3fced01e0cb8f433b5 100644 (file)
@@ -59,7 +59,8 @@ DLLLIBS =\
        $(DESTDIR)\lib\afspthread.lib \
        $(DESTDIR)\lib\afs\afsadminutil.lib \
        $(DESTDIR)\lib\afsauthent.lib \
-       $(DESTDIR)\lib\afsrpc.lib
+       $(DESTDIR)\lib\afsrpc.lib \
+       $(DESTDIR)\lib\afs\afsutil.lib
 
 $(DLLFILE): $(DLLOBJS) $(DLLLIBS)
        $(DLLCONLINK) /DEF:vosadmin.def
index e90d63dab2b99c40b331fe908fd287f6e3bb4dda..d49ca01a7847bde4b14e5fcaaeaad973adb55bc5 100644 (file)
@@ -86,3 +86,5 @@ EXPORTS
        VOTE_function_names                             @84 DATA
        rx_Finalize                                     @85
        pr_End                                          @86
+        VOTE_GetSyncSite                                @87
+        ubik_RefreshConn                                @88
index 2d3bfa145a0fb15084de7b21c652c1d8dd6ebec1..cf470777c66a932a82bbff7ed7554e8bab4d6fd4 100644 (file)
@@ -30,7 +30,7 @@ XDROBJS = $(OUT)\xdr.obj $(OUT)\xdr_array.obj $(OUT)\xdr_arrayn.obj $(OUT)\xdr_f
        $(OUT)\xdr_rec.obj  $(OUT)\xdr_refernce.obj $(OUT)\xdr_rx.obj $(OUT)\xdr_update.obj \
        $(OUT)\xdr_afsuuid.obj $(OUT)\xdr_int64.obj $(OUT)\xdr_int32.obj
 
-RXOBJS = $(OUT)\rx_event.obj $(OUT)\rx_user.obj $(OUT)\rx_pthread.obj $(OUT)\rx.obj \
+RXOBJS = $(OUT)\rx_event.obj $(OUT)\rx_user.obj $(OUT)\rx_pthread.obj $(OUT)\rx.obj $(OUT)\rx_clock_nt.obj \
        $(OUT)\rx_null.obj $(OUT)\rx_globals.obj $(OUT)\rx_getaddr.obj $(OUT)\rx_misc.obj $(OUT)\rx_packet.obj \
        $(OUT)\rx_rdwr.obj $(OUT)\rx_trace.obj $(OUT)\rx_xmit_nt.obj $(OUT)\rx_conncache.obj
 
index a5ee19262c182647e1813cdb18cd45df1ab8c736..2df944427432455f125dd38eecd018c794e0afe3 100644 (file)
@@ -10,6 +10,7 @@
 RELDIR=ptserver
 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
 !include ..\config\NTMakefile.version
+AFSDEV_AUXCDEFINES = -DAFS_USE_GETTIMEOFDAY
 
 ############################################################################
 # Definitions for installing header files
@@ -132,8 +133,17 @@ $(OUT)\pts.res: AFS_component_version_number.h
 
 $(INCFILEDIR)\afs\ptint.h : ptint.h
 
-ptint.ss.c ptint.cs.c ptint.xdr.c ptint.h: ptint.xg
-       $(RXGEN) -x $**
+ptint.cs.c: ptint.xg ptint.h
+       $(RXGEN) -x -C -u -o $@ ptint.xg
+
+ptint.ss.c: ptint.xg ptint.h
+       $(RXGEN) -x -S -o $@ ptint.xg
+
+ptint.xdr.c: ptint.xg ptint.h
+       $(RXGEN) -x -c -o $@ ptint.xg
+
+ptint.h: ptint.xg
+       $(RXGEN) -x -h -u -o $@ ptint.xg
 
 ############################################################################
 # Definitions for generating files via COMPILE_ET
index 2b2a097aece7b69255693d9a82bd93f44442e585..332b8ed381ba73358f52d53e17b79333018e1651 100644 (file)
@@ -171,7 +171,7 @@ main(argc, argv)
     register afs_int32 code;
     char op[8];
     char name[PR_MAXNAMELEN];
-    afs_int32 id, oid, gid;
+    afs_int32 id, oid = ANONYMOUSID, gid;
     afs_int32 pos;
     int i;
     struct prentry entry;
@@ -539,7 +539,7 @@ main(argc, argv)
            if (GetString(name, sizeof(name)))
                code = PRBADARG;
            else
-               code = ubik_PR_NewEntry(pruclient, 0, name, 1, &id);
+               code = ubik_PR_NewEntry(pruclient, 0, name, 1, oid, &id);
            if (CodeOk(code))
                printf("%s\n", pr_ErrorMsg(code));
            if (code == PRSUCCESS)
index 96bf81e8b865bbab430739fc95b9d081a2e6625c..beb188c512a4c0f5795dce1208a106dc5c844f10 100644 (file)
@@ -23,15 +23,14 @@ RCSID
 #include <winbase.h>
 #include "rx_clock.h"
 
-void clock_UpdateTime(void);   /* forward reference */
-
 struct clock clock_now;                /* The last elapsed time ready by clock_GetTimer */
 
 /* This is set to 1 whenever the time is read, and reset to 0 whenever
  * clock_NewTime is called.  This is to allow the caller to control the
  * frequency with which the actual time is re-evaluated.
  */
-int clock_haveCurrentTime;
+#undef clock_haveCurrentTime
+int clock_haveCurrentTime = 0;
 
 int clock_nUpdates;            /* The actual number of clock updates */
 static int clockInitialized = 0;
@@ -43,6 +42,7 @@ LARGE_INTEGER rxi_clockFreq;
 #undef clock_UpdateTime
 void clock_UpdateTime(void);
 
+#undef clock_Init
 void
 clock_Init(void)
 {
index 437a1a588e1cef57e1cb594d2d952d05d70a7d96..70fa04443176a4ba81749d4f55ad07d5b2b98dc1 100644 (file)
@@ -32,8 +32,10 @@ RCSID
 #define INIT(stuff) = stuff
 #if defined(AFS_NT40_ENV) && defined(AFS_PTHREAD_ENV)
 #define EXT __declspec(dllexport)
+#define EXT2 __declspec(dllexport)
 #else
 #define EXT
+#define EXT2 
 #endif
 
 #ifdef KERNEL
index a3df75aa5ea0cc11067c52d4e43c213b373724c7..2195f880862183a4f729196e18699b948c31b753 100644 (file)
 
 #ifndef INIT
 #define INIT(x)
-#if defined(AFS_NT40_ENV) && defined(AFS_PTHREAD_ENV)
+#if defined(AFS_NT40_ENV)
+#if defined(AFS_PTHREAD_ENV)
 #define EXT __declspec(dllimport) extern
 #else
 #define        EXT extern
 #endif
+#define EXT2 __declspec(dllimport) extern
+#else
+#define EXT2 extern
+#define EXT extern
+#endif
 #endif /* !INIT */
 
 /* Basic socket for client requests; other sockets (for receiving server requests) are in the service structures */
@@ -567,7 +573,7 @@ EXT int rxi_pthread_hinum INIT(0);
 EXT afs_kmutex_t rx_stats_mutex;       /* used to activate stats gathering */
 #endif
 
-EXT int rx_enable_stats INIT(0);
+EXT2 int rx_enable_stats INIT(0);
 
 /*
  * Set this flag to enable the listener thread to trade places with an idle
index e598653f6a81ac3a78d7dcd3764072826eb6f2ec..a8fe4adf926072d5ef60f95de817b77323fa373b 100644 (file)
@@ -1812,7 +1812,10 @@ ucs_ProcTail_setup(definition * defp, int split_flag)
     proc1_list *plist;
 
     f_print(fout, "{\tafs_int32 rcode, code, newHost, thisHost, i, _ucount;\n");
-    f_print(fout, "\tint chaseCount, pass, needsync, inlist, j;\n");
+    f_print(fout, "\tint chaseCount, pass, needsync, inlist;\n");
+#if 0 /* goes with block below */
+    f_print(fout, "\tint j;\n");
+#endif
     f_print(fout, "\tstruct rx_connection *tc;\n");
     f_print(fout, "\tstruct rx_peer *rxp;\n");
     f_print(fout, "\tshort origLevel;\n\n");
index 2bd6da1aabf2c92a76b83452e051fbdff29b25ac..9f04932122dffca11b4489028f2af0041c1654a1 100644 (file)
@@ -31,8 +31,17 @@ LIBFILE = $(DESTDIR)\lib\afsrxstat.lib
 $(LIBFILE): $(LIBOBJS)
        $(LIBARCH)
 
-rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
-       $(RXGEN) -x $**
+rxstat.cs.c: rxstat.xg rxstat.h
+       $(RXGEN) -x -C -o $@ rxstat.xg
+
+rxstat.ss.c: rxstat.xg rxstat.h
+       $(RXGEN) -x -S -o $@ rxstat.xg
+
+rxstat.xdr.c: rxstat.xg rxstat.h
+       $(RXGEN) -x -c -o $@ rxstat.xg
+
+rxstat.h: rxstat.xg
+       $(RXGEN) -x -h -o $@ rxstat.xg
 
 copyheader: rxstat.h
    $(COPY) rxstat.h $(INCFILEDIR)\rx\rxstat.h
index 6f2d1e9529ec95f3324e7e52b0719e469e1f4cfd..fdbe389421223793f83bb3719ce2eefe55658eb8 100644 (file)
@@ -87,6 +87,7 @@ $(FSINTOBJS): $(FSINT)\$$(@B).C
 
 EXELIBS = \
        $(DESTDIR)\lib\afsauthent.lib \
+       $(DESTDIR)\lib\afs\afsprot.lib \
        $(DESTDIR)\lib\afsrpc.lib \
        $(DESTDIR)\lib\afs\afscmd.lib \
        $(DESTDIR)\lib\afs\afsaudit.lib \
index 31590bf0f1423e3289a630a6619bb462d603d72c..a2f2ae564900bc7be2f04409402ec997998796f3 100644 (file)
@@ -18,7 +18,7 @@ INCFILES =\
        $(INCFILEDIR)\ubik.h \
        $(INCFILEDIR)\ubik_int.h 
 
-
+install_headers: $(INCFILES)
 
 ############################################################################
 # install afsubik.lib
@@ -86,8 +86,17 @@ $(OUT)\udebug.res: AFS_component_version_number.h
 $(INCFILES):$$(@F)
         $(COPY)  $** $(INCFILEDIR)\.
 
-ubik_int.ss.c ubik_int.cs.c ubik_int.xdr.c ubik_int.h: ubik_int.xg
-       $(RXGEN) -x $**
+ubik_int.cs.c: ubik_int.xg ubik_int.h
+       $(RXGEN) -x -C -o $@ ubik_int.xg
+
+ubik_int.ss.c: ubik_int.xg ubik_int.h
+       $(RXGEN) -x -S -o $@ ubik_int.xg
+
+ubik_int.xdr.c: ubik_int.xg ubik_int.h
+       $(RXGEN) -x -c -o $@ ubik_int.xg
+
+ubik_int.h: ubik_int.xg
+       $(RXGEN) -x -h -o $@ ubik_int.xg
 
 ############################################################################
 # compile_et on uerrors.et
index 23be20837280af6ffa115408034131174d427df2..dc104b27daaba11cf5ab8679ef4025686abd82e9 100644 (file)
@@ -27,8 +27,17 @@ LIBS = \
 ############################################################################
 # Definitions for generating files via RXGEN
 
-update.cs.c update.ss.c update.er.c update.h: update.xg
-       $(RXGEN) $**
+update.cs.c: update.xg update.h
+       $(RXGEN) -u -C -o $@ update.xg
+
+update.ss.c: update.xg update.h
+       $(RXGEN) -S -o $@ update.xg
+
+update.xdr.c: update.xg        update.h
+       $(RXGEN) -c -o $@ update.xg
+
+update.h: update.xg
+       $(RXGEN) -u -h -o $@ update.xg
 
 ############################################################################
 # upserver
index 423b931516ca2235ee40e3439b9747f2d724ba50..1f2cd31a710d0962fec78abfc0ef0b9eb24173fa 100644 (file)
@@ -103,8 +103,17 @@ $(OUT)\vlserver.res: AFS_component_version_number.h
 $(INCFILES):$$(@F)
         $(COPY)  $** $(INCFILEDIR)\.
 
-vldbint.ss.c vldbint.cs.c vldbint.xdr.c vldbint.h: vldbint.xg
-       $(RXGEN) -x $**
+vldbint.cs.c: vldbint.xg vldbint.h
+       $(RXGEN) -u -x -C -o $@ vldbint.xg
+
+vldbint.ss.c: vldbint.xg vldbint.h
+       $(RXGEN) -x -S -o $@ vldbint.xg
+
+vldbint.xdr.c: vldbint.xg vldbint.h
+       $(RXGEN) -x -c -o $@ vldbint.xg
+
+vldbint.h: vldbint.xg
+       $(RXGEN) -u -x -h -o $@ vldbint.xg
        $(COPY) vldbint.h $(DESTDIR)\include\afs\vldbint.h
 
 ############################################################################
index c70225599b68f3cd9be288cdbeff8ad4b2758a5b..dedc3f79f8c954ded0530ce654993c03a4818bc7 100644 (file)
@@ -136,9 +136,17 @@ $(OUT)\vos.res: AFS_component_version_number.h
 $(INCFILES):$$(@F)
         $(COPY)  $** $(INCFILEDIR)\.
 
-volint.h volint.cs.c volint.ss.c volint.xdr.c: volint.xg
-       $(RXGEN) -x $**
+volint.cs.c: volint.xg volint.h
+       $(RXGEN) -x -C -o $@ volint.xg
 
+volint.ss.c: volint.xg volint.h
+       $(RXGEN) -x -S -o $@ volint.xg
+
+volint.xdr.c: volint.xg volint.h
+       $(RXGEN) -x -c -o $@ volint.xg
+
+volint.h: volint.xg
+       $(RXGEN) -x -h -o $@ volint.xg
 
 ############################################################################
 # Definitions for generating files via COMPILE_ET