Searched refs:apmctl_fd (Results 1 – 1 of 1) sorted by relevance
| /freebsd-13.1/usr.sbin/apmd/ |
| H A D | apmd.c | 62 int apmctl_fd = -1, apmnorm_fd = -1; variable 176 if (ioctl(apmctl_fd, APMIO_REJECTLASTREQ, NULL)) { in event_cmd_reject_act() 348 if (write(apmctl_fd, &event_type, sizeof(u_int)) == -1) { in read_config() 401 if (write(apmctl_fd, &event_type, sizeof(u_int)) == -1) { in destroy_config() 587 FD_SET(apmctl_fd, &master_rfds); in event_loop() 588 fdmax = apmctl_fd > fdmax ? apmctl_fd : fdmax; in event_loop() 633 if (FD_ISSET(apmctl_fd, &rfds)) in event_loop() 634 proc_apmevent(apmctl_fd); in event_loop() 694 if ((apmctl_fd = open(APM_CTL_DEVICEFILE, O_RDWR)) == -1) { in main() 698 if (fcntl(apmctl_fd, F_SETFD, 1) == -1) { in main()
|