kqueueop.kq = kq;
kqueueop->kq = kq;
kq_init(void){	int kq;	/* Disable kqueue when this environment variable is set */	if (!issetugid() && getenv("EVENT_NOKQUEUE"))		return (NULL);	memset(&kqueueop, 0, sizeof(kqueueop));	/* Initalize the kernel queue */		if ((kq = kqueue()) == -1) {		log_error("kqueue");		return (NULL);	}	kqueueop.kq = kq;	/* Initalize fields */	kqueueop.changes = malloc(NEVENT * sizeof(struct kevent));	if (kqueueop.changes == NULL)		return (NULL);	kqueueop.events = malloc(NEVENT * sizeof(struct kevent));	if (kqueueop.events == NULL) {		free (kqueueop.changes);		return (NULL);	}	kqueueop.nevents = NEVENT;	return (&kqueueop);}