The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] EGREG
@ 2021-01-17 20:52 Norman Wilson
  2021-01-17 21:14 ` Larry McVoy
  2021-01-18  5:39 ` Andrew Hume
  0 siblings, 2 replies; 7+ messages in thread
From: Norman Wilson @ 2021-01-17 20:52 UTC (permalink / raw)
  To: tuhs

Andrew Hume (dammit andrew):

  i have probed recently about the origins of the b\x1cEGREGb\x1d (its all greg cession's fault) error in Research Unix.
  alas, i recall nothing about this, and can't recall ever getting the message.

===

Your memory fails you, which is not unreasonable for stuff you
probably haven't thought about in more than 30 years:

/*
	SCSI Pass-Thru driver for the TD Systems UD? -- Andrew Hume
	Ninth Edition Unix
*/

[...]

scsiwrite(dev)
	dev_t dev;
{
	register count;
	register struct scsi *p = &scsi[minor(dev)];
	register struct mscmd *cmd = &p->junk->cmd.msg;
	unsigned char flag, bus_id;

	if(p->flag&NEXTWR)
		p->flag &= ~NEXTWR;
	else {
		u.u_error = EGREG;
		return;
	}

As I remember it, EGREG went into errno.h and libc out
of a desire to have some never-normally-used error to
be returned when debugging.  I forget just who was in
the UNIX Room conversation that created it; almost certainly
I was.  I thought andrew was as well; very likely one or
more of andrew td presotto.

I do remember being a bit annoyed at Andrew for putting it
in permanent use in the raw-SCSI driver (which was at the
time of interest mainly to Andrew for controlling an
early optical-disc jukebox, used by the original File
Motel backup system).

As to the origin of `It's all Greg's fault' as a meme,
that was already around and established when I arrived at
the Labs in mid-1984, though Greg himself had already
moved west.  Maybe Doug or Ken remembers how that started.

Andrew himself was responsible for or blamed by more than
one meme of the days.  The scsi driver spawned one, in fact:
the first attempt used a SCSI interface from Emulex, which
never worked quite right, and despite repeated phone calls
to Emulex Andrew could never get it figured out.  He tried
and tried, though, and his attempts spawned the catch
phrase `Time to call Emulex again!'

Norman Wilson
Toronto ON

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [TUHS] EGREG
@ 2021-01-17 14:57 Andrew Hume
  2021-01-17 16:37 ` ron minnich
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Hume @ 2021-01-17 14:57 UTC (permalink / raw)
  To: UNIX Heritage Society

i have probed recently about the origins of the “EGREG” (its all greg cession’s fault) error in Research Unix.
alas, i recall nothing about this, and can’t recall ever getting the message.

however, courtesy of Dave Presotto (i am fairly sure), there was an equivalent error
in Plan 9, where more or less randomly, if your user id was ‘andrew’, system calls would fail.
and yes, i did feel special; this was one of my lesser contributions to Plan 9.
this stopped after a while (several to many months, maybe).

andrew hume


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-18  6:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17 20:52 [TUHS] EGREG Norman Wilson
2021-01-17 21:14 ` Larry McVoy
2021-01-17 23:20   ` Rob Pike
2021-01-18  5:39 ` Andrew Hume
  -- strict thread matches above, loose matches on Subject: below --
2021-01-17 14:57 Andrew Hume
2021-01-17 16:37 ` ron minnich
2021-01-17 16:39   ` Andrew Hume

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).