Hi! On Tue, Feb 27, 2024 at 06:10:01PM +0100, Guillem Jover wrote: > Hi! > > On Tue, 2024-02-27 at 17:33:16 +0100, Alejandro Colomar wrote: [...] > The strtoi() function is declared in <inttypes.h>. I don't think that > has changed in libbsd.
Oops! I wrote the reproducer too fast. Actually, the problem I saw was
about errc(), but because I tried strtoi() to see if it was the only
function, and it also failed, but I forgot about the right header.
It was also aggravated by the fact that my grepc(1) program didn't find
it. But it's due to a bug I introduced yesterday in grepc(1). :|
$ grepc strtoi /usr/include/bsd/
But grep(1) does find it:
$ grep -rn strtoi /usr/include/bsd/
/usr/include/bsd/inttypes.h:43:intmax_t strtoi(const char *__restrict
nptr, char **__restrict endptr,
And after fixing the bug in grepc(1):
$ grepc strtoi /usr/include/bsd/
/usr/include/bsd/inttypes.h:__BEGIN_DECLS
intmax_t strtoi(const char *__restrict nptr, char **__restrict endptr,
int base, intmax_t lo, intmax_t hi, int *rstatus);
>
> > BTW, thanks for updating strtoi/u(3) from NetBSD! =)
>
> Thanks for handling the upstream interaction in NetBSD!
>
[...]
>
> Ah, it indeed has disappeared. The upstream build system is missing a
> conditional for the header, I'll add this later today and prepare a
> new upstream release.
>
> Another thing which I was aware, but then slipped my mind is that the
> cdefs.h header needs to be placed under a multi-arch qualified
> directory otherwise it will conflict with other instances of the
> library now that it contains arch-specific defines. Will amend that
> with the new Debian upload.
Thanks!
Have a lovely day!
Alex
>
> Thanks,
> Guillem
--
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.
signature.asc
Description: PGP signature

