From: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
To: Alejandro Colomar <alx.manpages@gmail.com>,
GNU C Library <libc-alpha@sourceware.org>
Cc: linux-man <linux-man@vger.kernel.org>
Subject: Re: bug in roundup(3) from <sys/param.h>
Date: Tue, 17 Jan 2023 11:55:08 -0300 [thread overview]
Message-ID: <e33b8713-d225-0fb3-ca87-abb00b8ec553@linaro.org> (raw)
In-Reply-To: <1825384a-e02a-c19d-eb22-aedc749046bc@gmail.com>
On 16/01/23 17:46, Alejandro Colomar via Libc-alpha wrote:
> Hi!
>
> Do you think this is something to be fixed without important performance penalties, or should we just document the bug and live with it?
That's the problem with ill-defined interfaces, each implementation might
eventually differs. It seems that BSD, AIX, and Solaris follows glibc
implementation by wrapping around (Solaris also provides it through
sysmacros.h instead of param.h). The exception is macOS that saturates
the value.
I really won't bother with this interface, since potentially changing it
might generate more potentially breakage than improvements.
next prev parent reply other threads:[~2023-01-17 14:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 20:46 Alejandro Colomar
2023-01-17 2:22 ` Alejandro Colomar
2023-01-17 14:55 ` Adhemerval Zanella Netto [this message]
2023-01-17 19:16 Wilco Dijkstra
2023-01-17 19:50 ` Alejandro Colomar
2023-01-17 20:11 ` Paul Eggert
2023-01-17 20:13 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e33b8713-d225-0fb3-ca87-abb00b8ec553@linaro.org \
--to=adhemerval.zanella@linaro.org \
--cc=alx.manpages@gmail.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).