unix-history/.git
30 years agoGet rid of some compilation warnings.
Andreas Schulz [Sun, 28 Nov 1993 10:24:52 +0000 (10:24 +0000)]
Get rid of some compilation warnings.

30 years agoPatch from Gene Stark:
David Greenman [Sun, 28 Nov 1993 09:28:54 +0000 (09:28 +0000)]
Patch from Gene Stark:

Subject: Page fault in PTE area fails in copyout
Index: sys/i386/i386/trap.c FreeBSD-1.0.2

Description:
Reading files of several megabytes into Emacs, or many small
files all at once, would fail with "IO error - bad address".

Repeat-By:
The bug can be exercised by a test program that malloc()'s
a 5MB chunk of memory, and then, without accessing the memory
first, filling it with data from a file using read().
(I read 64k chunks from /dev/wd0d into successive 64k regions
of the 5MB chunk.)  The read() will fail with EFAULT at the first
virtual address boundary that is a multiple of 0x400000.

Fix:
The problem was code in sys/i386/i386/trap.c that tries to
figure out what kind of trap occurred and to handle it appropriately.
It was interpreting any page fault with virtual address
>= vm->vm_maxsaddr as being a user stack segment fault.
In fact, addresses >= USRSTACK are in the user structure/PTE area,
and if they are handled as stack faults, the proper PTE will
not be paged in when it is supposed to be.  This situation comes
up in copyout() and copyoutstr(), if PTE's are accessed for the
first time ever.  The page fault on accessing the nonexistent PTE
is mishandled as a stack fault, and then the fault that occurs on
the subsequent access to the page itself causes copyout to fail
with EFAULT.

30 years agoPatch from Gene Stark:
David Greenman [Sun, 28 Nov 1993 09:16:07 +0000 (09:16 +0000)]
Patch from Gene Stark:
Description:
Running "strip -x 386bsd" (the last step in building a kernel)
over NFS hangs in uninterruptible sleep.

Repeat-By:
Copy an unstripped kernel to an NFS-mounted directory and
run "strip -x" on it.

Fix:
Apply the patch below to /sys/nfs/nfs_bio.c.  The problem is
that vnode_pager_io sets up a uio structure with a null
process pointer, and then nfs_write uses that pointer to
check whether the file size resource limit is exceeded.
If so, nfs_write returns EFBIG, which is ultimately voided
by the call to vm_pager_put in vm_object_page_clean.
The process thus hangs forever waiting for pageout to complete.
The code for nfs_write was evidently cribbed from ufs_write
in ufs_vnops.c.  The check for vp->v_type == VREG is actually
already done earlier in nfs_write, but why not be a little
defensive?  The problem evidently does not exist in isofs
(no writing), or pcfs (done correctly).

(Note that the check for VREG is indeed redundant, and I removed it -DG)

30 years agoMove soundcard.h & ultrasound.h to proper location <machine/...>
Andrey Chernov [Sat, 27 Nov 1993 22:16:44 +0000 (22:16 +0000)]
Move soundcard.h & ultrasound.h to proper location <machine/...>
to allow application access it.

30 years agoFrom: hsu@soda.berkeley.edu
Andrey Chernov [Sat, 27 Nov 1993 19:42:31 +0000 (19:42 +0000)]
From: hsu@soda.berkeley.edu

The problem is that fp->_w is not getting set properly, which causes the
stdio buffer to overflow later on.  Setvbuf() defers this setting, among
other things, to __srefill or __swsetup, neither of which gets called in
this case.  Simply setting fp->_w will fix the bus error, but does not
address the questions of whether any of the other operations in __srefill
and __swsetup are needed or how to correctly force invocation of __srefill
or __swetup, depending on whether the first operation is a read or write.

30 years agoDeclare cnopen, cnclose, and other console routines.
Garrett Wollman [Sat, 27 Nov 1993 19:19:19 +0000 (19:19 +0000)]
Declare cnopen, cnclose, and other console routines.

30 years agoDon't set splbio() in vfs_update, and don't set PCATCH on the sleep.
David Greenman [Sat, 27 Nov 1993 17:07:05 +0000 (17:07 +0000)]
Don't set splbio() in vfs_update, and don't set PCATCH on the sleep.
Ignore all signals sent to system (internal) daemons.

