Subject: Re: This should be the final cat(1) patch...
To: Ignatios Souvatzis <is@netbsd.org>
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
List: tech-userlevel
Date: 06/08/2002 17:03:49
--UlsYxwg8UDQn+EKZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 08, 2002 at 10:45:09PM +0200, Ignatios Souvatzis wrote:

> uhm, if this is supposed to be tool-ified, this is not true. maybe somebo=
dy
> should update the style page for this?

I'd frankly rather roll my own in this case. Less code, more immediately
obvious what it's doing. Plus, explicitly using fcntl(2) instead of
flock(2) and then explicitly moving in the opposite direction with err(3)
seems strange. Of course, other things in tools/ use err(3) already, so
there's arguably little value to be gained from not using it. (FWIW,
flock(2) is emulated with fcntl(2) in tools/compat/, but I guess faking out
flock(2) any other way would be quite difficult, as compared with wrapping
fprintf(3).)

Of course, I haven't looked at cat(1) with an eye towards other things that
are unique to BSD or NetBSD or otherwise non-POSIX. I'll take a look at it
from this perspective and post some notes later.

--=20
Mason Loring Bliss   mason@acheron.middleboro.ma.us   Ewige Blumenkraft!
https://www.deadsexy.org/  awake ? sleep : random() & 2 ? dream : sleep;

--UlsYxwg8UDQn+EKZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE9AnE1ykMMY715wXIRAj4KAJ4415k5ch5cKLuCxvUNDNZautviQwCgoCbB
aB7pcsA2MtM6BOqJhl4xZr0=
=4z9/
-----END PGP SIGNATURE-----

--UlsYxwg8UDQn+EKZ--