#include <osi.h>
#include <afs/vldbint.h>
#include <afs/afsint.h>
+#define FSINT_COMMON_XG
+
#include <afs/prs_fs.h>
#include "cm_config.h"
#endif
#include <rx\rx.h>
#include <rx\rx_null.h>
+#include <rx\rxstat.h>
#include <WINNT/syscfg.h>
#include <WINNT/afsreg.h>
+#include <afs\afscbint.h>
#include "smb.h"
#include "cm_rpc.h"
#include <crtdbg.h>
#endif
-extern int RXAFSCB_ExecuteRequest(struct rx_call *z_call);
-extern int RXSTATS_ExecuteRequest(struct rx_call *z_call);
-
extern afs_uint32 cryptall;
extern afs_uint32 cm_anonvldb;
extern int cm_enableServerLocks;
#include "afs/sysincludes.h" /* Standard vendor system headers */
#include "afsincludes.h" /* Afs-based standard headers */
#include "afs/afs_stats.h" /* afs statistics */
+#include "rx/rxstat.h"
+
+#define FSINT_COMMON_XG
+#include "afs/afscbint.h"
/* Exported variables */
struct osi_dev cacheDev; /*Cache device */
extern afs_int32 afs_uuid_create(afsUUID * uuid);
extern u_short afs_uuid_hash(afsUUID * uuid);
-
-/* MISC PROTOTYPES - THESE SHOULD NOT BE HERE */
-/* MOVE THEM TO APPROPRIATE LOCATIONS */
-extern afs_int32 RXAFSCB_ExecuteRequest(struct rx_call *acall);
-extern afs_int32 RXSTATS_ExecuteRequest(struct rx_call *acall);
-extern afs_int32 PAGCB_ExecuteRequest(struct rx_call *acall);
-
-
-
#if defined(AFS_SUN5_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SGI62_ENV) || defined(AFS_OSF_ENV)
#include "osi_prototypes.h"
#endif
int bnode_StopProc(struct bnode_proc *aproc, int asignal);
int bnode_Deactivate(struct bnode *abnode);
-/* bosint.ss.c */
-struct rx_call;
-int BOZO_ExecuteRequest(register struct rx_call *z_call);
-
/* bosserver.c */
void bozo_Log(char *format, ... );
int bozo_ReBozo(void);
#include "bosprototypes.h"
#include <rx/rxkad.h>
#include <rx/rxstat.h>
-#include <rx/rxstat_prototypes.h>
#include <afs/keys.h>
#include <afs/ktime.h>
#include <afs/afsutil.h>
#include "bc.h"
-extern TC_ExecuteRequest();
-
/* dump information */
static afs_int32 transID = 1000; /* dump or restore transaction id */
static afs_int32 bytesDumped = 0;
#ifndef _BUDB_PROTOTYPES_H
#define _BUDB_PROTOTYPES_H
-/* budb.ss.c */
-int BUDB_ExecuteRequest(register struct rx_call *z_call);
-
/* db_alloc.c */
afs_int32 InitDBalloc(void);
afs_int32 AllocStructure(struct ubik_trans *ut, char type, dbadr related,
#define CFG_PREFIX "CFG"
struct ubik_client *cstruct;
-extern void TC_ExecuteRequest(struct rx_call *);
FILE *logIO, *ErrorlogIO, *centralLogIO, *lastLogIO;
char lFile[AFSDIR_PATH_MAX];
char logFile[256];
#include <afs/cellconfig.h>
#include <afs/afsint.h>
#include <afs/afsutil.h>
-
-#define LWP_STACK_SIZE (16 * 1024)
-/*
- * Routines we need that don't have explicit include file definitions.
- */
-extern int RXAFSCB_ExecuteRequest(struct rx_call *); /*AFS callback dispatcher */
+#define FSINT_COMMON_XG
+#include <afs/afscbint.h>
-/*
- * Help out the linker by explicitly importing the callback routines.
- */
-extern afs_int32 SRXAFSCB_CallBack(struct rx_call *, AFSCBFids *, AFSCBs *);
-extern afs_int32 SRXAFSCB_InitCallBackState2(struct rx_call *,
- struct interfaceAddr *);
-extern afs_int32 SRXAFSCB_Probe(struct rx_call *);
+#define LWP_STACK_SIZE (16 * 1024)
/*
* Exported variables.
#include <lwp.h>
#include <rx/xdr.h>
#include <rx/rx.h>
+#include <rx/rxstat.h>
#include <rx/rxkad.h>
#include <rx/rx_globals.h>
#include <afs/cellconfig.h>
struct rx_securityClass *scm[3];
extern int rx_stackSize;
- extern int KAA_ExecuteRequest(struct rx_call *);
- extern int KAT_ExecuteRequest(struct rx_call *);
- extern int KAM_ExecuteRequest(struct rx_call *);
- extern int RXSTATS_ExecuteRequest(struct rx_call *);
#ifdef AFS_AIX32_ENV
/*
#include <afs/cellconfig.h>
#include <afs/bosint.h>
#include <rx/rxstat.h>
-#include <rx/rxstat_prototypes.h>
#include <afs/afsint.h>
#define FSINT_COMMON_XG
#include <afs/afscbint.h>
#ifndef _PTPROTOTYPES_H_
#define _PTPROTOTYPES_H_
-
-
-/* ptint.ss.c */
-extern int PR_ExecuteRequest (struct rx_call *z_call);
-
/* utils.c */
#if defined(SUPERGROUPS)
extern afs_int32 IsAMemberOfSG(struct ubik_trans *at, afs_int32 aid,
char hostname[64];
struct rx_service *tservice;
struct rx_securityClass *sc[3];
- extern int RXSTATS_ExecuteRequest(struct rx_call *);
#if 0
struct ktc_encryptionKey tkey;
#endif
#define N_SECURITY_OBJECTS 1
-extern int BULK_ExecuteRequest(register struct rx_call *z_call);
void Quit(char *msg);
int
#define N_SECURITY_OBJECTS 1
-extern BULK_ExecuteRequest();
InterruptSignal()
{
#define N_SECURITY_OBJECTS 1
-extern TEST__ExecuteRequest();
main()
{
#define N_SECURITY_OBJECTS 1
-extern TEST_ExecuteRequest();
-
main()
{
struct rx_securityClass *(securityObjects[N_SECURITY_OBJECTS]);
while ((def = get_definition())) {
print_datadef(def);
}
+ printf("Printing ex_req\n");
+ h_Proc_CodeGeneration();
h_opcode_stats();
hflag = 0;
f_print(fout, "#endif /* _RXGEN_%s_ */\n", uppercase(fullname));
f_print(fout, "\treturn z_result;\n}\n");
}
+static void
+h_ProcMainBody_setup(void)
+{
+ f_print(fout,"\nextern int %s%sExecuteRequest(struct rx_call *);\n",
+ prefix, PackagePrefix[PackageIndex]);
+}
+
+static void
+h_HeadofOldStyleProc_setup(void)
+{
+ f_print(fout,"\nextern int %s%sExecuteRequest(struct rx_call *);\n",
+ prefix,
+ (combinepackages ? MasterPrefix : PackagePrefix[PackageIndex]));
+}
+
+void
+h_Proc_CodeGeneration(void)
+{
+ int temp;
+
+ temp = PackageIndex;
+ if (!combinepackages)
+ PackageIndex = 0;
+ for (; PackageIndex <= temp; PackageIndex++) {
+ if (combinepackages || opcode_holes_exist()) {
+ h_HeadofOldStyleProc_setup();
+ } else {
+ h_ProcMainBody_setup();
+ }
+ }
+ PackageIndex = temp;
+}
void
h_opcode_stats(void)
extern definition *get_definition(void);
extern void er_Proc_CodeGeneration(void);
+extern void h_Proc_CodeGeneration(void);
extern void h_opcode_stats(void);
extern void generate_multi_macros(definition * defp);
extern int IsRxgenToken(token * tokp);
#include "stress.h"
#include "stress_internal.h"
-
-extern RXKST_ExecuteRequest();
-
struct ktc_encryptionKey serviceKey =
{ 0x45, 0xe3, 0x3d, 0x16, 0x29, 0x64, 0x8a, 0x8f };
long serviceKeyVersion = 7;
all: depinstall ${TOP_LIBDIR}/librxstat.a
depinstall: \
- ${TOP_INCDIR}/rx/rxstat.h ${TOP_INCDIR}/rx/rxstat_prototypes.h Krxstat.cs.c \
+ ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c \
Krxstat.ss.c Krxstat.xdr.c
${TOP_INCDIR}/rx/rxstat.h: rxstat.h
${INSTALL_DATA} $? $@
-${TOP_INCDIR}/rx/rxstat_prototypes.h: rxstat_prototypes.h
- ${INSTALL_DATA} $? $@
-
${TOP_LIBDIR}/librxstat.a: librxstat.a
${INSTALL_DATA} $? $@
Krxstat.xdr.c: rxstat.xg
${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
-${DEST}/include/rx/rxstat_prototypes.h: rxstat_prototypes.h
- ${INSTALL} $? $@
-
#
# Install targets
#
install: rxstat.h librxstat.a
${INSTALL} -d ${DESTDIR}${includedir}/rx
${INSTALL} -d ${DESTDIR}${libdir}
- ${INSTALL_DATA} rxstat_prototypes.h ${DESTDIR}${includedir}/rx/rxstat_prototypes.h
${INSTALL_DATA} rxstat.h ${DESTDIR}${includedir}/rx/rxstat.h
${INSTALL_DATA} librxstat.a ${DESTDIR}${libdir}/librxstat.a
dest: rxstat.h librxstat.a
${INSTALL} -d ${DEST}/include/rx
${INSTALL} -d ${DEST}/lib
- ${INSTALL_DATA} rxstat_prototypes.h ${DEST}/include/rx/rxstat_prototypes.h
${INSTALL_DATA} rxstat.h ${DEST}/include/rx/rxstat.h
${INSTALL_DATA} librxstat.a ${DEST}/lib/librxstat.a
INCFILES =\
$(INCFILEDIR)\rx\rxstat.h \
- $(INCFILEDIR)\rx\rxstat_prototypes.h
# Library component lists.
copyheader: rxstat.h
$(COPY) rxstat.h $(INCFILEDIR)\rx\rxstat.h
- $(COPY) rxstat_prototypes.h $(INCFILEDIR)\rx\rxstat_prototypes.h
install: copyheader $(LIBFILE) $(INCFILES)
+++ /dev/null
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License. For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef _RXSTATS_PROTOTYPES_H
-#define _RXSTATS_PROTOTYPES_H
-
-/* rxstat.ss.c */
-extern int RXSTATS_ExecuteRequest(register struct rx_call *z_call);
-
-#endif
/* pioctl.c */
extern int lpioctl(char *, int, void *, int);
-/* rmtsys.ss.c */
-struct rx_call;
-extern int RMTSYS_ExecuteRequest(struct rx_call *);
-
/* rmtsysc.c */
struct ViceIoctl;
extern int pioctl(char *path, afs_int32 cmd, struct ViceIoctl *data,
}
-extern int RXAFSCB_ExecuteRequest();
struct rx_securityClass *sc;
extern int
extern void ubik_dprint(const char *format, ...);
/*\}*/
-/*! \name ubik_int.xg - rxgen really should prototype these for us ... */
-extern int VOTE_ExecuteRequest(register struct rx_call *);
-extern int DISK_ExecuteRequest(register struct rx_call *);
-/*\}*/
-
#endif /* UBIK_INTERNALS */
extern afs_int32 ubik_nBuffers;
#include "AFS_component_version_number.c"
-extern int SAMPLE_ExecuteRequest(struct rx_call *);
-
int
main(int argc, char **argv)
{
#include "update.h"
#include "global.h"
-extern int UPDATE_ExecuteRequest(struct rx_call *);
-
static int AddObject(char **expPath, char *dir);
static int PathInDirectory(char *dir, char *path);
int update_SendFile(int, struct rx_call *, struct stat *);
#include <afs/acl.h>
#include <afs/prs_fs.h>
#include <rx/rx.h>
+#include <rx/rxstat.h>
#include <afs/keys.h>
#include <afs/afs_args.h>
#include <afs/vlserver.h>
#include "sys/lock.h"
#endif
#include <rx/rx_globals.h>
-#include <rx/rxstat_prototypes.h>
#ifdef O_LARGEFILE
#define afs_stat stat64
static void ResetCheckSignal(void);
static void *CheckSignal(void *);
-extern int RXAFS_ExecuteRequest(struct rx_call *);
-extern int RXSTATS_ExecuteRequest(struct rx_call *);
-
static afs_int32 Do_VLRegisterRPC(void);
int eventlog = 0, rxlog = 0;
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <rx/rxstat.h>
-#include <rx/rxstat_prototypes.h>
#include <afs/cellconfig.h>
#include <afs/keys.h>
#include <afs/auth.h>
#ifndef _VLSERVER_INTERNAL_H
#define _VLSERVER_INTERNAL_H
-/* vldbinit.ss.c */
-extern int VL_ExecuteRequest(struct rx_call *z_call);
-
/* vlprocs.c */
extern int Init_VLdbase(struct ubik_trans **trans, int locktype, int this_op);
#include <afs/volume.h>
#include <afs/partition.h>
#include <rx/rx.h>
+#include <rx/rxstat.h>
#include <rx/rx_globals.h>
#include <afs/auth.h>
#include <afs/cellconfig.h>
int VolumeChanged; /* XXXX */
static char busyFlags[MAXHELPERS];
struct volser_trans *QI_GlobalWriteTrans = 0;
-extern int AFSVolExecuteRequest(struct rx_call*);
-extern int RXSTATS_ExecuteRequest(struct rx_call*);
struct afsconf_dir *tdir;
static afs_int32 runningCalls = 0;
int DoLogging = 0;
#define LWP_STACK_SIZE (16 * 1024)
-/* This should really be in a header file */
-extern int RXAFSCB_ExecuteRequest(struct rx_call *z_call);
-
/*
* Exported variables.
*/