Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc



christos%astron.com@localhost (Christos Zoulas) writes:

>>>     POSIX.1-2024 removes asctime_r and ctime_r and does not let
>>>     libraries define them, so remove them except when needed to
>>>     conform to earlier POSIX.  These functions are dangerous as they
>>>     can overrun user buffers.  If you still need them, add
>>>     -DSUPPORT_POSIX2008 to CFLAGS.
>>
>>Hm, that sounds like we should hide asctime_r and ctime_r?
>>
>
> I think that it will break stuff in pkgsrc... We could, I guess.

Visisbility define use is a nice theory but in practice it's a mess.

Probably, before hiding, someone(tm) should build a system with them
hidden and do a bulk build.

More seriously, NetBSD having breaking changes generally does not go
well, unless Linux has had the change for a year, so that upstreams have
had time to adapt.


Home | Main Index | Thread Index | Old Index