30 years agoAdded mkdep to list of things built in bootstrapld.
Paul Richards [Sat, 27 Nov 1993 16:12:55 +0000 (16:12 +0000)]
Added mkdep to list of things built in bootstrapld.

Not really a shlibs thing but here's as good a place as any to put it.
It needs to be made before libg++ becasue the old mkdep fails.

30 years agoFix some pointer casting that Garrett missed.
David Greenman [Sat, 27 Nov 1993 16:04:36 +0000 (16:04 +0000)]
Fix some pointer casting that Garrett missed.

30 years agoDeclared cn{open,close,read,write,ioctl,select} extern.
Paul Richards [Sat, 27 Nov 1993 06:50:45 +0000 (06:50 +0000)]
Declared cn{open,close,read,write,ioctl,select} extern.

30 years agoFix conflicting prototypes and return values.
Paul Richards [Sat, 27 Nov 1993 06:32:41 +0000 (06:32 +0000)]
Fix conflicting prototypes and return values.

30 years agoFix d_write_t -> d_rdwr_t (typing error).
Garrett Wollman [Fri, 26 Nov 1993 22:44:17 +0000 (22:44 +0000)]
Fix d_write_t -> d_rdwr_t (typing error).

30 years agoUse #include "kernel.h" to get hz variable, rather than declaring it
Garrett Wollman [Fri, 26 Nov 1993 19:08:26 +0000 (19:08 +0000)]
Use #include "kernel.h" to get hz variable, rather than declaring it
extern.

30 years agoRemove 'update' completely; it's an internal daemon in our kernel.
David Greenman [Thu, 25 Nov 1993 13:35:54 +0000 (13:35 +0000)]
Remove 'update' completely; it's an internal daemon in our kernel.

30 years agoDon't start update daemon; it's now internel to the kernel.
David Greenman [Thu, 25 Nov 1993 13:23:46 +0000 (13:23 +0000)]
Don't start update daemon; it's now internel to the kernel.

30 years agomade update an internel daemon (code from John Dyson)
David Greenman [Thu, 25 Nov 1993 13:16:09 +0000 (13:16 +0000)]
made update an internel daemon (code from John Dyson)
fixed broken biodone (specifically, the handling of B_CALL) while I was
at it. Note that the handling of B_CALL in the swap pager is broken; this
is only half of the fix.

30 years agofix from John Dyson for swap space "leak"
David Greenman [Thu, 25 Nov 1993 12:07:42 +0000 (12:07 +0000)]
fix from John Dyson for swap space "leak"
Description:

The function vm_object_collapse merges the objects shadow
into the object if it is possible.  This can have the positive
effect of eliminating objects that are created by vm_map_copy
at perhaps unoportune times when the source object might be
shadowed and collapse cannot occur.  Once a collapse does not
occur and a pager is created, then that object with a new pager
cannot ever be collapsed again.  Therefore shadows that would
have been created will never be collapsed into the 'parent'
object.  The major thing that keeps vm_object_collapse from
doing its job is if the shadow object has the paging_in_progress
flag set.  Now, what happens is that when vm_map_copy is called
and the system is paging heavily, the vm_object_collapse does not
work well in both vm_map_copy and vm_pageout.  Also vm_map_copy
creates new shadow objects a bit too often, and it has an optimization
to increase the reference count to an existing shadow if a pager
does not exist on the source object.  Additionally, the case of using
the default(swap) pager is ok.

In vm_pageout, a check has been added to defer creating a pager for an
object until all of its shadows have no paging in progress, then the
collapse will work very well.  It is problematical to make collapse
work when paging is occuring, so the solution to defer is signicantly
easier.

The end effect of these changes is to minimize the creation of new
shadow objects and their associated pagers and 'lost' paging space.

30 years agoPatch from Julian Elischer:
David Greenman [Thu, 25 Nov 1993 06:30:58 +0000 (06:30 +0000)]
Patch from Julian Elischer:

Here is the fix for the 'hanging' bug.

This bug happenned whenever two operations were already underway on the
disk and a third (non-IO) command was requested..
in this case the process submitting the NON-IO command was requested to wait,
and a flag set so that on completion of the IO commands, the Non-io command
was given priority over any pending IO commands. (the queue is not
allowed to drain while there are pending "special" ops).

