/*
* 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
pxclient_Initialize(int auth, afs_int32 serverAddr)
{
afs_int32 code;
- afs_int32 scIndex;
+ rx_securityIndex scIndex;
struct rx_securityClass *sc;
code = rx_Init(htons(2115) /*0 */ );
fprintf(stderr, "pxclient_Initialize: Could not initialize rx.\n");
return code;
}
- scIndex = 0;
+ scIndex = RX_SECIDX_NULL;
rx_SetRxDeadTime(50);
sc = rxnull_NewClientSecurityObject();
serverconns[0] =
{
char **av = argv;
struct sockaddr_in host;
- register afs_int32 code;
+ afs_int32 code;
struct hostent *hp;
- char *hostname;
char hnamebuf[200];
struct timeval tv;
int noAuth = 1; /* Default is authenticated connections */
argc--, av++;
if (argc < 1) {
- printf("usage: pxclient <serverHost>\n");
+ printf("usage: fsprobe <serverHost>\n");
exit(1);
}
memset(&host, 0, sizeof(struct sockaddr_in));
#endif
if (host.sin_addr.s_addr != -1) {
strcpy(hnamebuf, av[0]);
- hostname = hnamebuf;
} else {
hp = gethostbyname(av[0]);
if (hp) {
host.sin_family = hp->h_addrtype;
memcpy((caddr_t) & host.sin_addr, hp->h_addr, hp->h_length);
- hostname = hp->h_name;
} else {
printf("unknown server host %s\n", av[0]);
exit(1);
exit(1);
}
- code = ubik_Call(RXAFS_GetTime, cstruct, 0, &tv.tv_sec, &tv.tv_usec);
+ code = RXAFS_GetTime(cstruct->conns[0], (afs_uint32 *)&tv.tv_sec, (afs_uint32 *)&tv.tv_usec);
if (!code)
printf("AFS_GetTime on %s sec=%ld, usec=%ld\n", av[0], tv.tv_sec,
(long int)tv.tv_usec);
printf("fs> ");
if (fgets(line, 499, stdin) != NULL) {
char *oper;
- register char **argp = args;
+ char **argp = args;
GetArgs(line, argp, &nargs);
oper = &argp[0][0];
++argp, --nargs;
void
-GetArgs(register char *line, register char **args, register int *nargs)
+GetArgs(char *line, char **args, int *nargs)
{
*nargs = 0;
while (*line) {
- register char *last = line;
+ char *last = line;
while (*line == ' ')
line++;
if (*last == ' ')
static afs_int32
-FetchProc(register struct rx_call *acall)
+FetchProc(struct rx_call *acall)
{
extern char *malloc();
- register char *tbuffer;
+ char *tbuffer;
afs_int32 tlen, length, code;
code = rx_Read(acall, &length, sizeof(afs_int32));
static afs_int32
-StoreProc(register struct rx_call *acall, char *string, int length)
+StoreProc(struct rx_call *acall, char *string, int length)
{
afs_int32 tlen, code;
static afs_int32
-FetchDir(register struct rx_call *acall)
+FetchDir(struct rx_call *acall)
{
extern char *malloc();
- register char *tbuffer;
+ char *tbuffer;
afs_int32 tlen, length, code;
struct dirent *dp;