[PATCH] Implement strlcat [BZ#178]

Florian Weimer fweimer@redhat.com
Fri Dec 4 11:13:00 GMT 2015


On 12/03/2015 11:42 PM, Paul Eggert wrote:
> On 12/03/2015 10:08 AM, Zack Weinberg wrote:
>> If we're going to have these functions at all, they need to work
>> _exactly_ as they do on *BSD
> 
> There is no "_exactly_". The BSDs differ.

I think the behavior is the same.  The FreeBSD manpage deviation you
mentioned could be a documentation bug.

> As you know, I'd rather we didn't support these poorly-designed APIs;
> but if we do support them at least we can help out a bit by catching any
> apps that fall into these API's weirder cracks.

We'd have to coordinate this with the OpenBSD folks at least.  OpenBSD
made overlapped strings explicitly undefined in 2014, so there is some
precedent for clarification.  Not sure if a direct conversation is
possible.  I've reached out.

Florian



More information about the Libc-alpha mailing list