Re: strlcpy and how CPUs can defy common sense

Liste des GroupesRevenir à c misc 
Sujet : Re: strlcpy and how CPUs can defy common sense
De : joerg-mertens (at) *nospam* t-online.de (Joerg Mertens)
Groupes : comp.misc
Date : 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.c

versus

https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c

It was discussed in this Hacker News article:

https://news.ycombinator.com/item?id=14542938

Regards

Date Sujet#  Auteur
26 Jul 24 * strlcpy and how CPUs can defy common sense11Ben Collver
26 Jul 24 +* Re: strlcpy and how CPUs can defy common sense3Stefan Ram
26 Jul 24 i`* Re: strlcpy and how CPUs can defy common sense2Stefan Ram
27 Jul 24 i `- Re: strlcpy and how CPUs can defy common sense1Lawrence D'Oliveiro
27 Jul 24 +* Re: strlcpy and how CPUs can defy common sense5Lawrence D'Oliveiro
27 Jul 24 i`* Re: strlcpy and how CPUs can defy common sense4John McCue
27 Jul 24 i +- Re: strlcpy and how CPUs can defy common sense1Joerg Mertens
28 Jul 24 i `* Re: strlcpy and how CPUs can defy common sense2Lawrence D'Oliveiro
28 Jul 24 i  `- Re: strlcpy and how CPUs can defy common sense1Joerg Mertens
27 Jul 24 `* Re: strlcpy and how CPUs can defy common sense2Bruce Horrocks
27 Jul 24  `- Re: strlcpy and how CPUs can defy common sense1Johanne Fairchild

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal