🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1136

Re: Bug in /etc/arp

#1136
From: Arlene D. Hills
Date: Wed, 24 Aug 1988 00:42
36 lines
1647 bytes
   William Roberts writes:

	Synopsis:       /etc/arp dumps core
	Repeat-By:
	    /etc/arp your_kernel /dev/nosuchmemfile

Here's what it looks like on Tektronix' version of UN*X, known as UTek,
(run on a 4317 [M68000 processor] , if anyone's curious).

I tried this, and got a reasonable error message and *no* core dump.
On our system it looks like:

    % /etc/arp /vmunix /dev/nosuchmem
    arp : usage : arp hostname
    	arp -a [/vmunix] [/dev/kmem]
    	arp -d hostname
    	arp -s hostname ether_addr [temp] [pub]
    	arp -f filename

    % /etc/arp -a /vmunix /dev/nosuchmem
    arp : cannot open /dev/nosuchmem : No such file or directory (sys2)

So I looked at arp.c, and noticed that the UTek implementation uses our
standard error reporting:
    	mf = open(mem, 0);
    	if(mf < 0)
    		ERROR(P_ERR, NULL, O_ERR, "cannot open %s", mem);

So, there *is* a version of UN*X out there on which /etc/arp doesn't have
this error!

--
Arlene D. Hills, Tektronix			Platform Software Sustaining
PO Box 1000, MS 61-215, Wilsonville, OR 97070   Graphics Workstation Division
arleneh@menolly.GWD.TEK.COM  (503) 685-2990 
Technical Details
Message-ID: <10299@tekecs.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!tektronix!orca!tekecs!arleneh
References: <583@sequent.cs.qmc.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!tektronix!orca!tekecs!arleneh
From: arleneh@tekecs.TEK.COM (Arlene D. Hills)
Newsgroups: comp.bugs.4bsd
Subject: Re: Bug in /etc/arp
Summary: Tektronix' implmentation works!
Keywords: arp Un*x ours work
Message-ID: <10299@tekecs.TEK.COM>
Date: 24 Aug 88 00:42:33 GMT
References: <583@sequent.cs.qmc.ac.uk>
Reply-To: arleneh@tekecs.TEK.COM (Arlene D. Hills)
Organization: Wilsonville, OR
Lines: 35