static void bsdCloseAPM(void) { int fd; if (APMihPtr) { fd = xf86RemoveInputHandler(APMihPtr); close(fd); APMihPtr = NULL; } }
static void bsdCloseAPM(void) { int kq; if (APMihPtr) { kq = xf86RemoveInputHandler(APMihPtr); close(devFd); devFd = -1; close(kq); if (ctlFd >= 0) { close(ctlFd); ctlFd = -1; } APMihPtr = NULL; } }