The flag that indicated this was not being reset, so further IO commands
were prohibited from that moment on.

30 years agoMake the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, and
Garrett Wollman [Thu, 25 Nov 1993 01:39:19 +0000 (01:39 +0000)]
Make the LINT kernel compile with -W -Wreturn-type -Wcomment -Werror, and
add same (sans -Werror) to Makefile for future compilations.

30 years agoAdded -lgcc_pic back again.
Jordan K. Hubbard [Thu, 25 Nov 1993 01:06:42 +0000 (01:06 +0000)]
Added -lgcc_pic back again.

30 years agoChanged the header title from SETPGRP to SETPGID in the manual page
Andreas Schulz [Wed, 24 Nov 1993 18:19:50 +0000 (18:19 +0000)]
Changed the header title from SETPGRP to SETPGID in the manual page
setpgid.2 . ATS

30 years ago/var/run is cleared on boot. Rerun 'ldconfig /usr/X386/lib' after
Paul Richards [Wed, 24 Nov 1993 05:17:14 +0000 (05:17 +0000)]
/var/run is cleared on boot. Rerun 'ldconfig /usr/X386/lib' after
clearing /var/run if /sbin/ldconfig exists.

30 years agoAdded an MLINK command for the setpgrp system call. It is documented
Andreas Schulz [Tue, 23 Nov 1993 23:46:00 +0000 (23:46 +0000)]
Added an MLINK command for the setpgrp system call. It is documented
in the setpgid manual page. Bug report from phk@data.fls.dk
 (Poul-Henning Kamp/P-HK).

30 years agoSubject: Panic - can't mount route (Soren's changes)
Nate Willams [Tue, 23 Nov 1993 21:36:37 +0000 (21:36 +0000)]
Subject: Panic - can't mount route (Soren's changes)
From: Geoff Rehmet  <g89r4222@braae.ru.ac.za>

Description:
On bootup, probe of wd drives fails (CP30104), and kernel panics
- cannot mount root
It appears that the device probe just times out.
Increasing the timeout back to its old value fixes the problem.
Repeat-By:
SUP FreBSD-current,  Find a CP30104 .....  (ok ok ok)
Basically - Soren's changes barf my disk.

30 years agoFixed a null ptr reference, found by apg@demos.su (Paul Antonov).
Andreas Schulz [Tue, 23 Nov 1993 20:07:31 +0000 (20:07 +0000)]
Fixed a null ptr reference, found by apg@demos.su (Paul Antonov).

30 years agoFrom: Andrew Valencia <vandys@cisco.com>
Christoph Robitschko [Tue, 23 Nov 1993 18:51:43 +0000 (18:51 +0000)]
From: Andrew Valencia <vandys@cisco.com>
backgammon will core dump if the optimizer is used to compile the game.
Add the following patch to /usr/src/backgammon/backgammon/move.c to fix this.
From: chmr
Another small fix (remove new element from the free list).

30 years agoChanged return(-1) in switch_scr to return(EINVAL), because -1 is
Christoph Robitschko [Tue, 23 Nov 1993 18:20:52 +0000 (18:20 +0000)]
Changed return(-1) in switch_scr to return(EINVAL), because -1 is
ERESTART on return from a system call.

30 years agoSync with NetBSD version.
J.T. Conklin [Tue, 23 Nov 1993 00:34:05 +0000 (00:34 +0000)]
Sync with NetBSD version.

30 years agoPOSIX.2ification, from my work with NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:20:04 +0000 (00:20 +0000)]
POSIX.2ification, from my work with NetBSD.

30 years agoPOSIX.2ifciation, from my work with NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:17:17 +0000 (00:17 +0000)]
POSIX.2ifciation, from my work with NetBSD.

30 years agoPOSIX.2ification, from my work with NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:13:55 +0000 (00:13 +0000)]
POSIX.2ification, from my work with NetBSD.

30 years agoPOSIX.2ification, from my work on NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:10:09 +0000 (00:10 +0000)]
POSIX.2ification, from my work on NetBSD.

