Subject: misc/375: vmunix is still used in many places (patch included)
To: None <gnats-admin>
From: Mark Weaver <mhw@cs.brown.edu>
List: netbsd-bugs
Date: 07/31/1994 23:20:06
>Number: 375
>Category: misc
>Synopsis: vmunix is still used in many places (patch included)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: mhw
>Arrival-Date: Sun Jul 31 23:20:04 1994
>Originator: Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
>Release: NetBSD 1.0-BETA (31-July-1994)
>Environment:
System: NetBSD cis-ts3-slip4.cis.brown.edu 1.0_BETA NetBSD 1.0_BETA (EXCELSIOR) #14: Sun Jul 31 16:44:39 EDT 1994 mhw@cis-ts3-slip5.cis.brown.edu:/usr/src/sys/arch/i386/compile/EXCELSIOR i386
>Description:
There are many references to /vmunix in the source tree.
In the included patch, I take an extremely conservative
line on these fixes. Every change falls into one of the
following categories:
1. The code would have opened /vmunix
2. The code would've printed "/vmunix"
3. A man page incorrectly referred to /vmunix
There were *MANY* other references in comments, or in places
that were in "#ifndef _PATH_UNIX" or something like that.
If the core team would like, I can fix those too. But here,
I only fix the real bugs.
In addition, the ps(1) man page seemed to think that the
kvm database lived in /var/run. I changed this to /var/db
>How-To-Repeat:
>Fix:
diff -c src/bin/ps/ps.1.mhw1 src/bin/ps/ps.1
*** src/bin/ps/ps.1.mhw1 Mon May 9 06:23:10 1994
--- src/bin/ps/ps.1 Mon Aug 1 01:06:59 1994
***************
*** 98,104 ****
.Tn ID .
.It Fl N
Extract the name list from the specified system instead of the default
! .Dq Pa /vmunix .
.It Fl O
Add the information associated with the space or comma separated list
of keywords specified, after the process
--- 98,104 ----
.Tn ID .
.It Fl N
Extract the name list from the specified system instead of the default
! .Dq Pa /netbsd .
.It Fl O
Add the information associated with the space or comma separated list
of keywords specified, after the process
***************
*** 475,481 ****
exit or stop status (valid only for stopped or zombie process)
.El
.Sh FILES
! .Bl -tag -width /var/run/kvm_vmunix.db -compact
.It Pa /dev
special files and device names
.It Pa /dev/drum
--- 475,481 ----
exit or stop status (valid only for stopped or zombie process)
.El
.Sh FILES
! .Bl -tag -width /var/db/kvm_netbsd.db -compact
.It Pa /dev
special files and device names
.It Pa /dev/drum
***************
*** 484,492 ****
default kernel memory
.It Pa /var/run/dev.db
/dev name database
! .It Pa /var/run/kvm_vmunix.db
system namelist database
! .It Pa /vmunix
default system namelist
.El
.Sh SEE ALSO
--- 484,492 ----
default kernel memory
.It Pa /var/run/dev.db
/dev name database
! .It Pa /var/db/kvm_netbsd.db
system namelist database
! .It Pa /netbsd
default system namelist
.El
.Sh SEE ALSO
diff -c src/gnu/usr.bin/gdb/gdb/infptrace.c.mhw1 src/gnu/usr.bin/gdb/gdb/infptrace.c
*** src/gnu/usr.bin/gdb/gdb/infptrace.c.mhw1 Sat Feb 5 05:03:13 1994
--- src/gnu/usr.bin/gdb/gdb/infptrace.c Mon Aug 1 01:07:54 1994
***************
*** 185,191 ****
names[0].n_un.n_name = "_u";
names[1].n_un.n_name = NULL;
! if (nlist ("/vmunix", names) == 0)
kernel_u_addr = names[0].n_value;
else
fatal ("Unable to get kernel u area address.");
--- 185,191 ----
names[0].n_un.n_name = "_u";
names[1].n_un.n_name = NULL;
! if (nlist ("/netbsd", names) == 0)
kernel_u_addr = names[0].n_value;
else
fatal ("Unable to get kernel u area address.");
diff -c src/lib/libc/sys/reboot.2.mhw1 src/lib/libc/sys/reboot.2
*** src/lib/libc/sys/reboot.2.mhw1 Fri Dec 17 01:29:04 1993
--- src/lib/libc/sys/reboot.2 Mon Aug 1 01:21:26 1994
***************
*** 63,69 ****
Interpreted by the bootstrap program itself, causing it to
prompt on the console as to what file should be booted.
Normally, the system is booted from the file
! .Dq Em xx Ns No (0,0)vmunix ,
where
.Em xx
is the default disk name,
--- 63,69 ----
Interpreted by the bootstrap program itself, causing it to
prompt on the console as to what file should be booted.
Normally, the system is booted from the file
! .Dq Em xx Ns No (0,0)netbsd ,
where
.Em xx
is the default disk name,
***************
*** 124,130 ****
When no options are given (i.e.,
.Dv RB_AUTOBOOT
is used), the system is
! rebooted from file ``vmunix'' in the root file system of unit 0
of a disk chosen in a processor specific way.
An automatic consistency check of the disks is normally performed
(see
--- 124,130 ----
When no options are given (i.e.,
.Dv RB_AUTOBOOT
is used), the system is
! rebooted from file ``netbsd'' in the root file system of unit 0
of a disk chosen in a processor specific way.
An automatic consistency check of the disks is normally performed
(see
diff -c src/lib/libkvm/kvm_nlist.3.mhw1 src/lib/libkvm/kvm_nlist.3
*** src/lib/libkvm/kvm_nlist.3.mhw1 Sun May 8 23:15:37 1994
--- src/lib/libkvm/kvm_nlist.3 Mon Aug 1 01:22:27 1994
***************
*** 71,78 ****
function returns the number of invalid entries found.
If the kernel symbol table was unreadable, -1 is returned.
.Sh FILES
! .Bl -tag -width /var/db/kvm_vmunix.db -compact
! .It Pa /var/db/kvm_vmunix.db
.El
.Sh SEE ALSO
.Xr kvm 3 ,
--- 71,78 ----
function returns the number of invalid entries found.
If the kernel symbol table was unreadable, -1 is returned.
.Sh FILES
! .Bl -tag -width /var/db/kvm_netbsd.db -compact
! .It Pa /var/db/kvm_netbsd.db
.El
.Sh SEE ALSO
.Xr kvm 3 ,
diff -c src/libexec/rpc.rstatd/rstat_proc.c.mhw1 src/libexec/rpc.rstatd/rstat_proc.c
*** src/libexec/rpc.rstatd/rstat_proc.c.mhw1 Thu May 26 06:19:48 1994
--- src/libexec/rpc.rstatd/rstat_proc.c Mon Aug 1 01:24:23 1994
***************
*** 138,144 ****
void *kfd;
struct nlist *nl;
{
! int n = nlist("/vmunix", nl);
if (nl[0].n_value == 0)
return(n);
--- 138,144 ----
void *kfd;
struct nlist *nl;
{
! int n = nlist("/netbsd", nl);
if (nl[0].n_value == 0)
return(n);
diff -c src/sbin/dmesg/dmesg.8.mhw1 src/sbin/dmesg/dmesg.8
*** src/sbin/dmesg/dmesg.8.mhw1 Wed May 11 06:13:47 1994
--- src/sbin/dmesg/dmesg.8 Mon Aug 1 01:25:48 1994
***************
*** 52,58 ****
instead of the default ``/dev/kmem''.
.It Fl N
Extract the name list from the specified system instead of the default
! ``/vmunix''.
.El
.Sh SEE ALSO
.Xr syslogd 8
--- 52,58 ----
instead of the default ``/dev/kmem''.
.It Fl N
Extract the name list from the specified system instead of the default
! ``/netbsd''.
.El
.Sh SEE ALSO
.Xr syslogd 8
diff -c src/sbin/savecore/savecore.c.mhw1 src/sbin/savecore/savecore.c
*** src/sbin/savecore/savecore.c.mhw1 Mon Aug 1 01:42:13 1994
--- src/sbin/savecore/savecore.c Mon Aug 1 01:36:30 1994
***************
*** 432,438 ****
syslog(LOG_ERR, "%s: %s",
path, strerror(nw == 0 ? EIO : errno));
syslog(LOG_WARNING,
! "WARNING: vmunix may be incomplete");
exit(1);
}
}
--- 432,438 ----
syslog(LOG_ERR, "%s: %s",
path, strerror(nw == 0 ? EIO : errno));
syslog(LOG_WARNING,
! "WARNING: /netbsd may be incomplete");
exit(1);
}
}
***************
*** 440,446 ****
syslog(LOG_ERR, "%s: %s",
vmunix ? vmunix : _PATH_UNIX, strerror(errno));
syslog(LOG_WARNING,
! "WARNING: vmunix may be incomplete");
exit(1);
}
if (compress)
--- 440,446 ----
syslog(LOG_ERR, "%s: %s",
vmunix ? vmunix : _PATH_UNIX, strerror(errno));
syslog(LOG_WARNING,
! "WARNING: /netbsd may be incomplete");
exit(1);
}
if (compress)
diff -c src/sys/arch/pmax/stand/mkboottape.c.mhw1 src/sys/arch/pmax/stand/mkboottape.c
*** src/sys/arch/pmax/stand/mkboottape.c.mhw1 Mon May 30 07:08:56 1994
--- src/sys/arch/pmax/stand/mkboottape.c Mon Aug 1 01:50:09 1994
***************
*** 233,238 ****
usage()
{
(void)fprintf(stderr,
! "usage: %s [-b] tapedev vmunix minirootdev size\n", __progname);
exit(1);
}
--- 233,238 ----
usage()
{
(void)fprintf(stderr,
! "usage: %s [-b] tapedev netbsd minirootdev size\n", __progname);
exit(1);
}
diff -c src/usr.bin/fstat/fstat.1.mhw1 src/usr.bin/fstat/fstat.1
*** src/usr.bin/fstat/fstat.1.mhw1 Tue Jun 14 06:30:45 1994
--- src/usr.bin/fstat/fstat.1 Mon Aug 1 01:51:45 1994
***************
*** 73,79 ****
.Pa /dev/kmem .
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /vmunix .
.It Fl n
Numerical format. Print the device number (maj,min) of the filesystem
the file resides in rather than the mount point name; for special
--- 73,79 ----
.Pa /dev/kmem .
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /netbsd .
.It Fl n
Numerical format. Print the device number (maj,min) of the filesystem
the file resides in rather than the mount point name; for special
diff -c src/usr.bin/netstat/netstat.1.mhw1 src/usr.bin/netstat/netstat.1
*** src/usr.bin/netstat/netstat.1.mhw1 Fri May 13 07:51:53 1994
--- src/usr.bin/netstat/netstat.1 Mon Aug 1 01:52:06 1994
***************
*** 146,152 ****
(the network manages a private pool of memory buffers).
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /vmunix .
.It Fl n
Show network addresses as numbers (normally
.Nm netstat
--- 146,152 ----
(the network manages a private pool of memory buffers).
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /netbsd .
.It Fl n
Show network addresses as numbers (normally
.Nm netstat
***************
*** 281,287 ****
.Bx 4.2 .
.\" .Sh FILES
.\" .Bl -tag -width /dev/kmem -compact
! .\" .It Pa /vmunix
.\" default kernel namelist
.\" .It Pa /dev/kmem
.\" default memory file
--- 281,287 ----
.Bx 4.2 .
.\" .Sh FILES
.\" .Bl -tag -width /dev/kmem -compact
! .\" .It Pa /netbsd
.\" default kernel namelist
.\" .It Pa /dev/kmem
.\" default memory file
diff -c src/usr.bin/nfsstat/nfsstat.1.mhw1 src/usr.bin/nfsstat/nfsstat.1
*** src/usr.bin/nfsstat/nfsstat.1.mhw1 Tue Jun 14 06:31:42 1994
--- src/usr.bin/nfsstat/nfsstat.1 Mon Aug 1 01:52:45 1994
***************
*** 59,65 ****
.Pa /dev/kmem .
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /vmunix .
.It Fl w
Display a shorter summary of
.Tn NFS
--- 59,65 ----
.Pa /dev/kmem .
.It Fl N
Extract the name list from the specified system instead of the default
! .Pa /netbsd .
.It Fl w
Display a shorter summary of
.Tn NFS
***************
*** 69,75 ****
.El
.Sh FILES
.Bl -tag -width /dev/kmem -compact
! .It Pa /vmunix
default kernel namelist
.It Pa /dev/kmem
default memory file
--- 69,75 ----
.El
.Sh FILES
.Bl -tag -width /dev/kmem -compact
! .It Pa /netbsd
default kernel namelist
.It Pa /dev/kmem
default memory file
diff -c src/usr.bin/w/uptime.1.mhw1 src/usr.bin/w/uptime.1
*** src/usr.bin/w/uptime.1.mhw1 Mon May 9 06:52:29 1994
--- src/usr.bin/w/uptime.1 Mon Aug 1 01:53:02 1994
***************
*** 47,54 ****
the number of users, and the load average of the system over the last
1, 5, and 15 minutes.
.Sh FILES
! .Bl -tag -width /vmunix
! .It Pa /vmunix
system name list
.El
.Sh SEE ALSO
--- 47,54 ----
the number of users, and the load average of the system over the last
1, 5, and 15 minutes.
.Sh FILES
! .Bl -tag -width /netbsd
! .It Pa /netbsd
system name list
.El
.Sh SEE ALSO
diff -c src/usr.bin/w/w.1.mhw1 src/usr.bin/w/w.1
*** src/usr.bin/w/w.1.mhw1 Mon May 9 06:52:29 1994
--- src/usr.bin/w/w.1 Mon Aug 1 01:53:17 1994
***************
*** 72,78 ****
.It Fl N
Extract the name list from the specified system instead of the
default
! .Dq /vmunix .
.It Fl n
Show network addresses as numbers (normally
.Nm w
--- 72,78 ----
.It Fl N
Extract the name list from the specified system instead of the
default
! .Dq /netbsd .
.It Fl n
Show network addresses as numbers (normally
.Nm w
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------