Searched refs:apmctl_fd (Results 1 – 1 of 1) sorted by relevance
/freebsd/usr.sbin/apmd/ |
H A D | apmd.c | 57 int apmctl_fd = -1, apmnorm_fd = -1; variable 171 if (ioctl(apmctl_fd, APMIO_REJECTLASTREQ, NULL)) { in event_cmd_reject_act() 343 if (write(apmctl_fd, &event_type, sizeof(u_int)) == -1) { in read_config() 396 if (write(apmctl_fd, &event_type, sizeof(u_int)) == -1) { in destroy_config() 582 FD_SET(apmctl_fd, &master_rfds); in event_loop() 583 fdmax = apmctl_fd > fdmax ? apmctl_fd : fdmax; in event_loop() 628 if (FD_ISSET(apmctl_fd, &rfds)) in event_loop() 629 proc_apmevent(apmctl_fd); in event_loop() 689 if ((apmctl_fd = open(APM_CTL_DEVICEFILE, O_RDWR)) == -1) { in main() 693 if (fcntl(apmctl_fd, F_SETFD, 1) == -1) { in main()
|