From 61230bc727b89ebdd7816f24b4e5329ec556bc20 Mon Sep 17 00:00:00 2001 From: jcs Date: Mon, 30 Jan 2023 14:43:29 +0000 Subject: [PATCH] The APM_IOC_NEXTEVENT ioctl was removed in the mickey era, remove documentation about it ok deraadt, miod --- share/man/man4/man4.amd64/apm.4 | 42 ++------------------------- share/man/man4/man4.arm64/apm.4 | 42 ++------------------------- share/man/man4/man4.i386/apm.4 | 42 ++------------------------- share/man/man4/man4.loongson/apm.4 | 46 ++---------------------------- share/man/man4/man4.macppc/apm.4 | 44 ++-------------------------- 5 files changed, 10 insertions(+), 206 deletions(-) diff --git a/share/man/man4/man4.amd64/apm.4 b/share/man/man4/man4.amd64/apm.4 index bb7e3b1592f..8ace7400493 100644 --- a/share/man/man4/man4.amd64/apm.4 +++ b/share/man/man4/man4.amd64/apm.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.4,v 1.9 2022/03/31 17:27:21 naddy Exp $ +.\" $OpenBSD: apm.4,v 1.10 2023/01/30 14:43:29 jcs Exp $ .\" .\" Copyright (c) 1998 Marco S. Hyman .\" @@ -9,7 +9,7 @@ .\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS .\" FOR A PARTICULAR PURPOSE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: January 30 2023 $ .Dt APM 4 amd64 .Os .Sh NAME @@ -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 diff --git a/share/man/man4/man4.arm64/apm.4 b/share/man/man4/man4.arm64/apm.4 index 3157eea060c..9c00eec091d 100644 --- a/share/man/man4/man4.arm64/apm.4 +++ b/share/man/man4/man4.arm64/apm.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.4,v 1.5 2022/03/31 17:27:21 naddy Exp $ +.\" $OpenBSD: apm.4,v 1.6 2023/01/30 14:43:29 jcs Exp $ .\" .\" Copyright (c) 1998 Marco S. Hyman .\" @@ -9,7 +9,7 @@ .\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS .\" FOR A PARTICULAR PURPOSE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: January 30 2023 $ .Dt APM 4 arm64 .Os .Sh NAME @@ -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 diff --git a/share/man/man4/man4.i386/apm.4 b/share/man/man4/man4.i386/apm.4 index c3612e43107..84775decbcc 100644 --- a/share/man/man4/man4.i386/apm.4 +++ b/share/man/man4/man4.i386/apm.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.4,v 1.35 2022/03/31 17:27:21 naddy Exp $ +.\" $OpenBSD: apm.4,v 1.36 2023/01/30 14:43:29 jcs Exp $ .\" .\" Copyright (c) 1998 Marco S. Hyman .\" @@ -9,7 +9,7 @@ .\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS .\" FOR A PARTICULAR PURPOSE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: January 30 2023 $ .Dt APM 4 i386 .Os .Sh NAME @@ -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 diff --git a/share/man/man4/man4.loongson/apm.4 b/share/man/man4/man4.loongson/apm.4 index e4f0e4e5827..80a0eafb643 100644 --- a/share/man/man4/man4.loongson/apm.4 +++ b/share/man/man4/man4.loongson/apm.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.4,v 1.7 2022/03/31 17:27:22 naddy Exp $ +.\" $OpenBSD: apm.4,v 1.8 2023/01/30 14:43:29 jcs Exp $ .\" .\" Copyright (c) 1999 Jason L. Wright (jason@thought.net) .\" All rights reserved. @@ -34,7 +34,7 @@ .\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT .\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS .\" FOR A PARTICULAR PURPOSE. -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: January 30 2023 $ .Dt APM 4 loongson .Os .Sh NAME @@ -141,48 +141,6 @@ value contains the estimated percentage of battery life available. 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" diff --git a/share/man/man4/man4.macppc/apm.4 b/share/man/man4/man4.macppc/apm.4 index 0739109d13b..2eed4ae0784 100644 --- a/share/man/man4/man4.macppc/apm.4 +++ b/share/man/man4/man4.macppc/apm.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: apm.4,v 1.16 2022/03/31 17:27:22 naddy Exp $ +.\" $OpenBSD: apm.4,v 1.17 2023/01/30 14:43:29 jcs Exp $ .\" .\" Copyright (c) 1998 Marco S. Hyman .\" @@ -9,7 +9,7 @@ .\" LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS .\" FOR A PARTICULAR PURPOSE. .\" -.Dd $Mdocdate: March 31 2022 $ +.Dd $Mdocdate: January 30 2023 $ .Dt APM 4 macppc .Os .Sh NAME @@ -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 -- 2.20.1