errx(1, "%s: unknown queue %x", __func__, queue);
event_errx(1, "%s: unknown queue %x", __func__, queue);
event_queue_insert(struct event *ev, int queue){	if (ev->ev_flags & queue)		errx(1, "%s: %p(fd %d) already on queue %x", __func__,		    ev, ev->ev_fd, queue);	ev->ev_flags |= queue;	switch (queue) {	case EVLIST_ACTIVE:		TAILQ_INSERT_TAIL(&activequeue, ev, ev_active_next);		break;	case EVLIST_SIGNAL:		TAILQ_INSERT_TAIL(&signalqueue, ev, ev_signal_next);		break;	case EVLIST_TIMEOUT: {		struct event *tmp = RB_INSERT(event_tree, &timetree, ev);		assert(tmp == NULL);		break;	}	case EVLIST_INSERTED:		TAILQ_INSERT_TAIL(&eventqueue, ev, ev_next);		break;	default:		errx(1, "%s: unknown queue %x", __func__, queue);	}}