Sujet : Re: strlcpy and how CPUs can defy common sense
De : joerg-mertens (at) *nospam* t-online.de (Joerg Mertens)
Groupes : comp.miscDate : 27. Jul 2024, 21:53:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v83mno$3hssg$1@jmertens.eternal-september.org>
References : 1 2 3
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (OpenBSD/7.5 (amd64)) tinews.pl/1.1.61
John McCue <
jmccue@magnetar.jmcunx.com> wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Fri, 26 Jul 2024 15:36:17 -0000 (UTC), Ben Collver wrote:
The situation only gets worse for the openbsd version here, not better.
Not the only time the GNU folks have done something smarter than the BSD
folks.
I do not understand this statement in regards to true(1).
<http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html>
This is interesting
<http://www.theregister.co.uk/2016/02/10/line_break_ep2/>
How is GNU's version of true better than OpenBSD's ?
It's definitely better if speed is your only quality critereon.
See page 2 in the articke.
A similar case is yes(1):
https://github.com/coreutils/coreutils/blob/master/src/yes.cversus
https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.cIt was discussed in this Hacker News article:
https://news.ycombinator.com/item?id=14542938Regards