#include "budb_errs.h"
#include "database.h"
#include "error_macros.h"
+#include "budb_prototypes.h"
#include "afs/audit.h"
#include <afs/afsutil.h>
* routine mallocs storage for charListPtr, freed by stub
*/
-afs_int32 GetText(), GetTextVersion(), SaveText();
+afs_int32 GetText(struct rx_call *, afs_uint32, afs_int32, afs_int32,
+ afs_int32, afs_int32 *, charListT *);
+afs_int32 GetTextVersion(struct rx_call *, afs_int32, afs_uint32 *);
+afs_int32 SaveText(struct rx_call *, afs_uint32, afs_int32, afs_int32,
+ afs_int32, charListT *);
afs_int32
-SBUDB_GetText(call, lockHandle, textType, maxLength, offset, nextOffset,
- charListPtr)
- struct rx_call *call;
- afs_uint32 lockHandle;
- afs_int32 textType;
- afs_int32 maxLength;
- afs_int32 offset;
- afs_int32 *nextOffset;
- charListT *charListPtr;
+SBUDB_GetText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
+ afs_int32 maxLength, afs_int32 offset, afs_int32 *nextOffset,
+ charListT *charListPtr)
{
afs_int32 code;
}
afs_int32
-GetText(call, lockHandle, textType, maxLength, offset, nextOffset,
- charListPtr)
- struct rx_call *call;
- afs_uint32 lockHandle;
- afs_int32 textType;
- afs_int32 maxLength;
- afs_int32 offset;
- afs_int32 *nextOffset;
- charListT *charListPtr;
+GetText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
+ afs_int32 maxLength, afs_int32 offset, afs_int32 *nextOffset,
+ charListT *charListPtr)
{
struct ubik_trans *ut = 0;
struct block block;
*nextOffset = -1;
}
- error_exit:
+ /* error_exit: */
code = ubik_EndTrans(ut);
/* printf("in error exit, code=%ld\n", code); */
return (code);
return (code);
}
-freeOldBlockChain(ut, diskAddr)
- struct ubik_trans *ut;
- dbadr diskAddr;
+int
+freeOldBlockChain(struct ubik_trans *ut, dbadr diskAddr)
{
struct blockHeader blockHeader;
dbadr nextDiskAddr;
- afs_int32 code;
+ afs_int32 code = 0;
while (diskAddr != 0) {
/* read in the header */
*/
afs_int32
-SBUDB_GetTextVersion(call, textType, tversion)
- struct rx_call *call;
- afs_int32 textType;
- afs_uint32 *tversion;
+SBUDB_GetTextVersion(struct rx_call *call, afs_int32 textType,
+ afs_uint32 *tversion)
{
afs_int32 code;
}
afs_int32
-GetTextVersion(call, textType, tversion)
- struct rx_call *call;
- afs_int32 textType;
- afs_uint32 *tversion;
+GetTextVersion(struct rx_call *call, afs_int32 textType,
+ afs_uint32 *tversion)
{
afs_int32 code;
struct ubik_trans *ut;
*/
afs_int32
-SBUDB_SaveText(call, lockHandle, textType, offset, flags, charListPtr)
- struct rx_call *call;
- afs_uint32 lockHandle;
- afs_int32 textType;
- afs_int32 offset;
- afs_int32 flags;
- charListT *charListPtr;
+SBUDB_SaveText(struct rx_call *call, afs_uint32 lockHandle,
+ afs_int32 textType, afs_int32 offset, afs_int32 flags,
+ charListT *charListPtr)
{
afs_int32 code;
}
afs_int32
-SaveText(call, lockHandle, textType, offset, flags, charListPtr)
- struct rx_call *call;
- afs_uint32 lockHandle;
- afs_int32 textType;
- afs_int32 offset;
- afs_int32 flags;
- charListT *charListPtr;
+SaveText(struct rx_call *call, afs_uint32 lockHandle, afs_int32 textType,
+ afs_int32 offset, afs_int32 flags, charListT *charListPtr)
{
struct ubik_trans *ut;
struct block diskBlock;
if (code)
ABORT(code);
- error_exit:
+/*error_exit: */
code = ubik_EndTrans(ut);
return (code);
/* debug support */
void
-saveTextToFile(ut, tbPtr)
- struct ubik_trans *ut;
- struct textBlock *tbPtr;
-
+saveTextToFile(struct ubik_trans *ut, struct textBlock *tbPtr)
{
afs_int32 blockAddr;
struct block block;
*/
int
-mkstemp(st)
- char *st;
+mkstemp(char *st)
{
int retval = -1;