30 years agoPOSIX.2ifciations, from my work with NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:06:21 +0000 (00:06 +0000)]
POSIX.2ifciations, from my work with NetBSD.

30 years agoPOSIX.2ification, from my work with NetBSD.
J.T. Conklin [Tue, 23 Nov 1993 00:02:23 +0000 (00:02 +0000)]
POSIX.2ification, from my work with NetBSD.

30 years agoChange for POSIX.2 compatibility: Accept either of 'Y' or 'y' --- this should
J.T. Conklin [Mon, 22 Nov 1993 23:56:15 +0000 (23:56 +0000)]
Change for POSIX.2 compatibility: Accept either of 'Y' or 'y' --- this should
be a locale specific regular expression, but I'm hardwiring in POSIX locale
behavior until the localization code is complete.

30 years agoPOSIX.2ification, from my work with NetBSD.
J.T. Conklin [Mon, 22 Nov 1993 23:54:24 +0000 (23:54 +0000)]
POSIX.2ification, from my work with NetBSD.

30 years agoPOSIX.2ification.
J.T. Conklin [Mon, 22 Nov 1993 23:53:17 +0000 (23:53 +0000)]
POSIX.2ification.

30 years agoStop gap measure until we can get Bruce's driver debugged.
Nate Willams [Mon, 22 Nov 1993 23:25:46 +0000 (23:25 +0000)]
Stop gap measure until we can get Bruce's driver debugged.
---
From: sos@login.dkuug.dk (S|ren Schmidt)
Subject: IDE-disk hangs - solution/patches NetBSD/FreeBSD
Summary: fixes for lost interrupts with IDE disks
Keywords: hanging-disk, IDE-disk, lost-interrupt

Due to "popular" demand I'm posting these patches to NetBSD/FreeBSD
instead of mailing them around the world :-)

