int fd, rv;
int fd;
static int append_indexes(struct request *r){	char *p, *q;	struct simple_list *i;	int fd, rv;	p = r->path_translated;	q = p + strlen(p);	r->isindex = 1;	i = r->c->index_names;	while (i) {		strcpy(q, i->name);		fd = open(p, O_RDONLY | O_NONBLOCK);		if (debug)			log_d("append_indexes: open(\"%s\") = %d", p, fd);		if (fd != -1) {			if (assign_rfd(r, fd) == -1) {				close(fd);				return -1;			}			break;		}		i = i->next;	}	if (i == 0) {		*q = 0;		return -1;	}	return 0;}