static struct tqHead busyHead, notokHead;
static void
-qInit(ahead)
- struct tqHead *ahead;
+qInit(struct tqHead *ahead)
{
memset((char *)ahead, 0, sizeof(struct tqHead));
return;
static void
-qPut(ahead, volid)
- struct tqHead *ahead;
- afs_int32 volid;
+qPut(struct tqHead *ahead, afs_int32 volid)
{
struct tqElem *elem;
}
static void
-qGet(ahead, volid)
- struct tqHead *ahead;
- afs_int32 *volid;
+qGet(struct tqHead *ahead, afs_int32 *volid)
{
struct tqElem *tmp;
}
/* returns 1 if <filename> exists else 0 */
-static
-FileExists(filename)
- char *filename;
+static int
+FileExists(char *filename)
{
usd_handle_t ufd;
int code;
}
/* returns 1 if <name> doesnot end in .readonly or .backup, else 0 */
-static
-VolNameOK(name)
- char *name;
+static int
+VolNameOK(char *name)
{
int total;
}
/* return 1 if name is a number else 0 */
-static
-IsNumeric(name)
- char *name;
+static int
+IsNumeric(char *name)
{
int result, len, i;
char *ptr;
}
return result;
-
-
}
* Parse a server name/address and return the address in HOST BYTE order
*/
afs_int32
-GetServer(aname)
- char *aname;
+GetServer(char *aname)
{
register struct hostent *th;
afs_int32 addr;
}
afs_int32
-GetVolumeType(aname)
- char *aname;
+GetVolumeType(char *aname)
{
if (!strcmp(aname, "ro"))
}
int
-IsPartValid(partId, server, code)
- afs_int32 server, partId, *code;
-
+IsPartValid(afs_int32 partId, afs_int32 server, afs_int32 *code)
{
struct partList dummyPartList;
int i, success, cnt;
-
-
success = 0;
*code = 0;
/*sends the contents of file associated with <fd> and <blksize> to Rx Stream
* associated with <call> */
-SendFile(ufd, call, blksize)
- usd_handle_t ufd;
- register struct rx_call *call;
- long blksize;
+int
+SendFile(usd_handle_t ufd, register struct rx_call *call, long blksize)
{
char *buffer = (char *)0;
afs_int32 error = 0;
/* function invoked by UV_RestoreVolume, reads the data from rx_trx_stream and
* writes it out to the volume. */
afs_int32
-WriteData(call, rock)
- struct rx_call *call;
- char *rock;
+WriteData(struct rx_call *call, char *rock)
{
char *filename;
usd_handle_t ufd;
* with <fd> <blksize>
*/
int
-ReceiveFile(ufd, call, blksize)
- usd_handle_t ufd;
- struct rx_call *call;
- long blksize;
+ReceiveFile(usd_handle_t ufd, struct rx_call *call, long blksize)
{
char *buffer = NULL;
afs_int32 bytesread;
}
afs_int32
-DumpFunction(call, filename)
- struct rx_call *call;
- char *filename;
+DumpFunction(struct rx_call *call, char *filename)
{
usd_handle_t ufd; /* default is to stdout */
afs_int32 error = 0, code;