]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-ubik-call-sucks-20060704
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Jul 2006 22:24:09 +0000 (22:24 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Jul 2006 22:24:09 +0000 (22:24 +0000)
make ubik_Call removal work on Windows.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

another fix for 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 997348160fdad650ff88d1c268d784326e066bcd..4896cfc984e1c945baf7b487b84a6380f3d411d5 100644 (file)
@@ -137,7 +137,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 07ac2224c64c08bc8cbccc7eba4ad7f97b901b91..a161450a8e5eba41248a970038610ca61398d615 100644 (file)
@@ -232,8 +232,6 @@ LOGON_DLLOBJS =\
 LOGON_DLLLIBS =\
     $(DESTDIR)\lib\afsauthent.lib \
     $(DESTDIR)\lib\libafsconf.lib \
-    $(DESTDIR)\lib\afsrxkad.lib \
-    $(DESTDIR)\lib\afsdes.lib \
     $(LANAHELPERLIB) \
     $(AFSKFWLIB)
 
index 22830f39b987d8983331016a72d0db2f884e061e..a3929a1e83ee5bc797df57765b9968cd6eed5558 100644 (file)
@@ -118,9 +118,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 d772cdf4ebf0bed29b77b9d9218e7374ead19fcc..8efabb45c2c345a98238a5d3ca572948434f140e 100644 (file)
@@ -92,8 +92,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 945674b6defe8b3db53517a14ebd9e6478640726..5696c15151295ba50e0900ec7a21ad57e08ecb17 100644 (file)
@@ -198,8 +198,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 4ee79ca56264126887367cac7e7fe27a30f4274b..7af8c274fde39a351d1a5ddb34940fc3eeb3d97e 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 d8765db4cdf94d56b597c50de3d8fa4db072368e..15883fcfc193016d0b3c24dea4405d7c69e209a6 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 0d6ec63226abd272aa2b4ee842a5f3850376f6f3..db9191260c65ff31effb437151366458d119297b 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 687621ecccb791cd890a7ae3e027e4c37e3d4891..d7dba376e5cc5f2dbfeebe1ba375cb39c791ba3c 100644 (file)
@@ -112,16 +112,5 @@ EXPORTS
        ka_KeyCheckSum                                  @110
        rx_Finalize                                     @111
        rx_InitHost                                     @112
-
-
-
-
-
-
-
-
-
-
-
-
-
+       VOTE_GetSyncSite                                @113
+       ubik_RefreshConn                                @114
index 21a05bdb6f2b4955dd330bafd2cbf7d6c7f741c3..13c614a6816670cde19710a6eef31efa0daef516 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 4d87ca69336d7a78c25d460d728429f68c4b31c8..a39461f1206a1b6ff8e0151dce6a3976da6b4649 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
@@ -137,8 +138,17 @@ $(OUT)\ptclient.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 94997907f87963f5775e77cde2701d9eeedc3465..3231d79d2406d5edb31ba3076b275ddc5411b971 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 */
@@ -569,7 +575,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 53194381ffda7d9458667c769c2c1b3fa988fdae..fafc81bdb24ee9bb3f261c7e2ee684ba734bc2b0 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 4fbc7e0204b5d31c50111e6065f185a4c8d1f7dc..f68f4e7e8e7f8ee039f66ba16c88197f19e18023 100644 (file)
@@ -88,6 +88,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 14d916ac57fd8e6b8bf184aa828678377cca244c..51f90730b0faae11977c9dcd25e97860241de6ea 100644 (file)
@@ -18,7 +18,7 @@ INCFILES =\
        $(INCFILEDIR)\ubik.h \
        $(INCFILEDIR)\ubik_int.h 
 
-
+install_headers: $(INCFILES)
 
 ############################################################################
 # install afsubik.lib
@@ -87,8 +87,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 f66c21f903320ff07f2fb1ce448681bc892c17be..c1cd07418adf5897738df9b2f74959361561f54a 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 fb1a9cb0814410ec0671b9ffd08b43448d2518fd..c6c6668cc29fb949d6fe24bceb8c69fcda11daf7 100644 (file)
@@ -104,8 +104,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 ded4d7363443397eca9f74cfebd55daf9409f245..fade17a52bc5dc7ae2f507d3a90c3c8fc4f78856 100644 (file)
@@ -140,9 +140,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