Why would anyone care about that stupid decision?

This function is never going to be deleted from the namespace because
it is critical, and the alternatives offered will continue to be less
portable beyond the lifespan of the people who made that irrelevant
and uneducated decision.

But more to the point there is absolutely no reason to even hint a
discouraging word at people from calling it, because if they need it
and think they might not have it, they will tend to make worse decisions.

Emil Engler <m...@emilengler.com> wrote:

> The man page for the obsolete function getpagesize(3) still lacks
> information regarding its removal (and existance) in SUS. This diff
> makes this more clear.
> 
> Index: lib/libc/gen/getpagesize.3
> ===================================================================
> RCS file: /cvs/src/lib/libc/gen/getpagesize.3,v
> retrieving revision 1.11
> diff -u -p -u -p -r1.11 getpagesize.3
> --- lib/libc/gen/getpagesize.3  5 Jun 2013 03:39:22 -0000       1.11
> +++ lib/libc/gen/getpagesize.3  22 May 2021 14:42:55 -0000
> @@ -27,7 +27,7 @@
>  .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
>  .\" SUCH DAMAGE.
>  .\"
> -.Dd $Mdocdate: June 5 2013 $
> +.Dd $Mdocdate: May 22 2021 $
>  .Dt GETPAGESIZE 3
>  .Os
>  .Sh NAME
> @@ -61,5 +61,9 @@ hardware page size.
>  .Sh HISTORY
>  The
>  .Fn getpagesize
> -function call appeared in
> +function call first appeared in
>  .Bx 4.2 .
> +It was part of the
> +.St -susv2
> +as a legacy feature and was removed in
> +.St -susv3 .
> 

Reply via email to