unix-history/.git
31 years agoMajor rewrite of npx code (npx-0.5 + 2 patches to it)
Bruce Evans [Sun, 23 May 1993 00:00:00 +0000 (00:00 +0000)]
Major rewrite of npx code (npx-0.5 + 2 patches to it)

This is version 0.5 of Bruce Evans wonderful npx code.  He
supplied 2 more patches to me after shipping me the initial 0.5 release,
they have been applied to this code.  I have also added a small change
to the npx.c file that causes the probe information to report the correct
number of registers.

There were also some small changes to the original diffs by Bruce
to make this install on top of a 0.2.3 patch kit source tree.

It includes fixes that now allow this code to work on 386+387 machines!

Date: Wed Apr 21 06:41:47 PDT 1993

AUTHOR: Bruce Evans (???)
386BSD-Patchkit: patch00154

31 years agoRewritten floppy driver
Julian Elischer [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Rewritten floppy driver

This is a rewritten floppy drive, you will need to read the
source to see all the changes.  They are massive.

AUTHOR: Julian Elischer (???)
386BSD-Patchkit: patch00153

30 years agoINCREASED tcp_sendpace AND tcp_recvspace TO 16K BYTES
David Greenman [Fri, 20 Aug 1993 00:00:00 +0000 (00:00 +0000)]
INCREASED tcp_sendpace AND tcp_recvspace TO 16K BYTES

This is a experimental patch, it should increase the performance of
TCP/IP, but may actually slow it down when talking to certain
implementations of TCP/IP.

PLEASE report any problems with this patch to rgrimes@agora.rain.com,
as we need feedback.  If it seems to really help, we would be interested
in that too.

This patch has been revised, most people should now install this patch,
if it creates a problem for you please let us know.  You can work
around this by adding an options "TCP_SMALLSPACE" to you kernel config
file.

AUTHOR: David Greenman (davidg@implode.rain.com)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00152

31 years agoAdds NFS support for isofs filesystem code.
Jagane D Sundar [Fri, 23 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Adds NFS support for isofs filesystem code.

This patch provides the functions fhtovp and vptofh required for NFS
support of the isofs filesystems. After applying this patch you can NFS export
isofs mounted filesystems.

Date: Fri, 12 Mar 93 12:36:53 -0800

AUTHOR: Jagane D Sundar ( jagane@netcom.com )
386BSD-Patchkit: patch00151

31 years ago57600 and 115200 baud kernel, includes tip, and uucp support
David Greenman [Thu, 22 Apr 1993 00:00:00 +0000 (00:00 +0000)]
57600 and 115200 baud kernel, includes tip, and uucp support

   The following patches add support for 57600 and 115200 baud in the kernel,
include files, tip, and uucp.

Date: Thu, 22 Apr 93 02:23:34 -0700

AUTHOR: davidg@implode.rain.com (David Greenman)
AUTHOR: rgrimes@agora.rain.com (Rodney W. Grimes)
386BSD-Patchkit: patch00150

31 years agoFixed error reported in new scsi code, cd.c and sd.c, st.c was okay
Julian Elischer [Sun, 23 May 1993 00:00:00 +0000 (00:00 +0000)]
Fixed error reported in new scsi code, cd.c and sd.c, st.c was okay

The block number when an error occured was not properly reported due
to extra commas (,) in some printfs.

Added support for the Pioneer DRM-600 cdrom changer which uses logical
unit number to change cdroms.  This is simply an add to the table in scsiconf.c
Rod Grimes

AUTHOR: Julian Elischer (???)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00149

31 years agoImproved expr
J.T. Conklin [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Improved expr

expr did not handle: parens, string expressions that happen
to be numeric, division by zero, or regular expression error
messages.  This patch fixes all of those bugs, plus makes
some performance / memory use enhancements.

Regression Tests:
$ expr \( 2 + 3 \) \* 5 $ expr '0000001' : '.*\(.....\)$'
25 00001
$ expr 0123 $ expr 0123 = 123
0123 1
$ expr '0001' : '.*\(' $ expr '0001' : '[abc'
expr: unmatched () expr: unmatched []
$ expr 1 / 0 $ expr 1 % 0
expr: devision by zero expr: devision by zero
$ expr 0; echo $? $ expr 1; echo $?
0 1
1 0

Date: Tue, 23 Mar 93 11:38:57 PST

AUTHOR: J.T. Conklin <conklin@talisman.kaleida.com>
386BSD-Patchkit: patch00148

31 years agoDetect and prevent kernel deadlocks in VM system
Paul Kranenburg [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Detect and prevent kernel deadlocks in VM system

Both deadlocks result from VM objects with dirty pages entering the object
cache. Objects enter the object cache if their reference count drops to
zero and they have the 'can_persist' bit set. Normally, the persist bit
is turned off when the object is going to be written to. But there appear
to be circumstances under which the bit is not cleared when it ought to be.
One such case arises when one of the objects' resident pages is written
behind the VM system's back (eg. by exploiting another bug such as running
"main{} { read(0, 0, 1); }"). Another example (see code below) involves
mmap()ing a file read only, and then using mprotect() to enable writing
on the mapped addresses.

Let's consider the first case. The program's text is mapped read only by
the execve(2) system call. The program bug causes a protection violation,
the kernel bug causes it to missed (the read() completes, modifying the
text segment). The program exits, the text object's refcount goes to zero
and the object enters the object cache. All of the objects pages are
put on the inactive list, during which the pmap module is consulted. The
hardware has noticed the inadvertent write to one of the pages, so this
page's clean bit is now turned off. This dirty page now hangs around
on the inactive list for a bit, until the pageout daemon decides it is
time for this page to recycled. Since the page is not clean, a pager
(in this case the vnode pager) is called upon to write the page's contents
to its proper backing store. The VFS write routine is called to do the dirty
work. This routine decides that the associated VM object can no longer
be cached and notifies the VM object layer of this fact. Since the refcount
was already zero the object gets destroyed here and now. But it then it is
noticed that a paging operation is in progress on this object (this is
in vm_object_terminate()) and the current process is put to sleep waiting
the pageout to finish. Remember that all this takes place in the context
of the pager process. The result is a paging daemon that will sleep forever.

In the second case, a similar sequence of events lead to a deadlock on an
IO buffer. I'll be brief this time:

mmap(..., PROT_READ, ...) marks the VM object as cacheable

next mprotect(.., PROT_WRITE) fails to undo that

at process exit, the object enters the cache with dirty pages

another process comes along, opens the same file and writes it

VOP_WRITE() wants to uncache the object still associated with the
vnode. Unfortunately, ufs_write() does so only after acquiring an
IO buffer with balloc().

vm_object_terminate() wants to clean the dirty pages of the object,
so it calls the pager's put routine, which in turn calls VOP_WRITE()

ufs_write() is called again (recursively) and wants the IO buffer
again, which is now locked.

process is put to sleep in bread(), never to wake up again.

The first case clearly demonstrates that you need only one misbehaving
process to bring the pageout daemon to its knees. After that, it won't
take very long before you're left gazing at a not-so-responsive screen.

What can be done about this? I propose the patch to vm/vm_object.c below
as a safe-guard against dirty objects that want to go in the object
cache. Other than this, the kernel code must be carefully screened so
that the 'can_persist' field gets turned off in a timely manner whenever
an object looses its read-only status (vm_map_protect() is a candidate, as is
vm_fault()).

I've also changed ufs_write() to take care not to call vnode_uncache()
while it has buffers locked.

-pk

-----------------------------------------------------------------------
This program demonstrates 'case 2', run it twice in a row and watch
its ps(1) status go to 'D'.

#include <sys/types.h>
#include <sys/mman.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <fcntl.h>

#define SIZE 4096

struct stat statbuf;

main()
{
        char *ad;
        int i, j;
int fd;

fd = open("xxx", O_RDWR|O_CREAT, 0666);
if (fd == -1) {
perror("open");
exit(1);
}
#if 0
if (ftruncate(fd, SIZE) < 0)
perror("ftruncate");
#else
if (lseek(fd, SIZE-1, 0) < 0)
perror("lseek");
if (write(fd, "", 1) != 1)
perror("write");
#endif

if (fstat(fd, &statbuf) < 0)
perror("stat");

printf("statbuf.st_size = %d\n", statbuf.st_size);

ad = mmap(0, SIZE, PROT_READ, MAP_FILE|MAP_SHARED, fd, 0);
if ((int)ad == -1) {
perror("mmap");
exit(0);
}

if (mprotect(ad, SIZE, PROT_READ|PROT_WRITE) < 0)
perror("mprotect");

for (j = 0; j< SIZE; j++)
ad[j] = 1;

/*
munmap(ad, SIZE);
*/
printf("Done\n");
return 0;
}

Date: Tue, 20 Apr 93 09:49:06 +0200

AUTHOR: Paul Kranenburg <pk@cs.few.eur.nl>
386BSD-Patchkit: patch00147

30 years agoDo not allow execution of a file that is open for write access
Mark Tinguely [Tue, 10 Aug 1993 00:00:00 +0000 (00:00 +0000)]
Do not allow execution of a file that is open for write access

This patch fixes the system to not allow you to execute a file that is open
for writting.

AUTHOR: markie (tinguely@hookie.cs.ndsu.NoDak.edu)
386BSD-Patchkit: patch00146

31 years agostddef.h patch for XFree86
Richard Murphey [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
stddef.h patch for XFree86

This patch was required for /usr/include/stdlib.h when building
XFree86 with gcc 1.39.  Untill we get rid of gcc 1.39 completely it
will be useful to those who might build X with gcc 1.39.

Date: Wed, 14 Apr 93 01:05:43 CDT

AUTHOR: Richard Murphey (rich@omicron.rice.edu)
386BSD-Patchkit: patch00145

31 years agoPatch for compress.c max file name length bug
Julian Stacey [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Patch for compress.c max file name length bug

Patch for compress.c max file name length bug

Index: usr.bin/compress 386BSD-0.1

AUTHOR: Julian Stacey <stacey@guug.de> (fallback: <julian@meepmeep.pcs.com>)
386BSD-Patchkit: patch00144

31 years agoNew default 'whois' server address
Steven M. Schultz [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
New default 'whois' server address

Starting on April 1 1993 the NIC whois server changed from
nic.ddn.mil to whois.internic.net.

Repeat-By:
Refer to RFC1400

Index:  usr.bin/whois.c 386BSD-0.1

AUTHOR: Unknown, obtained from comp.unix.2bsd
386BSD-Patchkit: patch00143

31 years agocut -f1 outputs a field separator before the first field.
Simon J Gerraty [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
cut -f1 outputs a field separator before the first field.

cut -f1 outputs a field separator before the first field.

Date: Fri, 2 Apr 1993 01:29:04 +1000
Index: usr.bin/cut 386BSD-0.1

AUTHOR: Simon J Gerraty <sjg@melb.bull.oz.au> <sjg@zen.void.oz.au>
386BSD-Patchkit: patch00142

31 years agoThere are *two* bugs in the 386BSD fifo code
Jay Fenlason [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
There are *two* bugs in the 386BSD fifo code

1: the fi_readers and fi_writers fields of the fifoinfo structure were not being
initialized to 0.  This caused the driver to not sleep the first process to
open the fifo--it thought there was already another process to talk to
(most of the time.)

2: fifo_open() was calling tsleep() without unlocking the inode of the fifo
file.  This caused *any* subsequent access to the file (even an ls (!)) to
hang forever.  Note that this bug was usually masked by bug #1 above.

Note that this patch is suspect:  I think this may result in both the
fifo-reader and the fifo-writer locking the inode at the same time (a no-no).
The kernel might panic if -DDIAGNOSTIC was used (I haven't checked).  I don't
know kernel internals well enough to tell.

Also note that the structure fifo_vnodeops is completely unused (replaced by
the structure fifo_inodeops in ufs/ufs_vnops.c).  The same applies to the
functions fifo_lock() and fifo_unlock().

Date: Wed, 31 Mar 93 17:06:01 EST
Index: sys.386bsd/kern 386BSD-0.1

AUTHOR: Jay Fenlason <hack@datacube.com>
386BSD-Patchkit: patch00141

31 years agodd.c patch to silence compile warnings...
Dave Burgess [Tue, 20 Apr 1993 00:00:00 +0000 (00:00 +0000)]
dd.c patch to silence compile warnings...

Enclosed is a patch to dd.c that silences the warnings that come up
during build.

Index: bin/dd 386BSD-0.1

AUTHOR: Dave Burgess <burgess@hrd769.brooks.af.mil>
386BSD-Patchkit: patch00140

30 years agoBetter errors and fixed UUCP TAYLOR locking in tip
Peter da Silva [Thu, 19 Aug 1993 00:00:00 +0000 (00:00 +0000)]
Better errors and fixed UUCP TAYLOR locking in tip

Handle extra result codes, and obey the Taylor UUCP lock convention.
You also get better error messages.

AUTHOR: Peter da Silva (peter@taronga.com)
386BSD-Patchkit: patch00139

31 years agoTwo fixes to allow NOPROFILE to work from the top level
Rodney W. Grimes [Sun, 11 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Two fixes to allow NOPROFILE to work from the top level

The make files for libterm and the lex lib had unconditionally
added links for profiled libraries, if the profiled libraries are not
build these would fail.  This has been fixed by adding .if !defined(NOPROFILE)
to the Makefiles.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00138

30 years agoMany fixes to the vm system by Yuval Yarom and Bruce Evans
Bruce Evans [Tue, 10 Aug 1993 00:00:00 +0000 (00:00 +0000)]
Many fixes to the vm system by Yuval Yarom and Bruce Evans
Mark VTEXT executables so that install does not cream them

   The following patches were provided by Yuval Yarom and fix the following
problems:

David Greenman:
(Descriptions are in his words. The patches were originally for BSDI, but are
applicable to 386BSD, modified by me when necessary. Patches appear here for
incorporation into 386BSD with his permission. -David Greenman)

1) The page daemon calls vm_map_entry_create to create entries in pager_map.
This call might block waiting for memory.

2) On rare combinations of memory and kernel sizes the system may fault when
allocating the page map structures.  The cause of this is that the estimation
of the number of pages is too low, and the map entry for the additional page
does not fit in the allocated page maps space.  For example if start is
0x10a000 and end is 0x7fe000, the initial estimation is 1755 pages, while
after allocating the required page map space the system finds out there are
1756 pages free.  When attempting to initialize the 1756'th page map entry
the system faults.

3)   Munmap(2) fails to ensure the user does not deallocates parts of
the kernel context of the process, allowing programs like
main(){munmap(0xfdbfe000,8192);} to crash the system with a double
fault.  A similar problem occurs with /dev/vga ioctl VGAIOCUNMAP.

4)   Mmap(2) fails to ensure the user does not maps on parts of the kernel
context of the process, allowing programs like
  #include <sys/types.h>
  #include <sys/mman.h>
  main(){mmap(0xfdbfe000,8192,PROT_READ,MAP_ANON|MAP_FIXED|MAP_PRIVATE,0,0);}
to crash the system with a double fault, and providing a great opportunity
for attaining super user privileges.

Yuval:
The cause of this problem is that, due to a bug in vm_mmap, unnamed
anonymous memory objects are marked as persistant, and remain in the
object cache.  The following patch fixes the problem.

Bruce Evans:
Here are patches to stop ptrace from accessing various inaccessible areas,
to stop direct access to various inaccessible areas from crashing the system,
and a test program.  The patch to sys_process.c requires patch00011 from
the patchkit.

Interesting inaccessible areas include:

1. Unmapped pages below the user area: trap.c faults in a page table just to
   check these.  Up to about 4M of page tables per process may be wasted.
   Not fixed.

2. User area.  Can be read and written using ptrace.  Overwriting the user
   stack and some other items can crash the system.  There may be security
   problems.  Not fixed.

3. User page tables.  Could be read and written using ptrace.  Fixed.

4. Kernel memory.  Could be read and written using ptrace.  Fixed.

5. Last 8M of memory (2 page tables worth).  The top 2 page tables are
   special and must not be used for mapping.  But ptracing to high addresses
   used them and caused panic("pmap_enter: already in pv_tab") on the
   second access.  Fixed.

Bruce

AUTHOR: Yoval Yarom (???), fwd by David Greenman (davidg@implode.rain.com)
AUTHOR: Bruce Evans (???), fwd by David Greenman (davidg@implode.rain.com)
AUTHOR: Paul Kranenburg (pk@cs.few.eur.nl) (trap.c add counter for vmstat)
386BSD-Patchkit: patch00137

30 years agoFixes to allow ps(1) and w(1) to get process command line args
Paul Kranenburg [Sun, 8 Aug 1993 00:00:00 +0000 (00:00 +0000)]
Fixes to allow ps(1) and w(1) to get process command line args

Below is a patch to lib/libutil/kvm.c which allows ps(1) and w(1) to lay
their hands on process command line arguments. Thanks to David Greenman
who taught me about VM shadow objects.

To the best of my knowledge, the diffs are relative to kvm.c.pl2 from the
previous patchkits.

-pk

AUTHOR: Paul Kranenburg (pk@cs.few.eur.nl)
386BSD-Patchkit: patch00136

31 years agoMajor new device support patch, if_ix, com3, com4, speaker, dcfclock
Rodney W. Grimes [Thu, 8 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Major new device support patch, if_ix, com3, com4, speaker, dcfclock

Major rework of GENERICISA, converted to Julians SCSI code, added
devices com3, com4, lpt0, lpa0, lpa1 and pseudo-device speaker.

Major rework of /dev/MAKEDEV, fixed up chown and chmod commands,
added all as an option to build all the most common devices.  Added new
device support.

Fix the error from patch00097 with respect to NLPT should have been
NLPA in the second occurance in conf.c.  Added speaker support.

NOTE:  We are patching an installed file (/dev/MAKEDEV), this will need to
be propogated to /usr/src/etc when that patch is done.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00135

31 years agoMore diagnostics for kmem_malloc panics, gaurd band on NKMEMCLUSTERS,
Andrew Herbert [Thu, 8 Apr 1993 00:00:00 +0000 (00:00 +0000)]
More diagnostics for kmem_malloc panics, gaurd band on NKMEMCLUSTERS,
make param.h more tunable with respect to MCLSHIFT

KMEM_MALLOC:
I solved this problem by ensuring that the buffer cache, which likes doing
malloc(x, M_TEMP) calls and turns out to be by far the main user (spacewise)
of kmem_map, is never able to consume all of the memory available in this
map.

On my 16MB machine, I set NKMEMCLUSTERS to (3072*1024/CLBYTES) in
/sys/i386/include/param.h and changed wfj's /sys/i386/i386/machdep.c
bufpages fix from: [Editor: this part of this patch was moved to patch00113
to reduce .pl levels]

bufpages = min(NKMEMCLUSTERS/2, bufpages);
to
bufpages = min(NKMEMCLUSTERS*2/5, bufpages);

No doubt this is more conservative than is required to avoid the panics, but
it certainly works 100% for me.

Chris:
Panic if kmem_malloc is called with buffer_map as an argument.

VM_MAP_SIMPLIFY:
These 2 additional calls in /sys/i386/vm/vm_kern.c should reduce
fragementation of the vm_map.

MCLSHIFT:
I added some ifndefs so that you can tune the size of mbufs and
mclusters in a kernel config file.  Fixed so that MCLBYTES is dependent
on MCLSHIFT.  Use MCLSHIFT in a kernel config file for tuning the size
of m_buf clusters.  The default size is to small to allow UDP protocols
to use full size ethernet packets, MCLSHIFT=11 -> MCLBYTES=2048 is much
more proper, but this may break other code I have not tested.

AUTHOR: Andrew Herbert (andrew@werple.apana.org.au) (kmem_malloc)
AUTHOR: Chris G. Demetrio (cdg@sun-lamp.cs.berkeley.edu) (kmem_alloc)
AUTHOR: John Dyson - (formerly dyson@ref.tfs.com) (vm_map_simplify)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com) (tunable MCLSHIFT)
386BSD-Patchkit: patch00134

31 years agoMajor line printer fixes, and new driver lpa
Andy Valencia [Tue, 6 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Major line printer fixes, and new driver lpa

This is the major patch to make line printer support a reality finally.
It is a mix of a lot of different work.

Eric Haug's initial fixes for the extra comment, and the miss ordered
include files, but not his DOSism change to make the unit number unit-1, we
have learned from the com ports that doing that is a very bad idea.

  Andy Valencia: Slight cleanup and reorganization, try to handle
restarted syscalls.

AUTHOR: Eric J. Haug (ejh@slustl.slu.edu) (Fixed comments and includes) (lpt)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com) (New lpt probe)
AUTHOR: Wolfgang Stanglmeier (wolf@dentaro.GUN.de) (lpa code)
AUTHOR: Andy Valencia (jtk@netcom.com) (lpa code fixes)
386BSD-Patchkit: patch00133

31 years agoFixes for locates updatedb.csh script, remove -T from sort
Geoff Rehmet [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Fixes for locates updatedb.csh script, remove -T from sort

The shell script from locate updatedb.csh had -T options on
all the sort commands, gnu sort does not support the -T option so these
have been removed.

AUTHOR: Geoff Rehmet (csgr@alpha.ru.ac.za)
386BSD-Patchkit: patch00132

31 years agoFixes for crontab and crond
Adam Glass [Tue, 6 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Fixes for crontab and crond

/usr/src/libexec/crond fixed such that it compiles quitely, many
type casts cleaned up and/or added.

/usr/usr/usr.bin/crontab fixed such that it compiles quitely, installs
with the correct permissions, installs both manual pages,

Updated crontab.386bsd to be a pseudo model crontab much more suited
to 386bsd.

AUTHOR: Adam Glass (glass@postgres.berkeley.edu)
386BSD-Patchkit: patch00131

31 years agoFixes for several manual page errors
Sascha Wildner [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Fixes for several manual page errors

Many small fixes to seven manual pages: sh.1, fread.3, ftp.1,
make.1, awk.1, chpass.1 and csh.1.

AUTHOR: Sascha Wildner (swildner@channelz.GUN.de)
386BSD-Patchkit: patch00130

31 years agoAdd the source code for the pcfs package
James Jegers [Fri, 2 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the source code for the pcfs package

This patch adds the source code for pcfs to /sys and patches
the other files that need fixed to support PCFS.

Ralf Friedl provided the fixes that makes PCFS work with nfs and
some performance improvements.

James Jegers submitted a completely patches version of PCFS with
nfs support in it to the patchkit coordinator, and fixes the bug that was
caused by all that patching.

To use the PCFS filesystem you need to add an options PCFS to
your kernel file and rebuild your kernel.

AUTHOR: Paul Popelka (paulp@uts.amdahl.com)
AUTHOR: Ralf Friedl (friedl@informatik.uni-kl.de) (nfs fixes)
AUTHOR: James Jegers (jimj@miller.cs.uwm.edu) (patchkit submission)
386BSD-Patchkit: patch00129

31 years agoFix the top level /usr/src make file, add contrib, games and share
Rodney W. Grimes [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Fix the top level /usr/src make file, add contrib, games and share

This patch adds the contrib, games and share targets to the
/usr/src/Makefile.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00128

31 years agoAdd the dummy make files for /usr/src/games from the etcdist
Rodney W. Grimes [Fri, 2 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the dummy make files for /usr/src/games from the etcdist

This patch adds Makefile and Makefile.inc to /usr/src/games.
These are dummy place holders, if you wish the games, you must get the
optional 90000 series patch to install them.  Note that the 90000 series
patch supercedes what is in the 0.1 etcdist.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00127

31 years agoAdd the header files for netccitt, netiso and netns to /sys
Rodney W. Grimes [Fri, 2 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the header files for netccitt, netiso and netns to /sys

This patch adds the header files for netccitt, netiso and netns
from the Net/2 release tape.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00126

31 years agoAdd the source code for /usr/src/usr.sbin from the Net/2 tape
Rodney W. Grimes [Wed, 3 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Add the source code for /usr/src/usr.sbin from the Net/2 tape

This patch adds the source code for the /usr/src/usr.sbin from
the Net/2 release tape.  It adds the following programs:

accton edquota flcopy gettable
htable iostat kgmon quotaon
repquota trpt trsp

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00125

31 years agoAdd the source code for /usr/src/usr.bin from the Net/2 tape
Kevin Lahey [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the source code for /usr/src/usr.bin from the Net/2 tape

This patch adds the source code for the /usr/src/usr.bin from
the Net/2 release tape.  It adds the following programs:

error fpr fsplit gprof indent lastcomm
look mt quota sccs tcopy tset
vgrind vmstat window

Kevin Lahey provided the fixes for most of the memory counters
in vmstat, his work was based upon the work by Warren Toomey who wrote
vstat.  Rodney Grimes provided the interrupt counters and other fixes.

It also includes the arnej patch for tset.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
AUTHOR: arnej ???  (tset fixes)
AUTHOR: Kevin Lahey (kml%rokkaku.UUCP@mathcs.emory.edu) (vmstat memory counters)
AUTHOR: Paul Kranenburg (pk@cs.few.eur.nl) vmstat dk_stat fix
386BSD-Patchkit: patch00124

31 years agoMakefile clean up for include, add netccitt and vm
Rodney W. Grimes [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for include, add netccitt and vm

The Makefile for /usr/src/include did not install links or directories
for netccitt or vm.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00123

31 years agoMakefile clean up for rcs it was still using old non .mk syntax
Rodney W. Grimes [Tue, 30 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for rcs it was still using old non .mk syntax

Rewrote the toplevel Makefile for rcs so that it works with the .mk
syntax and fixed the other to work correctly.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00122

31 years agoMakefile clean up for msgs, it was asking for the lcompat library
Rodney W. Grimes [Tue, 30 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for msgs, it was asking for the lcompat library

The msgs program was not in the top level makefile so it was never
noticed that it would not compile due to a missing library (lcompat).  I
removed the request for these libraries and it now compiles and seems to
work.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00121

31 years agoMakefile clean up for groff failing make depend and tags
Rodney W. Grimes [Tue, 30 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for groff failing make depend and tags

Added special make depend and make tags rules to parts of
groff so that they are nops.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00120

31 years agoMakefile clean up for gcc failing make depend
Rodney W. Grimes [Tue, 30 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for gcc failing make depend

Added special make depend rule due to needing to create some
symbolic links for config.h before you can run make depend.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00119

31 years agoMakefile clean up for libg++ failing make depend
Rodney W. Grimes [Tue, 30 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Makefile clean up for libg++ failing make depend

Added CFLAGS so that include files could be found by mkdep,
and so that make depend would invoke the g++ version of cpp.

This also requires some changes in /usr/share/mk files to
support the now valid -+ CFLAG for make depends.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00118

30 years agoAdds vmstat/iostat kernel support and more verbose device probe info
Phil Sutherland [Sun, 8 Aug 1993 00:00:00 +0000 (00:00 +0000)]
Adds vmstat/iostat kernel support and more verbose device probe info
Fix config so that you can have devices without irqs

This patch adds the symbol names to icu.s that vmstat expects
the interrupt counters to be called.  It also adds code to config
so that the names of the interrupts are written at the end of vectors.s
so vmstat can report real device names.  It also cleans up and enables
the logging of stray interrupts.  The counters for false interrupts
are added but the fix for them is not (the fix I have is not done
very good.) A false interrupt is when a device asserts it's interrupt
signal, then removes it before the 8259 can latch it.  This is the number
one cause of stray IRQ7's and IRQ15's.

Additional device probe information is now printed.  This includes
ending I/O address (many drivers do not return the correct value from a
probe this still needs to be fixed), memory address and size, driver
flags passed in by config.

It is now possible to configure devices that do not use an irq,
this is especially handy for the new lpa driver.

During a boot from floppy the system now asks for a root floppy
disk.  Also now reports root on sd0a when new SCSI code is used.

NOTE: The source for vmstat and iostat are added by other patches.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com) (vmstat/iostat, probe)
AUTHOR: Phil Sutherland (philsuth@mycroft.dialix.oz.au) (config no irqs)
AUTHOR: (???@sun-lamp) (autoconf.c add support for floppy swap)
386BSD-Patchkit: patch00117

31 years agoAdd the source code for bugfiler from the Net/2 tape
Rodney W. Grimes [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the source code for bugfiler from the Net/2 tape
Add the source code for uucpd from the Net/2 tape

This patch adds the source code for the bugfiler program from
the Net/2 release tape.

This code was modified to use the bugfiler daemon that is being
maintained by me (Rodney W. Grimes) at bsd.coe.montana.edu.  I would like
to thank Nate for the use of his machine to mantain the bug achive on for
386bsd.  There is also a backup system of the bugfiler running on
sun-lamp.cs.berkeley.edu provided by Chris.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00116

31 years agoAdd missing splx calls to wd driver
Charles Hannum [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Add missing splx calls to wd driver

Guido van Rooij & Charles Hannum noticed this one.  Subject line says
it all.

AUTHOR: Charles Hannum
386BSD-Patchkit: patch00115

31 years agoAdd tcpdump and tcpslice source code to /usr/src/contrib
David Greenman [Wed, 24 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Add tcpdump and tcpslice source code to /usr/src/contrib

This patch adds the source code for tcpdump and tcpslice to
/usr/src/contrib.  These are based upon the 2.2.1 release of bpf.

The source code has been reworked into the standard bsd source
code tree format, new Makefiles have also been written.  This is being
added to the source tree as it is highly kernel dependent and this is
the version that matches the current 386bsd kernel.

NOTE: The patch for the top level makefile (/usr/src/Makefile)
is being delayed for a latter patch, thus there will be one large patch
to this file, instead of many small patches.

AUTHOR: David Greenman (davidg@implode.rain.com)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00114

31 years agoAdd the microtime routines, add dcf clock support fixes
Poul-Henning Kamp [Sat, 15 Aug 1992 00:00:00 +0000 (00:00 +0000)]
Add the microtime routines, add dcf clock support fixes

This patch makes the microtimer kernel routines work correctly
so that you can get more precise timestamps from gettimeofday().

It also adds the necessary fixes to be able to install and
use the dcfclock driver.  The driver must be obtain from Poul-Henning Kamp
at this time, as it is still considered in test.  All that you need though
is the driver file itself, all the other changes have been incorporated into
the patchkit.  This should also increase the accuracy of the XTAL clock due
to Poul-Henning Kamp's other clock fixes.

NOTE: The update for files.i386 is in a seperate patch so that it
could be combined with the new device support patch.

AUTHOR: Sean Eric Fagan (sef@moria.cygnus.com) (microtime support)
AUTHOR: Poul-Henning Kamp (phk@data.fls.dk) (dcfclock support)
386BSD-Patchkit: patch00113

31 years agoBPF kernel support for slip and if_we drivers
David Greenman [Wed, 24 Mar 1993 00:00:00 +0000 (00:00 +0000)]
BPF kernel support for slip and if_we drivers

This patch allows you to build a kernel with psuedo-device bpf
that works correctly.  These are not fixes of the original bpf code
as shipped with 0.1, but are based upon tcpdump.2.2.1, which was the
lattest version of tcpdump availiable at the time this work was done.

There are major changes to the if_we driver.  These changes include
fixes for trailer protocol support (it now really works), cleaned up ring
buffer to mbuf routines, now enters promiscous mode when ioctl is called
instead of being delayed until the next time weinit is called.

NOTE:
The source code to tcpdump and tcpslice and the manual pages for bpf
will be added by another patchkit patch.  There were fixes made to the
bpf-package.386bsd.tar.Z that David Greenman put togeather: fixed SLMTU back
to the stock value of 296, update call to selwakeup so that a pid_t is passed
instead of a pointer to a proc structure)

AUTHOR: David Greenman (davidg@implode.rain.com)
AUTHOR: Marc Frajola (marc@escargot.rain.com)
AUTHOR: Rodney W. Grimes(rgrimes@agora.rain.com)
386BSD-Patchkit: patch00112

31 years agoAdd the source code for fdisk, quotacheck, and mount_pcfs to sbin
Julian Elischer [Sun, 4 Apr 1993 00:00:00 +0000 (00:00 +0000)]
Add the source code for fdisk, quotacheck, and mount_pcfs to sbin

This patch adds the source code for the fdisk program that Julian
Elischer wrote.  Includes manual pages and lattest bug fixes as of 4/4/93.

This patch adds the source code for the quotacheck program from
the Net/2 release tape.  There are 2 uninitialized variables in the Net/2
code.  dev_bsize is initialized in the wrong place; this bug only shows
itself if quotacheck is run on more than one disk partition.

This patch adds the source code for the mount_pcfs program that
is part of the pcfs package by Pual Popelka.

AUTHOR: Julian Elischer (???) (fdisk)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com) (Net/2 quotacheck)
AUTHOR: Paul Popelka (paulp@uts.amdahl.com) (mount_pcfs)
AUTHOR: Kent Talarico (kent@shipwreck.tsoft.net) (Net/2 quotacheck fixes)
386BSD-Patchkit: patch00111

31 years agodump not mapping last inode in fs
Keith Bostic [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
dump not mapping last inode in fs

Patch line pretty much says it all.  This bug is forwarded from the 4.4
development team.

AUTHOR: Keith Bostic
386BSD-Patchkit: patch00110

31 years agoFIX VARIOUS LIBC NITS
Branko Lankester [Tue, 2 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIX VARIOUS LIBC NITS

The return value from memccpy() is wrong, according to the manpage.
This fixes it.  Also, fseek() inherited a bug from BNR2.  Fixed.

AUTHOR: Rog Egge & Branko Lankester
386BSD-Patchkit: patch00109

31 years agoFix bogus value for endp in strtod(), remove warnings.
Jordan K. Hubbard [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Fix bogus value for endp in strtod(), remove warnings.

The value of endp returned by strtod() was off by one.  There was also a
const char * vs char * assignment that I took the opportunity to fix.

AUTHOR: Jordan K. Hubbard
386BSD-Patchkit: patch00108

31 years agoFix to ar(1) and ranlib(1) for odd-length symbol names > 16 chars.
Ken Hughes [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Fix to ar(1) and ranlib(1) for odd-length symbol names > 16 chars.

This is a patch for ar(1) and ranlib(1) which fixes a problem for object
modules names longer than 16 characters and odd in length.  The problem
was that such records are padded to make sure the next record started on
an even byte boundary, but during reads the padding character was forgotten,
resulting in an "Inappropriate file type or format" error.

This patch should not affect reading of archive files which were created
correctly with the earlier version.

AUTHOR: Ken Hughes
386BSD-Patchkit: patch00107

31 years agoFix contiguous allocation glitch.
Chris Torek [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Fix contiguous allocation glitch.

386BSD inherits a bug from the 4.3 Reno port for contiguous block allocation.
This fixes it.

AUTHOR: Chris Torek
386BSD-Patchkit: patch00106

31 years agoDon't increment version number twice, include kernel name in version
Charles Hannum [Sun, 28 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Don't increment version number twice, include kernel name in version

Pretty self-explanatory:  The version number was getting updated twice
and it's nice to have the kernel identify itself by name.  This patch
addresses these two problems.

AUTHOR: Kent Talarico and Charles Hannum
386BSD-Patchkit: patch00105

31 years agoOPTIMIZED VERSION OF in_cksum.c FOR I386
Bakul Shah [Fri, 24 Jul 1992 00:00:00 +0000 (00:00 +0000)]
OPTIMIZED VERSION OF in_cksum.c FOR I386

This patch optimizes the internet checksum routine.  It has been claimed
to increase TCP/IP speeds by a factor of 1.2 to 10.  Your mileage may vary.

AUTHOR: Bakul Shah (bvs@bitblocks.com) & Rodney Grimes [Assembly]
386BSD-Patchkit: patch00104

31 years agoFIXES MANUAL PAGES FOR file AND magic COMMANDS
Rodney W. Grimes [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIXES MANUAL PAGES FOR file AND magic COMMANDS

The manual page nroff sources for the file and magic command got munched
by mail or somesuch tool at one time.  All of the nroff commands had two
dots on them instead of one.  This patch corrects that.  The problem was
pointed out on the net and is in one of the buglist as bug MISC002.

AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00103

31 years agoALLOW SELECTION OF 3COM 3C503 AUI/BNC FROM IFCONFIG
Herb Peyerl [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
ALLOW SELECTION OF 3COM 3C503 AUI/BNC FROM IFCONFIG

Herb Peyerl:
There have been questions about the configuration of the AUI/BNC
connectors on the 3Com 3c503 card.  The way the selection is made is to
check for IFF_LLC0 being set in the "ifnet" struct.  If set, the driver
uses AUI, else BNC.  The ifconfig program now allows the following syntax:

ifconfig ec0 inet $hostname aui

ifconfig ec0 inet $hostname bnc

Default with no options yields BNC operation.

Rodney Grimes:
Added llc[0-2] and -llc[0-2] and MORE OUTPUT BITS TO IFCONFIG

AUTHOR: Herb Peyerl (hpeyerl@novatel.cuc.ab.ca
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00102

31 years agoAdds fixed up /usr/src/share
Andy Valencia [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
Adds fixed up /usr/src/share

This patch adds many manual pages to /usr/src/share, including
the new manual pages for bpf, pcfs and spkr.  And most of the other parts of
/usr/src/share from the etcdist.  A lot of cleanup work went into fixing
the etcdist stuff when it was moved.

A revised set of /usr/src/share/mk files is included that fixes
things like support for c++ files in make depend, make cleandir now removes
.depend, tags and the obj link/dir.  Added missing bsd.own.mk.  Added COPY
option to all install commands so you can turn one nob and get either
install -c or install.

Fixed the manual page for tp.4, it had a \(*e (epsilon) character
request that mandoc did not grock, so I replaced it with the word epsilon.

Rodney Grimes about Andy Valencia's fix:
This is a patch based upon Andy Valencia's patch to
/usr/othersrc/share/man/makewhatis.sed.  It REALLY fixes man -k.

NOTE: This patch upgraded at patchkit 0.2.3 to fix usr.share vs share and
add much more of /usr/src/share.  Still did not move dict, doc and misc as
they are rather large.

NOTE: Some of these man pages are seriously out of date and need to
be rewritten.  Also there are no device manual pages for the i386
architecture.  There are many man pages for the vax, tahoe and hp300
that could be edited into man pages for the i386, such as autoconf(8).
I did not include any of the other architectures in this patch, only
the i386 files.

AUTHOR: Andy Valencia (ajv@csd.mot.com) (makewhatis.sed fixes)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com) (all other fixes)
386BSD-Patchkit: patch00101

31 years agoDISABLE CHECKSUM FOR WD CLONES, FIX MULTIBOARD ROUTING, ADD 16 BIT XFER
Barry Lustig [Sun, 20 Sep 1992 00:00:00 +0000 (00:00 +0000)]
DISABLE CHECKSUM FOR WD CLONES, FIX MULTIBOARD ROUTING, ADD 16 BIT XFER

Mike Durkin:
Danpex EW-2016 is an inexpensive (US$85.) allegedly WD8013-compatible
ethernet card.

I have one of these cards also and after fiddling a bit with the source
found that the checksum in the probe fails.  I commented it out and am
using the card successfully, NFS mounting to and from my Sun3s with no
problems.

This patch reports the failure, but doesn't fail the probe because of it.

[ Editor's note: ]
Add "option WDCOMPAT" to enable this.  Do NOT do this if your card
already passes the checksum test,  or you don't have a WD80x3
board currently in your system, since disabling the checksum
will result in the kernel finding a board which isn't there.

Michael Galassi:
Allow routing between multiple Western Digital ethernet boards
which are installed in the same host.

Barry Lustig:
Enable 16 bit transfers for the WD8013 "Combo board".  This patch
is kernel configuration optional -- that is, it will not take full effect
(other than generic fixes) unless you modify your kernel configuration
file and rerun "config".

[ Editor's note: ]
Add "option WD8013" to enable this.  Do NOT do this if you will
have two or more wd boards, one of which is not a "Combo".

AUTHOR: Mike Durkin (mdurkin@tsoft.sf-bay.org)
AUTHOR: Michael Galassi (nerd@percival.rain.com)
AUTHOR: Barry Lustig (barry@ictv.com)
386BSD-Patchkit: patch00100

31 years agoADDS NEW BOOT CODE BY JULIAN ELISCHER
Julian Elischer [Thu, 10 Sep 1992 00:00:00 +0000 (00:00 +0000)]
ADDS NEW BOOT CODE BY JULIAN ELISCHER

[ Editors: ]
This is the new boot block package done by Julian Elischer.  See the
file /sys/i386/boot/README.386BSD for details.  Please note that this
may well become the default boot code, so your comments are appreciated.

AUTHOR: Julian Elischer (julian@ref.tfs.com)
AUTHOR: Rodney W. Grimes [repackaging] (rgrimes@agora.rain.com))
386BSD-Patchkit: patch00099

31 years agoADDS NEW SCSI CODE BY JULIAN ELISCHER
Julian Elischer [Mon, 15 Feb 1993 00:00:00 +0000 (00:00 +0000)]
ADDS NEW SCSI CODE BY JULIAN ELISCHER

[ Editors: ]
  This is the new scsi driver package done by Julian Elischer that supports
many new SCSI devices and controller boards.  See the file /sys/scsi/README
for details.  Please note that this driver is slated to *completely replace*
the current AS driver, so your comments are appreciated, especially those of
you with Adaptec compatable and/or older Adaptec controllers.

AUTHOR: Julian Elischer (julian@ref.tfs.com)
AUTHOR: Rodney W. Grimes [repackaging] (rgrimes@agora.rain.com))
386BSD-Patchkit: patch00098

31 years agoFIXED SUPPORT FOR MANY NEW DEVICES
Jordan K. Hubbard [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIXED SUPPORT FOR MANY NEW DEVICES

[ Editors: ]
  This file adds necessary entries in /sys/i386/conf/{devices,files}.i386,
/sys/i386/i386/conf.c and /dev/MAKDEV for new drivers and the existing
lpt, bpf, and fd (not to be confused with Fd) drivers.  It fixes a typo
in /dev/MAKEDEV (kmem was spelled kmdem) and removes the reference to
flog in the comments.

AUTHOR:         Julian Elischer (julian@ref.tfs.com)
AUTHOR: Jordan K. Hubbard (jkh@violet.berkeley.edu)
AUTHOR:         Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00097

31 years agoPATCH TO CONFIG TO ALLOW COMMENTS IN *.i386
Julian Elischer [Mon, 15 Feb 1993 00:00:00 +0000 (00:00 +0000)]
PATCH TO CONFIG TO ALLOW COMMENTS IN *.i386

Allow files.i386, files and devices.i386 to have commnets
in the form of a leading #.
This in turn allows these files to be patched correctly by the patchkit.

AUTHOR:         Julian Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00096

31 years agoINIT UNINITIALIZED VARIABLE IN ROUTE CODE
Charles Hannum [Sat, 27 Feb 1993 00:00:00 +0000 (00:00 +0000)]
INIT UNINITIALIZED VARIABLE IN ROUTE CODE

Obvious problem, someone forgot to initialize a variable who's value
might then be bogus if a later jump was taken.  Looks like this one
could have caused real problems if a gateway were not directly reachable.

AUTHOR: Charles Hannum
386BSD-Patchkit: patch00095

31 years agoPROPER RETURN VALUES FOR PTY CLOSE ROUTINES.
Charles Hannum [Sat, 27 Feb 1993 00:00:00 +0000 (00:00 +0000)]
PROPER RETURN VALUES FOR PTY CLOSE ROUTINES.

As posted to comp.os.386bsd.bugs, this patch stops ptsclose() and
ptcclose() from returning pseudo-random values, thus making close() of
a file descriptor not seem to return an error when there was none.

AUTHOR: Charles Hannum
386BSD-Patchkit: patch00094

31 years agoBETTER BYTE SWAPPING FOR GCC1 & GCC2
Charles Hannum [Sat, 27 Feb 1993 00:00:00 +0000 (00:00 +0000)]
BETTER BYTE SWAPPING FOR GCC1 & GCC2

The previous byte-swapping macros were rather inefficient, and didn't
take full advantage of the i486 architecture, when available.  It
also didn't work well with gcc2, which is where we're eventually heading.

AUTHOR: Charles Hannum
386BSD-Patchkit: patch00093

31 years agoFIX MAKE DEPEND READING FROM STDIN
Jordan K. Hubbard [Mon, 15 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIX MAKE DEPEND READING FROM STDIN

The SRCS line in the Makefile was wrong for expr, it caused
a make depend to execute the following line:
mkdep  -I. -I/usr/src/bin/expr
which should have been:
mkdep  -I. -I/usr/src/bin/expr expr.c

AUTHOR: The Editors
386BSD-Patchkit: patch00092

31 years agoFIX FLAG HANDLING IN CONFIG & TYPE OF ISA_DEVICE->IRQ
Chris G. Demetriou [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIX FLAG HANDLING IN CONFIG & TYPE OF ISA_DEVICE->IRQ

Chris Demetriou:
This patch fixes handling of the 'flags' keyword in config.

Rodney W. Grimes:
The type of isa_device->irq was int, it is used as a bit field, so
IRQ15 becomes the signbit.  This caused many problems with trying
to use devices at IRQ15.

AUTHOR: Chris Demetriou
AUTHOR:         Rodney W. Grimes        (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00091

31 years agoFIX PERMISSION ERRORS IN NFS
Greg Hackney [Tue, 2 Mar 1993 00:00:00 +0000 (00:00 +0000)]
FIX PERMISSION ERRORS IN NFS

Fixes problem where one gets "permission denied" errors when accessing files
in NFS, even as root, and makes NFS permissions more POSIX compliant.

[ Editor's note:  There has been some controversy over this patch, due to
some initial lack of understanding as to what POSIX dictates here.  The
general consensus is that this is correct, but needs some improvement. ]

AUTHOR: The Unknown Author.
386BSD-Patchkit: patch00090

31 years agoADD STRTOD TO LIBC WHILE FIXING ATOF FP TRAP.
Jörg Wunsch [Mon, 1 Mar 1993 00:00:00 +0000 (00:00 +0000)]
ADD STRTOD TO LIBC WHILE FIXING ATOF FP TRAP.

This version of atof checks for overflow conditions, rather
than simply causing a SIGFP.  It also takes advantage of the overlap
between atof() and strtod() functionality to finally implement the
long-missing strtod in libc (yay!).  Also adjusts awk's config.h to
live with this new fact.

[ Editor's note: ]

ALSO BE SURE TO READ THE TOP LEVEL README FILE FOR THE PATCH KIT.
There are important instructions on how to properly build things
after installing this patch.  If you do not do so, this patch will
not do anything for you.

AUTHOR: Joerg Wunsch
386BSD-Patchkit: patch00089

31 years agoSCSI SUPPORT FOR ADAPTEC AHA-1542A BOARD AND TAPEDRIVE FIXES
James da Silva [Wed, 10 Mar 1993 00:00:00 +0000 (00:00 +0000)]
SCSI SUPPORT FOR ADAPTEC AHA-1542A BOARD AND TAPEDRIVE FIXES

Joerg Lohse:
The current aha1542 driver "as" supports only AHA-1542B controllers.
This patch extends the support to AHA-1542A controllers. The kernel's driver
"as.c" and the sources for "asboot" and "bootas" are patched. The makefile
in directory /sys/i386/stand is extended.

James da Silva:
The SCSI driver as.c assumed fixed-block-size tapedrives.
(Fix produced by Scott Burris)

as.c didn't write file marks.  The driver still doesn't write two filemarks
for end-of-medium, but that is less important.

as.c couldn't read multi-file tapes.  It didn't have any no-rewind devices.
The no-rewind devices have a minor number one greater than the
base number for the target (eg same as partition b for disks).

  Here's what I did with a tape at target 2:
# ln /dev/ras2a /dev/rst2
# mknod /dev/nrst2 c 13 17
  Now I refer to the tape as "/dev/rst2" and "/dev/nrst2".

The tape at SCSI target 4 doesn't work.  The solution is that the devices for
ras4[ad] in the distribution are wrong.  The major numbers should be 13,
 not 11.  Try:
# rm /dev/ras4[ad]
# mknod /dev/ras4a c 13 32
# mknod /dev/ras4d c 13 35
  (but you don't really need the d partition for tapes)
(this fix is from Bill Jolitz)

Rodney W. Grimes:
The target directory in the Makefile was wrong, it tried to install
this stuff in //stand.

AUTHOR: Joerg Lohse (lohse@tech7.informatik.uni-hamburg.de)
AUTHOR: James da Silva (jds@cs.umd.edu) et al
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00088

31 years agoPATCH TO FIX NETSTAT BUILDS AND ADD RWHO, RWHOD AND RUPTIME
Karl Lehenbauer [Tue, 9 Mar 1993 00:00:00 +0000 (00:00 +0000)]
PATCH TO FIX NETSTAT BUILDS AND ADD RWHO, RWHOD AND RUPTIME

Karl Lehenbauer:
The rwho and ruptime commands and the rwho daemon (rwhod) were not
shipped with 386BSD 0.1.  These commands, if rwhod is enabled,
let you see uptime and who information for machines on your LAN.

It can cause a lot of overhead if there are a lot of machines on your
LAN.  A forthcoming multicast version will have much lower overhead.

This patch creates the necessary files to build these commands, along
with manpages of course.

All I did was grab them off of uunet, stick them in the right place, and
compile.  No changes were required.

Rodney W. Grimes:

To build,

1.  cd to /usr/src/usr.sbin/rwhod and do a "make obj", "make" and "make install"
2.  cd to /usr/src/usr.bin/rwho and do a "make obj", "make" and "make install"
3.  cd to /usr/src/usr.bin/ruptime and do a "make obj", "make" and "make install"
4.  set rwhod to YES in /etc/netstart.
5.  reboot

I added the fixes for the top level make files so that these get compiled on
complete builds.  Also added netstat to the top level makefile.

AUTHOR: Karl Lehenbauer (karl@NeoSoft.com)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00087

31 years agoMAX_DOUBLE AND HUGE_VAL ARE TOO HUGE. (SIGNAL 6 ABORTS)
Daniel Poirot [Sat, 27 Feb 1993 00:00:00 +0000 (00:00 +0000)]
MAX_DOUBLE AND HUGE_VAL ARE TOO HUGE. (SIGNAL 6 ABORTS)

Peter da Silva & Nick Handel:
The MAX_DOUBLE and HUGE_VAL values are too big, big enough in
HUGE_VAL's case that you automatically get an abort signal on any attempt
to compare it to another value, resulting in "trap 6" messages and the like.

I heard something about bugs in atof and the like, so these are probably
not the final word, but they get a lot more stuff to compile and run.

[ Editor's note: ]

This is definately not the final word.  This is an interm fix until
the real fix can be released.  ALSO BE SURE TO READ THE TOP LEVEL
README FILE FOR THE PATCH KIT.  There are important instructions
on how to properly build things after installing patches that if
you do not follow this patch will not do anything for you.

AUTHOR: Nick Handel (nhandel@NeoSoft.com)
AUTHOR: Peter da Silva (peter@NeoSoft.com)
AUTHOR: Daniel Poirot (poirot@aio.jsc.nasa.gov)
386BSD-Patchkit: patch00086

31 years agoGROFF COMPILATION FIX
Nick Handel [Sun, 28 Feb 1993 00:00:00 +0000 (00:00 +0000)]
GROFF COMPILATION FIX

Nick Handel:
A "make" from /usr/src will abort due to the absence of a "./grotty"
subdirectory in "/usr/src/usr.bin/groff". The source code for this "grotty"
program is apparently too valuable to distribute, as it was not included.
The binary distribution includes a compiled version, however.  The patch
removes the reference to "grotty" in "/usr/src/usr.bin/groff/Makefile",
and groff should now compile fine.

This patch nolonger removes the reference to "grotty" in
"/usr/src/usr.bin/groff/Makefile", it now supplies the directory and
the missing files.  The source to grotty was obtain from the bsd-sources
on gatekeeper.dec.com.  The version number of this grotty matches that
of the supplied binary.  Also most of files in the groff tree that this
grotty came from are identical to those in the 386bsd 0.1 distribution.

Although it is not the intent of the patchkit to support public software,
this was a piece of code that was provided with the initial distrubution,
thus the error of ommiting the source is being corrected.

AUTHOR: Nick Handel (nick@madhouse.neosoft.com)
AUTHOR: Rodney W. Grimes (rgrimes@agora.rain.com)
386BSD-Patchkit: patch00085

31 years agoTN3270 COMPILATION FIX
Nick Handel [Sun, 28 Feb 1993 00:00:00 +0000 (00:00 +0000)]
TN3270 COMPILATION FIX

A "make" from /usr/src will abort due to the absence of
"/usr/othersrc/share/mk/386bsd.lib.mk" as referenced in
"/usr/src/usr.bin/tn3270/api/makefile".  The correct reference is to
"/usr/othersrc/share/mk/bsd.lib.mk".
After applying the patch, it should compile without complaint.

Well it may compile without error, you well get lots of warnings,
and the resulting binary is known to crash some systems.  This well
be addressed in a later patch.

AUTHOR: Nick Handel (nick@madhouse.neosoft.com)
386BSD-Patchkit: patch00084

31 years agoMAJOR PCCONS FIXES FOR HANG AFTER COPYRIGHT + TIMEOUT FIXES
Bruce Evans [Sun, 14 Mar 1993 00:00:00 +0000 (00:00 +0000)]
MAJOR PCCONS FIXES FOR HANG AFTER COPYRIGHT + TIMEOUT FIXES

A20 INFO (Frank MacLachlan):
The pc_probe code isn't reseting the a20. That is only done in
the bootstrap. The probe code is just trying to reset the keyboard
controller. Alas, the original code uses general purpose routines for
issuing the commands. These general purpose routines read the keyboard
controller and return the value.  According to Bruce this code does not
even touch the A20, so I'm not so sure this is true anymore, rwgrimes.

PCPROBE INFO (Bruce Evans):
On some systems, the boot process hangs after the copyright notice
is displayed.  This was caused by not waiting for commands to complete and
has been fixed by polling the controller until it is finished, or
a timeout count is reached (in which case an error message is printed).
Also, the color/mono test was beeing optimized out due to not
declaring certain values as volatile.  The attributes for the mono mode
were corrected now that the color/mono test works correctly, they were
were displaying black on black under certain conditions.  Removed
the control-alt-delete reboot code, this is a very bad thing to
do to unix anyway!!

COMCONSOLE INFO (Chris Demetriou):
There where several bad typos and other stuff in the file.
It was originally part of my comconsole package.  Also the moving
of pg() is done here, this routine has been moved to a more general
place (i386/i386/cons.c).  Fixed the tab problem in ddb/db_output.c.

[ Editor's note: ]:
This is now an actually fix, not a workaround!

AUTHOR: Scotty ? & Frank MacLachlan (fpm@crash.cts.com) - A20 fix
AUTHOR: Bruce Evans - PCPROBE fixes
AUTHOR: Chris G. Demetriou (cgd@berkeley.edu) - COMCONSOLE
386BSD-Patchkit: patch00083

31 years agoCALIBRATED DELAY ROUTINE
Julian Elischer [Mon, 1 Feb 1993 00:00:00 +0000 (00:00 +0000)]
CALIBRATED DELAY ROUTINE

Many drivers need a good calibrated delay function this
impliments a spinwait(millisecs) which is compatible with that used by
MACH 2.6 and OSF1 1.0.4 because they share the same scsi code which
requires it.

AUTHOR: Julian Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00082

31 years agoKERNEL STRCMP() MOVE
Julian Elischer [Sun, 7 Feb 1993 00:00:00 +0000 (00:00 +0000)]
KERNEL STRCMP() MOVE

Originally ddb had the only copy of strcmp in the kernel so
other parts couldn't link if ddb wasn't compiled in. (e.g. the scsi
system) move strcmp to kern_subr where it belongs.

AUTHOR: Julians Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00081

31 years agoNEW DEVICE SETUP
Julian Elischer [Wed, 10 Feb 1993 00:00:00 +0000 (00:00 +0000)]
NEW DEVICE SETUP

In order to allow the addition of devices easier, I am adding a
number of empty cdevsw and bdevsw entries (allowing easy allocation of
major numbers to devices)

AUTHOR: Julian Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00080

31 years agoCOM DRIVER SELECT FIX
Chris G. Demetriou [Wed, 10 Feb 1993 00:00:00 +0000 (00:00 +0000)]
COM DRIVER SELECT FIX

Patchkit 0.2 changed the way the device select interface worked,
which broke, among other things, the standard com driver.  This patch
will fix this and cure the symptom where the XFree86 server loops
continuously, eating CPU time.  The code for comselect was lifted
straight from Chris Demetriou's (cgd@agate.berkeley.edu) multiport
serial driver.

AUTHOR: Jordan K. Hubbard (jkh@whisker.lotus.ie) & Chris Demetriou
386BSD-Patchkit: patch00079

31 years agoADDED BELL MODE FOR X & X KERNEL DEFAULTS
Rich Murphey [Tue, 9 Feb 1993 00:00:00 +0000 (00:00 +0000)]
ADDED BELL MODE FOR X & X KERNEL DEFAULTS

The patch adds a bell ioctl for X mode, and adds the options
XSERVER and UCONSOLE in the config file so the X code will be compiled
in by default in the generic kernels.

AUTHOR: Rich Murphey (rich@lamprey.utmb.edu)
386BSD-Patchkit: patch00078

31 years agoPANIC REMRQ FIX
William Jolitz [Fri, 11 Dec 1992 00:00:00 +0000 (00:00 +0000)]
PANIC REMRQ FIX

This patch fixes some of the panic remrq reboots.

AUTHOR: Williams Jolitz (withheld)
386BSD-Patchkit: patch00077

31 years agoFIXED INIT FINALLY (??)
David Dawes [Tue, 26 Jan 1993 00:00:00 +0000 (00:00 +0000)]
FIXED INIT FINALLY (??)

This is a patchkit patch, because init.c never got fixed
correctly (even though the originally supplied patch was correct)

AUTHOR: XXX
386BSD-Patchkit: patch00076

31 years agoUNMATCHED SPL() CALL IN VM SYSTEM
Bruce Evans [Fri, 22 Jan 1993 00:00:00 +0000 (00:00 +0000)]
UNMATCHED SPL() CALL IN VM SYSTEM

I found an splbio() without a matching splx().  Even the
indentation suggests bugs!

AUTHOR: Bruce Evans (bde@runx.oz.au)
386BSD-Patchkit: patch00075

31 years agoPAGES LOST IN VM SYSTEM
Paul Mackerras [Fri, 22 Jan 1993 00:00:00 +0000 (00:00 +0000)]
PAGES LOST IN VM SYSTEM

The bug is that the call to vm_page_deactivate() at line 531 of
vm_fault.c does not put the (now no longer needed) page back on the
inactive list, because vm_page_deactivate() only does anything with
active pages.  Consequently, the page is then not on the active,
inactive or free lists and is effectively not available for use.  (It is
not lost forever, though, because it is still on its object's page
queue.)

AUTHOR: Paul Mackerras (paulus@cs.anu.edu.au)
386BSD-Patchkit: patch00074

31 years agoCOMPAQ & OTHER BOOT FIX
Frank Maclachlan [Fri, 22 Jan 1993 00:00:00 +0000 (00:00 +0000)]
COMPAQ & OTHER BOOT FIX

The relevant code from the stage 1 floppy boot,
'/sys/i386/stand/fdbootblk.c', is polling for an interrupt from the
floppy disk controller on interrupt level 6 (line 251).  The problem, I
think, is in line 179 wo enable interrupts *only* from the floppy
controller.
Also, Akihiro Higashi, in article
<1992Sep11.051554.29192@mlab.nttdocomo.co.jp>, reported that he had to
change 3rd & 4th "NOP"s to "JMP .+2"s on his COMPAQ 486/50L. 'NOP' is a
delay macro which alters the AL register.  The specific change is 3rd & 4th
"NOP"s to "JMP .+2"s on his COMPAQ 486/50L. 'NOP' is a delay macro which
alters the AL register.  The specific instances mentioned involve code
resetting the DMA controller's first/last flip-flop and then programming
the DMA controller's mode register. The initialization byte for the mode
register is clobbered by a NOP (I am amazed that the boot works on most
systems!).  This can be fixed by rearranging the code slightly.

AUTHOR: Frank MacLachlan (fpm@crash.cts.com)
386BSD-Patchkit: patch00073

31 years agoWD INITIALIZATION AND PARTITION BOUNDARY
Andrey A. Chernov [Sun, 17 Jan 1993 00:00:00 +0000 (00:00 +0000)]
WD INITIALIZATION AND PARTITION BOUNDARY

This code cleans up some bugs that were introduced by earlier
patches, and fixes up the code which assumed that partitions started
on cylinder boundaries.  Also, some other initialization bugs were
(hopefully) squashed.

AUTHOR: Bruce Evans and Andrew Chernov
386BSD-Patchkit: patch00072

31 years agoCLOCK CALCULATION FIX
Bruce Evans [Sun, 17 Jan 1993 00:00:00 +0000 (00:00 +0000)]
CLOCK CALCULATION FIX

The patch fixes years >= 2000.  The times were off by 14 sec
from about 1988 onwards using the 0.0 time database.  I think the 0.1
database has been hacked to avoid leap seconds.  There are a couple of
versions of the 0.1 database.  The default one has no leap seconds.  The
"right" one gives different differences (11 sec?).

AUTHOR: Bruce Evans (bde@runx.oz.au)
386BSD-Patchkit: patch00071

31 years agoMULTIPLE PROCESSES ON ONE PTY
Julian Elischer [Mon, 11 Jan 1993 00:00:00 +0000 (00:00 +0000)]
MULTIPLE PROCESSES ON ONE PTY

Two processes each write to the same pty in a special case, each
sleeps waiting on theoutput queue.  Unfortunatly, the pty code sleeps
and wakes up on this same address because the sub-field it seeks on is
the first in the output queue structure, and thus has the same address
as the queue as a whole. The solution is to make the pty code sleep and
wakeup on another sub-field of the structure.  The result of the
confusion is that the two processes writing to the pty simply keep
waking each other up (at high priority, and then going to sleep
themselves at high priority)  As a result, all other work on the
processor comes to a stop.

AUTHOR: Julian Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00070

31 years agoARGC ON STACK FIX
Julian Elischer [Sat, 12 Dec 1992 00:00:00 +0000 (00:00 +0000)]
ARGC ON STACK FIX

In placing the argc into the user's addres space, we cannot just
use normal addressing, but rather, must use suword, (a form of copyout()
).

AUTHOR: Julian Elischer (julian@ref.tfs.com)
386BSD-Patchkit: patch00069

31 years agoADD RINT() MATH FUNCTION
Karl Lehenbauer [Thu, 17 Dec 1992 00:00:00 +0000 (00:00 +0000)]
ADD RINT() MATH FUNCTION

There is a manpage for the rint(3) function but it is not
present in libm.  The following patch allows the C version to be
compiled in.  After applying the patch, cd to /usr/src/lib/libm, do a
"make" and "make install", then maybe a "make clean".  libm will then
contain the rint function.

AUTHOR: Karl Lehenbauer (karl@one.neosoft.com)
386BSD-Patchkit: patch00068

31 years agoHANGING CONSOLE FIX
Holger Veit [Tue, 6 Oct 1992 00:00:00 +0000 (00:00 +0000)]
HANGING CONSOLE FIX

The problem is in /sys/kern/tty_pty. Ptsclose calls ttyclose
which invalidates a constty pointing to that tty slot correctly.
Ptcclose does not. Xterm -C grabs the console from elsewhere and assigns
it to its controlling pty. After end of xterm constty still points to
the now invalid struct tty. Ptcclose resets TS_CARR_ON, so that the
process that inherits this invalid console slot, goes to sleep, waiting
on ttopen, because there is "no carrier".

AUTHOR: Holger Veit (veit@du9ds3.uni-duisburg.de)
386BSD-Patchkit: patch00067

32 years agoADDED MORE SYMBOLS TO KERNEL
Warren Toomey [Thu, 28 Nov 1991 00:00:00 +0000 (00:00 +0000)]
ADDED MORE SYMBOLS TO KERNEL

This makes symorder -t keep some symbols in the kernel that are
used by applications such as ps(1) and netstat(1).

AUTHOR: Warren Toomey (wkt@csadfa.cs.adfa.oz.au)
386BSD-Patchkit: patch00066

31 years agoSMALL BUFFER LEAK IN PHYSIO()
Mark Tinguely [Sat, 28 Nov 1992 00:00:00 +0000 (00:00 +0000)]
SMALL BUFFER LEAK IN PHYSIO()

 There appears to be a small buffer leak in kern__physio.c. The
function physio() allocates a buf only for the lifetime of that
function. If the function exits on access error, the buf is not
released. This error was found while looking for M_TEMP allocation (ie.
may not be the direct cause of a known problem). This is a visible
fix. physio() is not called that often to cause a major memory loss.

AUTHOR: Mark Tinguely (tinguely@plains.nodak.edu)
386BSD-Patchkit: patch00065

31 years agoKERNEL SPEEDUP #2
Frank Maclachlan [Sat, 28 Nov 1992 00:00:00 +0000 (00:00 +0000)]
KERNEL SPEEDUP #2

It simply makes certain kernel routines a tiny bit faster. I
noticed that branch/function call addresses and some data items in
'/sys/i386/i386/locore.s' and '/sys/i386/isa/icu.s' are not aligned on
32 bit word boundaries (0 modulo 4).  This causes a small performance
hit on 386DX/486 based machines.  I aligned things on 4 byte boundaries
using a macro, ALIGN32, to perform the alignment since the new version
of the Gnu assembler will probably change the meaning of .align 2.  I
also eliminated an unnecessary instruction in ___divsi3.  I don't claim
a profound performance boost, but every little bit helps!

AUTHOR: Frank MacLachlan (fpm@crash.cts.com)
386BSD-Patchkit: patch00064

32 years agoKERNEL SPEEDUP #1
Poul-Henning Kamp [Thu, 28 Nov 1991 00:00:00 +0000 (00:00 +0000)]
KERNEL SPEEDUP #1

This patch cuts a quite large chunk of the processing in the
kernel. For some unfortunate reasons pmap.c is a focal point from a
performance point of view, this patch improves things a bit, but it is
still the most used routine in the kernel.  The 16.6% is actually the
percentage 'system-time' is cut when doing a make kernel on my machine.

AUTHOR: Poul-Henning Kamp
386BSD-Patchkit: patch00063

32 years agoCOMPAT_43 KERNEL DEPENDENCY CLEANUP
Warren Toomey [Thu, 28 Nov 1991 00:00:00 +0000 (00:00 +0000)]
COMPAT_43 KERNEL DEPENDENCY CLEANUP

 Here is a patch for the use of COMPAT_43 in the 386BSD kernel.
This is an extremely LOW priority patch, because lots of applications
(init, csh, vi) depend on this being defined, so you can't use a kernel
with this option removed. The only application that does cope with this
option missing is my own shell which is POSIX-compliant. But you might
want to add it in now rather than have to rediscover it at a later
stage.

AUTHOR: Warren Toomey
386BSD-Patchkit: patch00062

31 years agoOBSCURE TELNET BUG
William Jolitz [Fri, 11 Dec 1992 00:00:00 +0000 (00:00 +0000)]
OBSCURE TELNET BUG

This patch fixes fixes an obscure telnet that messed up another i
structure because it was using a "freed" process.

AUTHOR: Williams Jolitz (withheld)
386BSD-Patchkit: patch00061

31 years agoREMOVE MATH EMULATION CODE FOR 387 & 486 USERS
Poul-Henning Kamp [Sat, 28 Nov 1992 00:00:00 +0000 (00:00 +0000)]
REMOVE MATH EMULATION CODE FOR 387 & 486 USERS

        This patch allows you to cut the size of your kernel by quite a
chunk, but only if you have a numeric hardware device, ie. i387 or i486.
On systems with the right hardware add either of these lines to your
config file:
options "i486" OR options "i387"
run config and rebuild the kernel.

AUTHOR: Poul-Henning Kamp
386BSD-Patchkit: patch00060

31 years agoV7 IOCTL COMPATABILITY FIXES
Scott Reynolds [Fri, 27 Nov 1992 00:00:00 +0000 (00:00 +0000)]
V7 IOCTL COMPATABILITY FIXES

This patch adds TIOCSTAT to ioctl() and the missing gtty/stty
macros to complete the V7 ioctl() compatibility.

AUTHOR: Scott Reynolds (scott@clmqt.marquette.mi.us)
386BSD-Patchkit: patch00059

8 years ago*** BINARY PATCH --- WARNING: USE ALL BINARIES AT OWN RISK ***
Havard Eidnes [Sun, 6 Mar 2016 10:09:51 +0000 (12:09 +0200)]
*** BINARY PATCH --- WARNING: USE ALL BINARIES AT OWN RISK ***

Binary and manual page for netstat command.

AUTHOR: Havard Eidnes (Havard.Eidnes@runit.sintef.no)
386BSD-Patchkit: patch00058

31 years agoADD THE "netstat" SOURCES TO 386BSD
Havard Eidnes [Fri, 27 Nov 1992 00:00:00 +0000 (00:00 +0000)]
ADD THE "netstat" SOURCES TO 386BSD

I've ported netstat from NET2 to 386bsd version 0.1. The changes
are mostly involved with inserting #ifdefs for ISO, NS and IMP at the
relevant places ("removing" that code, essentially), not compiling some of
the modules (although the source remains toghether with comments in the
Makefile) plus modifying the "unixpr()" routine in unix.c to traverse the
open file table the new way.  The "netstat -r" output looks a bit odd
(although I guess this is the "new way"?), but gives the right information.

NOTE:
This is *NOT* a cannonical patch... these files are generated as
initially modified from the NET2 sources to have Havard's fixes in them.  A
cannonical patch would include the original sources.  For this reason, A
patch level 0 has not been established for these files.

After installation, you must type the following before building:

ln -s /usr/obj/usr.bin/netstat /usr/src/usr.bin/netstat/obj

A binary patch containing the installed executable and manual page is included
after this patch, should you wish to avoid rebuilding it.  Use binaries at
your own risk.

AUTHOR: Havard Eidnes (Havard.Eidnes@runit.sintef.no)
386BSD-Patchkit: patch00057

31 years agoGNU TROFF LEAK - G++ BUG
James Clark [Fri, 27 Nov 1992 00:00:00 +0000 (00:00 +0000)]
GNU TROFF LEAK - G++ BUG

I would guess that the problem is that your copy of groff was
compiled with g++ 1.39.  This version of g++ has a bug that causes a
serious leak in GNU troff.

AUTHOR: James Clark (jjc@jclark.com)
386BSD-Patchkit: patch00056

31 years agoLED's in X MODE
Terry Lee [Sat, 28 Nov 1992 00:00:00 +0000 (00:00 +0000)]
LED's in X MODE

In X mode (pc_xmode), the LEDs are now updated.

AUTHOR: Terry Lee (terry@uivlsi.csl.uiuc.edu)
386BSD-Patchkit: patch00055