This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Implement strlcat [BZ#178]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]