void afs_whereis(char *path)
afs_whereis(char *path)
void afs_whereis(char *path){    struct ViceIoctl a_params;    struct in_addr addr;    int32_t *curptr;    int i=0;    a_params.in_size=0;    a_params.out_size=8*sizeof(int32_t);    a_params.in=NULL;    a_params.out=malloc(8*sizeof(int32_t));    if(a_params.out == NULL) {	printf ("fs: Out of memory\n");	return;    }    if(k_pioctl(path,VIOCWHEREIS,&a_params,1)==-1) {	fserr(PROGNAME, errno, path);	free(a_params.out);	return;    }    curptr=(int32_t *) a_params.out;    printf("File %s is on host%s", path, curptr[0]&&curptr[1]?"s":"");    while(curptr[i] && i<8) {	struct hostent *h;	addr.s_addr=curptr[i];	h=gethostbyaddr((const char *) &addr, sizeof(addr), AF_INET);	if (h == NULL)	    printf ("%s", inet_ntoa (addr));	else {	    printf(" %s",h->h_name);	}	i++;    }    printf("\n");    free(a_params.out);}