rem: return EINVAL;
add: return FS_EINVAL;
context: do_stopquery(int argc, char **argv){	int err;	int min, max;	if (gQueryCookie == NULL) {		printf("no query running (use the 'startquery' command to start a query).\n");		return EINVAL;	}	if (argc == 2)		min = max = atol(argv[1]);	else {		min = 0;		max = MAX_LIVE_QUERIES - 1;	}	// close all queries (or only the one asked for)	for (; min <= max; min++) {		if (gQueryCookie[min] == NULL)			continue;		err = sys_close_query(true, -1, "/myfs/.", gQueryCookie[min]);		if (err < 0) {			printf("could not close query: %s\n", strerror(err));			return err;		}		gQueryCookie[min] = NULL;		free(gQueryString[min]);	}	return 0;}