This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Implement strlcat [BZ#178]
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Cc: eggert at cs dot ucla dot edu, Zack Weinberg <zackw at panix dot com>
- Date: Fri, 4 Dec 2015 12:12:54 +0100
- Subject: Re: [PATCH] Implement strlcat [BZ#178]
- Authentication-results: sourceware.org; auth=none
- References: <56547472 dot 3010302 at redhat dot com> <5654B1FE dot 5020100 at cs dot ucla dot edu> <5654B796 dot 7070302 at redhat dot com> <5656E018 dot 5020608 at cs dot ucla dot edu> <565F211A dot 2030909 at redhat dot com> <56607CD1 dot 3050209 at cs dot ucla dot edu> <CAKCAbMgDMK9wjfNEJYW7e-cN9s5aVhun6V08OXrcOgYKRYF7_g at mail dot gmail dot com> <5660825E dot 9020901 at cs dot ucla dot edu> <CAKCAbMi2zSJRjS=ceg8UvTYY18UrCWysaOFX+OzvKZQfeR9+SA at mail dot gmail dot com> <5660C545 dot 1090805 at cs dot ucla dot edu>
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.