ptserver-rxgen-cleanup-20030619
authorNathan Neulinger <nneul@umr.edu>
Thu, 19 Jun 2003 17:31:33 +0000 (17:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 19 Jun 2003 17:31:33 +0000 (17:31 +0000)
FIXES 1573

get rid of placeholders, inline opcodes..

src/ptserver/Makefile.in
src/ptserver/ptint.xg

index 18434c4..dd3f024 100644 (file)
@@ -14,7 +14,7 @@ INCLS=${TOP_INCDIR}/ubik.h \
        ${TOP_INCDIR}/rx/xdr.h \
        ${TOP_INCDIR}/afs/keys.h \
        ${TOP_INCDIR}/afs/cellconfig.h \
-       ptserver.h ptclient.h ptint.h ptopcodes.h pterror.h map.h
+       ptserver.h ptclient.h ptint.h pterror.h map.h
 
 LINCLS=${TOP_INCDIR}/ubik.h \
        ${TOP_INCDIR}/lock.h \
index 6b941cd..3a5ccab 100644 (file)
@@ -22,8 +22,6 @@ package PR_
 prefix S
 statindex 8
 
-#include "ptopcodes.h"
-
 const PRSUCCESS=0;
 
 const PR_MAXNAMELEN=64;
@@ -114,88 +112,88 @@ INewEntry(
   IN string name<PR_MAXNAMELEN>,
   IN afs_int32 id,
   IN afs_int32 oid
-) = PRINEWUSER;
+) = 500;
 
 WhereIsIt(
   IN afs_int32 id,
   OUT afs_int32 *ps
-) = PRWHEREISIT;
+) = 501;
 
 DumpEntry(
   IN afs_int32 pos,
   OUT struct prdebugentry *entry
-) = PRDUMPENTRY;
+) = 502;
 
 AddToGroup(
   IN afs_int32 uid,
   IN afs_int32 gid
-)=PRADDTOGROUP;
+) = 503;
 
 NameToID(
   IN namelist *nlist,
   OUT idlist *ilist
-)=PRNAMETOID;
+) = 504;
 
 IDToName(
   IN idlist *ilist,
   OUT namelist *nlist
-) =PRIDTONAME;
+) = 505;
 
 Delete(
   IN afs_int32 id
-)=PRDELETE;
+) = 506;
 
 RemoveFromGroup(
   IN afs_int32 id,
   IN afs_int32 gid
-)=PRREMOVEFROMGROUP;
+) = 507;
 
 GetCPS(
   IN afs_int32 id,
   OUT prlist *elist,
   OUT afs_int32 *over
-)=PRGETCPS;
+) = 508;
 
 NewEntry(
   IN string name<PR_MAXNAMELEN>,
   afs_int32 flag,
   afs_int32 oid,
   OUT afs_int32 *id
-)=PRNEWENTRY;
+) = 509;
 
 ListMax(
   OUT afs_int32 *uid,
   afs_int32 *gid
-)=PRLISTMAX;
+) = 510;
 
 SetMax(
   IN afs_int32 id,
   afs_int32 gflag
-)=PRSETMAX;
+) = 511;
 
 ListEntry(
   IN afs_int32 id,
   OUT struct prcheckentry *entry
-) = PRLISTENTRY;
+) = 512;
 
 ChangeEntry(
   IN afs_int32 id,
   IN string name<PR_MAXNAMELEN>,
   IN afs_int32 oid,
   IN afs_int32 newid
-) = PRCHANGEENTRY;
+) = 513;
 
 ListElements(
   IN afs_int32 id,
   OUT prlist *elist,
   OUT afs_int32 *over
-)=PRLISTELEMENTS;
+) = 514;
 
 IsAMemberOf(
   IN afs_int32 uid,
   IN afs_int32 gid,
   OUT afs_int32 *flag
-)=PRISAMEMBEROF;
+) = 515;
 
 SetFieldsEntry(
   IN afs_int32 id,
@@ -205,65 +203,44 @@ SetFieldsEntry(
   IN afs_int32 nusers,
   IN afs_int32 spare1,
   IN afs_int32 spare2
-) = PRSETFIELDSENTRY;
+) = 516;
 
 ListOwned(
   IN afs_int32 id,
   OUT prlist *elist,
   INOUT afs_int32 *lastp
-) = PRLISTOWNED;
+) = 517;
 
 GetCPS2(
   IN afs_int32 id,
   IN afs_int32 host,
   OUT prlist *elist,
   OUT afs_int32 *over
-)=PRGETCPS2;
+) = 518;
 
 GetHostCPS(
   IN afs_int32 host,
   OUT prlist *elist,
   OUT afs_int32 *over
-)=PRGETHOSTCPS;
+) = 519;
 
 UpdateEntry(
   IN afs_int32 id,
   IN string name<PR_MAXNAMELEN>,
   IN PrUpdateEntry *uentry
-) = PRUPDATEENTRY;
+) = 520;
 
 ListEntries(
   IN afs_int32      flags,
   IN afs_int32      startindex,
   OUT prentries *bulkentries,
   OUT afs_int32     *nextstartindex
-) = PRLISTENTRIES;
+) = 521;
 
 #if defined(SUPERGROUPS)
-/*
- *
- * Dummy stubs for "reserved to Transarc" opcodes; just so
- * that ptint.ss.c uses nicer function table.
- */
-%#define PR_Pr523(call) (RXGEN_OPCODE)
-%#define PR_Pr524(call) (RXGEN_OPCODE)
-%#define PR_Pr525(call) (RXGEN_OPCODE)
-%#define PR_Pr526(call) (RXGEN_OPCODE)
-%#define PR_Pr527(call) (RXGEN_OPCODE)
-%#define PR_Pr528(call) (RXGEN_OPCODE)
-%#define PR_Pr529(call) (RXGEN_OPCODE)
-Pr523()=523;
-Pr524()=524;
-Pr525()=525;
-Pr526()=526;
-Pr527()=527;
-Pr528()=528;
-Pr529()=529;
-
 ListSuperGroups(
   IN long id,
   OUT prlist *elist,
   OUT long *over
-) = PRLISTSUPERGROUPS;
-
+) = 530;
 #endif