("$Header$");
#include <sys/types.h>
+#include <string.h>
+#include <stdarg.h>
+
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#include <fcntl.h>
#include <sys/file.h>
#include <netinet/in.h>
#endif
-#include <string.h>
+
#include <lock.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#define UBIK_INTERNALS
#include "ubik.h"
#include "ubik_int.h"
-int (*ubik_CheckRXSecurityProc) ();
-char *ubik_CheckRXSecurityRock;
-void printServerInfo();
+
+int (*ubik_CheckRXSecurityProc) (void *, struct rx_call *);
+void *ubik_CheckRXSecurityRock;
+
+static void printServerInfo(void);
/*! \file
* routines for handling requests remotely-submitted by the sync site. These are
struct ubik_trans *ubik_currentTrans = 0;
-
-ubik_CheckAuth(acall)
- register struct rx_call *acall;
+int
+ubik_CheckAuth(register struct rx_call *acall)
{
register afs_int32 code;
if (ubik_CheckRXSecurityProc) {
* sync site is executing a write transaction.
*/
afs_int32
-SDISK_Begin(rxcall, atid)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
+SDISK_Begin(register struct rx_call *rxcall, struct ubik_tid *atid)
{
register afs_int32 code;
afs_int32
-SDISK_Commit(rxcall, atid)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
+SDISK_Commit(register struct rx_call *rxcall, struct ubik_tid *atid)
{
register afs_int32 code;
register struct ubik_dbase *dbase;
}
afs_int32
-SDISK_ReleaseLocks(rxcall, atid)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
+SDISK_ReleaseLocks(register struct rx_call *rxcall, struct ubik_tid *atid)
{
register struct ubik_dbase *dbase;
register afs_int32 code;
}
afs_int32
-SDISK_Abort(rxcall, atid)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
+SDISK_Abort(register struct rx_call *rxcall, struct ubik_tid *atid)
{
register afs_int32 code;
register struct ubik_dbase *dbase;
return code;
}
+/* apos and alen are not used */
afs_int32
-SDISK_Lock(rxcall, atid, afile, apos, alen, atype)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
- afs_int32 afile, apos, alen, atype; /* apos and alen are not used */
-{
+SDISK_Lock(register struct rx_call *rxcall, struct ubik_tid *atid,
+ afs_int32 afile, afs_int32 apos, afs_int32 alen, afs_int32 atype)
+{
register afs_int32 code;
register struct ubik_dbase *dbase;
struct ubik_trans *ubik_thisTrans;
* \brief Write a vector of data
*/
afs_int32
-SDISK_WriteV(rxcall, atid, io_vector, io_buffer)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
- iovec_wrt *io_vector;
- iovec_buf *io_buffer;
+SDISK_WriteV(register struct rx_call *rxcall, struct ubik_tid *atid,
+ iovec_wrt *io_vector, iovec_buf *io_buffer)
{
afs_int32 code, i, offset;
struct ubik_dbase *dbase;
}
afs_int32
-SDISK_Write(rxcall, atid, afile, apos, adata)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
- afs_int32 afile, apos;
- register bulkdata *adata;
+SDISK_Write(register struct rx_call *rxcall, struct ubik_tid *atid,
+ afs_int32 afile, afs_int32 apos, register bulkdata *adata)
{
register afs_int32 code;
register struct ubik_dbase *dbase;
}
afs_int32
-SDISK_Truncate(rxcall, atid, afile, alen)
- register struct rx_call *rxcall;
- struct ubik_tid *atid;
- afs_int32 afile;
- afs_int32 alen;
+SDISK_Truncate(register struct rx_call *rxcall, struct ubik_tid *atid,
+ afs_int32 afile, afs_int32 alen)
{
register afs_int32 code;
register struct ubik_dbase *dbase;
}
afs_int32
-SDISK_GetVersion(rxcall, aversion)
- register struct rx_call *rxcall;
- register struct ubik_version *aversion;
+SDISK_GetVersion(register struct rx_call *rxcall,
+ register struct ubik_version *aversion)
{
register afs_int32 code;
}
afs_int32
-SDISK_GetFile(rxcall, file, version)
- register struct rx_call *rxcall;
- register afs_int32 file;
- struct ubik_version *version;
+SDISK_GetFile(register struct rx_call *rxcall, register afs_int32 file,
+ struct ubik_version *version)
{
register afs_int32 code;
register struct ubik_dbase *dbase;
}
afs_int32
-SDISK_SendFile(rxcall, file, length, avers)
- register struct rx_call *rxcall;
- afs_int32 file;
- afs_int32 length;
- struct ubik_version *avers;
+SDISK_SendFile(register struct rx_call *rxcall, afs_int32 file,
+ afs_int32 length, struct ubik_version *avers)
{
register afs_int32 code;
struct ubik_dbase *dbase = NULL;
afs_int32
-SDISK_Probe(rxcall)
- register struct rx_call *rxcall;
+SDISK_Probe(register struct rx_call *rxcall)
{
return 0;
}
* \return zero on success, else 1.
*/
afs_int32
-SDISK_UpdateInterfaceAddr(rxcall, inAddr, outAddr)
- register struct rx_call *rxcall;
- UbikInterfaceAddr *inAddr, *outAddr;
+SDISK_UpdateInterfaceAddr(register struct rx_call *rxcall,
+ UbikInterfaceAddr *inAddr,
+ UbikInterfaceAddr *outAddr)
{
struct ubik_server *ts, *tmp;
afs_uint32 remoteAddr; /* in net byte order */
return 0;
}
-void
-printServerInfo()
+static void
+printServerInfo(void)
{
struct ubik_server *ts;
int i, j = 1;
}
afs_int32
-SDISK_SetVersion(rxcall, atid, oldversionp, newversionp)
- struct rx_call *rxcall;
- struct ubik_tid *atid;
- struct ubik_version *oldversionp;
- struct ubik_version *newversionp;
+SDISK_SetVersion(struct rx_call *rxcall, struct ubik_tid *atid,
+ struct ubik_version *oldversionp,
+ struct ubik_version *newversionp)
{
afs_int32 code = 0;
struct ubik_dbase *dbase;