Ping: [PATCH] inttypes.h: strtoi(), strtou(): Prefer reporting ERANGE over ENOTSUP

2024-02-08 Thread Alejandro Colomar
Hi Guillem! On Wed, Jan 24, 2024 at 07:16:23PM +0100, Alejandro Colomar wrote: > If both ERANGE and ENOTSUP conditions happen, ENOTSUP can be tested > secondarily as `*end != '\0'`. However, there's no secondary mechanism > to test ERANGE. Thus, it is important to re

[PATCH] inttypes.h: strtoi(), strtou(): Prefer reporting ERANGE over ENOTSUP

2024-01-24 Thread Alejandro Colomar
gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=57828> Cc: Guillem Jover Cc: Thorsten Glaser Cc: christos Cc: Taylor R Campbell Cc: Mouse Cc: roy Cc: Signed-off-by: Alejandro Colomar --- man/strtoi.3bsd | 4 +++- man/strtou.3bsd | 4 +++- src/strtoi.c| 14 ++ src/s

Re: strtoi(3) ERANGE vs ENOTSUP

2024-01-20 Thread Alejandro Colomar
Hello Taylor, On Sat, Jan 20, 2024 at 07:07:57PM +, Taylor R Campbell wrote: > PR lib/57828 (https://gnats.NetBSD.org/57828) proposes changing an > edge case of the strtoi(3) function so that if ERANGE and ENOTSUP are > both applicable then it should fail with ERANGE rather than ENOTSUP. > >