$(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)\$@
LOGON_DLLLIBS =\
$(DESTDIR)\lib\afsauthent.lib \
$(DESTDIR)\lib\libafsconf.lib \
- $(DESTDIR)\lib\afsrxkad.lib \
- $(DESTDIR)\lib\afsdes.lib \
$(LANAHELPERLIB) \
$(AFSKFWLIB)
############################################################################
# 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
############################################################################
# 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
############################################################################
# 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
############################################################################
$(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
############################################################################
# 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
$(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
$(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
$(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
ka_KeyCheckSum @110
rx_Finalize @111
rx_InitHost @112
-
-
-
-
-
-
-
-
-
-
-
-
-
+ VOTE_GetSyncSite @113
+ ubik_RefreshConn @114
$(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
RELDIR=ptserver
!INCLUDE ..\config\NTMakefile.$(SYS_NAME)
!include ..\config\NTMakefile.version
+AFSDEV_AUXCDEFINES = -DAFS_USE_GETTIMEOFDAY
############################################################################
# Definitions for installing header files
$(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
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;
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)
#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;
#undef clock_UpdateTime
void clock_UpdateTime(void);
+#undef clock_Init
void
clock_Init(void)
{
#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
#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 */
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
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");
$(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
EXELIBS = \
$(DESTDIR)\lib\afsauthent.lib \
+ $(DESTDIR)\lib\afs\afsprot.lib \
$(DESTDIR)\lib\afsrpc.lib \
$(DESTDIR)\lib\afs\afscmd.lib \
$(DESTDIR)\lib\afs\afsaudit.lib \
$(INCFILEDIR)\ubik.h \
$(INCFILEDIR)\ubik_int.h
-
+install_headers: $(INCFILES)
############################################################################
# install afsubik.lib
$(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
############################################################################
# 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
$(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
############################################################################
$(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