arleneh@tekecs.TEK.COM (Arlene D. Hills) (08/24/88)
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