As many have found out there is a problem when using IDE disks on
FreeBSD. Following is a patch that fixes the problem with lost intterrupts.
Both fixes is based on a patch posted here some month ago by
Stefan Behrens?? (sorry I've lost the original article). But anyway it
works (for me :-).
Basically it does a timeout on lost interrupts, starting the operation
again and logging and error message on the console.

It additionally makes the allready present while loop timeouts
independent of CPU speed, and adds minor numbers for easy access to
dos partitions.

30 years agoSome of the latest changes from Paul K (taken from NetBSD-current).
Jordan K. Hubbard [Mon, 22 Nov 1993 19:05:31 +0000 (19:05 +0000)]
Some of the latest changes from Paul K (taken from NetBSD-current).

30 years agoUpdated to include the Elite Ultra
David Greenman [Mon, 22 Nov 1993 11:15:16 +0000 (11:15 +0000)]
Updated to include the Elite Ultra

30 years ago * Revision 2.14 1993/11/22 10:55:30 davidg
David Greenman [Mon, 22 Nov 1993 11:08:16 +0000 (11:08 +0000)]
 * Revision 2.14  1993/11/22  10:55:30  davidg
 * change all splnet's to splimp's
 *
 * Revision 2.13  1993/11/22  10:53:52  davidg
 * patch to add support for SMC8216 (Elite-Ultra) boards
 * from Glen H. Lowe
 *
 * Revision 2.12  1993/11/07  18:04:13  davidg
 * fix from Garrett Wollman:
 * add a return(0) at the end of ed_probe so that if the various device
 * specific probes fail that we just don't fall of the end of the function.

30 years agopatches necessary to allow "linear" memory mapping for localbus video
David Greenman [Mon, 22 Nov 1993 09:49:54 +0000 (09:49 +0000)]
patches necessary to allow "linear" memory mapping for localbus video
cards. Included in this is a 4.4 device_pager from Mike Hibler as well as
changes from myself and Julian Elischer.

30 years agopatches from Julian Elischer -
David Greenman [Mon, 22 Nov 1993 09:46:45 +0000 (09:46 +0000)]
patches from Julian Elischer -
Added support for mmapping /dev/mem

30 years agoCorrect range checking against M_LAST.
Jordan K. Hubbard [Mon, 22 Nov 1993 07:44:32 +0000 (07:44 +0000)]
Correct range checking against M_LAST.

30 years agoAllow a NULL pattern in global commands (i.e., g//) to reuse the pattern
Andrew Moore [Mon, 22 Nov 1993 06:38:02 +0000 (06:38 +0000)]
Allow a NULL pattern in global commands (i.e., g//) to reuse the pattern
from a previous search, substitution or global command.

30 years agoUpdated entries for London fron Julian Stacey
Jordan K. Hubbard [Mon, 22 Nov 1993 06:23:36 +0000 (06:23 +0000)]
Updated entries for London fron Julian Stacey

30 years agoMissing part of Julians new scsi code, add new driver uk and revise the
Rod Grimes [Mon, 22 Nov 1993 05:40:49 +0000 (05:40 +0000)]
Missing part of Julians new scsi code, add new driver uk and revise the
entries for st.

30 years agoFix address wrapping bug in munmap and smmap.
David Greenman [Sat, 20 Nov 1993 22:27:44 +0000 (22:27 +0000)]
Fix address wrapping bug in munmap and smmap.

30 years agoThe depend target in pic and eqn require the *.tab.h files created by
Paul Richards [Sat, 20 Nov 1993 05:58:23 +0000 (05:58 +0000)]
The depend target in pic and eqn require the *.tab.h files created by
yacc, so we added a beforedepend rule to create them.  Rich

30 years agoIf we're not logging history information, don't demand write access.
Jordan K. Hubbard [Sat, 20 Nov 1993 00:33:12 +0000 (00:33 +0000)]
If we're not logging history information, don't demand write access.

30 years agoChange to close unhappy (non a.out) file descriptor before returning
Jordan K. Hubbard [Fri, 19 Nov 1993 23:14:40 +0000 (23:14 +0000)]
Change to close unhappy (non a.out) file descriptor before returning
from NetBSD.

30 years agoFixed typo in manpage mountd.8 . Found by Ch. Kukulies.
Andreas Schulz [Fri, 19 Nov 1993 20:17:23 +0000 (20:17 +0000)]
Fixed typo in manpage mountd.8 . Found by Ch. Kukulies.

30 years agoadded 5us delay before checking BUSY flag to conform to ATA spec -
David Greenman [Fri, 19 Nov 1993 06:30:02 +0000 (06:30 +0000)]
added 5us delay before checking BUSY flag to conform to ATA spec -
as suggested by John Dyson (dyson@implode.rain.com)

30 years agoRecent Paul K. changes for compiling X shared (tested on my box).
Jordan K. Hubbard [Thu, 18 Nov 1993 20:52:34 +0000 (20:52 +0000)]
Recent Paul K. changes for compiling X shared (tested on my box).

30 years agoUpdated for new scsi code from Julian.
Rod Grimes [Thu, 18 Nov 1993 05:05:42 +0000 (05:05 +0000)]
Updated for new scsi code from Julian.

30 years agoAdded scsi, new command from Julian.
Rod Grimes [Thu, 18 Nov 1993 05:05:28 +0000 (05:05 +0000)]
Added scsi, new command from Julian.

30 years agoNew version of scsi code from Julian
Rod Grimes [Thu, 18 Nov 1993 05:03:27 +0000 (05:03 +0000)]
New version of scsi code from Julian

30 years agoremove HAVE_SETPGRP, because it doesn't detach terminal
Andrey Chernov [Thu, 18 Nov 1993 01:19:06 +0000 (01:19 +0000)]
remove HAVE_SETPGRP, because it doesn't detach terminal
in POSIX (setsid() is only way to do it)

30 years agoIMAXBELL & PENDIN now cleared to satisfy new sio driver.
Andrey Chernov [Thu, 18 Nov 1993 01:03:18 +0000 (01:03 +0000)]
IMAXBELL & PENDIN now cleared to satisfy new sio driver.
From Ian Taylor.
Fix POSIX CLOCAL behaviour, set controlling terminal after it.
Change VTIME from 0 to 1 to fix timeouts waiting for data

30 years agoFrom Ian Taylor.
Andrey Chernov [Thu, 18 Nov 1993 00:59:17 +0000 (00:59 +0000)]
From Ian Taylor.
Fix POSIX detach behaviour, based on setsid() call.
stpgrp(0,0) not used for POSIX now.

30 years agoUpdated to work with new ICMP and PMTU Discovery.
Garrett Wollman [Thu, 18 Nov 1993 00:12:34 +0000 (00:12 +0000)]
Updated to work with new ICMP and PMTU Discovery.

30 years agoFixed comments.
Garrett Wollman [Thu, 18 Nov 1993 00:12:13 +0000 (00:12 +0000)]
Fixed comments.

30 years agoUpdated to work with changes for new ICMP and PMTU Discovery.
Garrett Wollman [Thu, 18 Nov 1993 00:10:53 +0000 (00:10 +0000)]
Updated to work with changes for new ICMP and PMTU Discovery.

30 years agoAdded (disabled) initial support for Path MTU Discovery.
Garrett Wollman [Thu, 18 Nov 1993 00:08:23 +0000 (00:08 +0000)]
Added (disabled) initial support for Path MTU Discovery.
Updated ICMP implementation to be closer to strict RFC 1122 compliance.

30 years ago-r option incorrectly removed:
Andrey Chernov [Thu, 18 Nov 1993 00:08:03 +0000 (00:08 +0000)]
-r option incorrectly removed:
it is impossible to make gcrt0.o from moncrt0.o and gmon.o without it.

30 years agoAdded (disabled) initial support for Path MTU Discovery.
Garrett Wollman [Thu, 18 Nov 1993 00:06:16 +0000 (00:06 +0000)]
Added (disabled) initial support for Path MTU Discovery.

30 years agoFix attach message, make separate line for it
Andrey Chernov [Wed, 17 Nov 1993 23:38:23 +0000 (23:38 +0000)]
Fix attach message, make separate line for it
(old version assumed that line is probe line)

30 years agoFixed comments that start within a comment, so code compiles cleanly with
Garrett Wollman [Wed, 17 Nov 1993 23:32:23 +0000 (23:32 +0000)]
Fixed comments that start within a comment, so code compiles cleanly with
-Wcomment.

30 years agoFixed comments that begin within comments, so code should compile cleanly
Garrett Wollman [Wed, 17 Nov 1993 23:27:04 +0000 (23:27 +0000)]
Fixed comments that begin within comments, so code should compile cleanly
with -Wcomment now.

30 years agoFixed comments that start within comments, so code should compile cleanly
Garrett Wollman [Wed, 17 Nov 1993 23:26:17 +0000 (23:26 +0000)]
Fixed comments that start within comments, so code should compile cleanly
with -Wcomment now.

30 years agoFixed comments that start within a comment, so code compiles cleanly with
Garrett Wollman [Wed, 17 Nov 1993 23:25:28 +0000 (23:25 +0000)]
Fixed comments that start within a comment, so code compiles cleanly with
-Wcomment.

30 years agoIncreased symtab space and added two more options that don't do anything
Garrett Wollman [Wed, 17 Nov 1993 23:24:12 +0000 (23:24 +0000)]
Increased symtab space and added two more options that don't do anything
(yet).

30 years agoChange read() to fread() to get around problem with buffering
Jordan K. Hubbard [Wed, 17 Nov 1993 23:17:39 +0000 (23:17 +0000)]
Change read() to fread() to get around problem with buffering

30 years agoFixed long-standing byte-order dependency in the printing of sockaddrs in the
Garrett Wollman [Wed, 17 Nov 1993 23:02:57 +0000 (23:02 +0000)]
Fixed long-standing byte-order dependency in the printing of sockaddrs in the
routing table code (or so we think).  From bug report by David Greenman.
(This code tries to print things out a character at a time, rather than
a u_short at a time, which should properly reflect the network byte order
used in these structures rather than the PDP11-endian order observed
by David on his system.)

30 years agoFrom: Geoff Rehmet <g89r4222@braae.ru.ac.za>
Nate Willams [Wed, 17 Nov 1993 22:06:18 +0000 (22:06 +0000)]
From: Geoff Rehmet  <g89r4222@braae.ru.ac.za>
To: FreeBSD-bugfiler@freefall.cdrom.com

Description:
After rebuilding the world with shlibs, ps and w fail.
ps fails, complaining that it can't get a kerninfo estimate.
w just fails to get anything in the WHAT field.

It turns out that the getkerninfo call in ps causes a NULL
pointer dereference.
(Again the new linker caused this to be picked up.)
Repeat-By:
executing ps or w.

30 years agoAdded all the NS, ISO, and CCITT stuff back in since we ship that stuff.
Garrett Wollman [Wed, 17 Nov 1993 21:27:20 +0000 (21:27 +0000)]
Added all the NS, ISO, and CCITT stuff back in since we ship that stuff.

30 years agoMake the display ofroute metrics which are not present a little neater
Garrett Wollman [Wed, 17 Nov 1993 20:48:56 +0000 (20:48 +0000)]
Make the display ofroute metrics which are not present a little neater
(align the `-' where the number would be).

30 years agoGet rid of comment-within-comment warnings.
Garrett Wollman [Wed, 17 Nov 1993 20:24:25 +0000 (20:24 +0000)]
Get rid of comment-within-comment warnings.

30 years agoAdded RCS Ids to all files.
Garrett Wollman [Wed, 17 Nov 1993 20:19:25 +0000 (20:19 +0000)]
Added RCS Ids to all files.

30 years agoAdded support for printing the whole collection of route metrics (so we
Garrett Wollman [Wed, 17 Nov 1993 04:42:01 +0000 (04:42 +0000)]
Added support for printing the whole collection of route metrics (so we
can see if any of them are getting set/used).  This is enabled by
`netstat -r -a', which produces two lines per route; otherwise, you get
the usual one-line format which only displays MTU and Rtt.

30 years agoZone name/diagnostic changed to fit in 50 chars
Andrey Chernov [Wed, 17 Nov 1993 02:27:04 +0000 (02:27 +0000)]
Zone name/diagnostic changed to fit in 50 chars
(max zone name length)

30 years agoLittle bugfix in russian timezone
Andrey Chernov [Wed, 17 Nov 1993 02:09:48 +0000 (02:09 +0000)]
Little bugfix in russian timezone

30 years agoDiagnostic "RRS text relocation at %#x (symbol %s)"
Andrey Chernov [Wed, 17 Nov 1993 01:33:24 +0000 (01:33 +0000)]
Diagnostic "RRS text relocation at %#x (symbol %s)"
commented out in #ifdef DEBUG
As Paul told me, it is only informational, nothing more.
I don't want several screens of this information
on each linking (netstat f.e.)

30 years agoNow install /sys/scsi as /usr/include/scsi for use by sbin/scsi.
Rod Grimes [Wed, 17 Nov 1993 01:13:16 +0000 (01:13 +0000)]
Now install /sys/scsi as /usr/include/scsi for use by sbin/scsi.

30 years agoIf netmask == 0, new value changed from 0x8000 to 0x10000
Andrey Chernov [Wed, 17 Nov 1993 00:21:03 +0000 (00:21 +0000)]
If netmask == 0, new value changed from 0x8000 to 0x10000
(don't mess with IRQ15)

30 years agoNew manual pages from Julian for the new version of the scsi system.
Rod Grimes [Tue, 16 Nov 1993 20:55:40 +0000 (20:55 +0000)]
New manual pages from Julian for the new version of the scsi system.

30 years agoFrom: Gary Shaffer <grs@orcas.cbits.SAIC.Com>
Nate Willams [Tue, 16 Nov 1993 20:42:30 +0000 (20:42 +0000)]
From: Gary Shaffer <grs@orcas.cbits.SAIC.Com>
Subject: PING patch for FreeBSD-1.0

Here is the fix for ping so it returns 1 if no packets are returned.  I have
includes the complete "finish" function found in /usr/src/sbin/ping/ping.c
for your review.  The rational behind this fix is includes as a comment in
the code. changes start with the line " * 13NOV93 GRS ". Feel free do to
what you want with this fix..

30 years agoFrom: csgr@alpha.ru.ac.za (Geoff Rehmet)
Nate Willams [Tue, 16 Nov 1993 20:19:56 +0000 (20:19 +0000)]
From: csgr@alpha.ru.ac.za (Geoff Rehmet)
Subject: Bug binding socket in lpd.c
Description:
After building with shared libraries lpd can't bind
its inet socket.
The source address of the socket was not being set before the bind
call - see patch below.
Repeat-By:
try to start lpd ;-)

30 years agoFrom: Geoff Rehmet <g89r4222@braae.ru.ac.za>
Nate Willams [Tue, 16 Nov 1993 20:15:19 +0000 (20:15 +0000)]
From: Geoff Rehmet  <g89r4222@braae.ru.ac.za>

Description:
When wall tries to open it's input file it will dereference
a null pointer if no input file was specified from the command
line.
Repeat-By:
CsMSc1:/home/g89r4222/tmp/wall%wall
Segmentation fault

30 years agonew process tracing code from Sean Eric Fagen (sef@kithrup.com).
David Greenman [Tue, 16 Nov 1993 09:55:03 +0000 (09:55 +0000)]
new process tracing code from Sean Eric Fagen (sef@kithrup.com).
...also, fixed up the syscall args to make GCC happy.

30 years agoDefault magic is back to netbsd ZMAGIC,
Paul Richards [Tue, 16 Nov 1993 07:20:35 +0000 (07:20 +0000)]
Default magic is back to netbsd ZMAGIC,
new a_midmag format needed for dynamic binaries.
-z produces normal ZMAGIC. (this gets our kernel built)
-Z produces netbsd ZMAGIC. (currently default)

30 years agoAdded yp to subdirs. yp code now enabled.
Paul Richards [Tue, 16 Nov 1993 04:37:14 +0000 (04:37 +0000)]
Added yp to subdirs. yp code now enabled.

30 years agoChanged yp.0 to yp.8 for our man system.
Paul Richards [Tue, 16 Nov 1993 04:34:51 +0000 (04:34 +0000)]
Changed yp.0 to yp.8 for our man system.

30 years agoAdded prototypes and declared missing parameter and return types. Added
Garrett Wollman [Tue, 16 Nov 1993 02:47:24 +0000 (02:47 +0000)]
Added prototypes and declared missing parameter and return types.  Added
code to fiddle routes as mentioned in the comment about SLMTU; this is
hidden by `#ifdef experimental' so that people can play with it without
breaking the ``normal'' users.  (SLIP people, please try this code and
see if it does what it is supposed to do.)

30 years agoPer our agreement, IFF_ALTPHYS is now defined and occupies the last
Garrett Wollman [Tue, 16 Nov 1993 02:37:39 +0000 (02:37 +0000)]
Per our agreement, IFF_ALTPHYS is now defined and occupies the last
available bit in if_flags until that field is extended to 32 bits.
`ifconfig' and `ed' will automatically take notice and use the new
name.  NB: this means that the `llc0' and `-llc0' options to `ifconfig'
WILL NO LONGER PERFORM THIS FUNCTION.  The `aui' and `bnc' options
(alternatively, `altphys' and `-altphys') should be used for this
purpose.  Note also that the flags field is NOT extended by this
modification; that will wait until later.

30 years agoRemoved all the ld -x -r stuff -- paranoia.
Paul Richards [Tue, 16 Nov 1993 02:22:16 +0000 (02:22 +0000)]
Removed all the ld -x -r stuff -- paranoia.

30 years agoWe don't want shared boot, so -Bstatic added to ld options
Andrey Chernov [Tue, 16 Nov 1993 02:02:05 +0000 (02:02 +0000)]
We don't want shared boot, so -Bstatic added to ld options

30 years agoMake `netstat -r' print out route's MTU and round-trip time (if defined).
Garrett Wollman [Tue, 16 Nov 1993 01:44:52 +0000 (01:44 +0000)]
Make `netstat -r' print out route's MTU and round-trip time (if defined).
Also make netstat compile without the kernel sources installed.

30 years agoChanged -Z back to -z.
Paul Richards [Tue, 16 Nov 1993 00:45:04 +0000 (00:45 +0000)]
Changed -Z back to -z.

In line with all other ld's -z is now the "standard" ZMAGIC format.

30 years agoSwapped meaning of -Z and -z options.
Paul Richards [Tue, 16 Nov 1993 00:42:57 +0000 (00:42 +0000)]
Swapped meaning of -Z and -z options.

On any other system -z means "standard" ZMAGIC format and is the
default. Therefore I've made -z be standard ZMAGIC and -Z be ZMAGIC
stored in the new a_midmag format.

The "standard" ZMAGIC format is now the default as well.