The APM_IOC_NEXTEVENT ioctl was ripped out from i386 in 2001 in favor of a kqueue interface, but apm.4 on various arches still claim it's supported or may be in the future which is unlikely.
https://github.com/openbsd/src/commit/1e8a3e096b6ef01dcdf4f881eac1b86b1bafe06d Index: share/man/man4/man4.amd64/apm.4 =================================================================== RCS file: /cvs/src/share/man/man4/man4.amd64/apm.4,v retrieving revision 1.9 diff -u -p -u -p -r1.9 apm.4 --- share/man/man4/man4.amd64/apm.4 31 Mar 2022 17:27:21 -0000 1.9 +++ share/man/man4/man4.amd64/apm.4 30 Jan 2023 05:01:25 -0000 @@ -103,44 +103,6 @@ The .Va minutes_left value contains the estimated number of minutes of battery life remaining. -.It Dv APM_IOC_NEXTEVENT -.Pq Li "struct apm_event_info" -The APM driver stores up to -.Dv APM_NEVENTS -events. -This was defined as 16 at the time this documentation was written. -If the event list is full when a new event is detected, the new event is lost. -.Dv APM_IOC_NEXTEVENT -ioctl returns the next event on the list or -.Er EAGAIN -if the event list is empty. -The format of the returned event is: -.Bd -literal -offset indent -struct apm_event_info { - u_int type; - u_int index; - u_int spare[8]; -}; -.Ed -where -.Va index -is a sequential count of events that can be used to check if any -events were lost and -.Va type -is one of: -.Bl -tag -width Ds -offset indent -compact -.It Dv APM_STANDBY_REQ -.It Dv APM_SUSPEND_REQ -.It Dv APM_NORMAL_RESUME -.It Dv APM_CRIT_RESUME -.It Dv APM_BATTERY_LOW -.It Dv APM_POWER_CHANGE -.It Dv APM_UPDATE_TIME -.It Dv APM_CRIT_SUSPEND_REQ -.It Dv APM_USER_STANDBY_REQ -.It Dv APM_USER_SUSPEND_REQ -.It Dv APM_SYS_STANDBY_RESUME -.El .It Dv APM_IOC_DEV_CTL .Pq Li "struct apm_ctl" Allows an application to directly set the Index: share/man/man4/man4.arm64/apm.4 =================================================================== RCS file: /cvs/src/share/man/man4/man4.arm64/apm.4,v retrieving revision 1.5 diff -u -p -u -p -r1.5 apm.4 --- share/man/man4/man4.arm64/apm.4 31 Mar 2022 17:27:21 -0000 1.5 +++ share/man/man4/man4.arm64/apm.4 30 Jan 2023 05:01:25 -0000 @@ -112,44 +112,6 @@ The .Va minutes_left value contains the estimated number of minutes of battery life remaining. -.It Dv APM_IOC_NEXTEVENT -.Pq Li "struct apm_event_info" -The APM driver stores up to -.Dv APM_NEVENTS -events. -This was defined as 16 at the time this documentation was written. -If the event list is full when a new event is detected, the new event is lost. -.Dv APM_IOC_NEXTEVENT -ioctl returns the next event on the list or -.Er EAGAIN -if the event list is empty. -The format of the returned event is: -.Bd -literal -offset indent -struct apm_event_info { - u_int type; - u_int index; - u_int spare[8]; -}; -.Ed -where -.Va index -is a sequential count of events that can be used to check if any -events were lost and -.Va type -is one of: -.Bl -tag -width Ds -offset indent -compact -.It Dv APM_STANDBY_REQ -.It Dv APM_SUSPEND_REQ -.It Dv APM_NORMAL_RESUME -.It Dv APM_CRIT_RESUME -.It Dv APM_BATTERY_LOW -.It Dv APM_POWER_CHANGE -.It Dv APM_UPDATE_TIME -.It Dv APM_CRIT_SUSPEND_REQ -.It Dv APM_USER_STANDBY_REQ -.It Dv APM_USER_SUSPEND_REQ -.It Dv APM_SYS_STANDBY_RESUME -.El .It Dv APM_IOC_DEV_CTL .Em NOT YET SUPPORTED on arm64 . .Pp Index: share/man/man4/man4.i386/apm.4 =================================================================== RCS file: /cvs/src/share/man/man4/man4.i386/apm.4,v retrieving revision 1.35 diff -u -p -u -p -r1.35 apm.4 --- share/man/man4/man4.i386/apm.4 31 Mar 2022 17:27:21 -0000 1.35 +++ share/man/man4/man4.i386/apm.4 30 Jan 2023 05:01:25 -0000 @@ -137,44 +137,6 @@ The .Va minutes_left value contains the estimated number of minutes of battery life remaining. -.It Dv APM_IOC_NEXTEVENT -.Pq Li "struct apm_event_info" -The APM driver stores up to -.Dv APM_NEVENTS -events. -This was defined as 16 at the time this documentation was written. -If the event list is full when a new event is detected, the new event is lost. -.Dv APM_IOC_NEXTEVENT -ioctl returns the next event on the list or -.Er EAGAIN -if the event list is empty. -The format of the returned event is: -.Bd -literal -offset indent -struct apm_event_info { - u_int type; - u_int index; - u_int spare[8]; -}; -.Ed -where -.Va index -is a sequential count of events that can be used to check if any -events were lost and -.Va type -is one of: -.Bl -tag -width Ds -offset indent -compact -.It Dv APM_STANDBY_REQ -.It Dv APM_SUSPEND_REQ -.It Dv APM_NORMAL_RESUME -.It Dv APM_CRIT_RESUME -.It Dv APM_BATTERY_LOW -.It Dv APM_POWER_CHANGE -.It Dv APM_UPDATE_TIME -.It Dv APM_CRIT_SUSPEND_REQ -.It Dv APM_USER_STANDBY_REQ -.It Dv APM_USER_SUSPEND_REQ -.It Dv APM_SYS_STANDBY_RESUME -.El .It Dv APM_IOC_DEV_CTL .Pq Li "struct apm_ctl" Allows an application to directly set the Index: share/man/man4/man4.loongson/apm.4 =================================================================== RCS file: /cvs/src/share/man/man4/man4.loongson/apm.4,v retrieving revision 1.7 diff -u -p -u -p -r1.7 apm.4 --- share/man/man4/man4.loongson/apm.4 31 Mar 2022 17:27:22 -0000 1.7 +++ share/man/man4/man4.loongson/apm.4 30 Jan 2023 05:01:25 -0000 @@ -141,48 +141,6 @@ value contains the estimated percentage The .Va minutes_left value contains the estimated number of minutes of battery life remaining. -.\" .It Dv APM_IOC_NEXTEVENT -.\" .Em NOT YET SUPPORTED on loongson -.\" .Pq Li "struct apm_event_info" -.\" The -.\" .Tn APM -.\" driver stores up to -.\" .Dv APM_NEVENTS -.\" events. -.\" This was defined as 16 at the time this documentation was written. -.\" If the event list is full when a new event is detected, the new event is lost. -.\" .Dv APM_IOC_NEXTEVENT -.\" ioctl returns the next event on the list or -.\" .Er EAGAIN -.\" if the event list is empty. -.\" The format of the returned event is: -.\" .Bd -literal -offset indent -.\" struct apm_event_info { -.\" u_int type; -.\" u_int index; -.\" u_int spare[8]; -.\" }; -.\" .Ed -.\" where -.\" .Va index -.\" is a sequential count of events that can be used to check if any -.\" events were lost and -.\" .Va type -.\" is one of: -.\" .Pp -.\" .Bl -tag -width Ds -offset indent -compact -.\" .It Dv APM_STANDBY_REQ -.\" .It Dv APM_SUSPEND_REQ -.\" .It Dv APM_NORMAL_RESUME -.\" .It Dv APM_CRIT_RESUME -.\" .It Dv APM_BATTERY_LOW -.\" .It Dv APM_POWER_CHANGE -.\" .It Dv APM_UPDATE_TIME -.\" .It Dv APM_CRIT_SUSPEND_REQ -.\" .It Dv APM_USER_STANDBY_REQ -.\" .It Dv APM_USER_SUSPEND_REQ -.\" .It Dv APM_SYS_STANDBY_RESUME -.\" .El .\" .It Dv APM_IOC_DEV_CTL .\" .Em NOT YET SUPPORTED on loongson .\" .Pq Li "struct apm_ctl" Index: share/man/man4/man4.macppc/apm.4 =================================================================== RCS file: /cvs/src/share/man/man4/man4.macppc/apm.4,v retrieving revision 1.16 diff -u -p -u -p -r1.16 apm.4 --- share/man/man4/man4.macppc/apm.4 31 Mar 2022 17:27:22 -0000 1.16 +++ share/man/man4/man4.macppc/apm.4 30 Jan 2023 05:01:25 -0000 @@ -135,46 +135,6 @@ fully charged. Otherwise, the .Va minutes_left value contains the estimated number of minutes of battery life remaining. -.It Dv APM_IOC_NEXTEVENT -.Em NOT YET SUPPORTED on macppc -.Pq Li "struct apm_event_info" -The APM driver stores up to -.Dv APM_NEVENTS -events. -This was defined as 16 at the time this documentation was written. -If the event list is full when a new event is detected, the new event is lost. -.Dv APM_IOC_NEXTEVENT -ioctl returns the next event on the list or -.Er EAGAIN -if the event list is empty. -The format of the returned event is: -.Bd -literal -offset indent -struct apm_event_info { - u_int type; - u_int index; - u_int spare[8]; -}; -.Ed -where -.Va index -is a sequential count of events that can be used to check if any -events were lost and -.Va type -is one of: -.Pp -.Bl -tag -width Ds -offset indent -compact -.It Dv APM_STANDBY_REQ -.It Dv APM_SUSPEND_REQ -.It Dv APM_NORMAL_RESUME -.It Dv APM_CRIT_RESUME -.It Dv APM_BATTERY_LOW -.It Dv APM_POWER_CHANGE -.It Dv APM_UPDATE_TIME -.It Dv APM_CRIT_SUSPEND_REQ -.It Dv APM_USER_STANDBY_REQ -.It Dv APM_USER_SUSPEND_REQ -.It Dv APM_SYS_STANDBY_RESUME -.El .It Dv APM_IOC_DEV_CTL .Em NOT YET SUPPORTED on macppc . .Pp