Compare commits

...
4689 Commits
Author SHA1 Message Date
cvs2svn 6231be0ccf This commit was manufactured by cvs2svn to create tag
'RELENG_2_0_5_RELEASE'.
1995-06-10 19:44:55 +00:00
Jordan K. Hubbard e93145a03b Fix a bug where selecting no radio buttons resulted in an error. 1995-06-10 19:44:54 +00:00
Jordan K. Hubbard 2cba368dc7 Set the screen savers properly (this is a post 2.0.5 fix). 1995-06-10 19:38:27 +00:00
Jordan K. Hubbard 3ffc0e5501 Move the info files to the right place for secure dists.
Don't die a terrible death if we can't find an info file.
1995-06-10 14:20:10 +00:00
Jordan K. Hubbard 2084588d37 Name the DES distribution correctly. 1995-06-10 09:35:19 +00:00
Jordan K. Hubbard 5cb365cbc3 Remove the now-unnecessary crc checking code (for now). 1995-06-10 09:14:53 +00:00
Jordan K. Hubbard 7999dfbecc Fix a stupid bug in dependency checking that prevented any
of the "depended" packages from extracting.  Whoops!
Thanks, Satoshi!
Submitted by:	asami
1995-06-10 09:04:13 +00:00
Jordan K. Hubbard e5a29c6d0f Move krb stuff to DES distribution, but this time in
a different way from before.
1995-06-10 09:00:35 +00:00
Jordan K. Hubbard 7e361f2c2c Make DES stuff a separate distribution. 1995-06-10 08:59:27 +00:00
Jordan K. Hubbard fd4e3b296b Add a warning about pkg_manage misbehaving. Not even pkg_manage's
fault, really.  Pkg_add is still broken from the dependency file hacks
inflicted upon it.. :(
1995-06-10 08:24:28 +00:00
Jordan K. Hubbard 9e4ce4b5a4 Don't have this blow up if it can't record itself. 1995-06-10 08:14:08 +00:00
Jordan K. Hubbard 923e104a79 Change cpio -v to cpio -V to make Poul happy. 1995-06-10 07:58:37 +00:00
Jordan K. Hubbard 1e82b1db2e Fix a bug that resulted in my optimization of the single-piece case. 1995-06-10 07:54:04 +00:00
Jordan K. Hubbard deaac80afe Yikes! Missing '{'. 1995-06-10 02:21:40 +00:00
Jordan K. Hubbard 3d375b00a6 Take the WNOHANGs back out again. I think there are pathological
side-effects, and I fixed the problem I'd meant to fix with this change
in another way anyway.
1995-06-10 01:42:19 +00:00
Jordan K. Hubbard 7505ddf424 Fix the long-standing "/nfs device busy" at reboot error. 1995-06-10 00:49:17 +00:00
Jordan K. Hubbard f8527f434d Fix this correctly.
Submitted by:	gpalmer
1995-06-10 00:42:28 +00:00
David Greenman d348442dd3 Added a missing break which caused interface flag changes to panic the
machine.

Submitted by:	Stefan Petri
1995-06-09 18:12:09 +00:00
David Greenman 64b0940b34 1) SCSI_RESID_VALID was not getting set in xs->flags so even though the
aic7xxx driver was doing the right thing, it was getting ignored by the
upper level scsi code.  This may affect tape drives, so I consider this
a critical fix.

2) xs->status was not set to zero during the initialization of a command.
Although I don't think this should be the client's (ie the driver's)
responsibility, it seems that it currently is, so it needs to be cleared.
Without this change, the upper level scsi code will attempt to interpret
the sense information on every command complete (since xs->status is
usually left at 2, "check sense").  This gives a slight performance
increase, as well as stops fooling /sbin/scsi into thinking there was
an error on the command.

3) Document that we support the aic7850 controllers in the aic7870.c
header. Aic7870.c should probably become aic78xx.c sometime down the
road.

Submitted by:	Justin Gibbs
1995-06-09 18:06:53 +00:00
Jordan K. Hubbard 53734949b9 Try to remove a few things that resulted in incorrect pkg installation
output, plus a confusing message at startup which should technically
be impossible but somehow happens anyway!
1995-06-09 15:36:03 +00:00
Jordan K. Hubbard 4cf5cbbc0a Hmmm. Mark's manipulation of the krb dist made no sense! :( 1995-06-09 14:50:24 +00:00
Jordan K. Hubbard deec6a0fb7 Sanitize this just a tad more. 1995-06-09 14:33:36 +00:00
Jordan K. Hubbard 5c3ba9b3e8 Make a message a bit more explanatory. Correct permissions on /etc. 1995-06-09 12:19:16 +00:00
Jordan K. Hubbard 0954c037e5 1. Fix a bogon in my dist-retry code.
2. Don't wait around for subprocess death.
1995-06-09 11:51:23 +00:00
Jordan K. Hubbard de2912df02 Fix a minor bug in the help file decompressor. 1995-06-09 11:00:52 +00:00
Jordan K. Hubbard db1138e173 Some fixes to install.hlp
Submitted by:	joerg
1995-06-09 08:26:05 +00:00
Jordan K. Hubbard fd350731e4 Norwegian updates.
Submitted by:	lars
1995-06-09 07:34:33 +00:00
Jordan K. Hubbard c48eb93caa sync release and rerelease rules. 1995-06-09 06:52:44 +00:00
David Greenman 307977af45 Look only at the appropriate rtc clock/ram valid bit. The others are
undefined and if they weren't 0, resulted in the sytem clock not being set.

Submitted by:	Akira SAWADA
1995-06-09 03:29:17 +00:00
David Greenman 6ea0f35ef9 Return error if in_pcbladdr() fails. Not doing so could result in a panic
or unusual behavior under certain cicumstances.

Submitted by:	Matt Dillon
1995-06-09 03:21:13 +00:00
Jordan K. Hubbard b95136fa5f Simplify the release target a little and stop messing with the
user's /etc/make.conf file; that's bad!
1995-06-08 23:32:09 +00:00
Jordan K. Hubbard c2b6948399 Bump this to 2.0.5-RELEASE; BETA is cancelled. 1995-06-08 23:25:03 +00:00
David Greenman ca829154da Moved initialization of fdblk down a few lines so that tape is checked for
(and rejected) first. Fixes panic that results from fd->ft not being
initialized.

Submitted by:	Joerg Wunsch
1995-06-08 10:26:23 +00:00
Jordan K. Hubbard 1d42796c35 Minor tweak: Change name of "Master partition editor" to "FDISK partition
editor" here and in the docs.  People have come to understand "FDISK"
as a more understandable term and have been complaining that they didn't
equate the "master" partition editor with the old fdisk stage and were
confused.
1995-06-08 09:48:31 +00:00
Jordan K. Hubbard 7cb7a494c2 The cvs export line was bogus. 1995-06-08 09:43:02 +00:00
Jordan K. Hubbard 76c9e1e512 Add /usr/X11R6/bin to the end of the default path so that XF86config
works (it really should set the path internally, but oh well!).
1995-06-08 09:40:43 +00:00
Jordan K. Hubbard c3542599fc Add entry for ESDI.FAQ. 1995-06-08 09:09:51 +00:00
Jordan K. Hubbard 07bd987367 #ifdef out Gary's floppy crc checking code; I'm not sure it works. 1995-06-08 08:16:42 +00:00
Jordan K. Hubbard d32d570ade Make the floppy prompt a little more explanatory. 1995-06-08 04:59:16 +00:00
David Greenman c8685dc0d6 Apply patch that accidently was overlooked when NFS over TCP was fixed
to do the mount operation via TCP. The result of this patch missing was
that it wasn't possible to mount a TCP NFS.

This fixes PR 494.
1995-06-08 04:34:11 +00:00
Jordan K. Hubbard 8c1db2c03c Add support for "dummy dists". 1995-06-07 20:50:13 +00:00
Jordan K. Hubbard a953eeb1e2 Mark release type. 1995-06-07 20:37:14 +00:00
Jordan K. Hubbard 2becb24f36 ALPHA->BETA 1995-06-07 20:35:28 +00:00
Jordan K. Hubbard 5a66b92cc5 "bootstrap" for eBones target! 1995-06-07 20:03:09 +00:00
Jordan K. Hubbard dbf7448c09 Added:
if ((!d->bios_cyl || d->bios_cyl > 65536) || (!d->bios_hd || d->bios_hd > 2\
56) || (!d->bios_sect || d->bios_sect >= 64))
        msgConfirm("WARNING:  The detected geometry is incorrect!  Please adjus\
t it to\nthe correct values manually with the (G)eometry command.  If you are\n\
unsure about the correct geometry (which may be \"translated\"), please\nconsul\
t the Hardware Guide in the Documentation submenu.");

This look right, Bruce & Poul?  Anything to save us a few questions..
1995-06-07 10:08:22 +00:00
Jordan K. Hubbard 3cab2fad20 Small optimization of previous change. 1995-06-07 09:54:19 +00:00
Jordan K. Hubbard 04ed186359 Allow "removal" of ftp user/pass by deleting the field contents. 1995-06-07 09:53:14 +00:00
Jordan K. Hubbard 1ebb3fabce Tune the userpass check field. 1995-06-07 09:48:39 +00:00
Jordan K. Hubbard a715808ea9 Fix fix. 1995-06-07 09:44:26 +00:00
Jordan K. Hubbard e986ddc1aa 3rd try with PPP - NOW we think it will properly
add a default route! :-)
1995-06-07 09:26:29 +00:00
Jordan K. Hubbard 45412995f5 Nits. 1995-06-07 08:19:52 +00:00
Jordan K. Hubbard 9aa01562d2 Hmm, i should do such things later in the night, i'm afraid. The
first paragraph silently went into some other language; to the best of
my knowledge, this cannot be referred to as ``Deutsch''. :-(

So here's a fix.  Since i don't have got a CVS update via CTM yet (nor
the commit message), it's still against rev. 1.1.2.2 of the german
README.  [And with CVS, it was trivial to deal with!  CVS sometimes
has its good moments.. :-) -jkh]
Submitted by:	joerg
1995-06-07 08:04:52 +00:00
Jordan K. Hubbard f8c4653079 Argument type to check function not correct. 1995-06-07 07:54:42 +00:00
Jordan K. Hubbard 137d510182 Fix ppp botch for real - the gateway line needed to be in
/etc/ppp/ppp.linkup, not /etc/ppp/ppp.conf (thanks Gary!).

Make the menus more user-friendly.
Submitted by:	gpalmer & jkh
1995-06-07 07:51:06 +00:00
David Greenman 7f7d3a6052 Backed out one part of rev 1.13. In this one case, two references to the
vnode are gained, but only one reference to the object is gained. The
object reference is (correctly) lost by the nfsrv_vrele() at the exit
point of the nfsrv_link function.
The bug is easily seen by doing a standard "link" operation to a 2.0.5
server (ln foo bar). The system will immediately panic with "object
deallocated too many times".
This fixes the panic reported today by [email protected].

(will be) Reviewed by:	John Dyson
1995-06-07 07:25:09 +00:00
Jordan K. Hubbard 2432ae550e Menu that set variables now have check-marks next to items that
are set.
1995-06-07 07:21:50 +00:00
Jordan K. Hubbard ebd056a670 1. Print proper "check" in Options menu if ftp user/pass set.
2. Re-ask for ftp user/pass on site-reselection if user/pass initially set.
1995-06-07 06:50:07 +00:00
Jordan K. Hubbard 549e4bbf0a Don't toggle newfs state to N every time with each mount, only
the first one.
1995-06-07 06:38:11 +00:00
Jordan K. Hubbard 058b7cd54e Always add a default route. Looks like ppp isn't doing this automatically,
even though what's written into its configuration file *should* make
it do so..  Sigh!
1995-06-07 06:15:44 +00:00
Jordan K. Hubbard 918fe8e189 A large collection of patches committed from the top to make it easier
on me:

1. Mark Murray's eBones patches.
2. Joerg's German docs + fixes.
3. Various sysinstall bug fixes from me + Mark's eBones menu changes.
4. Steven G. Kargl's doc fixes.
Submitted by:	markm, joerg, jkh, [email protected]
1995-06-07 05:52:05 +00:00
Jordan K. Hubbard 84f2a72520 Always run MAKEDEVs if the user re-extracts the bin distribution. 1995-06-06 23:51:48 +00:00
Jordan K. Hubbard 490326ca77 Remove /etc/wall_cmos_clock and /etc/localtime before calling
tzsetup.  If you select this, you'd better go through with it! :-)
1995-06-06 23:45:07 +00:00
Jordan K. Hubbard e42b71082f What was I thinking? That umask() was totally bogus! 1995-06-06 09:27:10 +00:00
Jordan K. Hubbard dda09852db kernel -> kernels 1995-06-06 08:03:17 +00:00
Jordan K. Hubbard e4edf736f5 Add experimental and commercial distributions. 1995-06-06 07:57:39 +00:00
Jordan K. Hubbard fd099a626d late night typos. 1995-06-06 06:16:31 +00:00
Jordan K. Hubbard bcd73d85af Give up on trying to run pkg_manage with clever hint flags. It actually
looks better when you don't!
1995-06-06 06:14:53 +00:00
Jordan K. Hubbard 5e38112e14 Write out /etc/hosts entries a little more intelligently. 1995-06-06 06:08:29 +00:00
Jordan K. Hubbard a744355b52 Don't install kzip'd kernel on CDROM, there's no point. 1995-06-06 06:08:00 +00:00
Jordan K. Hubbard 58e2647028 /usr/X11R6 has the wrong modes, for some reason. Add a kludge section
for whapping things like this in the head.
1995-06-06 05:18:31 +00:00
Jordan K. Hubbard 1ca252785b UTC/LOCAL menu choices were backwards.
Reported by:	Many
Submitted by:	bde
1995-06-06 04:51:22 +00:00
Jordan K. Hubbard 8f0e7e9106 Delete all references in all languages (except Russian, which I can't read
well enough to edit! :-) to the "ESC to start a shell" feature.  It's
been removed for days now, replaced by the emergency holographic shell
on VTY4.
1995-06-06 04:27:08 +00:00
Jordan K. Hubbard 5637e2e499 Uniform use of "Clear" to reset flags. 1995-06-06 04:26:00 +00:00
Jordan K. Hubbard 3d8432dd0b Try not to dereference a pointer before it's been checked for sanity
Submitted by:	gpalmer
1995-06-06 00:44:51 +00:00
Jordan K. Hubbard 04a5cf5503 fix gary's typo.
Submitted by:	gpalmer
1995-06-06 00:14:03 +00:00
Jordan K. Hubbard 89e6d70bf5 New checksum code is hanging - see what's going on
by adding more debugging.
1995-06-06 00:11:51 +00:00
Jordan K. Hubbard 405e6f21b0 Untabify. Amazing how those TABs just keep creeping in! 1995-06-05 23:57:38 +00:00
Jordan K. Hubbard 144fe86e7f We don't want to endorse pointer abuse. Remove it from here. 1995-06-05 23:23:51 +00:00
Jordan K. Hubbard c177bdaf3b cast cast. 1995-06-05 23:18:13 +00:00
Jordan K. Hubbard 08e1e55438 Typos. 1995-06-05 23:15:38 +00:00
Jordan K. Hubbard db77f84198 Try to bail out more gracefully in FTPInit(). 1995-06-05 23:13:53 +00:00
Jordan K. Hubbard 6b0b06222b Add configurations.hlp to the menu structure. 1995-06-05 22:18:16 +00:00
Jordan K. Hubbard 19e672d18e Take ppp out of the GENERIC kernel to save space.
We don't use it from GENERIC.
1995-06-05 21:50:41 +00:00
Jordan K. Hubbard 04da367e20 Be more verbose, based on user feedback. 1995-06-05 21:45:49 +00:00
Jordan K. Hubbard d4cfb1b73b Make /dev/tun0 before starting ppp. 1995-06-05 21:19:17 +00:00
Jordan K. Hubbard 0c7ef40fc0 add missing parameter to msgDebug()
Submitted by:	gpalmer
1995-06-05 20:22:49 +00:00
Jordan K. Hubbard 4dd91a1871 Various stylistic changes.
Submitted by: Frank Durda IV <uhclem%[email protected]>
1995-06-05 19:45:48 +00:00
Jordan K. Hubbard bed3c393b9 Clean up attr_match a little; add some debugging. 1995-06-05 18:53:54 +00:00
Jordan K. Hubbard 7175562a53 Syntax changes.
Submitted by: Frank Durda IV <[email protected]>
1995-06-05 18:36:07 +00:00
Jordan K. Hubbard dc284b7a4f Allow user to specify port # in URL. 1995-06-05 18:34:16 +00:00
Jordan K. Hubbard a07f232d20 Made headers consistent with other FreeBSD .hlp and README files, fixed
spacing one typo.  Diff is huge because I eliminated the two-column indent
that was present throughout this file.  This makes it match the other .hlp
files.
Submitted by: Frank Durda IV <[email protected]>
1995-06-05 17:36:55 +00:00
Jordan K. Hubbard bcb30db6aa Also make the tun0 device! I forgot that it's not taken care
of by `MAKEDEV all'.
1995-06-05 17:29:58 +00:00
David Greenman 9935f85660 Removed eg driver, speaker, and vn devices to help reduce the size of the
GENERIC kernel.

Reviewed by:	Jordan Hubbard, Poul-Henning Kamp
1995-06-05 17:15:42 +00:00
Jordan K. Hubbard 7fb1c91023 I can't type! 1995-06-05 17:11:19 +00:00
Jordan K. Hubbard 0dcdb81794 Store deviceFind() values properly! 1995-06-05 17:10:04 +00:00
Jordan K. Hubbard f25d807ffb Add MAKEDEV to the root.flp 1995-06-05 17:04:53 +00:00
Jordan K. Hubbard 5728d42fdc Make strategy for dealing with "dists" subdirectories more reasonable. 1995-06-05 16:59:08 +00:00
Jordan K. Hubbard 671f364999 Make tape extract use larger buffer sizes (for streaming)
and also fix bodge in TapeGet().
1995-06-05 15:33:09 +00:00
Jordan K. Hubbard 51f219197b My style and doc changes. 1995-06-05 15:26:38 +00:00
Jordan K. Hubbard 0b43cb79ac Various user feedback bogons. 1995-06-05 15:17:18 +00:00
Jordan K. Hubbard fdfe97c05a Fix from Gary.
Submitted by:	gpalmer
1995-06-05 12:15:47 +00:00
Jordan K. Hubbard f818f378ed Gary's changes to implement checksumming for floppy disks.
Submitted by:	gpalmer
1995-06-05 12:04:09 +00:00
Jordan K. Hubbard db89419f13 Russian updates.
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-06-05 11:46:33 +00:00
Jordan K. Hubbard cf9de402a1 Typo correctionTypo correction
Submitted by:	Marc van Kempen <[email protected]>
1995-06-05 11:43:27 +00:00
Jordan K. Hubbard dda233c901 UK keymap name typo.
Submitted by:	dfr
1995-06-05 11:31:18 +00:00
Jordan K. Hubbard dad0af8563 Late night fingers botch. "YES" != "ON"
Submitted by:	gpalmer
1995-06-05 10:43:06 +00:00
Jordan K. Hubbard c6353569ab Review some of the distribution types; fix a couple of mismatches. 1995-06-05 10:19:03 +00:00
Jordan K. Hubbard 5a767b1ab9 Some additional debugging to save Gary's sanity. 1995-06-05 09:52:11 +00:00
David Greenman e85fef9e67 From Andrew Chernov:
1) Fix default table to match /sys/i386/isa/kbdtables.h
2) Fix printing keymap values for 8bit charset
3) Describe more options

Reviewed by:	Soren Schmidt
Submitted by:	Andrew Chernov
1995-06-05 09:23:13 +00:00
Jordan K. Hubbard 0375a036ea Head-off possible misunderstanding in tcpip menu.
Corrent name of help doc.
1995-06-05 08:34:59 +00:00
Jordan K. Hubbard 0000079e2a Fixed problem where MAKEDEV all was spamming all the previous
slice /dev entries.
1995-06-05 06:53:30 +00:00
Jordan K. Hubbard 75a9df6be5 Fix bug in ftp/dists logic. A mounted CD should now work over ftp now. 1995-06-05 06:36:57 +00:00
Jordan K. Hubbard 4abde2b285 Fix lang and MakeDevs() botches. 1995-06-05 04:39:59 +00:00
Jordan K. Hubbard ed653b2fd4 Add Mach64 server to menu. 1995-06-05 04:16:06 +00:00
Jordan K. Hubbard 8c280359d9 Name the Mach<xx> dists properly so they'll actually be fetched!
Obtained from:
1995-06-05 04:00:54 +00:00
Jordan K. Hubbard 1f88750add Try to spare the feelings of 4Mb machines by not using
pipes until some swap space has been added.
1995-06-05 03:32:54 +00:00
Jordan K. Hubbard d340f17637 Remove totally unused and unnecessary "OnCDROM" code.
Remove OnSerial boolean - I don't use it.
Fix various bogons that continue to lurk despite my best efforts.
1995-06-05 03:15:52 +00:00
Jordan K. Hubbard d39ddd3c80 Put some debugging into ftp msg 550 case to get more feedback on it. 1995-06-05 02:28:58 +00:00
Jordan K. Hubbard 90d7f5d9ec Poul's byte-saving patches.
Submitted by:	phk
1995-06-05 02:25:27 +00:00
Jordan K. Hubbard a984ac8cf8 French doc updates.
Submitted by:	jmz
1995-06-05 02:16:47 +00:00
Jordan K. Hubbard e14171b72f Correct a botch in FtpGet() that prevented error codes from being
handled properly after a RETR.
1995-06-05 01:56:53 +00:00
David Greenman 357a5ff6a8 Restore Andrew's change in rev 1.44 for t_timeout. I can't see how that
could have caused PR 445 unless the user specifically mis-configured
'comcontrol' in rc.serial. t_timeout is only set/cleared via the
TIOCSDRAINWAIT ioctl and defaults to 0.

Reviewed by:	Andrew Chernov
1995-06-05 01:23:10 +00:00
David Greenman 4c829cd4e5 Fixed path to utmp file.
Submitted by:	Tom Samplonius
1995-06-05 01:09:08 +00:00
David Greenman b95df989cb Fixed coredump when tcpmux is used.
Submitted by:	Craig Loomis
1995-06-05 01:01:19 +00:00
Jordan K. Hubbard 99efb8ecad Fix bug induced by device optimizatoin - must now copy /dev
earlier than in copy_self().
1995-06-05 00:53:13 +00:00
David Greenman 78f37fbd42 Various fixes for linux compatibility.
Submitted by:	Soren Schmidt
1995-06-05 00:22:04 +00:00
Jordan K. Hubbard 1175e3daca The FAQ isn't going on the boot floppy; no room! 1995-06-04 23:45:35 +00:00
Jordan K. Hubbard c34a55ff48 Run the vi command on /etc/exports correctly. 1995-06-04 23:29:18 +00:00
Jordan K. Hubbard 3658a65805 Whoops! Info was missing from the the dist set all this time! 1995-06-04 23:12:18 +00:00
Jordan K. Hubbard e680b4b413 Don't make all the devs; we no longer need them. 1995-06-04 22:55:23 +00:00
Jordan K. Hubbard aca4b089b2 Killy typos. 1995-06-04 22:49:49 +00:00
Jordan K. Hubbard 60aa341a05 Try to save some space by losing makedevs() and going to a MAKEDEV all
in the right place.
1995-06-04 22:46:45 +00:00
Jordan K. Hubbard a2b366c009 Kill the evil_goto. The evil goto is dead! Long live Bonnie Prince Charlie!
Submitted by:	gpalmer
1995-06-04 22:38:22 +00:00
Jordan K. Hubbard 22c05a3b3a Use default hooks for everything so that I don't duplicate work
elsewhere.
1995-06-04 22:24:49 +00:00
David Greenman 4c09eee4d1 Print the board type correctly as 7870 when it's a 7870...
Submitted by:	Justin Gibbs
1995-06-04 17:54:23 +00:00
David Greenman 3ed2b6d7c6 There are some embarassing typos (which I made) in yppush.c.
Some fprintf()s are improperly formatted as a result.

(These same typos can cause the program to coredump. -DG)

Submitted by:	Bill Paul
1995-06-04 17:15:49 +00:00
David Greenman 2309664e17 In the COMPAT_LINUX case, fix a bug that broke BSDI compatibility.
Submitted by:	Justin Gibbs
1995-06-04 16:58:44 +00:00
David Greenman 2a9c9c187b Avoid calling t_oproc() in ttywait() when the call would do little or
nothing except possibly cause livelock.  This will be fixed better later.

Submitted by:	Bruce Evans
1995-06-04 16:45:21 +00:00
David Greenman e244a75e18 Remove t_timeout from ttysleep() call in ttwrite() (undo part of revision
1.44).  Nonblocking writes can't return EWOULDBLOCK so there is no point
in timing out.

Fixes PR 445.

Submitted by:	Bruce Evans
1995-06-04 16:28:42 +00:00
David Greenman e76b609c1a Unspam Garrett's change in rev 1.3 to add the multicast ioctl support.
Reviewed by:	Garrett Wollman
1995-06-04 16:12:49 +00:00
David Greenman 5898dfb90a Fixed a bug that would cause a hang or panic if an object clean operation
happend while the file vnode was locked by another process. This happens
because the call to vget() wasn't checked for failure so the clean
operation would happen without the lock and then the corresponding vput()
would release the lock it didn't have and give up a vnode reference it
didn't have (which could result in an in-use vnode being freed). The
problem would only be seen during an msync() of the mapped file or
when the file fell off the object cache (although this latter case is
unlikely because the file's object would have to be OBJ_WRITEABLE, and
thus shouldn't be on the object cache list).

Reviewed by:	John Dyson
1995-06-04 13:53:25 +00:00
Jordan K. Hubbard ccc6578e13 Replace ping, which was very nice to have but not
essential, and replace it with `ft', which is not
very nice but is unfortunately essential to getting
root.flp off floppy tape.  Ugh.  The prices we
pay for consistency! :)
1995-06-04 11:52:44 +00:00
Jordan K. Hubbard 2fcfc897a2 Document that floppies directory should go on tape. 1995-06-04 11:50:46 +00:00
Jordan K. Hubbard 95fcad56a6 Also allow getting root floppy image from tape.
Make tape code look under dists/ directory as well.
1995-06-04 11:48:11 +00:00
Jordan K. Hubbard fd84f6d661 Typo. 1995-06-04 11:32:09 +00:00
Jordan K. Hubbard 4cec5c815a The extraction of subdists was bogus. 1995-06-04 11:30:10 +00:00
Jordan K. Hubbard cdf254be43 Untabify pass. 1995-06-04 10:48:46 +00:00
Jordan K. Hubbard 405ce6a2da Style edits. 1995-06-04 09:26:45 +00:00
David Greenman 160b18f411 Fixes from Justin:
1) Fixes tagged queuing for a large number of drives (Seagate, Fujitsu and
   Quantum Grand Prix drives have been tested successfully).  The core of
   the patch is to setup an I_T_L nexus (initiator_target_lun) instead
   of an I_T_L_T (initiator_target_tun_tag) nexus for all request sense
   messages.  It seems that these drives attempt to hold off tagged requests
   until the sense is retrieve, causeing them to return BUSY or QUEUE_FULL
   status if you do an I_T_L_T nexus.  This patch should only affect those
   who use the AHC_TAGENABLE kernel config option.

2) Adds support for the aic7850 motherboard SCSI controller.  THe 7850 is
   software compatible with the 7870 chip except that it has only 3 SCBs
   (ugh) and of course a differnt PCI ID string.

3) Move some common initialization code above the SEQINT switch case in the
   interrupt routine to avoid code duplication.  Use be consistent and always
   use u_char instead of "unsigned char" (I've only done this for this section
   of code).

4) Make debugging printfs uniform and always inform the user of the unit
   channel and target of the error if possible.  Use sc_print_addr when
   possible (we have a sc_link structure) so that we get the actuall device
   name printed.

Submitted by:	Justin Gibbs
1995-06-04 09:15:44 +00:00
Jordan K. Hubbard a9a6163be2 Setting the PATH for the EHS seems to have killed it, take that out. 1995-06-04 08:50:13 +00:00
Jordan K. Hubbard 42ae59db47 Prototypes and casts. 1995-06-04 07:13:20 +00:00
Jordan K. Hubbard ac134e7f3e A whole bunch of bug fixes and some general reordering based on feedback
I've gotten.  System will make you generate an /etc/exports file if
NFS_SERVER, smarter error checking when floppies fail, etc.
1995-06-04 07:06:50 +00:00
Jordan K. Hubbard 7707c207a8 Missed a few. 1995-06-04 05:27:35 +00:00
Jordan K. Hubbard 8a40369330 tweak tweak. 1995-06-04 05:24:51 +00:00
Jordan K. Hubbard 7f625555c7 More prototype bodges. 1995-06-04 05:23:00 +00:00
Jordan K. Hubbard 684ddf7108 Try to be reasonably self-consistent with my prototyping. 1995-06-04 05:20:25 +00:00
Jordan K. Hubbard bc4311e84b Return -1 properly if user cancels mount. 1995-06-04 05:15:25 +00:00
Jordan K. Hubbard 726a85cdaf Ack. Finish install.hlp. Please review, folks! 1995-06-04 05:14:02 +00:00
Jordan K. Hubbard 59435542b2 o Add a new parameter to get() method; now we can figure out which
device we are without cheating!

o Make a real tape install.

o Make the floppy install loop properly through a media set, asking for
  media changes at reasonable times.

o Clean up some menus.
1995-06-04 05:13:40 +00:00
Jordan K. Hubbard 73accaf7a3 Fix a typo in the MBRMenu (also noticed by [email protected], after I'd already
fixed it).  Fix a stupid bug where user-edited slattach string wasn't being
used.
1995-06-04 01:57:23 +00:00
Jordan K. Hubbard 78ec831580 A better way of doing automated pkg adds from the CDROM.
Submitted by:	Marc van Kempen <[email protected]>
1995-06-04 00:38:23 +00:00
Jordan K. Hubbard 1b9e26a6e9 Add ftp://ftp.leo.org/pub/comp/os/bsd/FreeBSD
Submitted by:	torstenb
1995-06-03 23:58:35 +00:00
Jordan K. Hubbard c0e98bd1d4 Bring in more fixes from last night. 1995-06-03 23:44:12 +00:00
Jordan K. Hubbard f00d1ec76e Bring in my pre-freefall-crash changes. 1995-06-03 23:23:40 +00:00
Jordan K. Hubbard 5ef35bb3b9 argh! it must be getting too late.. :) 1995-06-03 10:04:59 +00:00
Jordan K. Hubbard 1cc7123c31 Lower MAX_FTP_RETRIES to 3. 1995-06-03 09:59:41 +00:00
Jordan K. Hubbard 10bf473795 Don't retry-loop on exploratory gets! 1995-06-03 09:49:54 +00:00
Jordan K. Hubbard 0c8694c692 Fix a few bogons in the xfer state changing code.
Submitted by:	gpalmer
1995-06-03 08:51:28 +00:00
Jordan K. Hubbard ca190dbd19 Poul's fixes for bad144 handling and general disk sanity.
Submitted by:	phk
1995-06-03 08:40:48 +00:00
Jordan K. Hubbard 42b7a9db52 Fix bad144 handling.
Submitted by:	phk
1995-06-03 08:38:14 +00:00
Rodney W. Grimes d5ee0731d9 Reviewed by: guido
Submitted by:	Wietse Venema <[email protected]>

Sometimes skey logins just fails due to a premature closing of the
keyfile.
1995-06-03 07:39:45 +00:00
Jordan K. Hubbard aeab3da31c Make ftp "dists" directory aware. 1995-06-03 07:38:22 +00:00
Jordan K. Hubbard 780a8f52f2 agh! 1995-06-03 06:36:03 +00:00
Jordan K. Hubbard e9a590aacb Run through all the ftp routines and attempt to sanitize error
checking and retry code.  It's getting a lot closer to being a truly
robust install method.
1995-06-03 06:31:03 +00:00
Jordan K. Hubbard 88bd893637 Fix another descriptor leak. 1995-06-03 04:54:36 +00:00
Jordan K. Hubbard e9b9c677dc Add 2 missing closes that were keeping the floppy open. D'oh! 1995-06-03 04:52:57 +00:00
David Greenman 7658c468a8 Properly set/clear the IFF_ALLMULTI flag so that "all multicasts" works.
Submitted by:	Garrett Wollman
1995-06-03 04:46:21 +00:00
Jordan K. Hubbard b12c02b4a0 Correct the name of the netmask. 1995-06-03 04:22:33 +00:00
Jordan K. Hubbard 092f0e8dbf Try to set the default route properly for PPP links. 1995-06-03 04:16:51 +00:00
Jordan K. Hubbard 52bc971cee Add Warren's Australian mirror site. 1995-06-03 03:02:19 +00:00
Jordan K. Hubbard 77cf4153a4 Make passive mode ftp the default again.
Add more debugging.
1995-06-03 02:14:38 +00:00
Jordan K. Hubbard 86201d7cbc review and cleanup. 1995-06-02 19:33:12 +00:00
Jordan K. Hubbard 5b0bb4f2fb Make get_new_host() always bounce the connection. 1995-06-02 19:29:15 +00:00
Jordan K. Hubbard 06ff5565f1 Add the beginnings of my support for Poul's enhanced error status
returns.  Loop on requests for 5 retries unless the option Ftp Reselect
is on, in which case go directly to "get another ftp host" menu.

In cases of extreme errors, tear down and rebuild connection
from scratch.
1995-06-02 19:15:02 +00:00
Jordan K. Hubbard 51a7e5d66b Return values have been sanitized:
-1      error, but you (still) have a session.
   -2      error, your session is dead.
Submitted by:	phk
1995-06-02 18:19:18 +00:00
Jordan K. Hubbard 1277551b73 Adjust this to match where the new docs are (whoops).
Eliminate a duplicate.
1995-06-02 18:17:47 +00:00
Jordan K. Hubbard 268167ad7f Italian doc.
Submitted by:	Luigi Rizzo <[email protected]>
1995-06-02 17:52:46 +00:00
Jordan K. Hubbard f4d6b21a21 I've now compared against the english version again, and also adapted
styling to the other documents (no usage of ,,Sie''/,,Ihnen'', but
instead use ,,man'' wherever needed -- this is common german style for
technical documentation; double-space after end of sentences, like in
english, since it improves readability).
Submitted by:	joerg
1995-06-02 17:48:16 +00:00
Jordan K. Hubbard 74cf373f70 Bug fixes too numerous to mention.
Added "state" to menu items so that they can shadow
flags, variables, etc.  The interface still isn't 100%
perfect but there's now at least feedback on what options you've
set.
1995-06-02 15:31:36 +00:00
Jordan K. Hubbard 13d5449a5a Add new mirror: ftp://NCTUCCCA.edu.tw/Operating-Systems/FreeBSD
Submitted by:	[email protected]
1995-06-02 14:22:14 +00:00
David Greenman 3ab30975ab The +@netgroup/-@netgroup NIS password overrides can fail in
some cases due to a subtle bug. Specifically, if you override
	an NIS user's shell, /usr/bin/login and /usr/bin/su (and probably
	other commands) can end up with bogus data for the pw_shell
	member of the passwd structure *if* the do an endpwent(),
	thereby preventing logins.

	This happpens because the text fields in the passwd structure
	(pw_name, pw_passwd, pw_gecos, pw_class, pw_dir and pw_shell)
	are returned to the calling program as pointers to dycamically
	allocated buffers, rather than pointers to static buffers as
	they should be. Once endpwent() is called, the dynamic buffers
	are free()ed, which invalidates the data returned by the
	library functions.

Note: Bill promises a more elegant solution in post-2.0.5R. This fix
	is only a work-around.

Submitted by:	Bill Paul
1995-06-02 11:23:24 +00:00
David Greenman 72ea2524f2 Fixed bugs in NFS swap size calculations.
Reviewed by:	Rod Grimes, and me
Submitted by:	Poul-Henning Kamp
1995-06-02 11:13:15 +00:00
David Greenman d5ff0160a3 Purge the namei cache for the (parent of the) target when renaming a
directory to a (non-empty) directory.

I don't remember how to demonstrate bad effects from not doing this.
They may be more likely for the !newparent case, but that isn't fixed
yet (rename("d", "e") renames the "." entry in "d" as "e")).

Obtained from:	ufs and NetBSD
Submitted by:	Bruce Evans
1995-06-02 11:03:15 +00:00
David Greenman 50238688d2 Don't trash the denode cache entry for the source when renaming a
directory in the newparent case.  For directories, the pseudo-inode
number (de_dirclust, de_diroffset) is canonicalized to be
(first cluster in directory, 0), so it doesn't change when directories
are renamed.  This was only partly handled by not doing anything for
directories in reinsert().

It is hard to demonstrate bad effects of this bug.  You can see an
unnecessary cache miss by tracing msdosfs_hashget().  The cache
entry is usually left on the wrong hash chain so it is very
unlikely to match anything, and bogus cache entries go away in
msdosfs_reclaim().

Submitted by:	Bruce Evans
1995-06-02 11:01:07 +00:00
David Greenman 486744a8cb Don't "remember" where the target directory slot is. The target
slot doesn't move.  "Remembering" the target slot was a no-op for
files, but for directories it changed the target slot to slot of
the "." entry in the source directory.  Thus rename("a", "b/c")
(where "a" is any directory and "b/c" is an empty directory) was
essentially

	unlink("b/c"); rename("a/.", "a"); unlink("a");

where the middle rename corrupts "a/." and the final unlink detaches
"a" and everything underneath it from the directory tree although
not from the file system.

Submitted by:	Bruce Evans
1995-06-02 10:57:50 +00:00
David Greenman 2eb8d9ae0e Fixed NULL pointer dereference in error message.
Submitted by:	der Mouse <[email protected]>
1995-06-02 10:50:54 +00:00
David Greenman 3ca2c94b23 Fix do/while end condition so that the loop can be broken out of without
panicing on a NULL pointer.

Reviewed by:	Rod Grimes
1995-06-02 10:44:24 +00:00
Jordan K. Hubbard 435ff82566 Don't mount DOS, but make the mountpoints. 1995-06-02 03:22:25 +00:00
Jordan K. Hubbard 1a2f440027 Be more paranoid in mediaSetNFS() 1995-06-02 02:40:18 +00:00
Jordan K. Hubbard bec2f6d559 Fix the stooopid bug I introduced which broke ftp. Sigh! 1995-06-02 02:38:21 +00:00
Jordan K. Hubbard a72256e27c Correct a typo and add even more debugging. 1995-06-02 02:06:43 +00:00
Jordan K. Hubbard 1f93967a35 Fix a pathological bug in the distribution extraction loop.
Add lots more debugging.
1995-06-02 02:01:05 +00:00
Jordan K. Hubbard 2fcee4b77d Add a bunch of debugging to try and figure out why ftp install method
is hanging now.. :-(
1995-06-02 01:07:24 +00:00
Jordan K. Hubbard efd5d7a883 Fix a bad bug where the tcp setup dialog wasn't presented
in the case where only one network device existed.
1995-06-02 00:52:25 +00:00
Jordan K. Hubbard 5b93e5a79f Try to clear the screen more properly after font changes;
there was often garbage on the screen after shifting to
another font.
1995-06-02 00:45:18 +00:00
Jordan K. Hubbard c1e4c7b8ea Shrink the maximum menu size a bit. 1995-06-02 00:41:11 +00:00
Jordan K. Hubbard c1000aedc8 Fix a slightly bogusly formatted message. 1995-06-02 00:05:33 +00:00
Jordan K. Hubbard a851117858 More misc fixes. 1995-06-02 00:03:35 +00:00
Jordan K. Hubbard 94ffc85f7c Correct botch with root floppy insertion. 1995-06-01 23:19:14 +00:00
Jordan K. Hubbard e1aeeb6335 Set root uid/gid mapping to 0. 1995-06-01 23:11:28 +00:00
Jordan K. Hubbard 3c6c393215 Whoops! 1995-06-01 23:09:42 +00:00
Jordan K. Hubbard f715a1c4d1 Substantially improve the error handling in the "root floppy" extraction
code.
1995-06-01 23:08:36 +00:00
Jordan K. Hubbard ea65c15f05 Boy, was this code ever spazzed! I'm surprised that /etc/fstab
creation worked at all! :-)
1995-06-01 22:58:39 +00:00
Jordan K. Hubbard e47e2352a5 Remove -g. 1995-06-01 22:45:13 +00:00
Jordan K. Hubbard d88e9279ec Add more seat belts. Installation now whines at you if you have no /usr
filesystem.  It's not an error, but it whines.
1995-06-01 22:42:47 +00:00
Jordan K. Hubbard 1823eba540 _Don't_ mount DOS filesystems as part of the filesystem mounting
loop; it caused the DOS partition to be busy when we tried installing
from it later, and there's really no reason to mount it at that stage
anyway (it's not like we're going to extract files into it!).
1995-06-01 22:32:07 +00:00
Jordan K. Hubbard 6d71770be9 1. Make the floppy root extract a little more paranoid.
2. Make swedish work.
1995-06-01 22:27:31 +00:00
Jordan K. Hubbard f48b388e87 Fill in the value for the release notes file. 1995-06-01 22:15:03 +00:00
Jordan K. Hubbard c8730fef90 Fix various typos in the docs.
Submitted by:	Steven G Kargl  <[email protected]>
1995-06-01 21:40:00 +00:00
Jordan K. Hubbard 010a415fc0 Fix the broken DOS install method. 1995-06-01 21:37:16 +00:00
Jordan K. Hubbard 4acece4488 Fix numerous bogons in the ftp installation code. 1995-06-01 21:04:03 +00:00
Jordan K. Hubbard cd6b1a76a3 I have just fixed a problem with one of the matcd audio ioctls. The
CDIOREADTOCENTRYS call was ignoring both the start_track and data_len
fields of the call and returning the whole table of contents regardless.

This writes all over the stack of programs like workman and xcdplayer
which read the contents one track at a time.  I have included a patch
which fixes it.

The patch affects ONLY the CDIOREADTOCENTRYS ioctl of the matcd driver
and will not affect any other part of the system, especially not the
probe for the matcd device.
Submitted by:	Doug Rabson <[email protected]>
1995-06-01 20:28:20 +00:00
Jordan K. Hubbard e1e9a248cc Remove something I must have inadvertantly added with an editor spam. 1995-06-01 09:59:41 +00:00
Jordan K. Hubbard 2cb897f8d2 Try to fix another few small annoyances. 1995-06-01 09:52:01 +00:00
Jordan K. Hubbard c86ed53b64 1. Write out /etc/hosts even when user picks TCPIP setup later on.
2. See if I've fixed X11R6 extraction.
3. Fix writing out of network_interfaces to sysconfig.
1995-06-01 09:42:32 +00:00
Jordan K. Hubbard c24c54122d Make helpfiles work again - the target extracted from the
helpfile is *not* the same as the full pathname..
1995-06-01 09:26:15 +00:00
Jordan K. Hubbard 2da87bfe5c Add a strategic dialog_clear() 1995-06-01 08:20:21 +00:00
Jordan K. Hubbard 12d691d2fc Fix my breakage of the emergency holographic shell; it's now started
again.
1995-06-01 08:18:29 +00:00
Jordan K. Hubbard 6597a49963 tip is a mutant binary which is hard to make - skip it for
now after all.
1995-06-01 05:54:37 +00:00
Jordan K. Hubbard 1a4a02dd25 Whoops - spell it right! 1995-06-01 05:48:57 +00:00
Jordan K. Hubbard e85818e856 Allow user to log in as something _other_ than anonymous in
the FTP strategy routines if they chose to do so from the ftp options
menu.  Sorry, Gil.  I think I've been working too hard!
1995-06-01 05:41:50 +00:00
Jordan K. Hubbard f6a1a02519 Don't spit out bogus ifconfig_<iface> lines when the interface is
serial.

Always initialize lo0 in addition to other interfaces.
1995-06-01 05:13:20 +00:00
Jordan K. Hubbard b06e6090fe Back out all my changes to try and get pkg_manage to accept
a starting directory; it's not working and if it's going to
be fixed, it'll have to be Marc that does it so he's better
off with me removing the changes.
1995-06-01 05:02:40 +00:00
Rodney W. Grimes d27fbecbb5 # Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.

There is a conflict with over loaded usage of address 0x100, the
Intel EtherExpress may have a hidden port here, Intel does not
document that even in the NDA stuff I have :-(.

Submitted by:	bde, [Original by gibbs]
Obtained from:	Revision 1.20 of this file.
1995-06-01 04:57:15 +00:00
Jordan K. Hubbard a1aac37c1d Fix spelling of "dictionary".
Submitted by:	John Lind <[email protected]>
1995-06-01 04:30:44 +00:00
Jordan K. Hubbard 52f0a7b36b Trade 32 inodes for 4K of space
Submitted by:	phk
1995-06-01 00:20:25 +00:00
Jordan K. Hubbard bac60c9403 Doh! In trying to make things more to Julian's liking, I seem to
have totally disabled menu functionality!  This results in a sysinstall
that is 100% bug free, but probably not what people want.. :-)  Fix it.
1995-06-01 00:18:26 +00:00
Jordan K. Hubbard 3701acaa08 Fixes to put bad144 information in the right place.
Submitted By: phk
1995-05-31 23:53:45 +00:00
Jordan K. Hubbard d841c1c227 1. Don't copy /etc/services onto the boot floppy - it's huge!
Just tack in the entries we want.

2. Replace ncftp with ftp on root.flp; it's easier to use in this
   context and less fussy about missing passwd files.

3. Also put tip/cu back on the root floppy.  We certainly have the
   room, and it might prove useful.
1995-05-31 23:53:12 +00:00
Jordan K. Hubbard 40d06d6ddb 1. More fixes from Poul to deal with helpfiles.
2. Don't write out /etc/hosts entry for this system if
   they specified their IP address as `0' for dynamic
   address negotiation with PPP.
Submitted by:	phk & jkh
1995-05-31 23:51:15 +00:00
Jordan K. Hubbard 4967a787f3 Bring in Poul's fixes to the helpfile routines.
Submitted by:	phk
1995-05-31 23:08:31 +00:00
Jordan K. Hubbard 28e662e098 Sanitize the release rules somewhat.
Submitted by:	phk
1995-05-31 22:36:51 +00:00
Jordan K. Hubbard c75d34e204 Stupid typo. 1995-05-31 22:22:44 +00:00
Jordan K. Hubbard b7955d3b9a Clean up the pkg_manage code a bit more; now we get our CDROM back
before trying to use it.
1995-05-31 22:19:14 +00:00
Jordan K. Hubbard ae238e09c7 1. Print 25 newlines at the start if we're running on a VTY. This
preserves the scroll-back buffer.

2. Remove the unused systemWelcome() function.
1995-05-31 22:09:20 +00:00
Jordan K. Hubbard 83403ac936 Try to make my usage of ESC consistent. ESC no longer
exits the label and disks menus, `Q' does.
Reviewed by:
Submitted by:
Obtained from:
1995-05-31 22:02:37 +00:00
Jordan K. Hubbard e0a91a2e65 Totally disable serial consoles for now. The probe_keyboard()
routine seems to be messing up a lot of keyboards and I can't
afford that right now.  Those that want serial consoles can
put it back by hand.
Reviewed by:	phk
1995-05-31 21:42:38 +00:00
Jordan K. Hubbard 222a3b36f1 Fix a bogon I introduced which prevented swap partitions from being
written out to /etc/fstab.
1995-05-31 21:19:19 +00:00
Jordan K. Hubbard b40cdd5152 Remove the whole "ESC to fork a shell" thing; it was just bogus,
and the emergency holographic shell on the 4th VTY serves all of
the required functions now.  ESC is now synonymous with "Cancel",
like it should be.
1995-05-31 20:55:39 +00:00
Jordan K. Hubbard 4802edaa70 Swedish translations.
Submitted by:	Olof Johansson <[email protected]>
1995-05-31 20:34:45 +00:00
Jordan K. Hubbard 38fe07725a Try and adjust the Japanese mirror sites to match current affairs. 1995-05-31 19:46:16 +00:00
Jordan K. Hubbard 03304d188e French translations.
Submitted by:	"Philippe Charnier" <[email protected]>
1995-05-31 19:27:31 +00:00
Jordan K. Hubbard 636c5243cc 1. Totally re-write the helpfile snooping code with an eye towards elimiating the
root fs overflows people have been seeing.

2. Change "ESC to exit" to "ESC to finish" in the disklabel and disk editor screens
   to be less confusing.
1995-05-31 10:34:28 +00:00
Jordan K. Hubbard f65f624fba 1. Go to an entirely different paradigm for "OK" and "Cancel"; I managed to
give Julian what he wanted without changing Dialog.  Each menu that doesn't
   immediately return now has an "Exit" item at the bottom, and Cancel actually
   _cancels_.

2. Re-work the distribution stuff to not gratuitously init/shutdown the media
   device multiple times.

3. Make all menu-using functions now respect the fact that menus return a status
   (so you can tell if they were truly cancelled).

4. Write out /etc/hosts as late as possible.
1995-05-31 10:17:45 +00:00
Jordan K. Hubbard 785b5a7d6e 1. Make the XF86 document much more germain to the 2.0.5A installation.
2. Clean up some of the docs before sending them to the translators.
1995-05-31 09:06:40 +00:00
Jordan K. Hubbard 79c47443bf 1. Don't bring up disks menu if user only has one disk!
2. Warn the user of the emergency holographic shell that it's chroot'd.
3. Eliminate potentially confusing english contractions (for non-native
   speakers) in menus and generally clean up the verbiage.
4. Warn the user if a DOS partition can't be mounted.
5. Fix the breakage I committed against serial console support.
1995-05-31 09:05:50 +00:00
Jordan K. Hubbard de1aa089a7 Patches to bring the umlauts and other special characters back.
Submitted by:	joerg
1995-05-31 08:10:49 +00:00
Jordan K. Hubbard d7b28ad0c2 Correct mis-spelling of XDM dist. 1995-05-31 07:17:01 +00:00
Jordan K. Hubbard bf11f5f9f5 There were some logic errors in the way the distribution masks
were being set.  Correct them.
1995-05-31 07:13:51 +00:00
Jordan K. Hubbard 3ff3a8c624 Look in proper subdirectory of cdrom for packages. 1995-05-31 00:44:36 +00:00
Jordan K. Hubbard 187ddd8518 If there's only one possible network device, don't even bother putting
up the menu.
1995-05-31 00:17:12 +00:00
Jordan K. Hubbard fc6b8c5482 Change VT_RELDISP to the more correct VT_ACTIVATE. Assuming that
I read Soren's message about VTY's being 1 rather than 0 based correctly,
this should fix the problem with the console not switching back properly.
1995-05-30 21:34:42 +00:00
Jordan K. Hubbard 800a1226ae Fix a bad bug where an umounted DOS partition would cause a loop.
This doesn't occur if you mount your DOS partition(s) in the label
editor.
1995-05-30 19:24:44 +00:00
Jordan K. Hubbard e05ffc482b Commit some tweaks to the README
Add Mathew Bailey's site to MIRROR.SITES.  Somebody with a -current
tree actually checked out on freefall might want to bring this
over.
1995-05-30 18:44:47 +00:00
Jordan K. Hubbard 6b921358af Dutch language README
Submitted by:	Marc van Kempen <[email protected]>
1995-05-30 18:37:41 +00:00
cvs2svn 9347db3509 This commit was manufactured by cvs2svn to create branch 'RELENG_2_0_5'. 1995-05-30 08:29:08 +00:00
Rodney W. Grimes e5370bd7fe Remove trailing whitespace. 1995-05-30 08:29:07 +00:00
Rodney W. Grimes 9b2e535452 Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
Rodney W. Grimes 44204187ec Remove trailing whitespace. 1995-05-30 06:58:14 +00:00
Rodney W. Grimes 7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Rodney W. Grimes 5ebc7e6281 Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
Rodney W. Grimes 6c06b4e2aa Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
Jordan K. Hubbard a2f0036ac4 Whoops! Fix things so that the root.flp also comes over NFS, not just
the distfiles.
1995-05-30 05:50:53 +00:00
Jordan K. Hubbard 3d1cb17575 Clean this up a bit - quite a bit of historical stuff no longer necessary
removed.
Submitted by:	jmz
1995-05-30 05:22:07 +00:00
Jordan K. Hubbard d136cad40e Bring in the Japanese README. 1995-05-30 05:15:12 +00:00
Jordan K. Hubbard bef41f3f29 Bring in the Italian README. 1995-05-30 05:15:06 +00:00
Jordan K. Hubbard db4cec5bfd Bring in the French README. 1995-05-30 05:14:57 +00:00
Jordan K. Hubbard 3c4e776b8a Some small doc fixes. 1995-05-30 05:13:36 +00:00
Jordan K. Hubbard e34d8f08ab NFS installation was broken - try to fix it. 1995-05-30 05:13:24 +00:00
Jordan K. Hubbard d1de348dff Add mount_nfs so that we can do NFS installs. 1995-05-30 05:13:07 +00:00
Rodney W. Grimes 4399be3cbd Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
Rodney W. Grimes 709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Rodney W. Grimes 010f5413b5 Remove trailing whitespace. 1995-05-30 03:37:36 +00:00
Rodney W. Grimes 2162b2d226 Remove trailing whitespace.
Reviewed by:	phk
1995-05-30 00:07:29 +00:00
Rodney W. Grimes 236bb30377 Remove trailing whitespace. 1995-05-29 23:50:55 +00:00
Bill Paul 236f9a3ab9 This is another bug fix that should have gone into my last commit. I
actually had this done at one point and lost it somewhere along the
line. Again, this is an honest to gosh bug fix only: no functionality
is changed.

- After a child broadcaster process dies or is killed, set its dom_pipe_fds
descriptors to -1 so that the 'READFD > 0' test in the select() loop
does the right thing.

Since descriptor values can be re-used, failure to do this can lead
to a situation where a descriptor for an RPC socket can be mistaken for
a pipe. If this happens, RPC sockets could be incorrectly handed off to
handle_children(), which would then clear the descriptor from the select()
descriptor mask and prevent svc_getreqset() from handling them. The end
result would be that some RPC events would go unserviced. Curiously,
the failures only happen intermittently.
1995-05-29 16:39:52 +00:00
Jordan K. Hubbard a0ea7d345e Some floating-point trickery to make the gauge come out right. Also
make it a little longer.
1995-05-29 14:38:31 +00:00
Satoshi Asami 7ee5520fc3 Remove comment about not being able to undefine a variable, as we *can*
do that.
1995-05-29 13:46:38 +00:00
Jordan K. Hubbard f11ff9b1cc 1. Fix a looping bogon in configFstab().
2. Fix the gauge.
3. Don't shut down the media device gratuitously after getting the root
   floppy - it saves work later.
1995-05-29 13:37:43 +00:00
Jordan K. Hubbard e05f5f6ac2 style police. 1995-05-29 13:30:47 +00:00
Jordan K. Hubbard b940da5135 French README.
BTW, if somebody would like to take a look at the German
README I notice that the special characters got totally stripped
somehow and I'm not entirely sure how to put them back! [-jkh] :(

Submitted by:	"Philippe Charnier" <[email protected]>
1995-05-29 13:06:59 +00:00
Jordan K. Hubbard ca9080821f tweak tweak 1995-05-29 13:04:53 +00:00
Jordan K. Hubbard 8dde32f1ad My first attempt at a TCP/IP help screen. The label and partition
help screens aren't even started yet..  If someone's feeling like they
have some extra time there..  ahem..  :-)
1995-05-29 12:33:33 +00:00
Jordan K. Hubbard 62cdf450b8 A small tweak to layout. 1995-05-29 12:32:41 +00:00
Jordan K. Hubbard d33bc96014 The FreeBSD README file auf Deutsch.
Submitted by:	Michael Giegerich  <[email protected]>
1995-05-29 12:05:56 +00:00
Jordan K. Hubbard 9faa4e6750 My first round at all the help files needed explicitly by various menus.
Folks - please review these!  I'm quite sleepy at the moment, and I'm
sure that some of this could be worded better.  I'd like to have at least
a reasonable syntax pass over this before handing it off to the translation
folks!  Thanks!  Feel free to commit any changes directly if it's any time
in the next 8 hours, BTW. I won't mind since I'll be asleep!
1995-05-29 12:00:11 +00:00
Jordan K. Hubbard f1a7e35683 Add a bunch of missing help files. 1995-05-29 11:58:16 +00:00
Jordan K. Hubbard 17aad525f5 Bring the XFree86 3.1.1u1 README in so that it can be easily viewed.
Submitted by:	Rich Murphy <rich> & David Dawes <dawes>
1995-05-29 11:38:17 +00:00
Jordan K. Hubbard 239e091c0c The FreeBSD README file - in Cyrillic!
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-05-29 11:22:24 +00:00
Jordan K. Hubbard ff4878a647 Add my humble beginnings of an installation guide. Put in a one-pager
for the language menu help file.
1995-05-29 11:02:25 +00:00
Jordan K. Hubbard 8fdde019ad Sync up my work for the night. This should implement ALL possible
installation methods and provide a fairly robust set of menu options.
This should also fix a few more bugs on Poul-Henning's latest gripe
list.
1995-05-29 11:01:42 +00:00
Jordan K. Hubbard d802eeef31 Nuke kernel out of root.flp; it's not necessary since there's already one
in the bindist.  This brings root.flp down to 392K!
1995-05-29 10:56:33 +00:00
Jordan K. Hubbard 310738c869 Fix 2 spelling bogons. 1995-05-29 05:19:15 +00:00
David Greenman ac8d676972 Fix setdumpdev():
- the major number wasn't checked, so accesses beyond the end of bdevsw[]
  were possible.  Bogus major numbers are easy to get because `sysctl -w'
  doesn't handle dev_t's reasonably - it doesn't convert names to dev_t's
  and it converts the number 1025 to the dev_t 0x35323031.
- Driver d_psize() functions return -1 to indicate error ENXIO or ENODEV
  (the interface is too braindamaged to say which).  -1 was interpreted
  as a size and resulted in the bogus error ENOSPC.
- it was possible to set the dumpdev for devices without a d_psize()
  function.  This is equivalent to setting the dumpdev to NODEV except
  it confuses sysctl.
- change a 512 to DEV_BSIZE.  There is an official macro dtoc() for
  converting "pages" to disk blocks but it is never used in /usr/src/sys.
  There is much confusion between PAGE_SIZE sized pages and NBPG sized
  pages.  Maxmem consists of both.

Not fixed:
- there is nothing to invalidate the dumpdev if the media goes away.
  This reduces the benefits of the early calculation of dumplo.  Bounds
  checking in the dump routines is relied on to reduce the risk of
  damage and little would be lost by relying on the dump routines to
  calculate dumplo.
- no attempt is made to stay away from the start of the device to
  avoid clobbering labels.

Fix wrong && anachronistic comment about the type of bootdev.

Reviewed by:	davidg
Submitted by:	Bruce Evans
1995-05-29 04:08:13 +00:00
David Greenman 77f53bcf27 Fixed some serious bugs that resulted in object reference counts not being
handled correctly. This would manifest itself as "object deallocated too
many times" panics and perhaps other strange inconsistencies on NFS servers.

Reviewed by:	me, of course
Submitted by:	John Dyson
1995-05-29 04:01:09 +00:00
Poul-Henning Kamp fe3ee28802 Mount MFS as root RW. Remounting doesn't make sense.
Reviewed by:	davidg
1995-05-29 03:27:37 +00:00
Poul-Henning Kamp 2ed03504f5 Actually put something in help.tgz :-) 1995-05-29 02:20:32 +00:00
Poul-Henning Kamp de42a94e4b Get help files form /stand/help.tgz 1995-05-29 02:13:31 +00:00
Jordan K. Hubbard 1f71f6055b Make the emergency holographic shell (on VTY4) actually work with job
control and signals and such.  Thanks, Gary!

Clean up some miscellaneous bogons for Poul.
1995-05-29 01:43:20 +00:00
Poul-Henning Kamp 13eb702447 Reduce the amount of bss the kzip stuff uses by moving big buffers into
the first Mb of memory.  Makes 4Mb machines more happy.
1995-05-29 01:38:07 +00:00
Poul-Henning Kamp b82e26f63a Increase size of MFS filesystem. (You need to remake release.3)
Remove unused devices (*[sw]d*[bdefgh]).
Dont gzip boot_crunch. (This SAVES space on a 4 MB machine, since the
file can be segment can be paged from now.
This (with the kzip patch) makes a 4M machine boot and run again.
Margin in my build is 22 blocks and 9 inodes.
I will look at tgz'ing the help files, we need that.
1995-05-29 01:28:21 +00:00
Jordan K. Hubbard fdb4b4b383 Shrink the boot floppy by removing all extraneous stuff. Also increase
number of inodes.

Fix various bugs reported by Poul.  Implement VTY switching.
1995-05-29 00:50:05 +00:00
Jordan K. Hubbard 15671a7ba8 Add various missing seat belts. 1995-05-28 23:12:09 +00:00
Andreas Schulz 6ba0afa724 Added a NOMAN= macro as this subdir doesn't have a manpage yet. 1995-05-28 21:21:26 +00:00
Andreas Schulz ad15376867 Replaced the whole former Makefile with a more BSD conformant Makefile. 1995-05-28 21:20:30 +00:00
Andreas Schulz cbce938a64 Reviewed by: with the allowance of Rod :-).
Add a NOMAN= . It doesn't have a manual page yet.

Please don't cry :-). I ask Rod first. the whole isdn subdir is not
used in the moment and is only dead source code in the tree.
1995-05-28 21:18:20 +00:00
Jordan K. Hubbard 0d65268039 Fix bogon I introduced into dist extraction code last night.
Update to Poul's latest gripe list fixes.
1995-05-28 20:28:15 +00:00
Jordan K. Hubbard d490f49f9f Add some last attributions and clean up some of the recent additions. 1995-05-28 19:49:57 +00:00
Andrey A. Chernov f7cdf1f7ad Add link to sperl4.036, needed for suid scripts and pgms
which use sperl$]
1995-05-28 19:40:18 +00:00
Andrey A. Chernov 5a630b07ee Make link to tperl4.036, needed for suid scripts and other stuff
which use tperl$]
1995-05-28 19:38:59 +00:00
Andrey A. Chernov 4b7250c3f9 Fix $] variable value (version number), close PR 449
Submitted by: Bill Fenner <[email protected]>
1995-05-28 19:21:54 +00:00
Poul-Henning Kamp 78420108a3 Added name cache optimization, Ontrack, bad144, 3c505, and removed pas.c 1995-05-28 18:56:01 +00:00
Justin T. Gibbs f5e2ec3211 Add a missing "supports" to a sentence.
Add Bt956 as being supported.
Include 2940 in the 2742/2842 section.

Anyone with a new feature or driver in 2.0.5 should think about adding "blurbs"
to this file.  Some features say exactly what they do, others say nothing...
this document needs some rounding out.
1995-05-28 18:32:01 +00:00
Rodney W. Grimes 265368d4f1 Submitted by: dufault
LINT talks about about 2.1.  I changed that to 2.0.5,
and clarified why certain devices need "at scbus?".

There is still a crazy "PCVT=210" which shouldn't be there,
but corrected comment as it is needed for 2.0.5.
1995-05-28 13:24:16 +00:00
Jordan K. Hubbard 34375f5af0 Remove a needless complication - parent directory already has a trailing /. 1995-05-28 09:43:36 +00:00
Jordan K. Hubbard adc0fd37fc Try again to redirect the console back before rebooting. 1995-05-28 09:36:06 +00:00
Jordan K. Hubbard 87b9e01a01 Sync up with Poul. 1995-05-28 09:31:44 +00:00
Jordan K. Hubbard 903d1c40e3 Nuke out all the TAB characters so that this stuff looks right in
a dialog text box.
1995-05-28 09:10:44 +00:00
Jordan K. Hubbard 8ee1922656 My changes to these files.. Update things for 2.0.5. 1995-05-28 09:08:53 +00:00
Poul-Henning Kamp e9f7e74946 cdrom.c: try "cdrom/%s" then "cdrom/dists/%s"
dist.c: fix an error message to make more sense.
1995-05-28 07:05:21 +00:00
Poul-Henning Kamp 3df0e2af63 Reduce the size of the MFS filesystem by 250 Kbyte.
Use && instead of ; a lot of places.
1995-05-28 07:04:36 +00:00
David Greenman 347a022fa7 Kill bogus vnode_pager_setsize(). It was being called at the wrong time
and resulted in the object size being too small. This caused bad things
to happen later when the file was mapped.

Reviewed by:	John Dyson
1995-05-28 04:32:23 +00:00
Jordan K. Hubbard 267e12ca09 Don't make TAB and BACK-TAB destroy field contents incorrectly.
Submitted by:	gibbs
1995-05-28 03:36:05 +00:00
Jordan K. Hubbard 337bd0b846 Humanize Poul-Henning's code. Status values should be properly
respected now.
1995-05-28 03:05:06 +00:00
Jordan K. Hubbard 316000987c Eliminate dups in CONTRIB.FreeBSD.
Numerous changes to RELNOTES.
Submitted by:	Frank Durda IV <uhclem%[email protected]>
1995-05-28 02:48:07 +00:00
Jordan K. Hubbard ae71ab7fd4 1. Make this compile again after Poul's changes to the get() strategy
routine.

2. Improve the tcpip menu slightly.
1995-05-27 23:52:55 +00:00
Poul-Henning Kamp 25fce75ee4 Major cleanup. Mediaroutines now get asked about a file. All the
multi part stuff centralized.
The final check is backwards or something so it always said it failed,
even it it didn't.
Fixed tcpip address check to not be stupid, 10.0.255.1 is legal.
1995-05-27 23:39:35 +00:00
Jordan K. Hubbard bb628eaac6 As Gary would say: "eeek! I introduced a wee bug."
Fix it.
1995-05-27 21:18:07 +00:00
Jordan K. Hubbard 53a4ccbba0 Move /etc/protocols, /etc/services and /etc/sysconfig onto boot floppy. 1995-05-27 21:07:13 +00:00
Jordan K. Hubbard a4b0c879ed 1. Try to work around a bodge in the ftp extraction loop where FtpEOF() was
being called more than once.  Also fix a problem where the URL was getting
   smashed in the environment by copying it to a temporary area before we
   jump up and down on it.
1995-05-27 20:50:10 +00:00
Jordan K. Hubbard 81048a555a 1. Remove slattach from the root_crunch floppy and stick it on the boot
floppy (for slip install).
2. Try to work around a bodge in the ftp extraction loop where FtpEOF() was
   being called more than once.  Also fix a problem where the URL was getting
   smashed in the environment by copying it to a temporary area before we
   jump up and down on it.
1995-05-27 20:49:59 +00:00
Jordan K. Hubbard 654587c49c Delete a couple of now-extraneous files.
Noticed by:	ats
1995-05-27 20:05:35 +00:00
Jordan K. Hubbard 5d76714744 Add ping to the boot floppy; it's too useful for problem diagnosis to
leave off.
1995-05-27 11:18:52 +00:00
Jordan K. Hubbard 8e98d776c0 Commit parts of reorg that were diffs. Substantially re-engineer the
extraction and mediaGetFTP() handshaking to solve some unexpected complexities.
1995-05-27 10:47:44 +00:00
Jordan K. Hubbard ba5d6a864b Things were getting seriously hard to find. Do a quick reorg pass over
the code and split things into more logical groupings.
1995-05-27 10:39:04 +00:00
Poul-Henning Kamp 3e28322bd6 Add a little more debugging to the lowlevel ftp stuff. 1995-05-27 06:19:59 +00:00
David Greenman dd1da8a5af Increased delay after reset to 10ms. Suggested by several people, the last
of which was Scott Mace. This fixes a bug where the card would be missed
sometimes during the device probe.
1995-05-27 04:40:57 +00:00
David Greenman b2af64fd03 Added a fix for a bug which caused the wrong interface to be selected
for broadcasts if point-to-point links shared the same IP address as
the ethernet. The fix must be enabled with P2P_LOCALADDR_SHARE option
in the kernel config file. This will someday likely be standard, but
there isn't sufficient time before release to determine if there are
any interoperability problems with routed and/or gated.

Reviewed by:	Garrett Wollman, and me
Submitted by:	Peter Wemm
1995-05-27 04:37:24 +00:00
David Greenman b8e91dab53 Update swap and dump stuff to match reality:
- option DODUMP no longer exists (remove all references to it).
- directive `swap on' is now a no-op (don't bother documenting it; remove
  comment to match code).
- directive `dumps on' still works (restore code to match comment; deprecate
  it in comment).

Reviewed by:	Poul-Henning Kamp, and me
Submitted by:	Bruce Evans
1995-05-27 04:32:12 +00:00
Nate Williams 43e6a2a89d Add a missing link from the setpgid manpage to the setpgrp manpage. 1995-05-27 04:17:04 +00:00
Andrey A. Chernov 4a0ff33b55 Eliminate two Subject: from *ly output, call sendmail root directly 1995-05-27 01:55:21 +00:00
Andrey A. Chernov ec25d6d6aa Use -b for diff, ls produce different number of spaces 1995-05-27 01:37:44 +00:00
Andrey A. Chernov d55b3b5a2b Use proper PATH in front of monthly
Eliminate Subject duplication for insecure output
1995-05-27 01:31:40 +00:00
Jordan K. Hubbard a0e9ec2476 Remove fixit floppy (release.10) from targets until Poul fixes it. 1995-05-26 23:08:33 +00:00
Jordan K. Hubbard c7c644a181 Change XFree86 dist names to upper case again. 1995-05-26 22:22:20 +00:00
Jordan K. Hubbard a2e871cc98 Netmask is unused now - we can delete it. 1995-05-26 22:08:59 +00:00
Jordan K. Hubbard e345eb1f24 Crunch Poul's changes down to fit on a floppy again. gah. 1995-05-26 21:55:25 +00:00
Jordan K. Hubbard 409f932965 Bring in Poul's patch to make the boot floppy more stand-alone in nature. 1995-05-26 21:47:13 +00:00
Jordan K. Hubbard 11033b2a7f Don't add the default route in ppp - we'll only add it again later. 1995-05-26 21:37:53 +00:00
Jordan K. Hubbard c2192cfe88 Fix a few bogons. 1995-05-26 21:16:02 +00:00
Jordan K. Hubbard f39a013b8a Move ppp back to root floppy; we need it to load the cpio floppy,
potentially.
1995-05-26 21:15:50 +00:00
Jordan K. Hubbard 24f0a9980d Put the console back on ttyv0 before rebooting. 1995-05-26 21:00:43 +00:00
Jordan K. Hubbard fea7a60b7b Put out variable names in quotes. 1995-05-26 20:55:11 +00:00
Jordan K. Hubbard 7adf1b738c Remove tabs and shorten line length to fit. 1995-05-26 20:51:39 +00:00
Jordan K. Hubbard 395dda4194 Clean up the variable handling code a little.
Write /etc/hosts in the right place.
1995-05-26 20:45:20 +00:00
Jordan K. Hubbard a7f54e2e75 Ask name of "other" ftp site in correct place.
Make TIOCCONS redirection for console messages work properly; we no longer
open /dev/console for all I/O - we use the VTYs directly.
1995-05-26 20:31:02 +00:00
Jordan K. Hubbard c5495a0f2e Add Spanish usage instructions.
Submitted by:	Hector  Gonzalez Jaime <[email protected]>
1995-05-26 19:34:48 +00:00
Jordan K. Hubbard 2d7d54b2b4 Clean up the configuration stuff a bit more - we should now populate
/etc with good things(tm).

Fire off ppp with all the proper initial options set.
1995-05-26 19:28:06 +00:00
Rodney W. Grimes 694ae09c05 Reviewed by: sos
Submitted by:	bde

rc.i386 failed messily when I used a serial console.

Editors note:
Use file redirection so that all the kbdcontrol and vidcontrol
commands act upon /dev/ttyv0 instead of stdin.  Though this feature
is not documented it is the intended behavior of {vid,kbd}control
and shall be documented in the future as such.
1995-05-26 18:06:52 +00:00
Jordan K. Hubbard 3a1426b521 Some edits suggested by Atsushi. Also remove my name from the bottom;
just because I edited it doesn't mean I should stick myself in the authors
line, even with the qualification I used.
1995-05-26 17:35:54 +00:00
Jordan K. Hubbard 048999e640 Fix the braindamage I somehow inflicted on this file early this morning. 1995-05-26 17:28:00 +00:00
Jordan K. Hubbard b9643b6695 This should fix the last of the ftp path problems.
It was all a bit more complex than it first looked.
1995-05-26 11:21:53 +00:00
Jordan K. Hubbard dc38f8c8da This should enable use to find the info files properly over ftp. 1995-05-26 10:58:51 +00:00
Jordan K. Hubbard f284246288 Swap args to deviceGet(). Whoops! 1995-05-26 10:34:44 +00:00
Jordan K. Hubbard ad98a5f52b be nice and tell the user when the installation has completed successfully
so they don't just come back to a menu again 2 hours later with no idea
what happened with the operation(s) they had in progress.
1995-05-26 10:32:28 +00:00
Jordan K. Hubbard 5662f32138 Fix a bug in the /etc populating copy.
Change root.flp from a new format CPIO archive to a tar archive.
Unless we're willing to change the main tarballs from tar format to
"newc" (or, even better, "crc") cpio format, we need to use one common
one for all and that's tar for now.  Install will now grab "root floppy"
from an ftp site if that's what you've got set.

Fix even more gripes from Poul's list.

P.S.  As soon as I get the distfiles copied over to freefall tomorrow
morning, those of you wishing to test minimal installs over ftp should
be able to do so by grabbing the boot floppy and nothing else.  Keep
your eyes open for my announcement.
1995-05-26 10:20:47 +00:00
Jordan K. Hubbard 21deb1ee5e Fix a bug in the /etc populating copy.
Change root.flp from a new format CPIO archive to a tar archive.
Unless we're willing to change the main tarballs from tar format to
"newc" (or, even better, "crc") cpio format, we need to use one common
one for all and that's tar for now.  Install will now grab "root floppy"
from an ftp site if that's what you've got set.

Fix even more gripes from Poul's list.
1995-05-26 10:18:12 +00:00
Jordan K. Hubbard 39c1b38efa Make the installation menu loop on the provided package directory (if one
is provided).
1995-05-26 08:59:29 +00:00
Jordan K. Hubbard 3c4d1d3edb Tighten up the TCP/IP dialog a little.
Simply install procedure a bit.
1995-05-26 08:58:35 +00:00
Jordan K. Hubbard 223705ba7e Totally revamp the TCP/IP dialog; now network selection makes a bit more sense.
Root floppy (which actually may be able to go completely away at some point
soon!) is now loadable from ftp/nfs/dos as well as CDROM and (of course)
floppy.

Fix more problems on Poul's Gripe List.
1995-05-26 08:41:52 +00:00
Bill Paul a7acf629b6 Reviewed by: rgrimes, jkh and davidg (sort of)
Rod, Jordan and David have more or less given me the OK on this
with the understanding that it doesn't change any functionality.
It doesn't: these are bug fixes only. No other part of the system
should be affected. Of course, since I'm the only one working on
NIS, you'll just have to take my word on it. :)

Fixes for the following annoyingly subtle bugs:

- ypbindproc_setdom_2 is supposed to be declared void *, not boot_t *,
and it fails to correctly signal failures back to the ypset(8) command:
we need to call one of the svcerr_*() functions (in this case,
svcerr_noprog() seems a logical choice -- we're really cheating
a bit here because nothing else quite fits) to tell ypset that the
attempt to set the binding for a domain failed. If we don't do this,
failed ypset attempts either appear (incorrectly) to succeed, or
they time out.

- The lock handling for child processes isn't quite right. The
child broadcaster processes have to release all locks on the
binding files and the ypbind.lock file.

- The parent ypbind process will SEGV if you do the following:

-- start ypbind with the -ypset or -ypsetme flag
-- type 'ypwhich -d random_unserved_domain'
-- type 'ypset -d random_unserved_domain anyhost'
-- type 'ypwhich -d random_unserved_domain' again
-- wait about 60 seconds

What happens is this: the ypwhich command causes ypbind to fork a
broadcaster process that searches for a server for random_unserved_domain.
If you then use ypset to force a binding while this process is still alive,
the state flags that tell the ypbind parent process that the child
is running will be cleared. The second ypwhich command then causes
a *second* child process to be forked for random_unserved_domain,
which is verbotten. When the first broadcaster exits and tells the
parent that it wasn't able to find a server for the domain, the parent
clobbers the entry for random_unserved_domain. Then the second broadcaster
exits and the same thing happens, only trying to clobber the entry
twice causes a SEGV.

The fix for this is a slight change in program structure: since we
can't have more than one broadcaster for a given domain at a time,
we save the pipe descriptors and pid for the child broadcaster in members
of the _dom_binding struct for the domain. (As a side effect, we
can get rid of the global child_fds variable.) So when rpc_received()
finds that it's been asked to do a ypset for a domain for which a
broadcaster process exists, it sends a SIGINT to the child to kill it
and closes the pipe to the now-dead child. This keeps everything in sync
and insures that we don't leak file descriptors.

- ping() should be using YPPROC_DOMAIN rather than YPPROC_DOMAIN_NONACK
when it does its clnt_call() to the server.

- Removed the check for client_handle == NULL in ping() and make
client_handle local to ping instead of a member of the _dom_binding
struct. This fixes another potential ypset problem: using ypset to
force a binding to a machine that has an NIS server but which *doesn't*
support the domain we're after can result in permanently bogus bindings.

- the 'server OK' message prints the wrong IP address.
1995-05-26 05:28:00 +00:00
David Greenman 0063696232 Fixed bugs in multicast address handling (flag was set in wrong register,
etc.). The tulip_start routine was rewritten to use less stack space (I've
been having problems with wcarchive overflowing the stack and this should
help a little). This version also has preliminary NetBSD support.

Rod Grimes helped in testing this version of the driver. Thanks Rod. It's
additionally been extensively tested here and on wcarchive.

Submitted by:	Matt Thomas
1995-05-26 02:02:44 +00:00
Ollivier Robert 9b9ccd1307 The securedist outside the USA have changed a great deal.
The site in Island has only the 1.1-RELEASE dist.
The previous South Africa sites are dead and the brasilian one
is very hard to get into and painfully slow.
The two South Africa sites come from MIRROR.SITES.
1995-05-25 19:05:01 +00:00
Jordan K. Hubbard 655f249eaa Add CRC checking to sysinstall.
Submitted by:	gpalmer
1995-05-25 18:49:58 +00:00
Jordan K. Hubbard 4537793804 Bring in all my fixes to Poul's gripe list as of last night. 1995-05-25 18:48:33 +00:00
Jordan K. Hubbard fbd92ef8d5 Rename boot.flp to root.flp 1995-05-25 18:48:07 +00:00
Jordan K. Hubbard 8cb85ad4c4 The cpio floppy is dead. All hail the root floppy.
Basically, this is just a simple name change.  People were historically
confused by the "cpio floppy", having no clear idea as to what it was
(even if they knew what "cpio" stood for) given that the name gives
one absolutely no indication as to what it's FOR.  It's about as content
free as calling it a "data floppy".  Root floppy isn't much better, but
it's got some historical weight (Linux divides their set into boot and
root floppies) and is reasonably descriptive for a floppy that comprises
the beginnings of a stand-alone root filesystem.
1995-05-25 18:43:41 +00:00
David Greenman b64b660cd3 Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"
in machdep.c (it should use the global nmbclusters). Moved the calculation
of nmbclusters into conf/param.c (same place where nmbclusters has always
been assigned), and made the calculation include an extra amount based
on "maxusers". NMBCLUSTERS can still be overrided in the kernel config
file as always, but this change will make that generally unnecessary. This
fixes the "bug" reports from people who have misconfigured kernels seeing
the network hang when the mbuf cluster pool runs out.

Reviewed by:	John Dyson
1995-05-25 07:41:28 +00:00
David Greenman cddc961a83 Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"
in machdep.c (it should use the global nmbclusters). Moved the calculation
of nmbclusters into conf/param.c (same place where nmbclusters has always
been assigned), and made the calculation include an extra amount based
on "maxusers". NMBCLUSTERS can still be overrided in the kernel config
file as always, but this change will make that generally unnecessary. This
fixes the "bug" reports from people who have misconfigured kernels seeing
the network "hang" when the mbuf cluster pool runs out.

Reviewed by:	John Dyson
1995-05-25 07:36:24 +00:00
Poul-Henning Kamp 32812b6ea5 media_strategy.c: Add explanation for URL.
ftp.c: Clean up debug, improve error handling.
1995-05-25 06:15:38 +00:00
Poul-Henning Kamp 6331da9711 Remove Ontrack special from All_FreeBSD().
Add chunk->disk pointer.
1995-05-25 06:14:49 +00:00
Poul-Henning Kamp c0b83abedc Fix boot.flp and floppies targets.
Make cpio floppy to temp file first.
1995-05-25 06:14:10 +00:00
David Greenman 956e9ca5a0 Removed check for sw_dev == NODEV; this is a normal condition for swap
over NFS and was gratuitously panicing when it happens.

Reviewed by:	John Dyson
Submitted by:	Pierre Beyssac via Poul-Henning Kamp
1995-05-25 03:38:11 +00:00
Jordan K. Hubbard a3028ab123 Cleanup. 1995-05-25 01:52:04 +00:00
Jordan K. Hubbard 39ae3f1529 Eliminate much redundant cruft from cpio floppy.
Make more vty devices for us to use.
1995-05-25 01:51:45 +00:00
David Greenman 243e5a88d5 Fixed panic that resulted from mmaping files in kernfs and procfs. A
regular user could panic the machine with a simple "tail /proc/curproc/mem"
command. The problem was twofold: both kernfs and procfs didn't fill in
the mnt_stat statfs struct (which would later lead to an integer divide
fault in the vnode pager), and kernfs bogusly paniced if a bmap was
attempted.

Reviewed by:	John Dyson
1995-05-25 01:35:24 +00:00
Jordan K. Hubbard 903463ef42 Put back some changes that were smashed in yesterday's release tree
shoot-down.
1995-05-25 01:22:20 +00:00
Jordan K. Hubbard 34753e5aee Invoke the _right_ shell. Sigh. 1995-05-24 23:43:59 +00:00
Jordan K. Hubbard 795b392ce3 Whoops - that last feature I committed to put a diagnostic shell in
ttyv3 would work a lot better if I actually exec'd a shell! :-)
Reviewed by:
1995-05-24 23:36:50 +00:00
David Greenman d53eacdf28 This should fix PR 438. Apparently I never tested disklabel on the block
device.

v_numoutput wasn't incremented to match the b_iodone nesting.  It's still
fishy that vwakeup() clears B_WRITEINPROG before biodone() has finished;
however, B_WRITEINPROG seems to be never used.

Submitted by:	Bruce Evans
1995-05-24 23:33:42 +00:00
Jordan K. Hubbard e336d945a8 1. Spawn a shell on VTY4 and leave it lying around.
2. Bring in Gary's prompt stuff in extractGeneric.
3. Add another global for telling when we're running as init.
1995-05-24 22:37:44 +00:00
Jordan K. Hubbard 72e242ff9a I tried to use sysinstall and I noticed the look used with Japanese
usage is very bad.

And I found some bugs(?) in ja_JP.*/usage.hlp.
 1. I have made typo.
 2. Mr. Hubbard didn't change about number of virtual consoles.
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-24 21:44:56 +00:00
David Greenman 3e47ca0577 Enclosed is a patch for if_ze.c which will allow it to operate with
the National Semiconductor InfoMover PCMCIA cards also. In tests on a
NE4100 on Jordan's laptop here, the ze driver works fine with that
card.

Reviewed by:	Jordan Hubbard, Rod Grimes, and me
Submitted by:	Gary Palmer
1995-05-24 20:33:42 +00:00
Poul-Henning Kamp eaca002785 Never commit before breakfast: A typo. Sorry Gary. 1995-05-24 19:31:26 +00:00
Gary Palmer 3e28c7a178 Close of ftp socket is now handled by FtpEOF(). 1995-05-24 18:56:03 +00:00
Jordan K. Hubbard 9576fbf44c Take out configSysconfig() until I get it written. 1995-05-24 18:52:47 +00:00
Poul-Henning Kamp e7b2fe43e0 Close the transfer socket. 1995-05-24 18:35:10 +00:00
Jordan K. Hubbard 0b81ddd0c2 "Bring out your dead!" Always try to reap the children we leave around. 1995-05-24 18:21:49 +00:00
Jordan K. Hubbard a098749d6b Bring everybody up to date on my morning's work.
1. Fix a few bugs in the ftp installation code and implement proper
   ftp and network shutdown routines.

2. Clean up the menus a fair bit - add a FreeBSD configuration menu.

3. Eliminate the last of the "chaining" - the installation now does
   the most obvious thing in the most obvious cases and doesn't present
   you with more menus than you were expecting.  This makes it necessary to be
   a little more explicit in places, but it's still less confusing.

4. Add a few more safety nets for the user.  Change a few hard-and-fast
   limits to warnings (it now runs as non-root, Bruce).

5. Add descriptions for all the supported ethernet cards.

6. Make the cpio floppy extract put up a menu requesting the drive you wish
   to use if you have more than one; don't just always assume drive A.
1995-05-24 17:49:20 +00:00
Gary Palmer b2687efa65 Makefile:
Add testftp: target
ftp.c:
  add more debugging output and fix a few more problems
media_strategy:
  make the ftp system actually do something resembling common sense.
  it now works after a fashion, although it soon falls over for some
  reason.
1995-05-24 11:19:11 +00:00
Gary Palmer 66b1d44d35 Move testftp: to release/sysinstall/Makefile where it should have
been in the first place.
1995-05-24 11:17:53 +00:00
Gary Palmer 11aa6abac2 Jordan forgot this in his last sync commit. It's a wee shell script
to help generate the .inf info files I use during the extract process.
1995-05-24 10:46:54 +00:00
David Greenman a2d169021d Fixed bug where UDP was required to mount a TCP NFS filesystem.
Submitted by:	Ken Hornstein, Sept.'94
1995-05-24 10:10:24 +00:00
Jordan K. Hubbard bef6490904 Sync to latest ftp-capable sysinstall. We're getting there! 1995-05-24 09:00:58 +00:00
Jordan K. Hubbard 2f2a4e7a4a Align slices to cylinder boundries.
Submitted By: phk
1995-05-24 08:59:40 +00:00
Jordan K. Hubbard 0412e9f72c Adjust targets to populate info files into distributions. 1995-05-24 08:59:01 +00:00
Jordan K. Hubbard e0130f650e Allow pkg_manage to take a directory argument; I need this for the CDROM. 1995-05-24 06:20:08 +00:00
Jordan K. Hubbard 438728425d A few more typos fixed and some general cleanup done. 1995-05-24 05:51:29 +00:00
Andrey A. Chernov 70659b24a8 Fix %d and others printing
Reviewed by: davidg
Submitted by: Bill Fenner <[email protected]>
1995-05-24 02:54:30 +00:00
David Greenman 80e63506ac Add missing arg to fprintf() error message.
Submitted by:	Mike Grupenhoff
1995-05-24 01:56:52 +00:00
Jordan K. Hubbard 9b03310b0c Add a final configuration menu and the beginnings of the backing code
for it.  The ftp installation method is working well enough to test.
Many more bug fixes, says Gary.
1995-05-24 01:27:15 +00:00
Jordan K. Hubbard 95e34bfc2e Add rule to generate the info files.
Submitted by:	gpalmer
1995-05-24 01:26:23 +00:00
Jordan K. Hubbard 1f35245a14 Whoops! Forgot libkvm. 1995-05-23 23:06:22 +00:00
Jordan K. Hubbard a172d39225 Remove some extraneous junk from the boot floppy. Put ifconfig and route
on there.
1995-05-23 22:59:08 +00:00
Jordan K. Hubbard 023c271a28 Cleanup pass. Remove some grit left over from ripping out
the scripts.
1995-05-23 21:47:26 +00:00
Jordan K. Hubbard 23f2ee6126 Remove the last vestiges of the old installation method. 1995-05-23 21:33:53 +00:00
Jordan K. Hubbard 7b61dc31a2 Add my first cut at TCP/IP device configuration. If this works, the
ftp installation method should now function.  We'll know as soon as my
make release builds the floppies.  I'm just committing this out of my
release tree now so that it doesn't get clobbered again.
1995-05-23 18:06:16 +00:00
Jordan K. Hubbard 43012d292c Correct a typo in the german translation.
Submitted by:	Wolfram Schneider <[email protected]>
1995-05-23 16:26:54 +00:00
Gary Palmer baf9eac5f1 The stand/scripts directory is obsolete. Don't create it in the cpio
floppy area.
1995-05-23 07:20:35 +00:00
Jordan K. Hubbard 7ccad8a96a 1. Bring in the first cut of Poul's ftp routines. We still don't
use them yet, but it's close (we're working on the last wrinkles
   in the CD install for now).
2. Complete the CDROM installation strategy code.
3. Simplify the distribtuion loading code.
4. General error message cleanup.
5. Write the /etc/fstab file now and split those routines into config.c
6. Clean up the menus a little more.
1995-05-23 02:41:18 +00:00
Rodney W. Grimes 424e4f7c42 Add the link for apm.4 so you can find the man page. 1995-05-22 20:49:25 +00:00
Jordan K. Hubbard 1625ae170f wt0 -> rwt0 1995-05-22 17:39:22 +00:00
Jordan K. Hubbard c49678020c Implement most of the CD extract code.
Clean up a few last display bugs.
Add sanity checking that makes sure user creates root and swap partitions.
Add swap partitions with swapon().
1995-05-22 14:10:25 +00:00
Jordan K. Hubbard 769d392920 Clean up the cpio floppy target, remove the fixit floppy from my
"floppies" target - don't need to build that every time for testing.
1995-05-22 14:08:45 +00:00
Adam David e43fc3243b eliminate coredump for readline(NULL) case 1995-05-22 13:32:29 +00:00
David Greenman 87c15d9649 There are two serious bugs in if_de.c. The first should not matter
to most users (the wrong length is passed to ether_input).  The
second is more serious.  The multicast hash algorithm uses the wrong
(low) bits instead of the right (high) bits.  This is only an issue
if you use >12 multicast addresses but if you are using IP multicast
then it might affect you...

Submitted by:	Matt Thomas
1995-05-22 13:32:24 +00:00
David Greenman 751b0b8e10 Print the address associated with an examine. Changed db_maxoff to
something more reasonable (64k). Suggested by Gordon Ross about a
year ago.
1995-05-22 13:07:12 +00:00
David Greenman 956455631c Make last change a little more robust by checking for failure of getcwd(). 1995-05-22 11:03:55 +00:00
David Greenman 82c76939c1 Set "HOME" so that tilde expands correctly. It previously was always root's
directory /root.
1995-05-22 09:53:02 +00:00
Jordan K. Hubbard 0d8da7331a Remove rst1 - it's not made by default. 1995-05-22 06:25:26 +00:00
David Greenman f8141f6f97 Fixed bug in bpf/multicast support that caused multicast packets to get
thrown out if bpfilter support and no BPF listener. (submitted by Bill
Fenner)
Removed unused variable and changed another from a stack variable to a
static - the variable was a rather large array of structs that consumed
a lot of stack space. (me)
1995-05-22 05:51:41 +00:00
Poul-Henning Kamp eb01b2314d The dset program didn't set the "msize" (iosiz in userconfig).
Reviewed by:	davidg
1995-05-22 01:37:24 +00:00
David Greenman 61f5d51062 Changes to fix the following bugs:
1) Files weren't properly synced on filesystems other than UFS. In some
   cases, this lead to lost data. Most likely would be noticed on NFS.
   The fix is to make the VM page sync/object_clean general rather than
   in each filesystem.
2) Mixing regular and mmaped file I/O on NFS was very broken. It caused
   chunks of files to end up as zeroes rather than the intended contents.
   The fix was to fix several race conditions and to kludge up the
   "b_dirtyoff" and "b_dirtyend" that NFS relies upon - paying attention
   to page modifications that occurred via the mmapping.

Reviewed by:	David Greenman
Submitted by:	John Dyson
1995-05-21 21:39:31 +00:00
Jordan K. Hubbard d6f9f66840 Add tape devices to boot floppy. 1995-05-21 21:08:45 +00:00
Gary Palmer 198ca9bde7 1. Correct the path for distributions on the CDROM
2. Put msgDebug() calls into the genericGteDist routine to see
   why it is locking.
1995-05-21 20:41:28 +00:00
Gary Palmer 722ff1fa6b Sigh - forgot the readonly flag to mount() 1995-05-21 19:51:50 +00:00
Poul-Henning Kamp 6444ef3b82 Add a undocumented '-d' flag to set debugging. 1995-05-21 19:31:09 +00:00
Gary Palmer 8a3e807f06 I've just been told that I'm rooted on the hard disk at this point, not
on the boot floppy. Alter the paths to reflect this
1995-05-21 19:29:17 +00:00
Jordan K. Hubbard c420fc79ed Check status of the device init routine properly. 1995-05-21 19:28:05 +00:00
Gary Palmer 21859ed425 Sync in my latest changes to try and find a problem with the mounting
of the CDROM
1995-05-21 19:22:43 +00:00
Jordan K. Hubbard 586ed33afa Nuke out all the NEWVERS stuff; we don't need or use it anymore.
Add Gary's info files to the cpio floppy.
1995-05-21 18:39:42 +00:00
Søren Schmidt ad828abe4b Fixed problem with "char" cursor..
Submitted by:	ache
1995-05-21 18:30:05 +00:00
Jordan K. Hubbard 17137d3f85 1. Remove the scripts from the boot floppy - we don't need them anymore
and it saves us a fair bit of space.

2. Remove adduser and tzsetup as well - they're not needed.

3. Move ft from the boot floppy to the cpio floppy.
1995-05-21 18:29:51 +00:00
Jordan K. Hubbard 19d7c5761e Try AGAIN to get the disklabel editor to do the right thing.
This is getting ridiculous.  I may have to put the clear() back
and take the performance penalty, Poul.

Tweak the TCP/IP setup menu to look a little nicer.

Add lp0 to the list of available network devices (it was found before
but simply not described properly).
1995-05-21 18:24:34 +00:00
Gary Palmer 52a3f86a74 Close a file descriptor leak. 1995-05-21 17:56:13 +00:00
Jordan K. Hubbard c824c08b3c Stick in another strategic clear(). 1995-05-21 17:53:27 +00:00
Jordan K. Hubbard 18be8f143c Do my best to translate this into english.. :-)
Some parts were so incomprehensible that I had to excise them
entirely, but I did my best with the material provided.
1995-05-21 17:32:35 +00:00
Jordan K. Hubbard 23cb914708 1. Start syncing up the network strategy code so that folks like Poul and
Justin can see it.

2. Attempt to fix the redisplay problems in label.c some more.  Not clearing
   the screen each time is certainly faster, but it's causing all sorts of
   problems.
1995-05-21 15:40:54 +00:00
Jordan K. Hubbard 01610d47f2 Add the ft program to the boot floppy. 1995-05-21 13:54:02 +00:00
Jordan K. Hubbard 59bd8aaa69 Correct a stupid typo I introduced in adding CD devices. 1995-05-21 13:36:13 +00:00
Jordan K. Hubbard c853fdb82d Change device name from cua01 to cuaa0. I'm going to use this doc in
the installation, so it was necessary.
1995-05-21 10:52:05 +00:00
Jordan K. Hubbard cbe35e915a Add device entries for CDROM devices to boot floppy.
Increase number of inodes slightly.
1995-05-21 10:33:20 +00:00
Jordan K. Hubbard 7ef31df267 Correct a display bug that Poul introduced with his last round
of optimizations.  Add a check to make sure that root filesystems
are at least 20MB in size (this is just a thumbnail approximation,
and we can revise it later if necessary).
1995-05-21 10:16:10 +00:00
Jordan K. Hubbard f7ef77e04f Reverse a boolean condition that prevented the user from disabling
a distribution fetch.
1995-05-21 10:05:17 +00:00
Poul-Henning Kamp c5cc77ec44 Fix a typo, now there should always be an active slice. 1995-05-21 07:47:24 +00:00
Poul-Henning Kamp 6285c26802 The latest batch from me. Still some screen anomalies (One could consider
the entire libdialog one such :-( ) but functionally ok I think.
1995-05-21 06:12:44 +00:00
Poul-Henning Kamp d553eefb52 label.c: wizard mode now returns;
disks.c: clrtobot() so that deleted stuff disappears.
disks.c: offset is signed (for OnTrack diskmanager)
system.c: don't setbuf(stdout,0), it's too slow.
1995-05-21 04:34:12 +00:00
Poul-Henning Kamp 75e21a4e1e Now I could finally test this change: bad144 is now relative to the
partition.
1995-05-21 03:27:13 +00:00
Poul-Henning Kamp e841846b60 Make a fixit.flp target too.
Improve the search code for the -u # argument to newfs.
1995-05-21 03:20:05 +00:00
Poul-Henning Kamp 0cee912e58 Make newfs options work on rootfs.
Add size argument to new_part, so it can come up with a good default for newfs.
Fix (possibly) a dialog botch after label.c's wizard mode.
Make vsystem even smarter abour crunched binaries (what a speedup!)
(You need to recompile crunchgen !)
1995-05-21 01:56:03 +00:00
Poul-Henning Kamp 7d150b7705 Added a crunched_here(char *path) function so crunched programs can find out
who they share bed and breakfast with.
1995-05-21 01:50:13 +00:00
Poul-Henning Kamp 3525074d14 Now cpio works for me. (it was Mostly confusion about when the chroot
happened)
Make vsystem crunch aware in an intelligent fashion.
make the boot.flp target more specific (and faster).
1995-05-20 23:33:14 +00:00
Gary Palmer 96fe1684f2 #if 0 out PHK's code until we can find a way of making it crunchgen
dependant so that standalone builds aren't hosed.
1995-05-20 22:47:43 +00:00
Jean-Marc Zucconi f7fda1a3c9 configuration files are in /etc/uucp and spool files are in /var/spool/uucp 1995-05-20 21:25:25 +00:00
Jordan K. Hubbard 6593420ad1 1. Add MBR type menu to take it off of Poul's "gripe sheet".
2. Syntax correction from Andrey.

Good night! :-)
1995-05-20 20:30:12 +00:00
Jordan K. Hubbard cc1f1b8814 Don't clear the screen for every redraw in the disklabel and
partition editors (ugh).  Fix an utterly bogus message (no arguments :)
in dist.c.  This should all make Poul a little happier and slide in
before the next CTM update window.
1995-05-20 19:22:21 +00:00
Poul-Henning Kamp 9f857b511d Change vsystem to know that the shell is crunched in.
Sanitize a couple of messages.
1995-05-20 19:12:13 +00:00
Poul-Henning Kamp 13da1b0612 Do not allocate the first track. 1995-05-20 19:11:44 +00:00
Andrey A. Chernov 7b9728ce0b Don't chdir to subdirs before formatting, non-native manpages
assume it for .so directive
Submitted by: Wolfram Schneider <[email protected]>
1995-05-20 19:02:53 +00:00
Gary Palmer 93449d4bbb Bring in my latest changes. The CDROM strategy should now work, and a
(hopefully) generic fs extraction system is in place. Now the other
methods :-(
1995-05-20 18:38:39 +00:00
Jordan K. Hubbard f5f9a92b2f Fix a few message bogons. 1995-05-20 18:37:03 +00:00
Jordan K. Hubbard 71502538f6 Misc cpio evil. I think I'm going to start working locally and just deal
with the diff/CVS hassles - this represents far too many CVS commit
messages for you folks, and trying to document each and every iteration
of the code is a hassle (and not very useful at that).
1995-05-20 16:22:42 +00:00
Jordan K. Hubbard c2948a7b51 Hmmm. Try the raw floppy device! This failure mode is a bit strange. 1995-05-20 15:49:53 +00:00
Jordan K. Hubbard 88c97d3785 Whoops - copy_self() was going to the wrong place!
Use proper floppy device names.
1995-05-20 15:47:19 +00:00
Jordan K. Hubbard e6684cda7a Use ppp0 for all serial devices. It's somewhat kludge, but at
least accurate (we only have one ppp device on the floppy).
1995-05-20 14:36:39 +00:00
Jordan K. Hubbard 7fe566d31b Try again to get cpio_extract() to work. Also fix the bogon
I introduced with msgNotify() again.  Sigh.  I'll get it looking
correct someday!
1995-05-20 14:05:31 +00:00
Jordan K. Hubbard 0aa9f139dd Make Gary happy. 1995-05-20 13:52:53 +00:00
Jordan K. Hubbard e36d47de12 Reviewed by:
Submitted by:
Obtained from:
1995-05-20 13:49:47 +00:00
Jordan K. Hubbard 519501fed0 Correct the name of the release notes file. 1995-05-20 13:36:44 +00:00
Jordan K. Hubbard 6387e9b058 Clear the screen on msgNotifys.
Don't notify in vsystem() - it obscures the original message.
Put some debugging code into cpio_extract() so that I can see
why it doesn't work now. :(
1995-05-20 13:24:35 +00:00
Jordan K. Hubbard 7b74963e46 The problem is the returned salt, while the freebsd man pages asks that the
crypt salt string begin with a '_', no other crypt's do.  If you remove the
initialization of $salt to '_' in sub salt(), everything works as advertised.
Submitted by:	Charles Henrich <[email protected]>
1995-05-20 13:05:22 +00:00
Jordan K. Hubbard 8568ba4e73 Don't call mediaVerify() in quite so many places. 1995-05-20 11:13:58 +00:00
Jordan K. Hubbard 8f1fd59b90 Fix the DOS discovery code to now re-allocate another virtual device if
it's called multiple times in a row.  Add a new device type "DEVICE_TYPE_DOS"
so that we can look up an previous results.
1995-05-20 11:10:35 +00:00
Jordan K. Hubbard f10eb488f6 1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.

2. Totally rework device registration.  It's about half the size and
   more powerful now.

3. Add DOS discovery.

4. Start filling in some of the strategy routines.

5. Another clean-up pass over the menus.

6. Make wizard code use Disk typedef.

If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.
1995-05-20 10:33:14 +00:00
Jordan K. Hubbard 2cf252e087 Totally re-work cpio_extract.
Erase the annoying "Command output is on debugging screen" message
when it's time to switch back.
1995-05-20 08:31:43 +00:00
Jordan K. Hubbard dad012f2c6 Correct a few wording bogons in the menus.
Make notify NOT wipe the dialog off right after putting
it up.  Whoops.  Kinda defeated the purpose! :-)
1995-05-20 07:50:20 +00:00
Jordan K. Hubbard 3492f770db Add Frank Durda IV <[email protected]> 1995-05-20 07:02:22 +00:00
Gary Palmer e61618782b Make Jordan's ``half baked'' code compile so that make release's aren't
stopped dead in their tracks. Also add the beginnings of my
distribution extraction code in media_strategy.c
1995-05-20 03:49:10 +00:00
Jordan K. Hubbard 7ab5b08b2c This doesn't work - the extract code is half-baked. I commit it only
so that Gary can sync to it before I go to bed.. :)
1995-05-20 00:13:14 +00:00
Jordan K. Hubbard ceb1d42782 Only apply @mode directives to files.
Don't use the -p flag to tar; it sets the files to the wrong permissions.
Submitted by:	jmz
1995-05-19 22:40:54 +00:00
Jordan K. Hubbard 606ec289aa Put find on the boot floppy. Don't ask. 1995-05-19 21:31:52 +00:00
Jordan K. Hubbard c7c32addb2 More assorted verbosity. Also don't log informational messages. 1995-05-19 21:30:35 +00:00
Jordan K. Hubbard 1c1834210c Make _DIST_USER use the right flag. 1995-05-19 18:50:59 +00:00
Jordan K. Hubbard 2512487c92 Be more verbose now that we're getting ready to actually extract. 1995-05-19 17:19:39 +00:00
Jordan K. Hubbard ce4e04980d XF86VGA16 -> XF86VG16 1995-05-19 17:11:07 +00:00
Jordan K. Hubbard c10caaad51 1. Incorporate Nickolay's ammended patches for Russian screenmap support
as per Andrey's letter.  Make a few modifications for correctness.

2. Add Language menu back to first menu - it was too buried in the
   Options menu.

3. Add size information to all distributions.

4. Add a compat20 distribution (we need to make one of these!!  Any takers?  Please?)

Submitted by:	Nickolay N. Dudorov <[email protected]> & jkh
1995-05-19 16:58:58 +00:00
Jordan K. Hubbard 87b47edc82 1. Copy the boot floppy into /stand before extracting the CPIO floppy.
2. On Justin's advice, remind the user when they should switch back
   from the debugging screen, if they're looking over there.
1995-05-19 15:56:02 +00:00
Jordan K. Hubbard deb139317a 1. Move Nate from Core Team to Contributors, as per his instructions.
2. Adjust some of my previous wording to be more indicative of the way things
   currently are and using less bogus corporate categorizations ("Directors"
   and "Officers" only exist in real corporations, which the FreeBSD Project
   is not, so it sounded kind of pompus on reflection).
1995-05-19 13:52:01 +00:00
Guido van Rooij c8945315ef Set copyright so we can actually distribute and use it.
Reviewed by:	David Greenman
Submitted by:	Wietse Venema
Obtained from:
1995-05-19 09:53:51 +00:00
Jordan K. Hubbard ec9b92d133 Whoops! Put the helpful message telling you to look at the second
screen on the first screen, and not the second.. :-)
1995-05-19 04:17:38 +00:00
David Greenman 2976b7f19f NFS diskless operation was broken because swapdev_vp wasn't initialized.
These changes solve the problem in a general way by moving the
initialization out of the individual fs_mountroot's and into swaponvp().

Submitted by:	Poul-Henning Kamp
1995-05-19 03:27:08 +00:00
Jordan K. Hubbard 977a407e1d Include serial ports as possible network candidates. 1995-05-19 02:31:13 +00:00
Jordan K. Hubbard a1bfde73e4 Big Sigh. Both A_BOLD and A_UNDERLINE do not appear to work with
syscons (and/or cons25) at all.  This code looked just fine running
on an xterm, but on a console the attributes are all wrong.  I
now have to sacrifice some screen real-estate to pring cheesy
`-' characters to accomplish the same thing.
1995-05-19 02:19:15 +00:00
Jordan K. Hubbard f8230b2f5f Switch to bold on the header line - the A_UNDERLINE handling appears to be
broken in syscons, or at least in the cons25 termcap entry! :-(  A_BOLD
won't show up on monochrome adapters (I don't think) but they'd be screwed
anyway since I don't have an attribute to use for them now at all.
1995-05-19 02:09:02 +00:00
Gary Palmer 9675b32c2f You want to be in /mnt when extracting the cpio floppy, not in the read
only root filesystem.....
1995-05-19 01:49:57 +00:00
Gary Palmer aff014ff20 Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to
fail :-(
1995-05-18 23:36:21 +00:00
Poul-Henning Kamp 4977228d33 Make the "information" slice printfs if(bootverbose).
Fix the message about Ontrack.
1995-05-18 22:45:35 +00:00
Poul-Henning Kamp 739618d119 Remove two printfs before Jordan has a fit over them. 1995-05-18 22:25:37 +00:00
Poul-Henning Kamp 18f4c72169 Run bad144 on raw-devs. 1995-05-18 22:00:01 +00:00
Poul-Henning Kamp b8458cd586 A couple of tweaks to make bad144 scan run. 1995-05-18 21:58:33 +00:00
Poul-Henning Kamp f7f27cd415 Change the ioctl to match what went into wd.c 1995-05-18 21:26:06 +00:00
Jordan K. Hubbard 561e0b4c76 Use raw devices for newfs.
Write and wizard mode only on enabled disks.
1995-05-18 18:02:31 +00:00
Jordan K. Hubbard 9786c33e55 Poul says that setting fonts on monocrome displays is useless
as most mono displays aren't that intelligent anyway.  Disable it in this
case.
1995-05-18 17:49:09 +00:00
Jordan K. Hubbard fcddc1c2bc Use CHUNK_BSD_COMPAT as God and Poul intended it be used. 1995-05-18 17:38:02 +00:00
Gary Palmer 2d5d38af3c Sigh - 2 formatting changes slipped through the net. 1995-05-18 17:26:02 +00:00
Gary Palmer 93a114834c Make the indentation uniform
Suggested by:	jkh
1995-05-18 17:18:46 +00:00
Jordan K. Hubbard a0b7a5f865 Fix quoting error. 1995-05-18 16:57:52 +00:00
Jordan K. Hubbard 8cdff502c9 I had the arguments to Mount() backwards. Argh. 1995-05-18 16:53:53 +00:00
Gary Palmer a3bbb2ff49 Dispose of old, #if 0'd, out code which has been proved to be no longer needed. 1995-05-18 16:44:41 +00:00
Gary Palmer 3890483652 Correct a conditional which could cause a off-by-one error in certain
circumstances.
1995-05-18 16:36:14 +00:00
Jordan K. Hubbard 0e8441fc1a Clear the screen after changing the font. 1995-05-18 15:58:32 +00:00
Jordan K. Hubbard ae1d347651 Whoops! I forgot how uudecode works.. Make it really work here. 1995-05-18 15:46:18 +00:00
Jordan K. Hubbard a2b4e70705 1. Use 8x16 fonts.
2. Don't use russian screenmap - apparently not necessary with right font.
3. Dequote bogusly quoted font name in english language setting.
4. Use setterm() and hack around an undesirable side-effect (cbreak is unset).
5. be smarter about setting OnVTY, and use it in cases where it makes sense.
Submitted by:	Nickolay N. Dudorov <[email protected]>
1995-05-18 15:29:47 +00:00
Jordan K. Hubbard 36678611e6 Add some more debugging information and fix a few missing newlines. 1995-05-18 14:11:16 +00:00
Jordan K. Hubbard 090d283ec5 Sheesh! What was I thinking. ppp should go on the cpio floppy, not
the boot floppy!
1995-05-18 13:54:12 +00:00
Jordan K. Hubbard abac5d4b12 Ahem. It's late. Make my floppies target actually work. 1995-05-18 13:32:22 +00:00
Jordan K. Hubbard 0ead1f1db1 Make a little convenient "floppies" target for myself. 1995-05-18 13:24:48 +00:00
Jordan K. Hubbard def8bcf342 Fix a very embarassing typo. No wonder this thing was looping! :-) 1995-05-18 13:20:53 +00:00
Jordan K. Hubbard 690e60d830 1. Add serial devices to list of possible network device candidates.
2. Rework tcpip.c a bit so that devices which have been configured also
   have the enabled flag set.
1995-05-18 13:18:35 +00:00
Jordan K. Hubbard ab9357a910 Also log all user interactions to debugging log. 1995-05-18 12:57:54 +00:00
Jordan K. Hubbard 2c3b28f96d Add tun0 to the all rule. 1995-05-18 10:51:03 +00:00
Jordan K. Hubbard 9650d6dc0c Add ppp to the boot floppy. 1995-05-18 10:47:45 +00:00
Jordan K. Hubbard 6aebdd7df9 Do more proper bad144 handling. Thanks, Rod. 1995-05-18 10:43:51 +00:00
David Greenman 5eb46edfb0 Added "BROKEN_KEYBOARD_RESET" option to disable using the keyboard reset
in cpu_reset(). Some MBs don't deal with this properly.

Submitted by:	Rod Grimes
1995-05-18 09:17:07 +00:00
Jordan K. Hubbard 4d7b3c6f96 1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again).
2. Make vsystem() put its output on the debugging fd.
3. DTRT with root filesystem placement - now I see how this has to work
   (thanks, Poul).
4. Many miscellaneous spelling errors fixed and general cleanup.
1995-05-18 09:02:06 +00:00
David Greenman 0e5b52868f Fixed a bug that managed to slip in during Poul's dynamic swap partition
changes. The check for nswap was bogus, but the code was so convoluted
that it was difficult to tell. It's better now. :-)

Reviewed by:	David Greenman (extensively), and John Dyson
Submitted by:	Poul-Henning Kamp, w/tweaks by me.
1995-05-18 05:09:54 +00:00
John Fieber 84143d2611 handbook.sgml
Rearranged a few sections, add memoryuse section.

current.sgml, ports.sgml, porting.sgml
  Added a <label>s for cross reference targes.

submitters.sgml
  Lots of editing, added cross references to other sections of
  the handbook.  Added a sample BSD-style copyright statement.

eresources.sgml
  Updated the mailing list section, thanks to Peter Dufault.

authors.sgml
  Added Peter Dufault, David Greenman and Joerg Wunsch.

memoryuse.sgml
  A new section about how/where in PC memory the FreeBSD kernel
  gets loaded and run.
1995-05-18 03:05:22 +00:00
John Fieber 1190b57788 Remove extraneous empty paragraphs (<p></p>) from the output. 1995-05-18 03:01:28 +00:00
David Greenman 5f55e84104 Accessing pages beyond the end of a mapped file results in internal
inconsistencies in the VM system that eventually lead to a panic. These
changes fix the behavior to conform to the behavior in SunOS, which is
to deny faults to pages beyond the EOF (returning SIGBUS). Internally,
this is implemented by requiring faults to be within the object size
boundaries. These changes exposed another bug, namely that passing in
an offset to mmap when trying to map an unnamed anonymous region also
results in internal inconsistencies. In this case, the offset is forced
to zero.

Reviewed by:	John Dyson and others
1995-05-18 02:59:26 +00:00
Jordan K. Hubbard 0b30383382 Use my own version of system() everywhere - it knows where to find the
shell!
1995-05-18 02:42:33 +00:00
Torsten Blum 384435b07d Added myself as per Rod's suggestion 1995-05-17 20:45:10 +00:00
Lars Fredriksen 38dccde2c3 Added myself as per Rod's suggestion. 1995-05-17 17:04:36 +00:00
Jordan K. Hubbard 4da5212097 1. Set a path to /stand by default.
2. Don't clear() when I can dialog_clear().
1995-05-17 16:16:10 +00:00
Gary Palmer 09462c94cf Oops - one slipped past the nets :-( 1995-05-17 16:05:42 +00:00
Gary Palmer 29082c26fe Untabify these files - it doesn't come out right on the display
otherwise :-(
1995-05-17 15:44:22 +00:00
Jordan K. Hubbard 498e6d5df3 Remove the seat-belts from the root partition creation code; for some
reason I'm *always* getting CHUNK_PAST_1024 set now, even when it's
definitely not! :-(  Poul, can you perhaps take a look?  Thanks!
1995-05-17 15:41:52 +00:00
Jordan K. Hubbard d0eeafc570 Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling.
It doesn't load the distributions yet, but it should do everything else.
1995-05-17 14:40:00 +00:00
David Greenman 4039006ad7 Changed read_csr and write_csr to static so that they don't clash
with another driver.

Reviewed by:	Paul Richards
Submitted by:	Brian Litzinger
1995-05-17 13:15:35 +00:00
Gary Palmer dfa4c76f74 Hopefully the last version of this file. Add a lot more comments, and
actually give the data back to sysinstall in a coherent fashion now.
1995-05-17 12:09:11 +00:00
Rodney W. Grimes 843f16dc76 nogroup 32766 -> 65533 to go with nobody's change to 65534. 1995-05-17 10:02:07 +00:00
Adam David 2a8fad2596 added myself as additional contributor 1995-05-17 09:53:03 +00:00
Rodney W. Grimes 3870d1b2f4 Regenerate these using mtree -cdinx -kuname,gname,mode on a very recently
built release after fixing all the wrong directory permissions in that release.

Then use diff -c -b to verify them against the old versions, nothing but
new directories added :-).  And a lot of alphabetizing done!
1995-05-17 09:31:17 +00:00
Ollivier Robert 3fdda4bd2c Change the "make all" into "make depend all" in 6.0.6 (section on kernel
building).

Submitted by:	Rodney Grimes
1995-05-17 09:18:45 +00:00
Bruce Evans ec0896af08 Reviewed by: phk
serial_putchar() always hung if it was called and the serial port existed,
so booting with -h hung when the above bug was fixed.  Previously, setting
-h did nothing but -h was sometimes the default due to the stack garbage
bug.
1995-05-17 07:39:43 +00:00
Bruce Evans 4061e47297 Reviewed by: phk
Submitted by:	DI. Christian Gusenbauer <[email protected]>

The `howto' arg to boot() was not supplied, so it was stack garbage (actually
the return address in the boot program).  I didn't use the submitted fix.
1995-05-17 07:37:53 +00:00
David Greenman 57cb71573d Fixes to the aic7xxx sequencer code and device driver from Justin Gibbs:
1) If a target initiated a sync negotiation with us and happened to chose a
value above 15, the old code inadvertantly truncated it with an "& 0x0f".
If the periferal picked something really bad like 0x32, you'd end up with
an offset of 2 which would hang the drive since it didn't expect to ever
get something so low.  We now do a MIN(maxoffset, given_offset).

2) In the case of Wide cards, we were turning on sync transfers after a
sucessfull wide negotiation.  Now we leave the offset alone in the per
target scratch space (which implies asyncronous transfers since we initialize
it that way) until a syncronous negotation occurs.

3) We were advertizing a max offset of 15 instead of 8 for wide devices.

4) If the upper level SCSI code sent down a "SCSI_RESET", it would hang the
system because we would end up sending a null command to the sequencer.  Now
we handle SCSI_RESET correctly by having the sequencer interrupt us when it
is about to fill the message buffer so that we can fill it in ourselves.
The sequencer will also "simulate" a command complete for these "message only"
SCBs so that the kernel driver can finish up properly.  The cdplay utility
will send a "SCSI_REST" to the cdplayer if you use the reset command.

5) The code that handles SCSIINTs was broken in that if more than one type
of error was true at once, we'd do outbs without the card being paused.
The else clause after the busfree case was also an accident waiting to
happen.  I've now turned this into an if, else if, else type of thing, since
in most cases when we handle one type of error, it should be okay to ignore
the rest (ie if we have a SELTO, who cares if there was a parity error on
the transaction?), but the section should really be rewritten after 2.0.5.
This fix was the least obtrusive way to patch the problem.

6) Only tag either SDTR or WDTR negotiation on an SCB.  The real problem is
that I don't account for the case when an SCB that is tagged to do a particular
type of negotiation completes or SELTOs (selection timeout) without the
negotiation taking place, so the accounting of sdtrpending and wdtrpending
gets screwed up.  In the wide case, if we tag it to do both wdtr and sdtr,
it only performs wdtr (since wdtr must occur first and we spread out the
negotiation over two commands) so we always have sdtrpending set for that
target and we never do a real SDTR.  I fill properly fix the accounting
after 2.0.5 goes out the door, but this works (as confirmed by Dan) on
wide targets.

Other stuff that is also included:

1) Don't do a bzero when recycling SCBs.  The only thing that must explicitly
be set to zero is the scb control byte which is done in ahc_get_scb.  We also
need to set the SG_list_pointer and SG_list_count to 0 for commands that do
not transfer data.

2) Mask the interrupt type printout for the aic7870 case.  The bit we were
using to determine interrupt type is only valid for the aic7770.


Submitted by:	Justin Gibbs
1995-05-17 07:06:02 +00:00
Rodney W. Grimes 978dabea51 Reviewed by: bde, jkh
Add comment that you should not have to edit netstart, and if you
do we would like to know about it.

The lo0 interface is now handled just like any other interface,
This makes it possible to do things to it from sysconfig.

Redo the comments in sysconfig about network_interfaces and ifconfig_${X}
to reflect the moving of lo0 to this scheme.  We now have an uncommented
variable for sysintall to find and play with.  (Your welcome Jordan)

Redo the way static routes are handled.  Basically use the same
scheme for routes that I did for network interfaces.  This allows
any number of static routes to be added from sysconfig.

Make sure we do the default route first so we stand a chance of
getting to our DNS server (if we have one) to resolve our own
IP address from $hostname.
1995-05-17 04:46:57 +00:00
Rodney W. Grimes c30f3572fa Add Peter Dufault <[email protected]> 1995-05-17 02:01:00 +00:00
Satoshi Asami 1eb4157a2e Capitalize mail address of TokyoNet mirror per their request. 1995-05-17 01:55:26 +00:00
Satoshi Asami 5bbce04d77 Added new primary mirror site in Tokyo (direct connection to
BARRNET!).
1995-05-17 01:48:50 +00:00
Rodney W. Grimes 58d8a5e922 Make error message for no input files specified consistent across all
three compilers.

Submitted by:	Thomas Graichen <[email protected]>
1995-05-17 01:03:56 +00:00
Gary Palmer 4ea606879a Oops - Jordan managed to grab my ``work in progress file'' which
doesn't even come close to compiling. This file compiles, and should
work.
1995-05-16 20:00:51 +00:00
Søren Schmidt 290f5f54ee Changed relase number in snake_saver.c from 2.1 to 2.0.5 1995-05-16 19:10:11 +00:00
Andrey A. Chernov 77f033ad20 Enable vt100 semigraphics for xterm 1995-05-16 18:13:01 +00:00
Garrett Wollman 8ecaae9433 Doc fix - ``active'' specification not parsed by routed in /etc/gateways.
Submitted by:	Mike Newell <[email protected]>
1995-05-16 14:10:07 +00:00
Jordan K. Hubbard b2d228d3d7 This will now compile and even scribble helpfully on your disks.
It remains to be seen how successfully.  The distribution loading code
is still not here yet, but the partition/newfs/mount/cpio-extract cycle
is as complete as it's ever going to get, modulo possible bug fixes.
The TCP/IP setup screen is also sort of here, albeit in a highly-changing
state due to the fact that per-interface information isn't being kept
right now but is being added (thanks, Gary!).
1995-05-16 11:37:27 +00:00
David Greenman 92172c87b4 If an ut_host field in an utmp entry contains a ':' (e.g. for an xterm session)
w doesn't handle the non-'\0' terminated char arrays in struct utmp properly.

Submitted by:	[email protected]
1995-05-16 11:29:41 +00:00
Satoshi Asami d5531570b4 Fix the indent level. I know we're in code freeze, and this is
one of the key components of the system, but I'm sure that this:
===
-               ${ECHO_MSG} "===> Registering installation for ${PKGNAME}"; \
+               ${ECHO_MSG} "===>  Registering installation for ${PKGNAME}"; \
===
change has absolutely no chance to screw us up, right? :)
1995-05-16 10:31:25 +00:00
Andrey A. Chernov a66edb3187 Remove extra argument from mesgbox 1995-05-16 10:17:13 +00:00
David Greenman 60f6659f70 Changes to support the "new" bad144. Adds a "BADSCAN" ioctl and support.
Reviewed by:	Bruce Evans
Submitted by:	Poul-Henning Kamp
1995-05-16 07:52:17 +00:00
Andrey A. Chernov 05b91f7dce Call mesgbox instead of msgbox for long descriptions 1995-05-16 06:09:28 +00:00
Jordan K. Hubbard f506f143fa Fixes to document VTY usage.
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-16 03:11:25 +00:00
Jordan K. Hubbard 3dee6615c7 This does _not yet compile_; I'm simply bringing in my changes from
this weekend in order to more easily sync with my CVS tree at home.
Another commit relative to these changes will follow shortly.
1995-05-16 02:53:31 +00:00
Jordan K. Hubbard 64b91eadc2 Changes to support the new dialog_dselect() features required to fix
pkg_install.  dialog_dselect() wasn't very useful before.
Submitted by:	Marc van Kempen <[email protected]>
1995-05-16 01:31:40 +00:00
Jordan K. Hubbard aa1478bbd2 Fix a problem where pkg_manage refused to allow the user to select a
full directory hierarchy, as is the format of the new ports collection.
It used the old "all packages in one directory" paradigm, which is wrong for
ports now.
Submitted by:	Marc van Kempen <[email protected]>
1995-05-16 01:30:20 +00:00
David Greenman 765b90447e These diffs modify the behaviour of multicast clients to conform with the
IGMPv2 spec.  This fixes the following bugs:

o ntohs() on a char provides silly results
o timer needs to be scaled to units of PR_FASTHZ; this was being done
  inconsistenly so now it gets done when it is initialized.

Reviewed by:	Garrett Wollman
Submitted by:	Bill Fenner <[email protected]>
1995-05-16 01:28:29 +00:00
Jordan K. Hubbard 88f0d26553 A number of bug fixes to mrouted (no functionality enhancements from 3.5, just
the fixes!):

o Scoped addresses might let traffic in
o IGMP queries sent with wrong timeouts
o Possible core dump in mtrace if we get a request for which we have no route
o If a member on a transit network left a group, mrouted would stop forwarding
  even if there was a downstream router
o Various code cleanups and logging changes

Reviewed by:	wollman
Submitted by:	Bill Fenner <[email protected]>
1995-05-16 00:28:50 +00:00
David Greenman c9a8415607 Fixed route reference count bug that squirmed in during the the
routing-socket code upgrade from Berkeley..

Submitted by:	Garrett Wollman via Peter Wemm via Cornell
1995-05-15 22:57:53 +00:00
David Greenman 635d58b32c Removed unnecessary extern declaration that was causing compiler warnings.
Reviewed by:	Garrett Wollman
1995-05-15 22:55:18 +00:00
David Greenman aeb0491c43 Removed extraneous comma.
Reviewed by:	Bruce Evans
1995-05-15 22:27:48 +00:00
John Fieber b2821ccba5 Slip server document updated for 2.x systems.
Submitted by:	Guy Helmer <[email protected]>
1995-05-15 22:07:21 +00:00
Rodney W. Grimes bbfba93794 The ``mount -a -t nfs'' should never have been backgrounded. If you
have non-critical nfs volumes in /etc/fstab they should have option bg
on them.  The behavior of the system is more tuneable this way, and
allows a slow mounting /usr over nfs to work.

Submitted by:	bde
1995-05-15 19:50:59 +00:00
Andrey A. Chernov efc05b2bdd change nobody master.passwd entry to 65534:65534
change nobody group entry to 65534
Suggested-by: pst
1995-05-15 19:24:57 +00:00
Poul-Henning Kamp 86577745c3 Fixed the calculation of the reserved space for bad144. Thanks Rod! 1995-05-15 19:03:08 +00:00
Poul-Henning Kamp b89995508b Basic bad-block scanner. Works. Slow. Adds the bad-spots automatically. 1995-05-15 19:02:09 +00:00
Andrey A. Chernov e95be7ca34 Change xten shell from /dev/null to /nonexistant, adduser
complaints instead.
Change nobody user group from non existent in /etc/group (9999) to
existent nobody (39).
1995-05-15 18:35:22 +00:00
Andrey A. Chernov 0ae932377a Fix draw shadow bug, when shadow reaches end of the screen,
bringed by devmenu or tzsetup f.e.
1995-05-15 16:40:02 +00:00
David Greenman dbe38b75e5 Fixed typo. 1995-05-15 12:23:03 +00:00
David Greenman f5504b009d Use symbolic "IPTOS_LOWDELAY" instead of octal bit value for this socket
option. The bit value was wrong.
1995-05-15 11:58:03 +00:00
David Greenman 84fbd1c727 Fully initialize (bzero) the stack-allocated "struct sockaddr_in server"
structure. Random junk on the stack would cause the call to bind to fail
in some cases (since the address portion wasn't initialized).
1995-05-15 09:56:49 +00:00
Rodney W. Grimes f8a6f4a227 Remove all /dev/'s from device names, they should all be relative
to /dev.  Putting absolute paths in here breaks the make release
process, and screws up testing of this script in other directories.

Submitted by:	bde
1995-05-15 09:44:10 +00:00
David Greenman 1469eec81e Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting
or R/W upgrading filesystems that are dirty unless "-f" (force) option
is used with mount. /etc/rc has been modified to abort the startup if
one or more non-nfs partitions fail to mount.

Reviewed by:	Poul-Henning Kamp, Rod Grimes
1995-05-15 08:39:37 +00:00
David Greenman 9b5bb13bf8 From Bruce Evans:
I ran into another manifestation of the problem reported in PR 211 and
fixed it. Try this:

as non-root:
	cd /tmp; mkdir x y x/z
as root:
	chown root /tmp/x/z
as non-root:
	cd /tmp/x; mv z ../y		# EACCES as expected
as root:
	cd /tmp/x; mv z ../y		# EINVAL NOT as expected

This is because ufs_rename() sets IN_RENAME and fails to clear it.

Reviewed by:	davidg
Submitted by:	bde
1995-05-15 07:31:09 +00:00
Gary Palmer 64cecefe43 Clean up the matcd entry so it deletes the *matcdl* entries before trying
to create new ones.

Reviewed by:	davidg, rgrimes
1995-05-15 06:55:18 +00:00
Poul-Henning Kamp ff88273903 Create_Chunk_DWIM will not allocate anything in the last cylinder of a
CHUNK_BAD144 slice.
Also mknod the 'c' partition for freebsd slices, so bad144(8) will have
something to work on.
1995-05-15 00:58:25 +00:00
Andrey A. Chernov 0b45516009 End of listcan be not marked, fix it
Submitted by: Kai Vorma <[email protected]>
1995-05-15 00:03:32 +00:00
Andrey A. Chernov f101e3f500 Fix xterm entry by fallback to vt220 entry,
also compact VT* is/rs capabilities to prevent overflowing
1995-05-14 23:32:53 +00:00
Andrey A. Chernov 8868bb111b Fix false backspace reporting 1995-05-14 22:46:15 +00:00
Andrey A. Chernov d9f3f4f9bb Parse ^? correctly now 1995-05-14 22:33:52 +00:00
Andrey A. Chernov 4f5129899a Parse ^? now, our termcap use it and some termcaps from other
systems use it too
1995-05-14 22:29:13 +00:00
David Greenman 30fd0561cd Added apersand constraint to make sure that the source and destination
registers aren't combined.

Reviewed by:	Bruce Evans and David Greenman
Submitted by:	John Dyson
1995-05-14 22:25:11 +00:00
Rodney W. Grimes e602d31e02 Fix 3 printf's that had the wrong number of arguments.
Submitted by:	gibbs
1995-05-14 19:19:55 +00:00
Nate Williams 3288e2905f Prototype for madvise() is missing from sys/mman.h
Submitted by:	Kai Vorma <[email protected]>
1995-05-14 19:19:07 +00:00
Andrey A. Chernov e7d6343ec1 Fix error returning address of local array 1995-05-14 19:14:53 +00:00
Andrey A. Chernov 2ea29df013 Add dumpon 1995-05-14 18:43:25 +00:00
Rodney W. Grimes 4f66643c1d This patch teaches info to read gzipped files (emacs info already
works) so one can gzip files in /usr/share/info and save a few
megabytes diskspace.

Submitted by:	Kai Vorma <[email protected]>
1995-05-14 17:54:44 +00:00
Andrey A. Chernov cb874294c9 Install uuconv/uuchk with right permissions 1995-05-14 17:01:07 +00:00
Gary Palmer b04042154b tcpdump is in (1) not (l) 1995-05-14 15:21:36 +00:00
Bruce Evans 9f83fbf2e7 Fix declaration of palette[] so that fade saver doesn't cause panics. 1995-05-14 12:54:30 +00:00
Satoshi Asami d6f5c64683 Added "doc" to the list of subdirs, so that amdref.info* will get
installed in /usr/share/info...closes my own PR, docs/408 (aaah now
I need to figure out how to "close" PRs... ;)....
1995-05-14 11:24:41 +00:00
David Greenman 14c77d8a98 After carefully reading three reference documents, and analyzing
the 802.3 frames generated by the DC21040 (which does automatic padding
of less-than-minimum frames) and the frames generated by the 'ed'
driver, I've found that there is indeed a bug in the size of "ETHER_MIN_LEN"
as reported by several people, John Hay being the most recent. The driver
was actually setting the length to 6+6+2+50 (64 bytes), which when adding
in the CRC (which is automatically appended to the frame and not included
in the length), the minimum frame is 4 bytes larger than it is supposed to
be. All of this is confirmed by tcpdump showing 50 bytes of data for
minimum frames from the 'ed' cards and 46 bytes from 'de' cards. This
analysis has also revealed that there is garbage in the un-filled in
portion at the end of the minimum frames from the 'ed' driver; I don't
plan to fix this.
1995-05-14 11:01:20 +00:00
Rodney W. Grimes 1f6583b909 printf -> fprintf when you use a fd arg :-), oops! 1995-05-14 08:40:37 +00:00
Rodney W. Grimes 46e26c551d Don't add a slash to the end of _PATH_DEV, it already has one.
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 08:19:08 +00:00
Rodney W. Grimes 1bb5661b59 Add bad144 -s option to scan entire slice of disk.
Obtained from:	FreeBSD 1.1.5.1 (Just the scan function itself was added)
1995-05-14 07:05:47 +00:00
Poul-Henning Kamp 2df6483f69 Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
1995-05-14 03:37:40 +00:00
David Greenman bd7917b1a7 Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it
is now dynamic.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:10:58 +00:00
David Greenman 1295400e49 Updated to work with Poul-Henning's recent changes to the swap device
table.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:08:35 +00:00
David Greenman a401ebbe32 Changed swap partition handling/allocation so that it doesn't
require specific partitions be mentioned in the kernel config
file ("swap on foo" is now obsolete).

From Poul-Henning:

The visible effect is this:

As default, unless
        options "NSWAPDEV=23"
is in your config, you will have four swap-devices.
You can swapon(2) any block device you feel like, it doesn't have
to be in the kernel config.

There is a performance/resource win available by getting the NSWAPDEV right
(but only if you have just one swap-device ??), but using that as default
would be too restrictive.

The invisible effect is that:

Swap-handling disappears from the $arch part of the kernel.
It gets a lot simpler (-145 lines) and cleaner.

Reviewed by:	John Dyson, David Greenman
Submitted by:	Poul-Henning Kamp, with minor changes by me.
1995-05-14 03:00:10 +00:00
Rodney W. Grimes af9fe6e59d mlink bad144.8 to man8/bad144.8 so we can find the manual page.
Use /${MACHINE} for MANSUBDIR instead of hardcoded /i386

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 02:30:19 +00:00
David Greenman 43e6fcd576 Take out special error message for EINVAL...we really do want it to be
"invalid argument".
1995-05-14 02:18:18 +00:00
Satoshi Asami 563120df88 Don't conditionalize fake-pkg on NO_PACKAGE. 1995-05-13 23:37:16 +00:00
Andrey A. Chernov c4de35376b Fix FtpPasv to not return address of local variable, close PR 399
Submitted by: John Capo <[email protected]>
1995-05-13 22:09:52 +00:00
Andrey A. Chernov bd940a6e9e Fix manpage lies about -P 1995-05-13 22:06:12 +00:00
Rodney W. Grimes 3d8e4b9338 Remove XXX comment that I had moved to netstart and forgot to remove from
here.
1995-05-13 20:16:11 +00:00
Rodney W. Grimes 682078bd09 Very minor rework to eliminate useage of - operator by checking for
existance of ${CHROOTDIR}.

Remove -k option from make install for building chroot tree, makes it
error out early if you forgot to populate the pre-chroot obj tree.

Reviewed by:	phk
1995-05-13 19:51:57 +00:00
Poul-Henning Kamp 3ee2ce52b4 remove swapinfo. 1995-05-13 17:27:10 +00:00
Poul-Henning Kamp 59392fe2bc Make pstat act like swapinfo if so invoked. 1995-05-13 17:25:23 +00:00
Andrey A. Chernov 4067631146 Change ln -sf to rm -f and ln -s, first one work incorrectly
for directories when called second time
1995-05-13 16:58:37 +00:00
Andrey A. Chernov 38e121ed71 Update other Makefiles to reflect uuconv/uuchk install place change 1995-05-13 12:57:44 +00:00
Andrey A. Chernov 12421b942f Install uuconv/uuchk to /usr/sbin 1995-05-13 12:30:17 +00:00
Satoshi Asami cbed30a5cf Add "include". 1995-05-13 12:07:08 +00:00
Satoshi Asami 2914e4f239 Add FORCE_PACKAGE, if this is defined, NO_PACKAGE will be turned off.
Ports for which we can't build packages should define NO_PACKAGE but
still prepare pkg/* files.  The user who really wants a package and
clear of the legal problems can say FORCE_PACKAGE from the command line
to build a package anyway.
1995-05-13 05:37:45 +00:00
Rodney W. Grimes b6333dea9d Submitted by: jkh
Build lib/libncurses and lib/libtermcap early in the libraries: target
as other libraries depend on them.
1995-05-13 03:34:23 +00:00
Jordan K. Hubbard c25cfd0b0d "1 easy fix in 10 excrutiating steps"
A phone call from Manfred quickly pointed up the fact that I got the conflict
check backwards.  NOW we implement the conflict checking correctly!  Wheesh!
1995-05-13 00:09:38 +00:00
David Greenman e83d87f1fc Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
1995-05-12 23:39:15 +00:00
David Greenman 404abd2138 Only use card's soft-configured irq if no irq was specified in the kernel
config file. This should fix a number of complaints regarding the auto
detection behavior.
1995-05-12 22:39:40 +00:00
David Greenman c4cf09ffe6 pread/pwrite() should be static.
Submitted by:	sef
1995-05-12 21:39:48 +00:00
Andrey A. Chernov b94c770a5e Add Moscow and Kiev 1995-05-12 20:13:19 +00:00
Andrey A. Chernov 2f632e8fe8 Fix getsockopt(IP_ACCT_*) to not panic kernel
Submitted by: Bill Fenner <[email protected]>
1995-05-12 20:00:21 +00:00
Andrey A. Chernov 4769e93ea2 Add missing include 1995-05-12 19:21:46 +00:00
Garrett Wollman 5bb4f73817 The death of `options NODUMP'. Now the dump area can be dynamically
configured (and unconfigured) on the fly.  A sysctl(3) MIB variable is
provided to inspect and modify the dump device setting.
1995-05-12 19:17:31 +00:00
Garrett Wollman 5e7d9e89ba Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
1995-05-12 19:12:44 +00:00
Garrett Wollman 55678a2eb9 Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
Garrett Wollman 83f9dfab4d My utility to specify where you want crash dumps to go. More user
and kernel support to follow.
1995-05-12 19:10:09 +00:00
Poul-Henning Kamp 7b92fbb848 Added MakeDevDisk(struct disk*, char *path);
fixed bug in extended slice naming.
1995-05-12 18:50:00 +00:00
Paul Richards e5e0d60df8 Forgot to add these. 1995-05-12 17:31:45 +00:00
Paul Richards 89e255f52c New libforms.
Bumped major number.

Ncurses backend still needs improving.
Other back-ends need to be written.
1995-05-12 17:20:06 +00:00
Bill Paul 97f3a7e6e7 One for the road: create a ypbind.lock file under /var/run and try to lock
it. If we can't it means there's already a ypbind running and we should
abort.
1995-05-12 16:52:58 +00:00
Bill Paul dbda9e5ed2 - Add an entry to allow swapping on a vn device (if one is configured).
- Do the right thing when booting in NFS diskless mode, which is nothing.
  Make the default unconfigured entries for swdevt[0] and dumplo something
  that swapconf() will ignore and not choke on (the swap setup is done
  in nfs_vfsops.c when booting diskless).
1995-05-12 16:11:07 +00:00
Andrey A. Chernov d0930614cc Add 'rc' line 1995-05-12 15:17:55 +00:00
Andrey A. Chernov dc02f1c279 RISCom/8 driver 1995-05-12 15:09:29 +00:00
Andrey A. Chernov 9bda6bd9b8 Remove -R from CFLAGS 1995-05-12 13:15:41 +00:00
Satoshi Asami 9f3f196b2c When NO_PACKAGE is set, "package" and "repackage" don't depend on
"install".  In other words, they won't do anything at all.
1995-05-12 08:44:12 +00:00
Satoshi Asami a11b461203 Not only deleting the package and package links, also exit with status
1 if pkg_create returns error!
1995-05-12 07:43:48 +00:00
Satoshi Asami 25254cc62d Delete package and links when pkg_create fails. 1995-05-12 07:32:59 +00:00
Rodney W. Grimes ba0879629f Submitted by: Charles Henrich <[email protected]>
Quite up man when directories in MANPATH do not exist.  If you want
it to tell you about problems use man -d.
1995-05-12 04:56:28 +00:00
David Greenman 15f1b09648 Increased ratio of allowed vnodes on freelist to 1/4th of the total. This
is more representative of worst case situations of 4 files/directory. (If
that last sentence doesn't make any sense, I'm not surprised. It's rather
compilcated how this all fits together....).
This should fix a problem that Ed Hudson has been complaining about where
directories with lots of symlinks could cause excessive disk I/O.
1995-05-12 04:24:53 +00:00
Poul-Henning Kamp 8af2296bcb I'm about to jump on the swap-initialization, and having talked
with davidg about it, I hereby kill two undocumented misfeatures:
The code to skip a miniroot in the swapdev is not particular useful, and
if we need it we need it to be done properly, ie size the fs and skip all
of it not some hardcoded size, and subtract what we skip from the length
in the first place.
The SEQSWAP dies too.  It's not the way to do it, it doesn't work, and
nobody have expressed any great desire for it to work.  The way to
implement it correctly would be a second argument to swapon(2) to give
a priority/policy information.  Low priority swapdevs can be made so
by adding them at a far offset (0x80000000 kind of thing), with almost no
modification to the strategy routine (in particular a offset per swapdev).
But until the need is obvious, it will not be done.
1995-05-12 03:54:59 +00:00
John Fieber 3fc924e8ce Update the kerberos section, add Mark Murray <[email protected]> to
the authors section.
Submitted by:	Mark Murray <[email protected]>
1995-05-11 22:31:28 +00:00
Jordan K. Hubbard 1b780c0e7f Argh! Another instance of DES rather than des that I forgot. Truly,
this keyword is in too many places! :(
1995-05-11 22:07:49 +00:00
Andrey A. Chernov d293af2d2e Make fmt ctype-aware
Fix non-critical bug with getting EOF double times
Not call strlen for zero length test
1995-05-11 21:32:35 +00:00
Jordan K. Hubbard 5469943802 Document the fact that almost all the user configuration stuff is now
in /etc/sysconfig, per Luigi's suggestion.
1995-05-11 21:11:17 +00:00
Jordan K. Hubbard 7b094c1c1d The lites web page has moved.
Submitted by:	rich
1995-05-11 20:39:36 +00:00
Garrett Wollman c356b1c45d Add some more defines that don't change the genericness of a file. 1995-05-11 20:21:23 +00:00
Garrett Wollman 1d86aba60b Make `make links' work by leaving swapkernel.c off out of the links processing
(it is never generic).
1995-05-11 19:48:45 +00:00
Rodney W. Grimes b2b795f07c Fix -Wformat warnings from LINT kernel. 1995-05-11 19:26:53 +00:00
Rodney W. Grimes a51ab5ce3b Reviewed by: wollman
Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options.
1995-05-11 19:08:37 +00:00
Poul-Henning Kamp 303fd456bf Use spc, not spt, DUH! Thanks Bruce!
Submitted by:	bde
1995-05-11 16:19:50 +00:00
Lars Fredriksen 60c3781abb Updated the text to reflect changes in the english version.
Also updated the text based upon suggestions from Havard.Eidnes.
1995-05-11 14:31:22 +00:00
Jordan K. Hubbard 59927d47cf 1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem().  No need for vsystem() here.
3. Add a path for the shell.
1995-05-11 09:01:35 +00:00
Jordan K. Hubbard 8a5f152db3 Add ls to the boot floppy - folks will be lost without it! 1995-05-11 08:52:11 +00:00
Jordan K. Hubbard a9d7ec4113 Revise this to actually print all the various isa_device field values
it really should have been printing all this time.  Also fix my rather
bogus handling of the id_conflicts value by moving it to the end of
isa_device and dealing with that correctly now.
1995-05-11 07:54:41 +00:00
Bruce Evans 0de8909518 Define _POSIX_VDISABLE so that it can be used in #if expressions. 1995-05-11 07:52:49 +00:00
Bruce Evans d81fba0cda Add variable `idelayed' and macros setdelayed() and schedsofttty()
to access it.  setdelayed() actually ORs the bits in `idelayed' into
`ipending' and clears `idelayed'.

Call setdelayed() every (normal) clock tick to convert delayed
interrupts into pending ones.

Drivers can set bits in `idelayed' at any time to schedule an interrupt
at the next clock tick.  This is more efficient than calling timeout().
Currently only software interrupts can be scheduled.
1995-05-11 07:44:40 +00:00
Jordan K. Hubbard c77a009363 Move conflicts flag to the end. 1995-05-11 07:41:52 +00:00
Bruce Evans 0ee893eb32 Add loadandclear(). It atomically loads a value from memory, clears the
value in memory and returns the original value.
1995-05-11 07:24:35 +00:00
Jordan K. Hubbard 336d17595a Drop the inode count down a bit - we ran out of inodes with the help files. 1995-05-11 07:18:11 +00:00
Jordan K. Hubbard 17078dcc1f Argh! Get the args to tar right. It's late. I'm sleepy. 1995-05-11 07:11:24 +00:00
Jordan K. Hubbard 89046f378e Use the proper libs for sh. 1995-05-11 07:05:05 +00:00
Jordan K. Hubbard 3edcd90d4b 1. Fix a cd which somehow got capitalized.
2. Don't put CVS files on the floppy.
1995-05-11 07:03:33 +00:00
Jordan K. Hubbard e0d3af579f Clean this up a bit - add more documentation to the documentation menu. 1995-05-11 06:47:46 +00:00
Jordan K. Hubbard caeb252543 Dump the help files onto the new floppy. 1995-05-11 06:40:40 +00:00
Jordan K. Hubbard 212014b835 Put a shell on the boot floppy. 1995-05-11 06:32:13 +00:00
Jordan K. Hubbard dae062c15f First round of changes after testing this on actual systems. Clean up
some of the badly displayed menus, use the proper notification box for
messages, make proceed work.
1995-05-11 06:10:56 +00:00
Jordan K. Hubbard 46374ebcaa DES -> des. Sigh! 1995-05-11 05:23:40 +00:00
Poul-Henning Kamp 8f9c995787 Get the CHUNK_COMPAT_BSD flag right. 1995-05-11 05:22:54 +00:00
Jordan K. Hubbard 4767b31211 Lower-case the name of the DES directory. Yes, it's an acronym, but DOS
is still dOs.

					Jordan
1995-05-11 05:22:29 +00:00
Jordan K. Hubbard da8d0268df Pass me the pointed chapeau - this typo somehow got through my testing. 1995-05-11 05:20:43 +00:00
Bill Paul 2c739e6439 If you config a kernel with 'config kernel swap generic' and try to
boot diskless with it, you get a panic because setconf() is only
called for mountroot == ffs_mountroot. It really needs to be called
no matter what manner of rootfs we have. I can't really say if
swapgeneric will work with a CD-ROM though. (I get the feeling I'm
the only one who uses swapgeneric these days anyway.)
1995-05-11 02:50:11 +00:00
Jordan K. Hubbard babb4e927f Add a new `conflicts' flag for telling when a device is in conflict with
others.  The flag can be put in descriptive locations, e.g.:

device sb0      at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
or
device psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

But is nonetheless boolean only.  You can't turn conflict checking off for
only a given type of conflict.  I didn't deem it worth the trouble at this
stage, and it's far better than the ALLOW_CONFLICT_* that preceeded it.
1995-05-11 02:21:34 +00:00
Jordan K. Hubbard 9cc347481f Remove all vestiges of the ALLOW_CONFLICT_FOO evil and replace it with
something slightly less evil - a per device conflict flag.
1995-05-11 02:15:55 +00:00
John Fieber d4053fae6e Added "FreeBSD in a nutshell", swiped from the WWW pages with a
few modifications.
1995-05-11 02:03:38 +00:00
David Greenman 6b067b0744 #ifdef'd my Nagel/ACK hack with "TCP_ACK_HACK", disabled by default. I'm
currently considering reducing the TCP fasttimo to 100ms to help improve
things, but this would be done as a seperate step at some point in the
future.
This was done because it was causing some sometimes serious performance
problems with T/TCP.
1995-05-11 01:41:06 +00:00
Bill Paul 4d6e34053f Ack! One slipped through the cracks: remember to return the correctly
filled-in result structure to the caller when a resource allocation
error is encountered in ypbindproc_domain_2.
1995-05-11 00:16:54 +00:00
Garrett Wollman c9cd353a18 Delete two debugging printfs that mistakenly crept in. 1995-05-11 00:16:44 +00:00
Garrett Wollman 748e0b0acc Make networking domains drop-ins, through the magic of GNU ld. (Some day,
there may even be LKMs.)  Also, change the internal name of `unixdomain'
to `localdomain' since AF_LOCAL is now the preferred name of this family.
Declare netisr correctly and in the right place.
1995-05-11 00:13:26 +00:00
Bill Paul c904a246d2 Performace improvements/simplifications/cleanups:
- Make the child process reaper signal-driven. (Previously, we called reaper()
  once a second each time we went through the select() loop. This was
  convenient, but inefficient.)

- Increase main select() timeout from 1 second to 60 seconds and use
  this as the ping timer instead of using timestamps in the _dom_binding
  structure. This nd the reaper() change noted above makes ypbind a little
  less CPU-intensive.

- Don't flag EINTR's from select() as errors since they will happen as a
  result of incoming SIGCHLD's interrupting select().

- Prevent possible resource hogging. Currently we malloc() memory
  each time a user process asks us to establish a binding for a domain,
  but we never free it. This could lead to serious memory leakage if a
  'clever' user did something like ask ypwhich to check the bindings
  for domains 0.0.0.0.0.0.0.0.0.0 through 9.9.9.9.9.9.9.9.9.9 inclusive.
  (This would also make a mess out of the /var/yp/binding directory.)

  We now avoid this silliness by a) limiting the maximum number of
  simultaneous bindings we can manage to 200, and b) free()ing _dom_binding
  structures of secondary domains whose servers have stopped responding.
  We unlink the /var/yp/binding/domain.vers files for the free()ed
  domains too.

  (This is safe to do since a client can prod us into reestablishing the
  binding, at which time we'll simply allocate a new _dom_binding structure
  for it.)

  We keep count of the total number of domains. If asked to
  allocate more than the maximum, we return an error. I have yet to hear
  of anybody needing 200 simultaneous NIS bindings, so this should be
  enough. (I chose the number 200 arbitrarily. It can be increased if need
  be.)

- Changed "server not responding"/"server OK" messages to display server
  IP addresses again since it looks spiffier.

- Use daemon() to daemonify ourselves,

- Added a SIGTERM handler that removes all binding files and unregisters
  the ypbind service from the portmapper when a SIGTERM in received.

- The comment 'blow away everything in BINDINGDIR' has no associated code.
  Give it some: clean out /var/yp/binding at startup (if it exists).

This completes my ypbind wishlist. Barring bug fixes, I shouldn't need to
go poking around in here anymore. (Of course, this means I can start
working on my ypserv whishlist now... :)
1995-05-10 23:02:41 +00:00
Jordan K. Hubbard 36dc394c61 Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.
1995-05-10 23:00:16 +00:00
Jordan K. Hubbard e8019cb42b Fix a long-standing bug that broke pkg_info utterly and probably made
pkg_add a little wiggy too.  Document the fact that pkg_info can also
take a URL.
1995-05-10 23:00:07 +00:00
Jordan K. Hubbard 82f99dbbda Bump the number of allowable args by a factor of 4. I just scanned
all possible packing lists and found that at least one of them is
pretty large!
1995-05-10 22:33:55 +00:00
John Fieber 63fa13d623 Added Jordan's "brief history of FreeBSD", swiped from the WWW pages. 1995-05-10 22:12:01 +00:00
Jordan K. Hubbard 28ed622cab Document fetch-by-URL. 1995-05-10 20:56:19 +00:00
Jordan K. Hubbard c63a4dc13b Re-work make_dist() routine to build the tar command more reasonably.
This should eliminate the problem with truncated packages.
1995-05-10 20:46:06 +00:00
Jordan K. Hubbard 42206c90f4 Don't use curses routines until that part of the system is initialized. 1995-05-10 18:59:51 +00:00
David Greenman 54ea0c000f Unlock the vnode before sleeping on an OBJ_DEAD object. Should fix Bruce's
hang. Fixed some formatting anomolies and removed some unneeded casts.
1995-05-10 18:59:11 +00:00
David Greenman ee3a64c992 Changed "handle" from type caddr_t to void *; "handle" is several different
types of pointers, and "char *" is a bad choice for the type.
1995-05-10 18:56:09 +00:00
Jordan K. Hubbard 817836447b Remove dmenu from the Makefile 1995-05-10 18:22:29 +00:00
Jordan K. Hubbard 0020de4fe4 Reviewed by:
Submitted by:
Obtained from:
1995-05-10 17:54:09 +00:00
Jordan K. Hubbard dda697f031 Remove ncftp from cpio - we don't need it any more.
Adjust boot floppy to (hopefully) include libdisk in the crunch.
1995-05-10 17:20:23 +00:00
Garrett Wollman 78a8281095 Updated routing-socket code from Berkeley
Obtained from: Keith Bostic by way of Paul Traina
1995-05-10 16:48:52 +00:00
Rodney W. Grimes 3e0b4dc1f6 Submitted by: wpaul (with 2 lines moved by rgrimes)
Add support for kern_devconf structure.
1995-05-10 15:19:29 +00:00
John Fieber db27b2e18e Toplevel reorganization and integration of Poul-Henning Kamp's section
on the booting process.
1995-05-10 11:34:07 +00:00
Satoshi Asami 827039417c Add new variable to override the "hey foobar-1.2.3 is already installed"
warning from fake-pkg.
# FORCE_PKG_REGISTER - If set, it will overwrite any existing package
#                      registration information in ${PKG_DBDIR}/${PKGNAME}.
1995-05-10 09:30:09 +00:00
Jordan K. Hubbard 8e3bb099bf Sync up to Poul - use his new Create_Chunk_DWIM() function and use the pointer
it passes back.  Thanks, Poul!
1995-05-10 09:25:49 +00:00
Jordan K. Hubbard b34c876a61 Make sure that mountpoints start with a /. 1995-05-10 08:03:21 +00:00
Jordan K. Hubbard 4ec1f4bcf2 Whoops - dispatch() takes multiple args now. 1995-05-10 08:00:47 +00:00
Jordan K. Hubbard 351669d743 Fold in all my recent changes.
Do another clean-up pass over this, making the generic menu handler much
more powerful (now handles multiple dispatch).  A few more menus fleshed
out and the beginnings of the distribution handler committed.  Should
be transfering full distributions over in the next commit.
1995-05-10 07:45:00 +00:00
Poul-Henning Kamp 59618a8666 Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies. 1995-05-10 05:57:04 +00:00
Satoshi Asami 9432f44382 New directory name for uec mirror.
Submitted by:	[email protected] (Hideaki Tsuchiya)
1995-05-10 04:18:24 +00:00
John Fieber 710b2e3600 Add sgmlfmt. 1995-05-10 00:38:30 +00:00
John Fieber 53a4c0de25 Add sgml 1995-05-10 00:36:16 +00:00
John Fieber 4213d0cd98 Update the doctype declaration to use the FreeBSD version of the
linuxdoc DTD.
1995-05-10 00:12:18 +00:00
John Fieber 317be71920 The program that turns sgml files (tagged according to the linuxdoc
DTD) into HTML, LaTeX or ascii.  (the latter is still pretty rough)
Reviewed by:	rgrimes
1995-05-09 23:58:06 +00:00
Jordan K. Hubbard f26b6240ac Switch from bogus absolute path to a relative one.
Closes PR #bin/391
Submitted by:	Stephen McKay <[email protected]>
1995-05-09 23:48:54 +00:00
John Fieber 39fe917d33 The linuxdoc DTD used for the FreeBSD handbook and FAQ.
Reviewed by:	rgrimes
Obtained from:	Linux (with modification)
1995-05-09 23:19:47 +00:00
John Fieber 9381eca971 New directory for sgml tools: /usr/share/sgml
Reviewed by:	rgrimes
1995-05-09 23:06:59 +00:00
Jordan K. Hubbard 5013b8b22c Remove all reference to sysinstall - it's going away. 1995-05-09 23:03:22 +00:00
Jordan K. Hubbard 4da86446d9 Get sysinstall from /usr/src/release not /usr/src/sbin. 1995-05-09 23:02:56 +00:00
Jordan K. Hubbard 3af7a5dc18 secure -> DES. 1995-05-09 22:58:42 +00:00
Garrett Wollman 7cd23434fe Add GNU-style `-print0' primary. This exists so that one can safely
do `find some-nasty-expression -print0 | perl -n0e unlink' and have all
the files actuallly get deleted.  (Using `xargs' and `rm' is not safe.)
1995-05-09 19:02:06 +00:00
Garrett Wollman 2b50c84ac1 Make certain that random keys havethe correct parity, for interoperation with
MIT v4 implementations.

Submitted by: Reece R. Pollack <[email protected]>
1995-05-09 18:05:15 +00:00
Andrey A. Chernov f14d551c2c Fix line-count overflow, close PR 351
Submitted by:  Edward Wang <[email protected]>
1995-05-09 16:56:23 +00:00
Bruce Evans d8762fa6a0 Submitted by: Mike Pritchard <[email protected]>
msdosfs_lookup() did no validation to see if the caller was validated
to delete/rename/create files.  msdosfs_setattr() did no validation
to see if the caller was allowed to change the file permissions (turn
on/off the write bit) or update the file modification time (utimes).

The routines were fixed to validate the calls just like ufs does.
1995-05-09 16:30:45 +00:00
Rodney W. Grimes 1f2c9ce35f Submitted by: gj
Delete suspicious looking chunk of code that was partially commented out.
1995-05-09 13:59:22 +00:00
David Greenman 94a5d9b6a1 Replaced some bcopy()'s with memcpy()'s so that gcc while inline/optimize. 1995-05-09 13:35:48 +00:00
Rodney W. Grimes e6ba2cd30e Fix nested comments for -Wcomment warnings. 1995-05-09 13:33:06 +00:00
Rodney W. Grimes 1a4e9088d5 Fix nested comments for -Wcomment warnings. 1995-05-09 13:13:29 +00:00
Jean-Marc Zucconi d2ec3b3080 Change wording about displayed text in text fields 1995-05-09 13:06:11 +00:00
Rodney W. Grimes eb0b975c2d Fix nested comments for -Wcomment warnings. 1995-05-09 12:58:53 +00:00
Rodney W. Grimes ad753d5151 Fix nested comments for -Wcomment warnings. 1995-05-09 12:48:21 +00:00
Rodney W. Grimes 06e81069bd Fix nested includes for -Wcomment. 1995-05-09 12:35:29 +00:00
Andras Olah 40db8ef747 Fix a misspelled constant in tcp_input.c.
On Tue, 09 May 1995 04:35:27 PDT, Richard Stevens wrote:
> In tcp_dooptions() under the case TCPOPT_CC there is an assignment
>
>       to->to_flag |= TCPOPT_CC;
>
> that should be
>
>       to->to_flag |= TOF_CC;
>
> I haven't thought through the ramifications of what's been happening ...
>
>       Rich Stevens

Submitted by:	[email protected] (Richard Stevens)
1995-05-09 12:32:06 +00:00
Rodney W. Grimes 2d9d0204f7 Fix -Wformat warnings, still need to do something about %b and pointer
type args.
1995-05-09 12:26:00 +00:00
Rodney W. Grimes 14b77878bb Rewrite the MCD_TRACE macro to be a varargs macro so that the extraneous
arguments to printf could be fixed.

Correct all but 1 -Wformat warning.  Some would have caused garbage to
be printed due to missing args!
1995-05-09 11:39:40 +00:00
Rodney W. Grimes 0f9b873be7 Change install: to afterinstall: to be more consistent. 1995-05-09 10:12:16 +00:00
Jordan K. Hubbard b5260d2051 Rename secure to DES. 1995-05-09 05:22:41 +00:00
John Dyson 40ab35ce04 Added bounce support for user scsi requests.
Reviewed by:	David Greenman
1995-05-09 02:38:15 +00:00
Jordan K. Hubbard a3e12198e1 Use absolute path for release dir. 1995-05-09 02:24:39 +00:00
Jordan K. Hubbard d37bc70266 Revise confusing wording about text fields. It now reads
"the amount of text above the current point" instead of "the amount of text
remaining", which was of the exact opposite meaning!  Urk.
Submitted by:	joerg
1995-05-09 01:52:42 +00:00
Poul-Henning Kamp e34fb4afd7 Cleanup to the INET part of lpt.c.
Reviewed by:	phk
Submitted by:	pst
1995-05-09 01:33:16 +00:00
Satoshi Asami 94c600b239 Make the "reinstall" target delete the package cookie as well as
the install cookie.
1995-05-09 00:31:54 +00:00
Jordan K. Hubbard 20e5d523d9 Make a less expensive re-release target. 1995-05-09 00:30:00 +00:00
Jordan K. Hubbard a88bbe42ef Don't go build sbin/sysinstall anymore; it's obsolete. 1995-05-09 00:18:32 +00:00
Jordan K. Hubbard 15e52edd61 secure -> DES 1995-05-09 00:15:30 +00:00
David Greenman 6c206048ae Improved hashinit panic strings. 1995-05-08 23:11:12 +00:00
Jordan K. Hubbard f9a1c2dee2 Sync these up so that they'll get into my CVS tree at home, where I'll continue
working on the distribution extract stuff.
1995-05-08 21:39:40 +00:00
Paul Traina 255aed5d97 Correction, Jim Lowe is the author... Getting code to work right is far
easier than writing the comments. :-(
1995-05-08 19:42:00 +00:00
Paul Traina adc5e4f1f7 Update copyright notice to properly reflect that this was original work
by James Miller (sorry Jim).
1995-05-08 19:34:16 +00:00
Jordan K. Hubbard 9e572e47e5 Whoops! Uncomment Write_Disk() again. 1995-05-08 18:41:37 +00:00
Bruce Evans d9bf888a1b sdsize() didn't open a device often enough. This caused swap partitions on
slices other than the first slice looked at to be unavailable for swapping.
1995-05-08 16:53:33 +00:00
Gary Palmer 8b3fe702b7 Change /lib/cpp to /usr/bin/cpp 1995-05-08 16:50:19 +00:00
Bruce Evans dac9a9e66d Fix numerous bugs in wdsize().
It closed the wrong device (usually the B partition instead of the C
partition).
It closed a device without having opened it.
It didn't open a device often enough.  This caused swap partitions on
slices other than the first slice looked at to be unavailable for swapping.
It didn't check the device number sufficiently.
1995-05-08 16:48:23 +00:00
Bruce Evans edde522e19 Declare dssize(). 1995-05-08 16:27:10 +00:00
Bruce Evans 599eb538d8 Fix reopening of open subdevices for DIOCSYNCSLICEINFO:
Reopen the bdev for the raw partition and not the cdev if only the bdev
was open.
Don't use a bogus limit for the number of partitions to possibly reopen
(bug found by Julian).

Add function dssize() to help fix wdsize() and sdsize().  The slice
layer knows more about (un)open partitions and partition sizes than
the driver layer.
1995-05-08 16:24:08 +00:00
Andrey A. Chernov a5d744927b Bump major number, function deleted 1995-05-08 16:10:34 +00:00
Andrey A. Chernov 11d07acbab Bump major number instead of minor 1995-05-08 16:08:49 +00:00
Lars Fredriksen 5462a49a71 Improved readabilty and spelling 1995-05-08 14:40:59 +00:00
Jordan K. Hubbard 4d66a82366 Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.
1995-05-08 10:20:56 +00:00
Andrey A. Chernov 011048ae6a Bump major number 1995-05-08 08:43:06 +00:00
Jordan K. Hubbard e1c3886b0d The value -1 is special. Allow it.
Submitted by:	bde
1995-05-08 06:14:16 +00:00
Jordan K. Hubbard 69bbb06233 Add the sorted command executor code. 1995-05-08 06:08:27 +00:00
Jordan K. Hubbard 7f197a5448 Ok, we should now create all filesystems, mount them and extract the
cpio floppy at this point.
1995-05-08 06:06:30 +00:00
Poul-Henning Kamp d81adf1ebe Recognize slice type #6 as dos
handle OnTrack Disk manager correctly.
1995-05-08 02:08:33 +00:00
Poul-Henning Kamp 0f15ab39ec Make disk.c smart enough to handle disk with "OnTrack Disk manager".
Make it complain if people try to boot from a partition which extends
past 1024 cylinders.  This is better than a random reset...
1995-05-08 02:02:56 +00:00
Andrey A. Chernov 883c5f31fa Fix nasty shadow bug sneaked in Marc's commit.
Implement ^K and KEY_EOL as clear end of line
Move common code from line_edit to static function
Cosmetique changes in textbox
1995-05-08 01:43:52 +00:00
Poul-Henning Kamp fccc689116 Add check for rootfs > cyl 1024. 1995-05-08 01:34:31 +00:00
Jordan K. Hubbard 83b74c37e4 Implement the geometry command. Clean up the help a little. 1995-05-08 01:27:07 +00:00
Poul-Henning Kamp c0b8ca15f5 I bet Jordan is tearing his hair out, trying to figure the previous patch
out... here is the real thing.
1995-05-08 01:26:47 +00:00
Jordan K. Hubbard 65a27a9ba4 Add a wizard button for Poul. 1995-05-08 00:56:28 +00:00
Poul-Henning Kamp f768aaceb4 Fix bug. 1995-05-08 00:44:46 +00:00
Jordan K. Hubbard 0881c9c4a1 Fix a bug in multi-column output. 1995-05-08 00:38:02 +00:00
Andrey A. Chernov 3cfa74c35f Make two "ttyout" ttysleep wmesg unique
Add t_timeout to ttysleep call into ttywrite
1995-05-07 23:53:36 +00:00
Jordan K. Hubbard 27e3eb523c Another sync up for Poul. Added a lot more error checking. 1995-05-07 23:37:34 +00:00
Andrey A. Chernov 020531ce67 Add FreeBSD-specific TS_* states 1995-05-07 23:19:53 +00:00
Andrey A. Chernov 75343e2589 Change 'rc' entries from 'r' to 'm', conflict with ptys 1995-05-07 23:04:03 +00:00
Andrey A. Chernov e73e1e3715 Add hook for pstat -t 1995-05-07 23:00:02 +00:00
Andrey A. Chernov 9030041959 Enable sio driver and upcoming rc driver
Add more line disciplines
1995-05-07 22:15:46 +00:00
Jordan K. Hubbard 51f0ec8415 Implement a work-around for Create_Chunk providing no pointer to the
new chunk.  The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!
1995-05-07 22:07:53 +00:00
Jordan K. Hubbard 09d9aeaab3 Add additional check for IRQ > 15. This code still needs a lot of work!
Remove silly "Naffy, the Wonder Porpoise" attribution and add more
justifiable (and overdue) attribution to Bruce Evans.  Look at it
as a delete and add operation batched together, not a substitution. :-)
1995-05-07 19:45:49 +00:00
Jordan K. Hubbard 2a281ee780 Duh! Get the section number for config(8) right! :) 1995-05-07 18:24:43 +00:00
Jordan K. Hubbard 9024554c25 If user specifies IRQ 2, remap it to IRQ 9 with a warning.
Suggested by:	rgrimes
1995-05-07 18:23:58 +00:00
Bruce Evans da2aae3b17 Fix 3 fatal mismatches in format args involving dbtob() and 10 nonfatal
mismatches.
1995-05-07 08:33:39 +00:00
Bruce Evans 2d732692dc Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
1995-05-07 08:13:37 +00:00
Bruce Evans ff55774394 Cast some expressions involving dbtob() to (unsigned long) and print them
using %lu.  This became more broken when I fixed dbtob() to support byte
offsets >= 4GB.  The type had to change to [u]quad_t.  Previously the
expressions had type unsigned long and were printed using %d.  After
division by 1024, the expressions are guaranteed to fit in an unsigned
long, at least for the standard DEV_BSIZE, so edquota doesn't need to
know about quad_t's explicitly.

Fix all the other format mismatches exposed by compiling with -Wformat
(6 more quota limits of type unsigned long printed using %d and 6 time_t's
(i.e., longs) printed using %d).
1995-05-07 07:48:35 +00:00
Bruce Evans ee4415d3df Fix style inconsistencies in the last few commits. 1995-05-07 07:06:36 +00:00
Joerg Wunsch d867cefdcb Make the syntax checks for the format string more strict. The string
"%8*s" is no longer considered to be a valid format description.

This closes PR bin/386.
1995-05-07 07:00:18 +00:00
Bruce Evans 6d3fd1b72c Submitted by: [email protected] (John Mackin)
Fix handling of sense errors.  Nonexistent media and end of media were
mishandled.
1995-05-07 06:54:01 +00:00
Bruce Evans fd2e43ead6 Submitted by: [email protected] (Philippe Charnier)
Fix comment on .else to match code.
1995-05-07 06:39:30 +00:00
Paul Traina da4ae79d98 Major cleanup up SunOS/VAT driver emulation code, added a BSD style copyright
notice, performed all of the structural changes necessary to get this thing
to work with the unidirectional-DMA version of voxware.

This work is -not- complete,  but it's in far better shape than it was,  and
I may not touch it again for another few months.
1995-05-07 06:38:49 +00:00
John Dyson 11fda60b40 Another error in the correction for trimming swap allocation for
small objects.  (This code needs to be revisited.)
1995-05-07 06:36:59 +00:00
Bruce Evans 65e8f11839 Test the correct nonblocking flag in ttylclose(). IO_NDELAY is only valid
in read() and write().  FNONBLOCK is valid in ioctl() and close().

The bug caused hung ptys when a process talked to itself using nonblocking
i/o and exited while the slave pty had output to flush.  ttywait() was
called and hung.  Signals didn't work because the process was exiting.
`comcontrol /dev/ttyp0 drainwait 1' worked to terminate the wait.  This
shows that comcontrol is not limited to hardware control.  It has no i386
or driver dependencies and doesn't belong in src/sbin/i386.

Bruce
1995-05-07 06:32:28 +00:00
Jordan K. Hubbard 2b0e7dfa13 Make this compile again. Poul and I need to sync up again. 1995-05-07 05:58:57 +00:00
Bruce Evans 2f27939662 Silence `make -s' (echo -> ${ECHO}). 1995-05-07 05:56:00 +00:00
John Dyson 85b67b98fd Fixed a calculation that would once-in-a-while cause the swap_pager
to emit spurious page outside of object type messages.  It is not
a fatal condition anyway, so the message will be omitted for
release.  Also, the code that "clips" the allocation size, associated
with the above problem, was fixed.
1995-05-07 03:48:54 +00:00
Jordan K. Hubbard 133231e4aa Correct a few ordering errors in how the partitions were being displayed. 1995-05-07 03:38:03 +00:00
Jordan K. Hubbard 64330cc768 Print sizes of partitions now. 1995-05-07 02:04:29 +00:00
Jordan K. Hubbard 5ff77a9985 Whoops! An extra paren somehow got in there. Fixed. 1995-05-07 01:28:16 +00:00
Jordan K. Hubbard 3906ebee12 Always zero new chunks - keeps things like the private structures from having
bogus data in them.
1995-05-07 01:25:22 +00:00
Joerg Wunsch 85827d9c13 Restructured the floppy tape probe.
The ``flags 1'' in the fdc line is now only needed for owners of an
Insight tape (perhaps there aren't any?  Mine is disfunctional).  All
other probes are safe wrt. to the motor-control line of floppy disk
drives.  Document the flag in LINT finally.
1995-05-06 19:34:28 +00:00
Joerg Wunsch d2b27ba8b6 From Wolfram: Fix: typos, old links
Submitted by:	[email protected] (Wolfram Schneider)
1995-05-06 19:04:07 +00:00
Andrey A. Chernov 47f4474b4e Describe -m option 1995-05-06 13:52:29 +00:00
Jordan K. Hubbard 4c88964f89 Some fairly serious cleanup. The proper offset should now be used in
creating partitions.  Still need to get the mount points displaying carefully,
but I need to get this into my tree on time so that I can work on that.
1995-05-06 09:34:24 +00:00
Satoshi Asami 3339f3175b Change of hostname and contact address for TUT's mirror site. Is this
list automatically pulled into the install docs?
Submitted by:	Ashida Hiroyuki <[email protected]>
1995-05-06 09:10:49 +00:00
Joerg Wunsch 2b33ce9350 Forcibly add -O2 to the vgaio CFLAGS, to work around a gcc bug. 1995-05-06 07:07:52 +00:00
Rodney W. Grimes 361b945d4c Add usr.sbin/pcvt/keycap to libraries: target. 1995-05-06 03:59:58 +00:00
Poul-Henning Kamp b83d7daff4 General sanitation and cleanup. Killed the "reserved" type, it wasn't. 1995-05-06 03:28:32 +00:00
Jordan K. Hubbard e4d731b693 All the editors are finished. Now if I can just get a problem with libdisk
fixed, we should be able to fully set up the user's disk.  Still to come
with next commit:  filesystem setup, distribution extraction, final
configuration.
1995-05-05 23:47:47 +00:00
Jordan K. Hubbard 3a04674a0e Document VTYs
Submitted by:	Marc van Kempen <[email protected]>
1995-05-05 23:15:03 +00:00
Jordan K. Hubbard 3fcb7e8a7c Addendum documenting VTYs.
Submitted by:	Luigi Rizzo <[email protected]>
1995-05-05 23:14:05 +00:00
Peter Dufault 314a2585d5 New modes file needed for mode editor. "b" can not stand for bit fields. 1995-05-05 20:43:46 +00:00
Peter Dufault 9a8e4e5bdc Add support for editing mode pages. 1995-05-05 20:42:00 +00:00
Peter Dufault 5134dcebcc Make it so that the command formats are the same for both -i and -o.
This means "t" has to stand for bit fields, since b is a valid hex number.
1995-05-05 20:40:03 +00:00
David Greenman 9b3fdc5a9f Fixed mbuf leak and panic that occurred when packets got too memory
fragmented.
Added support for Cogent em100 boards.
Fixed bug that caused BPF to toggle the card to UTP.
Various other improvements.

Submitted by:	Matt Thomas and David Greenman
1995-05-05 20:09:51 +00:00
Rodney W. Grimes a22c45683f In target libraries: make and install libcompat before all other
libraries.  This fixes the make -DCLOBBER world problem.

Check that gnu exists before attempting to build the libraries in
that branch of the tree.
1995-05-05 18:00:30 +00:00
Adam David f434d1dfe1 typo there --> their 1995-05-05 16:49:15 +00:00
Andrey A. Chernov 2ee32961f5 Add IPTOS_MINCOST according to RFC 1349
Change IPTOS_PREC_ROUTINE to 0 (was conflict with IPTOS_LOWDELAY) according
to RFC 791 (unchanged since it) and BSDI 2.0 style
Submitted by: Igor Sviridov <[email protected]>
1995-05-05 14:36:38 +00:00
Satoshi Asami 884a677900 ttyq[0-9a-f] -> ttyp[g-v] 1995-05-05 10:06:34 +00:00
David Greenman f73bbaf2fa Fix spelling error. Commented out ISO and ISO related things until I
either fix it or we decide to remove it. It requires implementing PCB
hashing to get it to compile and likely a lot more to get it to work..
1995-05-05 07:47:44 +00:00
Poul-Henning Kamp 0be90238f6 If in Create_Chunk we (type==freebsd && (flags&CHUNK_ALIGN)), then we will
align this chunk properly.  Have at it Jordan...
1995-05-05 07:07:45 +00:00
David Greenman 3fb0993969 From "Philippe Charnier" <[email protected]>:
There is a bug in sh: the built in command "fc -l" generates
a core dump (*NULL in not_fcnumber).

According to the sh manual page (fc  -l [-nr] [first [last]]), fc -l
is a correct sequence (in that case, values are defaulted to -16 and -1)
but fails when first is not given.
1995-05-05 06:34:13 +00:00
David Greenman 9714de6a38 Check for 0 before dividing by it. Patch from Paul Traina, modified
slightly by me.
1995-05-05 06:15:11 +00:00
Jordan K. Hubbard c8911fa27e Add changes to document VTYs.
Submitted by:	Serge A. Babkin <[email protected]>
1995-05-05 05:17:26 +00:00
Jordan K. Hubbard 5e54fdd46d 3 VTYs by default, not 4. My fault. 1995-05-05 00:00:12 +00:00
Jordan K. Hubbard bf97c8d151 Not 4 VTYs by default, 3. Whoops. 1995-05-04 23:59:32 +00:00
Jordan K. Hubbard d97dd41b97 Addendum concerning virtual console usage in JIS.
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-04 23:58:21 +00:00
Jordan K. Hubbard 06a72614d9 Add extra paragraph documenting virtual consoles in Japanese.
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-04 23:57:23 +00:00
Jordan K. Hubbard da92977461 Argh! Not 4 consoles, 3! Thanks, Satoshi Niimi!
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-04 23:56:51 +00:00
Jordan K. Hubbard a2e3498a3c Everything but the partition editor is done. This commit is for MBR testing. 1995-05-04 23:36:23 +00:00
Jordan K. Hubbard fb31b6d679 The swedish usage.hlp file, in the proper locale.
Submitted-by: Olof Johansson <[email protected]>
1995-05-04 21:09:28 +00:00
Jordan K. Hubbard 2c1d9ad150 Add the Norwegian version of usage.hlp
Submitted by:	Lars Fredriksen <[email protected]>
1995-05-04 21:07:30 +00:00
Jordan K. Hubbard 7c56cfd441 This will now write MBR entries - should be enough for testing. 1995-05-04 19:48:19 +00:00
Joerg Wunsch 9c7c40911c Jordan's addendum. Jetzt auch in deutsch. :) 1995-05-04 18:55:08 +00:00
Adam David 0b3de6080b added support for distribution patches in a subdir of ${DISTFILES} 1995-05-04 18:53:26 +00:00
Jean-Marc Zucconi 4411b31153 Document the virtual consoles 1995-05-04 17:50:42 +00:00
Jordan K. Hubbard 5b54701701 Add Israel to list of mirrors. Is there an SGML version of this planned?
Submitted by: Serge S. Maleyev <[email protected]>
1995-05-04 15:32:25 +00:00
Jordan K. Hubbard 0a9e09358f Add some notes about the virtual-consoles. Whoops! I completely forgot
about those!  Now I have to send the paragraph off for translation.  Ack ack!
1995-05-04 13:34:18 +00:00
Jordan K. Hubbard 628bb93361 Put an `@' in front of the mtree command. I don't want to see it. 1995-05-04 13:14:16 +00:00
Jordan K. Hubbard f3a697b782 ROMANJI -> ROMAJI. My face is red.
Submitted by:	asami
1995-05-04 12:59:22 +00:00
Jordan K. Hubbard f26ec5dd94 Add the Italian usage instructions. Mille gracie, Luigi!
Submitted by:	Luigi Rizzo <[email protected]>
1995-05-04 12:52:48 +00:00
Jean-Marc Zucconi cd49c9330a Une version a peine plus litteraire, en particulier quelques "ez"
a la place des "er" du dernier paragraphe.
Submitted by:	Philippe Charnier <[email protected]>
1995-05-04 12:24:14 +00:00
Andrey A. Chernov 8c18198a0c Bump major number instead of minor: old functions arguments was changed too 1995-05-04 09:45:29 +00:00
David Greenman 2384fde587 Kludged around a problem with "cat /proc/0/regs" causing a panic by
initializing proc0's frame base, too, using cpu_set_init_frame(). It's
a kludge because that macro is intended to be used only for init, but
does what we want nonetheless.
1995-05-04 08:21:24 +00:00
David Greenman 07bb8fb7c9 Kill bogus duplicated code that resulted in an editing screwup of mine
that happend about 4 months ago.
1995-05-04 07:56:23 +00:00
David Greenman 85eaa94715 Correct the definition for the (unused) cpu_setstack(). 1995-05-04 07:50:06 +00:00
Poul-Henning Kamp e9851d87a8 Make the partitions names even more sensible
CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
1995-05-04 07:00:57 +00:00
David Greenman cbb15d7c97 bzero the malloced pci_devconf structure. This should fix the problem with
several of freefall's recent crashes.
1995-05-04 06:57:11 +00:00
Jordan K. Hubbard 2e363cad34 My latest round of changes - make the "slices" editor work. 1995-05-04 03:51:22 +00:00
Jordan K. Hubbard 9b4d8c3412 The Dutch usage instructions. Thanks, Marc! [I know how to say thanks in
Dutch, but not spell it :-)]
Submitted by:	Marc van Kempen <[email protected]>
1995-05-04 03:16:06 +00:00
Jordan K. Hubbard d4292e336c Commit the Russian version of usage.hlp. Bolshoi Spassibo, Serge!
Submitted by:	Serge A. Babkin <[email protected]>
1995-05-04 03:12:28 +00:00
Jordan K. Hubbard bec3fb5b5f The JIS version of usage.hlp.
Submitted by:	NIIMI Satoshi <[email protected]>
1995-05-04 00:27:39 +00:00
Jordan K. Hubbard 0bc01ff745 Add German usage instructions. Thank you, Joerg! I'd spell your name with
an umlaut, but I don't know how.. :-)
Submitted by:	joerg
1995-05-04 00:15:50 +00:00
Peter Dufault 386d2d2de0 Change defintion of unit to minor(dev). Sorry for not
having this in my local build.  Thanks to gpalmer.
1995-05-03 23:53:32 +00:00
Gary Palmer 7493537088 Try to make this work again. Peter's last changes left it like :
loading kernel
worm.o: Undefined symbol `_STUNIT' referenced from text segment

I copied the STUNIT definition from the old scsiconf.c into this file to
work around this problem.
1995-05-03 23:38:20 +00:00
Julian Elischer bacc93a004 change to reflect reality.
(yes I know I should have done one commit rod....)
1995-05-03 23:10:35 +00:00
Julian Elischer c79137536b remove debugging printouts unless DEVFS_DEBUG is set. 1995-05-03 23:06:31 +00:00
Julian Elischer 8901d7cafe Submitted by: phk
if the 'time on a node is 0,..
tell the world it is the same as 'boottime'.
This is becasue 'time' is not set up when we create the nodes,
so we can't set them then.
1995-05-03 23:04:26 +00:00
Poul-Henning Kamp 69910d923d Fixed a hard-coded slot number which crept in. 1995-05-03 22:58:07 +00:00
Jordan K. Hubbard 34ddf9fad5 Add the French usage instructions. Thank you, Jean-Marc!
Submitted by:	jmz
1995-05-03 22:44:00 +00:00
Poul-Henning Kamp afb3a9c529 Add the private void *pointer to the chunks, and the functions to manage it.
Make the reassignment of partition names less bogus.
1995-05-03 22:36:52 +00:00
Andrey A. Chernov f3084e4019 Bump minor number 1995-05-03 22:14:01 +00:00
Jordan K. Hubbard 786a5cad11 Change the perennially annoying reminder to "make depend" (which may or
may not be desired if you're just going to blow the kernel away again later)
and substitute one that tells the user where the new kernel build
directory actually IS, which can at least be argued to be useful information
in all cases.
Reviewed by:	davidg
1995-05-03 20:16:57 +00:00
Andrey A. Chernov fbe3680005 Bump minor number 1995-05-03 18:54:09 +00:00
Bill Paul 90b434aeb0 Cosmetic changes and paranoia checks:
ypbind.c:
Make fewer assumtions about the state of the dom_alive and dom_broadcasting
flags in roc_received().
Cosmetic changes and paranoia checks:

ypbind.c:
Make fewer assumtions about the state of the dom_alive and dom_broadcasting
flags in roc_received().

If select() fails, use syslog() to report the error rather than perror().

Check that all our malloc()s succeed. Report malloc() failure in
ypbindproc_setdom_2() to callers.

yplib.c:

Use #defined constants in ypbinderr_string() rather than hard-coded values.
1995-05-03 18:34:22 +00:00
Bill Paul 62967ca2b2 Cosmetic changes and paranoia checks:
ypbind.c:
Make fewer assumtions about the state of the dom_alive and dom_broadcasting
flags in roc_received().

If select() fails, use syslog() to report the error rather than perror().

Check that all our malloc()s succeed. Report malloc() failure in
ypbindproc_setdom_2() to callers.

yplib.c:

Use #defined constants in ypbinderr_string() rather than hard-coded values.
1995-05-03 18:33:10 +00:00
Peter Dufault 99d181f7a9 Make scsi control devices such as "/dev/rsd0.ctl". 1995-05-03 18:15:35 +00:00
Peter Dufault 7d613f6a39 Moved unit definitions out of scsiconf.h;
Added CONTROL device that only does user-ioctl and nothing else;
Added protection so user-ioctl requires write access;
Clean up scsiconf.h a little. It needs more work.
1995-05-03 18:09:20 +00:00
Jordan K. Hubbard 5604568b64 Update the usage document.
If anyone wants to translate this into another language, I believe it's
ready.
1995-05-03 17:44:47 +00:00
Jordan K. Hubbard a7a5bb1246 Export the chunk names properly. 1995-05-03 17:38:00 +00:00
Garrett Wollman 9fc5823a7a Speed up ftpd and make it more efficient:
- set TCP_NOPUSH to keep from sending short packets at each write(2) boundary
- set SO_SNDBUF to 64k so we have a reasonable amount of buffer space
- for a regular file in binary mode which is not being restarted and is
. smaller than 16 Meg, use mmap(2) and write(2) the whole file in one big
  gulp

In the most common circumstances, this should dramatically reduce the
system-call load from ftpd, since the call to write() will not return until
the entire file has been written, rather than writing just a few K at a time
in a loop.
1995-05-03 16:58:12 +00:00
Andrey A. Chernov 275a19fedc ports-russian added 1995-05-03 14:59:56 +00:00
Bill Paul 8a17ad7e57 Small fix for yp_match implementation:
In the case where ypserv is started with the -dns flag, fall through to
the DNS lookup code only if asked to match a map with the word 'host'
in its name. This prevents failed matches on non-host maps from being
incorrectly handed off to DNS.
1995-05-03 14:36:12 +00:00
Andrey A. Chernov d62eae9c12 ports-russian added 1995-05-03 14:32:27 +00:00
David Greenman 0d7b7d3ea7 Changed in_pcblookuphash() to not automatically call in_pcblookup() if
the lookup fails. Updated callers to deal with this. Call in_pcblookuphash
instead of in_pcblookup() in in_pcbconnect; this improves performance of
UDP output by about 17% in the standard case.
1995-05-03 07:16:53 +00:00
David Greenman fd409c37b9 Added "D" option to usage clause. 1995-05-03 06:55:19 +00:00
Poul-Henning Kamp fcdd2c3c7d Make the target for tst01 more sensible.
Remove bogus targets.
Allocate partition letters as follows:
	lowest offset "flags & CHUNK_IS_ROOT" gets 'a',
	lowest offset "subtype==FS_SWAP" gets 'b'
	the rest is allocated in offset order from this sequence "defghab".
This will generally make sense.
Added rules to complain if more than one CHUNK_IS_ROOT or more than one
FS_SWAP per FreeBSD chunk.
Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk.
Run Fixup_Names in Open_Disk.
1995-05-03 06:30:59 +00:00
David Greenman 8d34651b6c Added a "-D" option to set the TCP_NODELAY socket option. 1995-05-03 06:25:56 +00:00
Rodney W. Grimes 6de98b5d98 Put $Id$ on all of these.
Correct Makefile so that we build during all: and only install for
make install.

If /etc/sysconfig exists source it to get the flags for restarting
named with.  If /etc/sysconfig says no named runs, don't try to start one.

Don't attempt to kill anything if we can not find the named.pid file.

Reviewed by:	Nickolay N. Dudorov <[email protected]>
1995-05-03 03:26:59 +00:00
Poul-Henning Kamp 106df3e72c Forgot this part of the if_ze power off patch. 1995-05-03 03:04:02 +00:00
Poul-Henning Kamp 6b64b3b143 It looks like I broke significant amounts of the commercial software running
on FreeBSD (ie: netscape), so we revert a little bit.  "2.0-" is added back.
1995-05-02 22:20:03 +00:00
Jordan K. Hubbard d81fc24bca foo -> unknown 1995-05-02 20:16:16 +00:00
Jordan K. Hubbard 1d56870d74 I need Open_Disk() to not spew on my screen. #ifdef out some diagnostic
printfs.
1995-05-02 19:52:27 +00:00
Andrey A. Chernov ff17906bc9 Fix bracket error for LogMask
Submitted by: Ruslan Belkin <[email protected]>
1995-05-02 17:46:30 +00:00
Peter Dufault 34688a8bd5 Reduce latency by checking FIFO for samples in start
Remove flags by testing register shadow

Handle apparent pending interrupt after interrupts disabled.
1995-05-02 17:29:28 +00:00
Andrey A. Chernov e2c89acf82 Fix CHOWN_RESTRICTED and NO_TRUNC to return correct values per POSIX 1995-05-02 17:14:38 +00:00
Jordan K. Hubbard d6d644f14f Add an mtree line to the install target. 1995-05-02 13:49:01 +00:00
Andrey A. Chernov c5e15878bd Back out incorrect jkh's fix and apply correct one
(POSIX_SAVED_IDS,POSIX_JOB_CONTROL)
1995-05-02 13:14:59 +00:00
Jordan K. Hubbard 72574b4219 The handling of _SC_SAVED_IDS was wrong; _POSIX_SAVED_IDS has no value
to assign this way!
1995-05-02 12:32:30 +00:00
David Greenman c9ae46b1ad Removed unused variable caused by last commit. 1995-05-02 09:06:04 +00:00
David Greenman beef0195c9 Fix for sync() to close a potential panic with accessing a mount struct
that had been freed.

Submitted by:	John Dyson
1995-05-02 08:44:31 +00:00
David Greenman c9c23c03fa Flush stdout when writing out each superblock backup. 1995-05-02 07:45:39 +00:00
Satoshi Asami f1d04c8507 A popular variation of the 106-key keymap -- this one has control
and caps-lock swapped.
Submitted by:	Nobuhiro Yasutomi <[email protected]>
1995-05-02 07:11:46 +00:00
David Greenman f325917a65 Changed object hash list to be a list rather than a tailq. This saves
space for the hash list buckets and is a little faster. The features
of tailq aren't needed. Increased the size of the object hash table
to improve performance. In the future, this will be changed so that
the table is sized dynamically.
1995-05-02 05:57:11 +00:00
David Greenman 0023507d9f Added prototype for memcpy(). Changed size argument of "b" functions to
size_t.
1995-05-02 05:35:07 +00:00
David Greenman 6486b7f194 Added a memcpy() routine. 1995-05-02 05:20:26 +00:00
Poul-Henning Kamp 807afe4fa5 A missing 'and', probably my fault.
Submitted by:	Ed Hudson <[email protected]>
1995-05-02 04:40:06 +00:00
Poul-Henning Kamp 7e97484a28 Do the obvious thing: when the interface is downed, power off the card.
When up'ed again: reapply power.  This means that you can leave your card
in, you don't need to reboot to avoid the power drain.
1995-05-02 04:03:07 +00:00
John Dyson 641a27e68b Fixed a problem that can cause left-over pv_entries and as
as side-effect, removed some legacy code that was necessary
when we called vm_fault inside of vm_fault_quick instead of using
the kernel/user space byte move routines.
1995-05-01 23:32:30 +00:00
John Dyson f33775afcf Limit filesize to the amount that the VM system can currently handle
(2GB).  If this limit is not imposed, then filesystem corruption will
ensue when files larger than 2GB are created.  This is temporary,
and the underlying limitation will be removed later.
1995-05-01 23:20:24 +00:00
Jordan K. Hubbard 7c431062a2 Bring in place-holder files for the various languages until I actually
have some doc.
1995-05-01 21:57:01 +00:00
Jordan K. Hubbard 411bac67a7 Commit my latest changes before having a nap. Still not close to done,
nor is it in sync with my working sources, but it leaves me less CVS hassles
to bring in the new files at this time.  Still no documentation to translate
quite yet, but soon.  This stuff is actually very close now.
1995-05-01 21:56:32 +00:00
Jordan K. Hubbard ec27acc8cb foo -> unknown.
I have to be able to show this stuff to the user. :-)
1995-05-01 21:30:24 +00:00
Justin T. Gibbs 877e25ad85 Aaron Daily of Adaptec has informed me that some form of paged SCB
algorithm is used on aic7770 Rev E or higher chips to improve perfomance.
This required a hardware change but we don't know exactly what (most
likely some special register to do fast SCB indexing into host memory),
and we are not at all sure that there are more than 4 SCBs on these
chips.  This probe will still classify the revision of the aic7xxx, but
we now default to 4 SCBs (at least until we know more of what was done).

This also fixes a bug in the timeout routine where we cleared a flag
too soon making it imposible to enter one section of the routine.

Submitted by: Timeout bug - Dan Eischen <[email protected]>
1995-05-01 18:43:14 +00:00
Peter Dufault 650afa65f9 Add scsi_modes 1995-05-01 17:09:49 +00:00
Peter Dufault b53e9e2751 Use the correct offset for LabPC digital devices. 1995-05-01 14:34:45 +00:00
Peter Dufault 2473679b38 Don't print out zero length names when verbose is set. 1995-05-01 12:54:32 +00:00
Peter Dufault 1995d212e9 Add a "-s" argument to specify the command timeout in seconds.
Now you should be able to format a disk with something like:
> scsi -f /dev/rsd?c -s 1200 -c "4 0 0 0 0 0"
assuming sd.c lets you open it.
1995-05-01 12:35:05 +00:00
Andrey A. Chernov e12263638f Add yet one popular russian code table 1995-05-01 12:10:51 +00:00
Jordan K. Hubbard d5d65ceb94 Rename secure to DES. This isn't a 100% accurate renaming since some
of the eBones stuff is in there too, but it's better than `secure', which
implies that the user will be insecure without it.
1995-05-01 12:01:39 +00:00
Justin T. Gibbs 12ab8490af Set the return value (outb'd to the sequencer) for non zero status
interrupts to zero to start with.  This is the value we return in
most cases.  The sense code then outbs the apropriate value to cause
sense retrieval.  The return value was uninitialized before this
change (something that was an okay thing with the old sequencer code,
but not with the semantics of the new).

This problem caused us to always retrieve sense upon recieving a non
zero status byte.  This is exactly what was happening for the "target
busy" status returned by exabyte tape drives when they rewind or
power on with a tape installed.  The request sense proved fatal.
This should fix the tape problems.
1995-05-01 09:49:45 +00:00
Joerg Wunsch 85c30cfa12 Added function and man page for ftok(3), used in conjunction with
the so-called "System V IPC".

Submitted by:	[email protected] (John Beukema)
Obtained from:  Th. Lockert <[email protected]>, via NetBSD
1995-05-01 08:53:21 +00:00
Jordan K. Hubbard 81b15f5715 Stick a more BSD-like Makefile here so that I can link to the library. 1995-05-01 08:08:02 +00:00
Poul-Henning Kamp 20c9844ca0 start CHS is 0xff,0xff,0xff if past 1024.
end CHS is 1023,bios_hd,bios_sect if past 1024.  This way we can find
bios the geometry again.
Added a primitive "scan" to tst01.
1995-05-01 04:05:27 +00:00
Poul-Henning Kamp ee1cbe818e When past cyl 1024 it's ok if CHS is (0xff,0xff,0xff).
It's actually recommended it seems...
1995-05-01 00:45:33 +00:00
Julian Elischer 34a839537a This is a purely cosmetic change
but it outlines what I'm GOING to do to this file.
It's sort of an unignorable notification of coming changes..

This is a bit rude I understand.. but I can't afford to haqve the
diskslice code  drifting off too much further from a workable system
and I think I need to jump in now to make it obvious what has to be done
before it's too late.

appologies to bruce in advance.
1995-05-01 00:07:17 +00:00
Julian Elischer 6f76a2ca2d making a reservation for more bits before people start using them
in the minor number, (this stuff HAS to go!)
The change I want is:
/*
       3                   2                   1                   0
     1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
    _________________________________________________________________
    | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
    -----------------------------------------------------------------
    |      TYPE           | SLICE   |  MAJOR?       |  UNIT   |PART | <-now
    -----------------------------------------------------------------
    |      TYPE     |PART2| SLICE   |  MAJOR?       |  UNIT   |PART | <-soon
    -----------------------------------------------------------------

        I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE)
*/
1995-04-30 23:48:27 +00:00
Poul-Henning Kamp 87d4886cc3 Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).
Get the CHS's right.
Get the disklabels (more) right.
1995-04-30 22:51:05 +00:00
Andrey A. Chernov 1ccc95ada5 Handle too long strings correctly in print_autowrap()
Submitted by: Marc van Kempen <[email protected]>
1995-04-30 19:43:53 +00:00
Andrey A. Chernov 7439966a40 Don't accept usernames longer than 8 characters
Submitted by: Wolfram Schneider <[email protected]>
1995-04-30 19:20:25 +00:00
Bruce Evans 0c3f2f6436 Change dsioctl() interface to allow DIOCSYNCSLICEINFO to update the caller's
slice pointer and to print the device name in error messages.

Finishing implementing DIOCSYNCSLICEINFO (except for locking).
1995-04-30 15:16:02 +00:00
Bruce Evans 41882e52fb Change dsioctl() interface to allow DIOCSYNCSLICEINFO to update the caller's
slice pointer and to print the device name in error messages.
1995-04-30 15:14:34 +00:00
Bruce Evans d9908e7b10 Define CDTR_IFLOW and CDSR_OFLOW which are now required for compiling
bin/stty.  Define alias CCAR_OFLOW for MDMBUF.

Declare speeds as having type speed_t instead of long.  speed_t is
long, which is wrong (POSIX specifies it to be unsigned integral),
but fixing it might introduce more serious bugs.
1995-04-30 14:56:30 +00:00
Andrey A. Chernov 98a59e226e Add yet one popular russian code table 1995-04-30 14:45:00 +00:00
Satoshi Asami 8e7c35dd1a A bunch of new targets in the package area. Relevent targets are:
package:           check installation, build package, create links,
                   touch cookie
repackage:         ditto but don't check cookie
package-noinstall: just build package from installed stuff, no cookies
                   involved at all
package-links      create the symbolic links only
delete-package:    delete package and symbolic links
delete-package-links: delete links only

These should make the management of the spaghetti of package links
a little friendlier. :)
1995-04-30 12:28:43 +00:00
Andrey A. Chernov 2fae339c22 Fix handling of POSIX_JOB_CONTROL and POSIX_SAVED_IDS,
pointed out by Bruce.
1995-04-30 11:30:12 +00:00
Poul-Henning Kamp 9781a14091 get bootblocks right.
Add mbr and bteasy17 to tst01
read partitions from kernel instead of disk.
Still problems with writing labels, discussing with Bruce.
Extended slices doesn't get written yet.
1995-04-30 11:04:16 +00:00
Poul-Henning Kamp 6d83113dcf Missing -r flag on rm 1995-04-30 09:02:08 +00:00
Jordan K. Hubbard 90e83ab7ee As a public service (and because I'd like to see more LITES people chose
FreeBSD), add mach-4 target to MAKEDEV; it creates various compatability
devices for Mach4.
Submitted by:	(Submitter name unknown) <[email protected]>
1995-04-30 07:56:45 +00:00
Poul-Henning Kamp e6b172ee57 Use 0xff for CHS when past 1024 cyls.
Fix (hopefully) a bug Gary found.
1995-04-30 07:30:45 +00:00
Poul-Henning Kamp 98fc07cacb Make the default case less scary :-) 1995-04-30 06:19:32 +00:00
Poul-Henning Kamp 2d5caf92d0 Now we do writes too. 1995-04-30 06:09:29 +00:00
David Greenman af9c31e108 Added UIO_NOCOPY case to ureadc() to quiet gcc. 1995-04-30 05:11:46 +00:00
David Greenman fc3d49a9dc Check for curproc != NULL before dereferencing it. 1995-04-30 05:09:13 +00:00
Joerg Wunsch 3586bcab62 Finally implement the kernel hook for the "mt eom" command. (The
user-level part has already been commited.)

Note that i've lost the "official" code for this; it went into the
system after 1.1.5.1.  The commited code is my own version, but it has
proven to work for me for more than a year now.
1995-04-29 21:30:29 +00:00
Jordan K. Hubbard e40a316fcf o Add extra menu types (radio implemented, multiple choice shortly).
o Make the framework generally more robust.
o Figured out how to nest the menu descriptions - no more grotty initialization
  of menus.
o Fix bug with helpline and helpfile not being reset.
o Add stubs for the media selection code.

Coming next:  Fdisk and disklabel screens using Phk's new libdisk stuff.
1995-04-29 19:33:06 +00:00
Peter Dufault 1b52479293 Submitted by: ache
Fix extra newline during SCSI_VERBOSE.
1995-04-29 17:52:44 +00:00
Bill Paul 04adcdacbf Small fix for the following problems:
- If you take the wheel entry out of /etc/group and turn on NIS,
the '+:*::' line is incorrectly flagged as the entry for wheel (the
empty gid section is translated to 0), hence getgrgid() returns '+'
as the name of the group instead of 'wheel.'

- Using just '+:' as the 'turn on NIS' switch in /etc/group makes
getgrgid() dump core because of a null pointer dereference. (Last
time I was in here, I foolishly assumed that fixing the core dump
problems with getgrnam() and getgrent() would fix getgrgid() too.
Silly me.)
1995-04-29 17:14:50 +00:00
Bruce Evans 402c1682aa Fix misplaced idempotency #endif.
Fix tabs and spaces in the wrong places.
1995-04-29 15:24:00 +00:00
Bruce Evans 2bf5814ab5 Support nonstandard (not yet all supported) flow control options. `ctsflow'
and `rtsflow' are the components of `crtscts'.  `dtrflow' and `dsrflow' are
new and not yet supported.  `dtrflow' may be useful for Cyclades serial
careds, which have h/w support for it and no h/w support for `rtsflow'.

print.c:
Report NTTYDISC in case the line is in this obsolescent state.
1995-04-29 15:17:17 +00:00
Andrey A. Chernov 280bdae500 HAVE_SAVED_UIDS not depends of BSD version but depends
of _POSIX_SAVED_IDS from unistd.h, fix it.
1995-04-29 15:16:41 +00:00
Bruce Evans d54024a159 Fix stty' on the output of stty -g'. The changes for the gfmt1 option
weren't TIOCSETD'd  unless another option changed something.
1995-04-29 15:00:34 +00:00
Andrey A. Chernov 045d1485ca Enable _POSIX_SAVED_IDS and fix comment to describe current situation 1995-04-29 14:20:35 +00:00
Andrey A. Chernov 926f1d2e59 Close sec. hole: can exec pgm with more groups than calling user have
Include unistd.h and fix few argument old-way things
1995-04-29 13:55:34 +00:00
Andrey A. Chernov ee9968eab5 Remove FreeBSD-specific setre*() cheat, we have working thing now 1995-04-29 13:38:14 +00:00
Andrey A. Chernov aa4f20e4df Fix typo in HAVE_SAVED_UIDS define 1995-04-29 13:25:13 +00:00
Andrey A. Chernov 4c639bf9d7 Fix HAVE_SAVED_IDS and HAVE_BROKEN_SETREUID defines 1995-04-29 12:22:41 +00:00
Andrey A. Chernov 2c3be6c34e set[ug]id(): call suser() only when neccesarry
Submitted by: bde
1995-04-29 11:46:15 +00:00
Jordan K. Hubbard bcac561761 Bruce is right - ENOTTY is more appropriate than EINVAL in this case. 1995-04-29 11:36:47 +00:00
Poul-Henning Kamp a29b6fccc0 Names are assigned when chunks are created.
Rules for only one fat & one extended in MBR.
1995-04-29 07:21:14 +00:00
Jordan K. Hubbard 65b36cbb7d fixes the ioctl routine to not chew up massive amounts of kernel time
if an invalid ioctl is done on /dev/klog.  logioctl() needs to return
an errno instead of -1 on a failed ioctl.
Submitted by:	Mike Pritchard <[email protected]>
1995-04-29 05:09:19 +00:00
Poul-Henning Kamp a907b94117 Even More stuff. Disk_Names() is here amongst other things. 1995-04-29 04:50:39 +00:00
Poul-Henning Kamp f9c10dfd1a Next Iteration, getting better.
Made an All_FreeBSD() function.
Added a cmd-line interface (lowest rank) to the tst01 program.
The tst01 program is harmless (worst it can do is coredump), but it
is instructive to run, you can see what the slice-code things of your
disk...
1995-04-29 04:00:57 +00:00
Poul-Henning Kamp 27bff5727d Sanitize and explain a little bit... Implement the first rules... 1995-04-29 01:55:25 +00:00
Gary Palmer 450d1156cb The address is freefall.cdrom.com, not freefall.cdrom.com.cdrom.com :-) 1995-04-29 01:09:34 +00:00
Gary Palmer c709d38b60 Add missing ports-japanese target.
Alter sup host to be SUP.FreeBSD.ORG to allow for future work.
1995-04-29 01:03:10 +00:00
Poul-Henning Kamp aded89c1b1 This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuff
in the new sysinstall.  If you want to give a helping hand, then send email
to [email protected].  DO NOT COMMIT TO THIS DIRECTORY!
1995-04-28 23:57:04 +00:00
Paul Traina 2f688f82da Incorporate new radix code from UCB. This fixes the orphaned mask bugs.
This submission was done by hand-applying FreeBSD local modifications on
top of the UCB code, rather than trying to patch the UCB code in on top
of the FreeBSD code due to the extensive changes.

Reviewed by:	pst	(been handling 30k routes for 4+ months)
Obtained from:	Sklower/Woody/Honing/Traina (8.4 UCB release)
1995-04-28 23:01:37 +00:00
Gary Palmer ee328c4bad (Sorry about prev. blank message - I realised I needed a change too late).
Removed unused var. and correct a printf formatting string.
1995-04-28 22:24:37 +00:00
Gary Palmer b3b6adad1d *** empty log message *** 1995-04-28 22:23:19 +00:00
John Fieber f9e11b2a03 Move out of the obsolete FAQ directory into the handbook. 1995-04-28 19:48:56 +00:00
Andrey A. Chernov 0b51c95db2 Fix bugs:
cchars2 not used
can't set or report MIN or TIME == 255
TIOCSETD on wrong fd
PPPDISC is not reported
1995-04-28 19:29:30 +00:00
Peter Dufault 8312577eea Add ioctl calls for Freeze/Thaw. 1995-04-28 19:26:02 +00:00
Peter Dufault 72c59e2da5 Symoblic representation of mode pages 1995-04-28 19:25:17 +00:00
Peter Dufault 0d30b20ac9 Add "-m" command to read mode pages. Also add -z for freezing,
though the kernel changes aren't committed yet.
1995-04-28 19:24:39 +00:00
Peter Dufault c46c1a53eb Fix a few problems with the debugging output. Add a new "visit" function. 1995-04-28 19:23:51 +00:00
Andrey A. Chernov d86851edf5 Implement SLIOCSUNIT (set slip unit number) 1995-04-28 18:47:29 +00:00
Jordan K. Hubbard d9a50f903f Whoops! One of my automatics was initialized to garbage. Fix it. 1995-04-28 18:24:31 +00:00
Andrey A. Chernov d3cdb93dd8 Implement POSIX SAVED_IDS for setuid/setgid 1995-04-28 18:17:29 +00:00
Jordan K. Hubbard 790bacaa95 Remove piano. 1995-04-28 17:38:54 +00:00
Jordan K. Hubbard 79d5cc4044 Add piano. 1995-04-28 17:38:34 +00:00
Jordan K. Hubbard 943bfde5f9 Import the piano program again, except this time in the right location.
Submitted by:	Toshihiro Kanda <[email protected]>
1995-04-28 17:38:08 +00:00
Andrey A. Chernov 611d721e70 setre*(): simplify return scheme, pointed by Bruce 1995-04-28 17:00:27 +00:00
John Fieber 0a1195e737 The FAQ moves to its new home. 1995-04-28 16:36:02 +00:00
John Fieber dd8fd5aac1 The FreeBSD handbook finds a new home. 1995-04-28 16:19:59 +00:00
Jordan K. Hubbard 6db578a60b Pass X11BASE to all sub-makes. I need it for a port, and I daresay that
there are a lot of hardwired "/usr/X11R6" paths out there that could stand
to use it as well.
1995-04-28 15:40:37 +00:00
Peter Dufault a93d103fb4 Change to reflect new header file name. 1995-04-28 12:28:55 +00:00
Peter Dufault 62734e55e4 Rename "aio.h" to "dataacq.h" 1995-04-28 12:08:03 +00:00
Peter Dufault b74f75a231 Renamed "aio.h" as <sys/dataacq.h>. 1995-04-28 12:05:36 +00:00
Jordan K. Hubbard f8c191bd8e Add piano. 1995-04-28 09:30:54 +00:00
Søren Schmidt e5c5c58924 Added nsccons variable for use by pstat
Submitted by:	 ache
1995-04-28 09:10:56 +00:00
Søren Schmidt de4c8be3eb Corrected variable names for syscons support. 1995-04-28 09:08:18 +00:00
Bruce Evans af5b6e3f9d Remove chmod of pcaudio* to 666. Not everyone should be allowed to
play the speaker and consume 10-100% of the available cycles.

Remove chmods of sound devices to 666.  Use chmod to give the same security
holes.
1995-04-28 07:53:43 +00:00
Bruce Evans d45ae51059 Add cyclades serial devices cuac*, cuaic*, cualc*, ttyc*, ttyic* and ttylc*. 1995-04-28 07:39:21 +00:00
Satoshi Asami 2966c8b3da Japanese 106-keyboard.
Submitted by:	Nobuhiro Yasutomi <[email protected]>
1995-04-28 06:03:18 +00:00
Poul-Henning Kamp ca927fef5b Don't dereference NULL pointers. 1995-04-28 04:58:19 +00:00
Poul-Henning Kamp 4ccbee740d Told Makefile about manpage. 1995-04-28 04:52:33 +00:00
Poul-Henning Kamp f663de8187 Had a moment, wrote a manpage based on kprof's page. 1995-04-28 04:51:08 +00:00
Jordan K. Hubbard 2283d8e502 Use mtree -U instead of -u and put back error check. Thanks Rod! 1995-04-28 04:16:30 +00:00
Peter Dufault 657e73c4f5 Add National Instruments "LabPC" driver 1995-04-28 00:51:40 +00:00
Andrey A. Chernov 4843859879 Remove setr* hacks 1995-04-27 19:56:37 +00:00
Andrey A. Chernov b5c3f5e746 Remove setre* hacks, we have working thing now 1995-04-27 19:27:42 +00:00
Andrey A. Chernov 4bc8f31ff3 Implement setreuid/setregid according to SunOS manpage 1995-04-27 19:23:24 +00:00
Poul-Henning Kamp 886b0df400 New and improved version from the author.
Submitted by:	DI. Christian Gusenbauer <[email protected]>
1995-04-27 18:22:36 +00:00
John Fieber 7203d1e933 Silence -Wall. 1995-04-27 18:18:58 +00:00
Jordan K. Hubbard d0d3dac501 This will be the module that handles all media detection. 1995-04-27 18:05:10 +00:00
Jordan K. Hubbard ef42570d65 Latest raft of changes.
Added another couple of menu item types.

Reshuffled the menus and added a few more.  Sure wish I could figure out
how to initialize a menu with _one_ initializer rather than two! :(
1995-04-27 18:03:55 +00:00
John Fieber bc8b14f125 Added sgmls 1995-04-27 18:03:29 +00:00
Justin T. Gibbs a52deb6d1e Additions to support the WAITING_SCB list that the sequencer maintains.
It is the kernel driver's responsibility to do the list manipulation whenever
a selection timeout or a request sense occurs.

Print out the interrupt type that the device has been set to.  It seems that
one of the Asus motherboards botches this and David thought a diagnostic would
be nice.

Fix a bug in my diagnostic code that David found.

Reviewed by: Wcarchive and David Greenman
1995-04-27 17:47:17 +00:00
Justin T. Gibbs c28447da4c Restructure the arbitration loop to allow for reselections that win out over
the adapter's selections.  Many fast periferals were getting upset when
the sequencer decided to rearbitrate after the device had already won
arbitration.  This also forced the creation of a list threaded through
the SCBs (since we don't have enough space anywhere else) of commands that
are awaiting reselection.  This list is run down before any new transactions
from the input queue are allowed.  The list is appened to whenever we begin
a selection (simple case since the selecting device is always at the head)
and by the kernel driver whenever a request sense occurs.  In the common
case, the list is only one element long, but when a reselection wins out
over a selection and that reselection generates a request sense, the
outstanding selection required for the retreval of the sense code grows
the list.  On machines with many targets, this might cause the list to grow
large, so this solution, which will allow up to the maximum number of I/O
requests capible of the card elements in the list, was chosen.  The list
manipulation is trivial and adds three sequencer instructions of overhead
to the selection phase.

This fixes the "target busy" errors from micropolis drives and the bursty
I/O problem when performing I/O between a Quantum Grand Prix and any other
device.  I anticipate that this will correct many of the problems that
have been reported with this driver.

Reviewed by: Wcarchive and David Greenman
1995-04-27 17:44:27 +00:00
Garrett Wollman 003d29986d No sense in copying the hex[] array in each call to MDXEnd(), it's a
constant.  (There probably ought to be a single libc version of it.)
1995-04-27 16:05:51 +00:00
John Fieber 61614fe0ad The sgmls SGML parser. Support for our hypertext documents.
Reviewed by:	Paul Richards, Garrett Wollman
1995-04-27 16:03:47 +00:00
Jordan K. Hubbard 4e278bdb76 Here is my first "framework" commit of the new sysinstall. There is a LOT
more to come in the next 24 hours, this is just the first stable result of
8 hours of hacking so far.  The specification format for menus is pretty
much hammered out and the beginnings (very humble) of the doc hierarchy
are present for an example.  It should be quite easy to add a lot more
menus quickly to this since I did go somewhat out of my way to make the
framework easy to work with.  This is NOT the glorious semi-graphical
sysinstall (or whatever its name will be) that the install-geeks are working
on, this is simply the "son of sysinstall" I've been promising to write in
the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R).
1995-04-27 12:50:35 +00:00
Jordan K. Hubbard 278ea7ecee Don't bother checking the return status of the mtree command - it returns
non-zero stats when it changes things, too.
1995-04-27 11:33:08 +00:00
Jordan K. Hubbard 639fb258f9 Add libftp to list of beforeinstall targets in the include rule.
Submitted by:	John Hay <[email protected]>
1995-04-27 11:25:48 +00:00
Jordan K. Hubbard 9d69574dbc Close PR:
>Number:         368
>Category:       bin
>Synopsis:       Lpd doesn't log errors after failed exec
>Description:

If an exec done by lpd fails, nothing is sent to the system log
indicating what went wrong.  This is because lpd closes all of
the file descriptors before doing the exec, thus closing the syslog
file descriptor in the process.
[Fix applied]
Submitted by:	[email protected]
1995-04-27 04:56:10 +00:00
Andrey A. Chernov d3e6b9f393 Fix bug:
When hostname len > 8, name replaced with dot notation when -u flag
not specified (default case).
Use _PATH_* for utmp/wtmp.
1995-04-26 22:33:15 +00:00
Paul Traina 5e052869fc Add queue.h include file to all the TPIP code. 1995-04-26 21:32:42 +00:00
Bill Paul 456ebbf8f5 ypbind.c: Major overhaul.
- Moved to a more client-driven model. We aggressively attempt to keep
the default domain bound (as before) but we give up on non-default
domains if we lose contact with a server and fail to get a response
after one round of broadcasting. This helps drastically reduce the
amount of network bandwitdh that ypbind consumes: if a client references
the secondary domain at some later point, this will prod ypbind into
establishing a new binding anyway, so continuously broadcasting without
need is pointless.

Note that we still actively seek out a binding for our default domain
even if no client program has queried us yet. I'm not exactly sure if
this matches SunOS's behavior or not, but I decided to do it this way
since we can get into all sorts of trouble if our default domain comes
unbound. Even so, we're still much quieter than we used to be.

- Removed a bunch of no-longer pertinent comments and a couple of
chunks of #ifdef 0'ed code that no longer fit in to the new layout.

- Theo deRaadt must have become frustrated with the callback mechanism
in clnt_broadcast(), because he shamelessly stole the clnt_broadcast()
code right out of the RPC library and hacked it up to suit his needs.
(Comments and all! :)

I can understand why: clnt_broadcast() blocks while awaiting replies.
Changing this behavior requires surgery. However, you can work around
this: fork the broadcast into a child process and relay the results
back to the parent via a pipe. (Careful obervation has shown that the
SunOS ypbind forks children for broadcasting too, though I can only
guess what sort of interprocess communication it uses. pipe() seems to
do the job well enough.)

This may seem like the long way around, but it's not really that
hard to implement, and I'd prefer to use documented RPC library functions
wherever possible. We're careful to limit the number of simultaneous
broadcasters to avoid swamping the system (the current limit is 5).
Each clnt_broadcast() call only sends out a small number of packets
at increasing intervals. We're also careful not to spawn more than one
bradcaster for a given domain.

- Used clntudp_bufcreate() and clnt_call() to implement a ping()
function for directly querying a particular server so that we can
check if it's still alive. This lets me completely remove the old
bradcasting code and use actual RPC library calls instead, at the
cost of more than a few handfulls of torn-out hair. (Make no mistake
folks: I *HATE* RPC.) Currently, the ping interval is one minute.

- Fixed another potential 'nfds too big for select()' bug: use
_rpc_dtablesize() instead of getdtablesize().

- Quieted gcc -Wall a bit.

- Probably a bunch of other stuff that I've forgotten.

ypbind.8:

- Updated man page to reflect modifications.

ypwhich.c:

- Small mind-o fix from last time: decode error results from
ypbind correctly (*groan*)

yplib.c:

- same as above

- Change behavior of _yp_dobind() a little: if we get back a 'Domain
not bound' error for a given domain, retry a few times before giving
up and passing the error back to the caller. We have to sleep for a
few seconds between tries since the 'Domain not bound' error comes
back immediately (by repeatedly looping, we end up pounding on ypbind).
We retry at most 20 times at 5 second intervals. This gives us a full
minute to get a response. This seems to deviate a bit from SunOS
behavior -- it appears to wait forever -- but I don't like the idea
of perpetually hanging inside a library call.

Note that this should fix the problems some people have with bindings
not being established fast enough at boot time; sometimes amd is started
in /etc/rc after ypbind has run but before it gets a binding set up. The
automounter gets annoyed at this and tends to exit. By pausing ther YP
calls until a binding is ready, we avoid this situation.

- Another _yp_dobind() change: if we determine that our binding files
are unlocked or nonexistent, jump directly to code that pokes ypbind
into restablishing the binding. Again, if it fails, we'll time out
eventually and return.
1995-04-26 19:03:16 +00:00
Paul Traina f5fea3ddc9 Cleanup loopback interface support.
Reviewed by:	wollman
1995-04-26 18:10:58 +00:00
Paul Traina ef6304d8c6 Replace call to obsolete inet_addr routine with inet_aton so we can specify
netmasks and broadcast addresses of 255.255.255.255.
1995-04-26 16:52:40 +00:00
Jordan K. Hubbard 4b1e0d1665 Close this PR:
>Number:         364
>Category:       bin
>Synopsis:       Interrupting man results in half-baked man page
>Description:

Interrupting man while it is waiting for the page to be formatted
results in a zero length file or a half-baked file.

>How-To-Repeat:

Inetrrupt man while it is formatting a page.

>Fix:

Pay more attention to the return value from the system command.
Submitted by:	John Capo <[email protected]>
1995-04-26 16:19:23 +00:00
Jordan K. Hubbard f465ace952 Add code for dealing with URLs. 1995-04-26 15:08:23 +00:00
Jordan K. Hubbard a0a72d6933 Make pkg_info URL aware (and also make it use the PKG_PATH properly, like
everyone else).  Try this:
	pkg_info ftp://freebsd.org/pub/FreeBSD/packages/all/gmake-3.73.tgz
1995-04-26 15:08:02 +00:00
Jordan K. Hubbard 34f907903d Add depend on libftp since this is now in lib. 1995-04-26 15:07:14 +00:00
Jordan K. Hubbard 18a7c7704f Add a great deal more error checking to various things. 1995-04-26 15:06:58 +00:00
Jordan K. Hubbard 7113d27114 Further work on making all this more robust in the face of failure.
Also allow URL specification for a package.  This works for things the
package may depend on, too.

Allow PKG_PATH to be used anywhere a package is being searched for.
1995-04-26 15:06:26 +00:00
Torsten Blum e347ee4837 Add ftp.uni-paderborn.de 1995-04-26 14:56:57 +00:00
Jordan K. Hubbard 6dbad786ae Add LIBFTP. 1995-04-26 14:34:19 +00:00
Jordan K. Hubbard 8a65b63a2c Fix a number of additional warnings. 1995-04-26 14:04:36 +00:00
Jordan K. Hubbard 7662263998 Move <varargs.h> out of FtpLibrary.h and into the .c files that actually
need them.  Fix a number of additional warnings.
1995-04-26 14:04:23 +00:00
Jordan K. Hubbard 80206f052f Yikes! How did that typo slip past! I'd swear I compiled it. Oh well,
thanks, Satoshi!

Embarrassed by:	asami
1995-04-26 12:37:46 +00:00
Jordan K. Hubbard d14afa6dd2 As per Bruce's advice, use sysconf to get the max argument size and
dynamically allocate that much space, also using snprintf() and strncat()
to do proper bounds checking.
1995-04-26 11:43:20 +00:00
Bruce Evans cd782e4154 Reviewed by: Gene Stark ([email protected])
Change ownership of tw* from bin.bin to root.operator.  Hardware devices
shouldn't be accessible to bin.
1995-04-26 08:07:30 +00:00
Jordan K. Hubbard 8d006a838c Check dependencies BEFORE doing final extraction of package.
Fix a bug where direct-extract mode would have still invoked the
packing list reordering commands.
1995-04-26 07:43:35 +00:00
Rodney W. Grimes 2320728f46 Add outb to keyboard controller to do a cpu_reset, this fixes 2 known
cases of motherboards that failed to reboot.
1995-04-26 07:38:35 +00:00
Jordan K. Hubbard 0170dd7dec My handling of the missing dependency but !Verbose was wrong. Make
the right message come out.
1995-04-26 06:56:05 +00:00
Jordan K. Hubbard 38f4846ec5 Gary J's patches to make gdb -w work properly.
Submitted by:	gj
1995-04-26 01:01:20 +00:00
Garrett Wollman 1067217d5d Disallow half-configured point-to-point interfaces. It's still possible to
get into a half-configured state by using the old-style ioctls;this
may be a feature.
1995-04-25 19:50:20 +00:00
Garrett Wollman cd02a0b741 Finally finish the cloning cleanup work by making sure that clones
go away whenever a clone's parent is changed, or a route is added in a
certain set of circumstances.

This also includes code to forbid setting a route's gateway to an
address which can only be reached through that route, thus (hopefully)
eliminating one class of cloning bottomless-recursion bugs.
1995-04-25 19:12:07 +00:00
Garrett Wollman 08af2cee88 Fix some conflicting descriptions. 1995-04-25 17:08:16 +00:00
Jordan K. Hubbard 25f15401b9 Add libftp to list of targets. 1995-04-25 15:08:52 +00:00
Jordan K. Hubbard 8e47e70f34 Now check all the warning purges and general clean-up in on the second
pass.
1995-04-25 15:08:02 +00:00
Jordan K. Hubbard 6f52f41fb2 A programmatic interface to ftp. I need this for several other
components of the system.

The license is poorly worded, though I have an (email only) release
from the author for unlimited FreeBSD use.  I will try to get something
more concrete, though the author's remote location makes this difficult.
Submitted by:	Oleg Orel <[email protected]>
1995-04-25 15:05:11 +00:00
Bruce Evans 6ec8ee4578 Fix benign type mismatches int console functions. dev_t was assumed
to be `int' or smaller and some functions returned `int' instead
of `void'.  The first bug was detected when console functions were
defined in a place central enough for type checking to actually
work and the second bug was introduced when the interface was
changed to match what the console functions in other drivers actually
return.
1995-04-25 12:18:05 +00:00
Jordan K. Hubbard 6940898b50 Document matcd1.
Be more explanatory about port selection.
Document that new TEAC drives don't work.
Submitted by:	Frank Durda IV <[email protected]>
1995-04-25 10:23:53 +00:00
Søren Schmidt 5130ec746f Added mark_all() call so that screen is proberly updated
when scroll-lock history is disengaged.
1995-04-25 10:22:28 +00:00
Bruce Evans a87df1c4d5 Remove setre*id*. 1995-04-25 10:00:04 +00:00
David Greenman 3fc3004e03 Fixed a "bswbuf" hang caused by the wakeup in relpbuf() waking up the
wrong thing.
1995-04-25 06:22:47 +00:00
Poul-Henning Kamp 3319f5a48f Do kernels up to 2Mb. 1995-04-25 05:27:04 +00:00
Poul-Henning Kamp fc652b607f This is a helper program to patch a filesystem into a "MFS_ROOT" kernel. 1995-04-25 03:45:18 +00:00
Poul-Henning Kamp d52d7365c6 Document MFS_ROOT option. 1995-04-25 03:44:04 +00:00
Poul-Henning Kamp 58e81aafbb Add support for MFS root filesystem. 1995-04-25 03:41:12 +00:00
Poul-Henning Kamp 41dffd203c Add a printf so we can see where we get our rootfs from. 1995-04-25 03:39:50 +00:00
John Dyson a4256da5ad Fixed the mmap hang fix previously committed so that it works
with options DIAGNOSTIC, and clear up an additional reference
count problem.
1995-04-25 03:32:37 +00:00
Rodney W. Grimes 28f1950b10 Add $defaultdomainname to sysconfig and use it in netstart to set the
domainname.  This eliminates /etc/defaultdomain.

Correct tickadj, it should have been tickadjflags.
1995-04-24 23:52:16 +00:00
Jordan K. Hubbard 1c491c8eb8 Use ARG_MAX instead of _POSIX_ARG_MAX: 4K is too small!
This should stop the SIGBUS errors in pkg_create for some packages.
1995-04-24 21:50:11 +00:00
Garrett Wollman d259f40530 Grand new all-singing, dialog-wielding tzsetup(8). Still needs a man page. 1995-04-24 21:04:35 +00:00
Garrett Wollman 71fbc5ca54 Add more comments for tzsetup and fix some old ones. 1995-04-24 21:03:40 +00:00
Bruce Evans 48b2a92193 Add ioctls DIOCGSLICEINFO and DIOCSYNCSLICEINFO. The latter isn't
finished or tested.
1995-04-24 17:07:08 +00:00
Bruce Evans 0f1a48177b Undo the move of `#include "sc.h"' etc. to cons.h. It broke anything
that includes <machine/cons.h>.
1995-04-24 16:43:01 +00:00
Jordan K. Hubbard cc472f1367 Commit the latest version of this. This version appears to handle package
failure much more gracefully, as well as implement a few new needed features.
Check it out!
Submitted by:	Marc van Kempen <[email protected]>
1995-04-24 13:01:04 +00:00
Satoshi Asami 570e661f02 (1) Add the chain of dependencies to the targets in the NO_* section
too (otherwise the chain won't work).
(2) If NO_WRKDIR is set, "make clean" removes "./.*_done" (assuming
    these are cookies...or should I list all the cookies?)
1995-04-24 10:41:51 +00:00
Satoshi Asami c046aaad20 Move call of fake-pkg from do-install to end of install. 1995-04-24 09:05:34 +00:00
Bruce Evans b0ba7f5601 Make bad144 debugging code conditional on ds_debug. 1995-04-24 06:04:36 +00:00
Poul-Henning Kamp d3f4d460f8 Added "bio" to matcd. 1995-04-24 05:33:59 +00:00
John Dyson e5f751a9b2 Changes to get rid of ufslk2 hangs when doing read/write to/from
mmap regions that are in the same file as the read/write.
1995-04-24 05:13:28 +00:00
Poul-Henning Kamp 4ac5f60572 Changes John's handling of the flags a little bit, added a new one,
(0x4000 == sleephack) to handle disks which are confused after a sleep.
Fixed a spelling error.
1995-04-24 05:12:29 +00:00
Poul-Henning Kamp 8b756b1a9a Did a s/[ \t]*$// 1995-04-24 05:09:53 +00:00
John Dyson bb48557835 Implemented the multi-sector I/O enable and the 32 bit I/O probe
through the use of the config file flags as opposed to the option
"NSECS_MULTI".  "NSECS_MULTI" has been removed from the driver.
The new capability allows boot-time modification of the config.
1995-04-24 04:32:31 +00:00
John Dyson e3dd31586c Removed the NSECS_MULTI option, and implemented both 32 bit probe
enable and multi-sector I/O enable by using the controller or device
flags capability.  Per a suggestion by phk.
1995-04-24 04:30:19 +00:00
Poul-Henning Kamp d996508637 install "compat20" (libgcc.so.261.0) into the bindist.
cc/ld does the right thing.
1995-04-24 04:06:30 +00:00
Jordan K. Hubbard 929abd248d I noticed that some new -W options had been turned on the kernel compile since
I made the changes I sent you before.  In the interests of cleanliness, I made
modifications to /sys/i386/isa/tw.c to kill the warnings and make it compile
clean.  While I was at it, I also made a bunch of internal functions static.
Submitted by:	Gene Stark <[email protected]>
1995-04-24 01:39:55 +00:00
Poul-Henning Kamp ab0e9cdc60 Add the stuff to munge the name of the release/snap/whatever we build. 1995-04-23 23:06:36 +00:00
Justin T. Gibbs a34bad999b Set SCSI_NOSLEEP only when we really need to. This requires an additional
flags parameter to all xxstart routines so that the correct information can
be passed down into the device specific routines.  This is needed to ensure
that ccb/scb allocation routines don't hang.

Submitted by: John Dyson
1995-04-23 22:07:56 +00:00
Justin T. Gibbs c6baec432a Don't arbitrarily set SCSI_NOSLEEP. It is now handled correctly by the
higher level scsi code.

Spls should never be conditionalized, so don't do so here.

Restructure the get_scb routine so that we can't get into an infinite
loop if the ccbs are exhausted and we are are called with SCSI_NOSLEEP set.

Other driver maintainer's that based their scb allocation routines on Julian's
code should look at these changes and implement them for their driver.

The aic7xxx driver inspired these changes because early revs of the
aic7770 chips have so few SCBs that you can actually run out.  If you
have a rev C or aic7770 (as is reported by the driver probe) and had more
than 2 drives, you could get into an infinite loop when using up all of
the SCBs.  Since the driver will only allow two SCBs per device and I
only had two devices, I never saw this problem on my Rev C card.

Bzero only 19 bytes of the scb instead of 2k (ack!).  This was a hold
over from when a struct SCB only contained the information downloaded
to the board, but we now store kernel driver data in there as well.  This
greatly lowers the overhead for small transactions (I get ~1MB/sec for
dds with a 512 byte block size).

Submitted by: John Dyson with the aic7xxx specific optimization by me
1995-04-23 22:04:58 +00:00
Justin T. Gibbs 12930dab88 Don't arbitrarily set SCSI_NOSLEEP. It is now handled correctly by the
higher level scsi code.

Spls should never be conditionalized, so don't do so here.

Restructure the get_ccb routine so that we can't get into an infinite
loop if the ccbs are exhausted and we are are called with SCSI_NOSLEEP set.

Other driver maintainer's that based their ccb allocation routines on Julian's
code should look at these changes and implement them for their driver.

Submitted by: John Dyson
1995-04-23 21:58:35 +00:00
Paul Richards 2e3635b5ff Removed the ps through a pipe project since we decided this was
the wrong thing to do and people keep volunteering to do it :-)
1995-04-23 21:34:23 +00:00
Garrett Wollman 3bf7d64959 Added parseable comments describing the zone each entry represents. 1995-04-23 21:24:54 +00:00
Garrett Wollman c040025a4b Add `fe' Ethernet driver man page. 1995-04-23 18:54:40 +00:00
Garrett Wollman ca55ea923a Added `fe' device drive r for Fujitsu MB86960A family.
Submitted by: M.S. <[email protected]>
1995-04-23 18:31:50 +00:00
Garrett Wollman 1a7c583c01 Substantially clean up LINT and add `fe'. 1995-04-23 18:30:27 +00:00
Andrey A. Chernov 045aff38e6 Add setreuid/setregid to MAN section 1995-04-23 15:06:16 +00:00
Jordan K. Hubbard a746536c51 Document COPTFLAGS in addition to CFLAGS. 1995-04-23 13:03:24 +00:00
Bruce Evans e770b51673 Declare the console switch functions completely.
Move declarations of console functions to cons.h (they should be
config(8)ed).
1995-04-23 12:55:55 +00:00
Bruce Evans 8d98ed564c Move declarations of console functions to cons.h (they should be
config(8)ed).

Update other misplaced prototypes.
1995-04-23 12:41:57 +00:00
Andrey A. Chernov b48757c256 Add setreuid/setregid 1995-04-23 12:34:48 +00:00
Andrey A. Chernov c6d8816ea8 Fix history info 1995-04-23 12:31:13 +00:00
Andrey A. Chernov e876c909da Make setreuid/setregid active syscalls 1995-04-23 12:22:06 +00:00
Andrey A. Chernov 29ea28d79e Add 'rc' devices. 1995-04-23 12:02:21 +00:00
Bruce Evans 38994061cf Correct the type of the `c' arg to pccnputc().
Move declarations of console functions to cons.h so that they can't be
defined inconsistently in several places.  They should be config(8)ed.
1995-04-23 10:15:42 +00:00
Bruce Evans f81904fe9c Declare d_dump_t and d_mmap_t completely. Nothing depends on the
incomplete declarations here any more.  Some things depend on
incomplete declarations elsewhere.  The `offset' arg to d_mmap_t is
bogus (it is `int' but should be `vm_offset_t') but it is what the
driver mmap functions actually accept, although they are passed a
`vm_offset_t'.

Function declararions in headers should always be complete to avoid
warnings from `gcc -Wstrict-prototypes' for compiling modules that
don't even use the offending declarations.
1995-04-23 09:36:59 +00:00
Julian Elischer 6944abf1d7 hmm spotted a difference resulting from a merge I didn't examine close enough 1995-04-23 09:17:24 +00:00
Julian Elischer 73bac981dd include hooks for EISA configuration (possibly wrong :) 1995-04-23 09:13:08 +00:00
Julian Elischer fc5f6d13ec include new files for EISA configuration 1995-04-23 09:12:00 +00:00
Julian Elischer b174ba8899 files for the eisa specific autoconfiguration..
don't expect this to work yet.. but at least they're here..
(hey this cvs stuff is fun!)

activate with a line exactly like the isa line in the config file,
(but specifying eisa :)
patches to come..
1995-04-23 08:55:43 +00:00
Bruce Evans 453de7da68 Correct the type of the `acflag' arg to suser(). 1995-04-23 08:31:02 +00:00
Bruce Evans 7666fb4753 inline -> __inline.
Headers should always use `__inline' for inline functions to avoid
syntax errors when modules that don't even use the offending functions
are compiled with `gcc -ansi'.
1995-04-23 08:05:49 +00:00
Bruce Evans 625fa10a30 Don't export a bogus include to half the universe. 1995-04-23 07:47:12 +00:00
Bruce Evans 8fe25bc123 Declare wakeup() non-implicitly and don't bogusly cast its arg. 1995-04-23 07:39:21 +00:00
Poul-Henning Kamp 94624c5572 Forgot this commit the other day. The receiving end of the "boot -C" option. 1995-04-23 04:14:41 +00:00
Poul-Henning Kamp 453e527dcb We will use /sbin/init on cdrom too. 1995-04-23 04:13:51 +00:00
John Dyson 74d2d21c68 Change the initial delay in wdwait to a DELAY macro call. It is really
too long, but does not impact performance very much when using the
NSECS_MULTI option.  This will help solve some mysterious IDE I/O
problems.
1995-04-22 22:44:30 +00:00
John Dyson 5b920a895d Document the wd.c option NSECS_MULTI. 1995-04-22 22:39:33 +00:00
Poul-Henning Kamp 48bf097c94 First part of the "what version of CURRENT" fix.
We now have RELEASE=CURRENT in the CVS-tree.

If this hasn't been edited, we will use "BUILT-yyyymmdd" where the time is
that of the compile, and leave it at that, we can't do any better.

If there is no serious objections, I will modify the "cvs co" script on
freefall to fiddle this file after checkout so that it becomes
CURRENT-yyyymmdd, where the time is that of the checkout.
1995-04-22 21:39:15 +00:00
Bill Paul 243ae8c754 in _freecaches(): strdup() allocates us memory -- remember to free it. 1995-04-22 17:28:04 +00:00
Atsushi Murai 281cc46322 Fixing misspelling and chang default device as dailout
Reviewed by: Atsushi Murai <[email protected]>
1995-04-22 17:14:21 +00:00
Jordan K. Hubbard 2a20a9edde Stage almost nothing through the playpen now - this should speed pkg_creates
up by a couple of factors, as well as decrease the amount of temporary space
required to build a package down to almost nothing.
1995-04-22 14:55:07 +00:00
Jordan K. Hubbard 3e1a18606d Export the min_free() function. 1995-04-22 13:58:44 +00:00
Jordan K. Hubbard cbf098db0e Second round:
1. Make paths work correctly.
2. Make pkg_add generally more robust in the face of failure.
3. Make the depend messages come out on stderr or stdout, but not both
   interspersed! :-)
1995-04-22 13:58:24 +00:00
Jordan K. Hubbard 3ec12cb0ce Set a default PKG_PATH. 1995-04-22 10:58:23 +00:00
Jordan K. Hubbard e692e3aa52 1. Add an new @option directive. You'll understand it better in a moment.
2. Fix a long-standing bug in pkg_add where the failure of one package in
   a multipackage installation (pkg_add *.tgz) would blow you right out of
   the water.  Ick.
1995-04-22 07:41:02 +00:00
Nate Williams 0e42d6bd35 This got ignored as a shared object during the import. Add it back as
it's necessary for the doc process.
1995-04-22 06:07:48 +00:00
Bill Paul 31e0d8b925 Tiny printf formatting change: if we have no cpu_vendor or cpu_id info,
don't generate a newline. (Yeah, I'm picking nits, but that empty line
I get on my 386 just looks dumb, okay? :)
1995-04-22 03:58:46 +00:00
Jordan K. Hubbard ffa6d17f61 Ok, this should get the last of the stragglers installed into a new fake-pkg. 1995-04-22 01:22:49 +00:00
Jordan K. Hubbard adbcdd9cce Argh - missed a printf! That should be the last of plist-spewers. 1995-04-22 01:20:13 +00:00
Jordan K. Hubbard 922a707e02 Don't spew garbage into the packing list when PlistOnly and verbose are
both on.  Whoops!
1995-04-22 00:59:33 +00:00
Bill Paul 8a5bd1a2a3 Make Rod Grimes's life a little simpler: replace all exit(1)'s with
seperate exit values depending on the error. (The error values are
#defined and commented near the top of the file for clarity). This
is to help write a small bit of shell script for /etc/rc that calls
ypwhich a few times after ypbind is invoked to make sure we're
actually bound to a server before proceeding (if we aren't, the
automounter can fail if it's using NIS maps).
1995-04-22 00:23:59 +00:00
Jordan K. Hubbard cca32e93aa Some patches to make deletions of non-existent files and directories slightly
less fatal (so that the database entry is subsequently removed anyway).
Submitted by:	Edward Wang <[email protected]>
1995-04-22 00:14:20 +00:00
Jordan K. Hubbard ca22b5aa87 Don't try to run the fake-pkg target if NO_PACKAGE is set. 1995-04-22 00:08:06 +00:00
Jordan K. Hubbard 405b7c80bd Typo: patch -> package 1995-04-22 00:05:46 +00:00
Jordan K. Hubbard 3a5e372a3d 1. Add proper dependencies to the library in my Makefiles. This was pointed
out by Bruce.
2. Add a "feature" to pkg_create (OK, OK, it's a miserable hack!) to get
   it to dump its internal packing list out so that the `fake-pkg' rule in
   bsd.port.mk can generate a more meaningful packing list.
1995-04-22 00:03:18 +00:00
Jordan K. Hubbard b79219d31a Instead of copying PLIST over, run pkg_create in a special mode that dumps
the fully-formed PLIST to stdout and uses that.
1995-04-22 00:01:26 +00:00
Julian Elischer 220112c567 Submitted by: [email protected] 1995-04-21 22:20:34 +00:00
Bill Paul fa238a7175 Add prototype for ypbinderr_string(). 1995-04-21 18:07:34 +00:00
Bill Paul 644161688b small NIS binding fixes:
ypbind.c: if a client program asks ypbind for the name of the server
for a particular domain, and there isn't a binding for that domain
available yet, ypbind needs to supply a status value along with its
failure message. Set yprespbody.ypbind_error before returning from
a ypbindproc_domain request.

yplib.c: properly handle the error status messages ypbind now has the
ability to send us. Add a ypbinderr_string() function to decode the
error values.

ypwhich.c: handle ypbind errors correctly: yperr_string() can't handle
ypbind_status messages -- use ypbinderr_string instead.
1995-04-21 18:04:36 +00:00
Bruce Evans 8da0f3b87a Make some functions static like they always should have been.
Change the interfaces of these functions to save space.  The code
that takes the least amount of space is often the opposite to what
you might expect.  E.g., it helps to waste a few bytes passing
pointers so that the compiler can't see that certain addresses
are identical (gcc likes to waste space by reloading fat constants
even when the constant is already in a register).

Rewrite getbootdev() to save 80 bytes of space and to make it less
ugly.  32 bytes were saved simply by omitting the continue statements
in the pseudo-switch.
1995-04-21 16:50:32 +00:00
Bruce Evans 34951155ae Update the pseudo-prototype for serial_putc() to match the actual prototype. 1995-04-21 16:30:18 +00:00
Bruce Evans a9ef92e638 Never pass char or short args to functions. This saves 64 bytes of
recently introduced bloat in just 2 calls to biosread(), although
very little in calls to putc() and serial_putc().  Gcc produces
amazingly bad code for unnecessary conversions.  E.g., if it has
`int x' in register %edx and wants to pass a char, then it could
simply push %edx and access only one byte in the callee.  Instead,
it sometimes unnecessarily spills %edx; it always sign extends
%edx and pushes the result.

Remove useless `extern' in function prototypes.

Remove unused declaration of `end'.

Declare pbzero() and pcpy() like the library bzero and bcopy().

Declare printf() properly.
1995-04-21 16:07:12 +00:00
Bruce Evans 55e2b2c608 Fix bugs in opendir():
- it succeeded on non-directories (see POSIX 5.1.2.4).
- it hung on (non-open) named pipes.
- it leaked memory if the second malloc() failed.
- it didn't preserve errno across errors in close().
1995-04-21 15:23:27 +00:00
Jordan K. Hubbard 7332aa0b69 Clean up this manpage a bit. I didn't try to seriously rearrange any
of the descriptions, I simply fixed some of the english and made his
file selector example show up.
1995-04-21 10:38:21 +00:00
Jordan K. Hubbard 88d7c6751c Whoops - I committed the test environment Makefile by mistake! This
one should have all the proper relative paths.
1995-04-21 10:23:23 +00:00
Jordan K. Hubbard 6e9cd00afe Hastily back out my previous change to install ui_objects.h; upon further
examination, I'm not entirely sure this was meant to be public.  It's not
idempotent or anything.  I'll make pkg_manage deal with it another way
until it's been confirmed one way or the other by Marc.
1995-04-21 10:18:33 +00:00
Jordan K. Hubbard effc53c83c Also install new ui_objects.h header file. I'm not sure how I feel about
these Makefile constructs - surely there's a better way?
1995-04-21 10:15:31 +00:00
Jordan K. Hubbard e722380a68 Bring this up to date with Marc van Kempen's latest version (1.0) now
that the libdialog changes have gone in to support it.
Submitted by:	Marc van Kempen <[email protected]>
1995-04-21 10:05:46 +00:00
Jordan K. Hubbard 36034afc79 Correct a bogusly formatted printf(). 1995-04-21 06:30:41 +00:00
Nate Williams 110aea11f2 Sync. up bits with Paul K. Cascade support plus some cosmetic changes.
Obtained from: NetBSD
1995-04-21 04:57:50 +00:00
Poul-Henning Kamp d337216dd8 Add -f to all gunzip's. 1995-04-21 03:47:23 +00:00
John Dyson e0a4d029a5 Slight re-ordering of the creation of a vmio object to fix a condition
that can cause NFS I/O failures.
1995-04-21 02:58:49 +00:00
John Dyson 7e15fd2757 Fixed a problem in _vm_object_page_clean that could cause an
infinite loop.
1995-04-21 02:48:40 +00:00
Julian Elischer abeeb9ceb2 Obtained from: copied fro mount_kernfs
This is copied from the mount_kernfs code..
if it doesn't work there is a working binary in ~julian
1995-04-21 01:17:50 +00:00
Joerg Wunsch 9c6e0c69be . Make Poul's boot2 overflow warning less noisy in case the blocks
do fit, and beeping in case of an overflow.

.  Drop a comment about the ``FORCE_COMCONSOLE'' option into
   README.serial.

.  Increase the name buffer for the root directory from 100 bytes
   to 8 KB;  this is in no way ideal, but (IMHO) the best that can
   be done by now.  People did encounter problems with their root
   dir name listing overflowing the allocated buffer space.  Once
   we've got the three-stage boot, we should implement some basic
   malloc().  Swap space is already getting tight now, perhaps the
   swap should go into another 64 KB segment instead.

.  Make the keyboard probe less paranoid.  It should not give up in
   case of a keyboard that's continuously demanding RESEND's.  Even
   though the keyboard reset apparently has not been reported to be
   complete, it's at the very least proven that there IS something
   like a keyboard available.

   This solves problems with the ``Gateway-2000 AllKey programmable''
   (sp?) keyboard, that experienced a total hang with the previous
   probe.

   Thanks goes to Scott Blachowicz <[email protected]> for his
   extensive testing of my various interim (debugging) bootblocks
   to get this working.
1995-04-20 23:15:10 +00:00
Julian Elischer c9755763d9 Add an option to make it easy to default to the hd1 mode
also save a few bytes
1995-04-20 23:05:23 +00:00
Julian Elischer 9d55f6fd25 remove note about 'find' now that it's fixed. 1995-04-20 22:02:05 +00:00
Julian Elischer b9494fba51 Submitted by: [email protected]
Reviewed by:	Julian
fixes the 'find' anomaly mentionned in the README
(hmm I guess I should fix that too..)

diff -r1.2 devfs_vnops.c
905a906
>                       dirent.d_type = DT_DIR;
914a916
>                       dirent.d_type = DT_DIR;
920a923,941
>                       switch(name_node->dnp->type) {
>                       case DEV_BDEV:
>                               dirent.d_type = DT_BLK;
>                               break;
>                       case DEV_CDEV:
>                               dirent.d_type = DT_CHR;
>                               break;
>                       case DEV_DDEV:
>                               dirent.d_type = DT_SOCK; /*XXX*/
>                               break;
>                       case DEV_DIR:
>                               dirent.d_type = DT_DIR;
>                               break;
>                       case DEV_SLNK:
>                               dirent.d_type = DT_LNK;
>                               break;
>                       default:
>                               dirent.d_type = DT_UNKNOWN;
>                       }
1995-04-20 22:00:05 +00:00
Andrey A. Chernov 7ca7a1934b Add a bit more docs 1995-04-20 21:36:15 +00:00
Poul-Henning Kamp 3226e381f8 Added a check so compilation fails if the bootblocks are too big.
replaces a switch with ifs to reduce size.
1995-04-20 18:36:14 +00:00
Satoshi Asami 60ee8ee7cb Major overhaul. The major targets (fetch, extract, patch, configure,
build, install) are now all skeletons and do nothing but

(1) Call pre-* target (if exists)
(2) Call scripts/pre-* script (if exists)
(3) Call do-* target
(4) Call post-* target (if exists)
(5) Call scripts/post-* script (if exists)

The do-* targets do all the work.  The pre-* and post-* targets/scripts
don't exist by default.  The main targets check for the cookies too, so
porters shouldn't have to worry about them at all.

NOTE: THE MAIN TARGETS IN THE PORTS MAKEFILES SHOULD GO AWAY.  We need
to fix this before wcarchive comes back up.  Change the names to do-*,
rip out the cookies, rip out the calls to pre-* etc. and most of them
should work.

Also, reorganize the whole thing so that similar targets are together
and add more comments.  Surround section header with 64 #'s (C-u C-u
C-u # in emacs :).

Hopefully this will be the last major change to bsd.port.mk.  Now let
the Makefile-hacking begin.
1995-04-20 18:03:02 +00:00
Andrey A. Chernov 7f6e7c13b5 Upgrade.
Submitted by: Marc van Kempen  <[email protected]>
1995-04-20 17:39:37 +00:00
Julian Elischer 072506ba00 Submitted by: julian
@#%$#@ ftp -p corrupted the file in transfer..
(cut off the last 2 lines).. fix this
1995-04-20 07:42:41 +00:00
Julian Elischer b79223f61b Submitted by: julian
I did a cleanup on the code..
(why didn't I do that before I checked it in? I hear you ask..)
1995-04-20 07:34:55 +00:00
Poul-Henning Kamp d7e591aeab The -current system with 'zp' driver hangs up when resumed from
suspended mode.  The patch for this bug follows.

Reviewed by:
Submitted by:	<[email protected]>
1995-04-20 07:22:04 +00:00
Poul-Henning Kamp 0c5679913a Add a "set -e" to all of these, to catch failures. 1995-04-20 06:49:09 +00:00
Poul-Henning Kamp 518a1d34d6 A major cleanup. Move more over to a "pull" model than a "push" model,
this will eventually allow us to add meaningfull dependencies.

Add mount_{msdos,nfs,cd9660} and chroot to the fixit.flp.
1995-04-20 06:48:31 +00:00
Julian Elischer adf18d3b60 Reviewed by:
Submitted by:	julian
oops rename doc file to README as agreed
1995-04-20 06:36:36 +00:00
Poul-Henning Kamp 16b560a716 Added -C option to set RB_CDROM, so that we use our cdrom as root. 1995-04-20 06:08:27 +00:00
Poul-Henning Kamp 709471e7e8 Added RB_CDROM flag, meaning "use CDROM as root". 1995-04-20 06:06:42 +00:00
Poul-Henning Kamp 804e33a872 Add wd2 and wd3 as swap-devices too. 1995-04-20 06:05:17 +00:00
Poul-Henning Kamp f4d1e3d1e7 Remove the slice for the first 63 sectors for the OnTrack case, it's useless
and nobody care about it anyway.
1995-04-20 06:01:51 +00:00
Poul-Henning Kamp f6e018497f Use port 21 as default if getservbyname fails to find it for us. This let
us remove some crud from the install-procedure.
1995-04-20 05:38:58 +00:00
Bill Paul de2a1afc47 Undo the stupidity I inflicted on these files and replace it with
some (hopefully) less offensive stupidity:

If we detect that a user has loaded a module that fails to initialize
itself correctly, panic. There really isn't a safe way to recover from
something like this; we can't know that the module is bad until after
the entry point is called, by which time it's too late to do anything
about it.
1995-04-20 05:08:53 +00:00
Julian Elischer e902d016a6 Reviewed by: no-one yet, but nonintrusive until configed in.. :)
Submitted by:	[email protected]
Obtained from:	written from scratch
1995-04-20 03:31:34 +00:00
Julian Elischer 999422d707 Reviewed by: no-one yet, but non-intrusive
Submitted by:	[email protected]
Obtained from:	written from scratch

slight changes to make space for devfs..
(also conditional test code in i386/isa/fd.c)

===================================================================
RCS file: /home/ncvs/src/sys/sys/malloc.h,v
retrieving revision 1.7
diff -r1.7 malloc.h
113a114,117
> #define M_DEVFSMNT    62      /* DEVFS mount structure */
> #define M_DEVFSBACK   63      /* DEVFS Back node */
> #define M_DEVFSFRONT  64      /* DEVFS Front node */
> #define M_DEVFSNODE   65      /* DEVFS node */
184c188,192
<       NULL, NULL, NULL, NULL, NULL, \
---
>       "DEVFS mount",  /* 62 M_DEVFSMNT */ \
>       "DEVFS back",   /* 63 M_DEVFSBACK */ \
>       "DEVFS front",  /* 64 M_DEVFSFRONT */ \
>       "DEVFS node",   /* 65 M_DEVFSNODE */ \
>       NULL, \
Index: sys/mount.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/mount.h,v
retrieving revision 1.16
diff -r1.16 mount.h
100c100,101
< #define       MOUNT_MAXTYPE   15
---
> #define MOUNT_DEVFS   16      /* existing device Filesystem */
> #define       MOUNT_MAXTYPE   16
118a120
>       "devfs",        /* 15 MOUNT_DEVFS */ \
Index: sys/vnode.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/vnode.h,v
retrieving revision 1.19
diff -r1.19 vnode.h
61c61
<       VT_UNION, VT_MSDOSFS
---
>       VT_UNION, VT_MSDOSFS, VT_DEVFS
1995-04-20 03:18:19 +00:00
Julian Elischer 836aa5b77e Reviewed by: no-one yet, but non-intrusive
Submitted by:	[email protected]
Obtained from:	written from scratch

slight changes to make space for devfs..
(also conditional test code in i386/isa/fd.c)
why casn't cvs picked up these changes and shown them here?
is this going to be a NULL commit?
who knows? (it scanned all the dirs)


===================================================================
RCS file: /home/ncvs/src/sys/sys/malloc.h,v
retrieving revision 1.7
diff -r1.7 malloc.h
113a114,117
> #define M_DEVFSMNT    62      /* DEVFS mount structure */
> #define M_DEVFSBACK   63      /* DEVFS Back node */
> #define M_DEVFSFRONT  64      /* DEVFS Front node */
> #define M_DEVFSNODE   65      /* DEVFS node */
184c188,192
<       NULL, NULL, NULL, NULL, NULL, \
---
>       "DEVFS mount",  /* 62 M_DEVFSMNT */ \
>       "DEVFS back",   /* 63 M_DEVFSBACK */ \
>       "DEVFS front",  /* 64 M_DEVFSFRONT */ \
>       "DEVFS node",   /* 65 M_DEVFSNODE */ \
>       NULL, \
Index: sys/mount.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/mount.h,v
retrieving revision 1.16
diff -r1.16 mount.h
100c100,101
< #define       MOUNT_MAXTYPE   15
---
> #define MOUNT_DEVFS   16      /* existing device Filesystem */
> #define       MOUNT_MAXTYPE   16
118a120
>       "devfs",        /* 15 MOUNT_DEVFS */ \
Index: sys/vnode.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/vnode.h,v
retrieving revision 1.19
diff -r1.19 vnode.h
61c61
<       VT_UNION, VT_MSDOSFS
---
>       VT_UNION, VT_MSDOSFS, VT_DEVFS
1995-04-20 03:16:31 +00:00
Poul-Henning Kamp 0e175c5ef0 Added support for disks which "OnTrack Disk Manager" has munged.
I suggest you do all partitioning using the OnTrack SW, to avoid
confusing it.
1995-04-20 01:21:51 +00:00
Joerg Wunsch e6073fb7f6 Fix for the ``gdb -k /nonexistent /dev/mem'' core dump.
Submitted by:	[email protected] (Gary Jennejohn)
1995-04-19 22:59:33 +00:00
Poul-Henning Kamp 954f5fffa2 Put a kzip'ed GENERIC on the boot.flp and fixit.flp instead of BOOTFLP,
now that we have the space.
If this works out to our liking, we will kill BOOTFLP.
Now, if only we could extract the kernel, incl symbols from a kzip'ed kernel...
1995-04-19 18:00:04 +00:00
Poul-Henning Kamp 7c474103d4 Thanks to the dynamic duo of John & David, ("meanwhile in the VM-cave"), we
can use the vn-driver instead of physical floppies, thanks guys !
Add the fixit-floppy back now that kzip made it fit again.
Don't make the gzip'ed *.flp files anymore.
1995-04-19 17:42:32 +00:00
Jordan K. Hubbard 0892118cdf 1. Add Satoshi's much-requested "fake pkg_add" option to the installation
rule.

2. Have all non-X11 prefix using packages include the BSD.local.dist mtree
   file for initialization of /usr/local.  I'm still not sure if this is
   A Good Thing(tm) but I'll see what the users say.  It's easily overridden.

3. Standardise on ${PKG_DBDIR} as pointer to /var/db/pkg or local preference.
1995-04-19 15:02:26 +00:00
Jordan K. Hubbard 8c4e15334e Greatly simplify the calling of mtree - the error handling wasn't working
anyway, at least not with FreeBSD's mtree, and the arguments were being
built incorrectly.
1995-04-19 14:54:25 +00:00
Jordan K. Hubbard e804f03a5d Add support for the ${PKG_DBDIR} environment variable. /var/db/pkg is the
default, and probably not something you'd ever change, but now it's
possible to do so for local/custom installations.
1995-04-19 14:02:01 +00:00
Gary Palmer a07c2891bf Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <[email protected]
1995-04-19 12:24:08 +00:00
David Greenman aba8f38eb9 New flag: B_PAGING. Added as part of the vn driver hack. 1995-04-19 10:32:11 +00:00
David Greenman 334095ef1c Escentially a rewrite by John Dyson. This is disgusting, and John agrees,
but the whole thing is, so what the hell. :-) This version is expected to
work.
1995-04-19 10:31:18 +00:00
Andras Olah c4575b2416 Include <sys/queue.h> because <netinet/in_pcb.h> (also included
later in tcp_debug.c) requires it due to the pcb changes of DavidG.
1995-04-19 10:26:04 +00:00
Poul-Henning Kamp e7bf085313 Yank out the rewriting of disklabels. This code can and will get confused
in a couple of cases, and it doesn't do much anyway.  It used to save only
the newfs params (block/frag/cgroup.. and nothing more.  Something that
don't belong in a disklabel in the first place.
1995-04-19 02:19:20 +00:00
Poul-Henning Kamp d3e1f93a58 kzip the kernels on the boot.flp and fixit.flp, and buy us more space...
*** This definitively kills installs on machines with less than 4Mb ***
*** the kzip stuff loads a the 3Mb line.  This is Just Too Bad (TM) ***
1995-04-19 01:19:57 +00:00
Rodney W. Grimes 781434c1fc Reapply my fix for this:
Output the CPU features line during the probe on a seperate line, for
folks with lots of features the output use to wrap and look ugle.
1995-04-18 23:55:26 +00:00
Joerg Wunsch 77023b92da Make mt(1) orthogonal: now that we print the densities as strings
instead of hex, make it accept density names for input, too.
1995-04-18 22:27:43 +00:00
Nate Williams c0a7a54b73 Backed out the only FreeBSD specific change to the stock CVS sources now
that it's taken care of in the CVSROOT/cvsignore file which is FreeBSD
specific.

This will make it easier to track changes in the *official* release.
1995-04-18 18:14:57 +00:00
Bill Paul e1797c1a96 Couple of small cosmetic changes:
- Add $Id$ string.
- Fix comment ("we might *not* be able to unload the
module afterwards without panicking...")
- Get rid of variable 'j' that I used in name checking
for(;;) loop and use 'i' instead (I thought there'd be
a problem with this, but there isn't).
1995-04-18 14:10:21 +00:00
Jordan K. Hubbard 4b96fa37b0 Use a more nicely formatted message when we run out of space. 1995-04-18 13:04:34 +00:00
Jordan K. Hubbard fe16ad72f3 Matt says that no pre-2.3 pass boards were supposed to ship, but I certainly
got a 2.2 version DC21040 chip in my SMC ethernet card!  He suggests bumping
the check all the way down to 2.0 since it's pre-2.0 we're actually guarding
against.
Submitted by:   Matt Thomas <[email protected]>
1995-04-18 12:54:30 +00:00
Andrey A. Chernov b6b8f81ead Add quotes around TUNE_1542 1995-04-18 11:02:22 +00:00
Andrey A. Chernov a989b77e9e Fix update_line() updates on screen edges
Obtained from: bash sources
1995-04-18 11:00:47 +00:00
Satoshi Asami f744a9768e Use PKGNAME in the "describe" target (used to generate INDEX) too.
Didn't make sense to have two ports with the same name.
1995-04-18 08:24:18 +00:00
Satoshi Asami 60f1eb26c1 Use PKGNAME instead of DISTNAME in messages. To avoid things like
"Building for WWW" (pops up in two different ports) "Installing for
web2c-6.1" (ditto), which aren even't reminiscent of the port's real
name.

Sorry jmz, please don't go fix the print Makefiles' own messages.
We are going to take them out after we do the great bsd.port.mk
update anyway.
1995-04-18 08:18:27 +00:00
Bill Paul f13524346b Fix module handling to stop oddball modules (if_ppp_mod, if_sl_mod,
if_tun_mod, etc...) from crashing the system. These modules are useful,
but because they don't yet have proper load()/unload() functions,
they can lead to panics: if, for example, you load the if_ppp module,
any user can panic the system by running modstat.

You can also hang the system outright if you try to unload the PPP
module too.

Changes are as follows:

- Save the name passed to us during the RESERVE stage for name matching
(we can't load if_ppp_mod twice: we've have two ppp0's and two ppp1's,
which is beyond strange). This makes the lkmexists() cheks somewhat
redundant, but there's no way around it that I can see.

- If we call the module entry point and find that we have no lkm_any
structure in our 'private' section, create a fake one. This keeps
modstat happy. We mark such modules as LM_UNKNOWN.

- Don't allow LM_UNLOAD modules to be unloaded: it just ain't
possible. (Unless someone wants to write a pppunattach() function. :( )

- In lkmunreserve(), mark private.lkm_any as NULL so we don't get
confused later. I think this is bogus, but I can't prove it.

XXX: the name matching used to keep the user from loading two
instances of the same module can easily be defeated simply by
changing the module name or, in the case of the oddball modules,
simply by renaming the module files. I haven't found a nice simple
way to tell one module from another.
1995-04-18 02:29:26 +00:00
Bill Paul b877a2160b Small fixups to use LM_UNKNOWN type, also fix slight formatting
offset problem in banner printf().
1995-04-18 02:19:17 +00:00
Bill Paul 4ec3b3ddf3 Add LM_UNKNOWN type for oddball modules (if_ppp_mod, if_sl_mod, etc...)
that haven't yet learned how to do the Right Thing when installing
themselves.
1995-04-18 02:17:15 +00:00
Jordan K. Hubbard 29fb81664f Add xten user/group.
Submitted by:	Gene Stark <[email protected]>
1995-04-18 02:03:59 +00:00
Jordan K. Hubbard 8c409a2969 Extensive updates to this package.
Submitted by:   Gene Stark <[email protected]>
1995-04-18 02:00:01 +00:00
Jordan K. Hubbard 9a6f00fd39 Extensive updates to this package.
Moved Install.notes -> README, as ratified at the core meeting of
April 13th.

Submitted by:   Gene Stark <[email protected]>
1995-04-18 01:57:50 +00:00
Jordan K. Hubbard bcca63cba4 Extensive updates to this package.
Submitted by:	Gene Stark <[email protected]>
1995-04-18 01:54:25 +00:00
Joerg Wunsch 1146dede84 Round #1 of my st(1) -> mt(1) merge. All the commands should be
covered now, and i've attempted to give textual representations
instead of magic numbers.

The st(4) driver still misses some pieces; i'm going to implement the
EOM functionality RSN.

Any takers for the MTCOMP command?  Seems to have never been implemented.
1995-04-17 21:55:11 +00:00
Rodney W. Grimes 0a8cb0c4a5 Missing ${DESTDIR} added 4 places, pcvt's Makefiles are a crock! 1995-04-17 19:28:45 +00:00
Rodney W. Grimes 0682236f7e Add 4 missing ${DESTDIR}'s, this is another Makefile that needs rewritten. 1995-04-17 19:24:50 +00:00
Rodney W. Grimes 144b71fe74 Missing ${DESTDIR} on chflags commands added. 1995-04-17 19:15:38 +00:00
Rodney W. Grimes aa556f48a9 Add missing $(DESTDIR) to rm command so that this stops removing files
from my master system.

This makefile is a crock, and will soon be rewritten!
1995-04-17 19:10:20 +00:00
Poul-Henning Kamp 8425684b90 Print the BIOS geometries in a human-readable format. 1995-04-17 16:49:50 +00:00
Peter Dufault a478e06bfc Remove "BUG" of not supporting arguments for "-o" 1995-04-17 14:51:54 +00:00
Peter Dufault de1d7f1b4a Add support for arguments in output "-o" string. 1995-04-17 14:35:07 +00:00
Gary Palmer a058021a86 Bump to 2.0-950418-SNAP 1995-04-17 10:19:31 +00:00
David Greenman 4c1f8ee9b8 Fixed a logic bug that caused the vmdaemon to not wake up when intended.
Submitted by:	John Dyson
1995-04-17 10:00:55 +00:00
Gary Palmer 59423ca335 Claim 0xA7 for NEXTSTEP in here also. 1995-04-17 09:46:03 +00:00
Gary Palmer 5f0c94240a Add NEXTSTEP as claiming partition code 0xA7. 1995-04-17 09:42:54 +00:00
David Greenman 4ed452a631 Changed minimum supported rev of DC21040 to pass 2.2. 1995-04-17 08:16:14 +00:00
Satoshi Asami 824cc0cc5d "package" now depends on "install", so we can do "make -k package" from
the top level and have the build-package sequence of each port work
together.

For the old behavior (i.e, just go ahead and blindly pack everything up,
regardless of the contents of work/), there is a new target "repackage".
1995-04-17 06:39:05 +00:00
Satoshi Asami 19eddad0a8 "all" now depends on "build", not "extract configure build".
Since "build" depends on "configure", which depends on "patch", etc.,
this shouldn't disrupt any Makefile that doesn't break the dependency
chain.

The old behavior was very annoying because when I did a "make -k",
it would still try to go configure and build even if the extraction
failed.
1995-04-17 06:28:15 +00:00
Bruce Evans 1b20a52866 Fix compiler warnings about benign overflow in initializers. 1995-04-17 05:52:17 +00:00
Atsushi Murai 4fb5c16406 Loglevel is a bitmask everywhere except in lqr.c.
Reviewed by:	Atsushi Murai <[email protected]>
Submitted by:	John Capo <[email protected]>
1995-04-17 04:21:35 +00:00
Andrey A. Chernov cac6992aca 1) kill temp diver upon exit
2) add logical ops, fix ! precedence, implement unary +, fix exp
Obtained from: NetBSD
1995-04-16 23:31:35 +00:00
Andrey A. Chernov db4dc2ff6e If locale not available, fallback to strcasecmp, not to strcmp 1995-04-16 22:43:45 +00:00
Bruce Evans 9e6dc28ab3 Check for i/o errors in fclose() so that a full disk doesn't almost
guarantee truncation of the file being edited.
1995-04-16 22:40:49 +00:00
Rodney W. Grimes a164d484cd Fix spelling error that keeps this from compiling with KERBEROS & SKEY
defined.

Submitted by:	Mark Murray <[email protected]>
1995-04-16 20:00:21 +00:00
Andrey A. Chernov d65a0f6ebd Merge. 1995-04-16 14:26:18 +00:00
Andrey A. Chernov deb4005ffb This commit was generated by cvs2svn to compensate for changes in r7889,
which included commits to RCS files with non-trunk default branches.
1995-04-16 14:13:48 +00:00
Andrey A. Chernov 6e4ab1ef34 Upgrade. 1995-04-16 14:13:48 +00:00
David Greenman 7c0414d074 Removed obsolete/unused variable declarations. Killed externs and included
appropriate include files.
1995-04-16 14:12:15 +00:00
David Greenman 64abb5a522 Removed obsolete/unused variable declarations.
Removed some extern declarations and included the correct include files.
1995-04-16 13:58:42 +00:00
Atsushi Murai 38c50f39a0 Fixing follows and John's fruent explnation than my English....
The first problem I found was that descriptor 0 was being closed.
This happens because the modem variable is set to 0 to indicate
that it is not valid but there are not enough tests for the modem
variable being 0.  You can see where I have done this in the patch.
Code in OpenModem() dups the modem descriptor if it is < 3.  Once
this happened the modem was always open and an incomming call would
have getty and ppp reading the modem.

Descriptor 1 is closed when the quit command was executed from a
telnet connection.  The next modem open returns descriptor 1
and this gets duped leaving the modem always open again.

The modem was not being closed when the connection dropped or was
closed from the other end.  The UUCP lock was also not removed if
the modem could not be opened.

Reviewed by:	Atsushi Murai <[email protected]>
Submitted by:	John Capo <[email protected]>
1995-04-16 13:38:39 +00:00
Joerg Wunsch 28cd12e87e Put David's and my answer regarding loader and kernel memory usage
here.
1995-04-16 13:04:21 +00:00
Joerg Wunsch afb7eb14a5 Remove the #ifdef REDUNDANT crud. This could be looked up in CVS by
interested parties.

Make the loader refuse to load anything below 1 MB -- we didn't
support it since FreeBSD 2.0R.  Avoid gratuitously wiping out the BIOS
variables or the loader.
1995-04-16 13:02:52 +00:00
David Greenman c3cb3e12f5 Moved some zero-initialized variables into .bss. Made code intended to be
called only from DDB #ifdef DDB. Removed some completely unused globals.
1995-04-16 12:56:22 +00:00
Andreas Schulz 9702179904 Update the link.5 man page to reflect the changes in ld/rtld/link.h. 1995-04-16 12:35:13 +00:00
Atsushi Murai 10b748971b Fix for handling a HDLC's escape characters as properly.
Reviewed by:	Atsushi Murai <[email protected]>
Submitted by:	NIIMI Satoshi <[email protected]>
1995-04-16 12:06:39 +00:00
David Greenman 5baf11ce97 Removed unused & empty bufstats() function. 1995-04-16 12:02:42 +00:00
David Greenman 8c3d9c403c Removed gratuitous m->blah=0 assignments when initializing the vm_page
structs in vm_page_startup(). The vm_page structs are already completely
zeroed.
1995-04-16 11:50:45 +00:00
David Greenman cece489df8 Killed gratuitous b_vp=NULL in bufinit. The entire buffer is already
bzero()'d.
1995-04-16 11:45:30 +00:00
David Greenman 1a477b0c27 Changed #ifdef around printlockedvnodes() from DEBUG to DDB. 1995-04-16 11:33:33 +00:00
David Greenman 5291a9a0ac Make vegetarian and animal rights people happy and use 0xdeadc0de instead
of 0xdeadbeef as the 'spare' value.
1995-04-16 11:25:47 +00:00
David Greenman 5124d59831 Make vegetarian and animal rights people happy and use 0xdeadc0de instead
of 0xdeadbeef as the fill pattern. Decreased MAX_COPY to 64 (256 was a bit
overzealous in most cases).
1995-04-16 11:25:15 +00:00
David Greenman 857f4d44be Remove gratuitous waste of 2K of memory for BIOS variables. We never load
the kernel at 0-640k; we haven't had the ability to do that since before
2.0R. Furthermore, I fail to see how putting an instruction at 0 and then
doing a .org 0x500 is going to prevent the stuff from getting clobbered
in the first place; a.out is just too stupid to know about sparse address
spaces.
1995-04-16 10:12:16 +00:00
David Greenman 2fdccd5e8c Make "print_page_info" #ifdef DDB. 1995-04-16 09:59:16 +00:00
David Greenman d94a4c0434 1) Check for curproc != NULL in bread/bwrite. John convinced me that this
is necessary in order for panic+sync to work. Will also gloss over a panic
that Jordan was having with the install floppies that remains unexplainable.
2) Handle "bogus_page" a little better.
3) Set page protection to VM_PROT_NONE if the entire page has become !valid.

Submitted by:	John Dyson (2&3), me (1).
1995-04-16 05:11:14 +00:00
David Greenman 8cbf8eafa6 Various fixes from John Dyson:
1) Rewrote screwy code that uses an incore buffer without making it busy.
2) Use B_CACHE instead of B_DONE in cases where it is appropriate.
3) Minor code optimization.

This *might* fix kern/345 submitted by Heikki Suonsivu.
1995-04-16 05:05:25 +00:00
David Greenman ec4f9fb0ee Fixed a few bugs in vm_object_page_clean, mostly related to not syncing
pages that are in FS buffers. This fixes the (believed to already have been
fixed) problem with msync() not doing it's job...in other words, the
stuff that Andrew has continuously been complaining about.

Submitted by:	John Dyson, w/minor changes by me.
1995-04-16 03:11:28 +00:00
Bruce Evans 5c1bcbae24 Do what the previous log message claimed to do and don't enable DES if
the user doesn't have the secure sources.
1995-04-16 01:40:24 +00:00
Justin T. Gibbs c587405860 Have the aic7xxx build rules point at the sequencer's new location. 1995-04-16 01:20:00 +00:00
Justin T. Gibbs c4bec2ef93 Install ahc.4. 1995-04-16 00:08:53 +00:00
Satoshi Asami 825402c2ab Yikes...typo (.package/ should have been .packages/). 1995-04-15 23:56:29 +00:00
Bruce Evans 67c54240cd Don't declare rune_t, putenv() or setenv() if _POSIX_SOURCE is declared.
Previously they were only guarded by `#ifndef _ANSI_SOURCE'.  They are
neither ANSI nor POSIX nor std and should never have been declared here.

Declare functions like abs() as having attribute `__pure2'.  Declaring them
as having type `__pure' has been a no-op for some time.

Delete obsolete comment about stub locale functions.

Use consistent formatting for the rand48 functions.  These and about 30
other functions should never have been declared here either.
1995-04-15 23:48:16 +00:00
Bill Paul a00f731551 In environments with multiple NIS servers (a master and several slaves)
one ypbind broadcast can yield several responses. This can lead to
some confusion: the syslog message from ypbind will indicate a rebinding
to the first server that responds, but we may subsequently change our
binding to another server when the other responses arrive. This results
in ypbind reporting 'server OK' to one address and ypwhich reporting a
binding to another.

The behavior of the rpc_received() function has been changed to prevent
this: subsequent responses received after a binding has already been
established are ignored. Rebinding gratuitously each time we get a
new response is silly anyway.

Also backed out the non-fix I made in my last ypbind commit. (Pass
me the extra large conical hat, please.)

(At some point I'm going to seriously re-work ypbind and the _yp_dobind()
library function to bring them in line with SunOS's documented behavior:
binding requests are supposed to be 'client-driven.' The _yp_dobind()
function should be responsible for retrying connections in response to
calls from client programs rather than having ypbind broadcasting
continously until a server responds. The current setup works okay in
normal operation, but we broadcast far too often than we should.)
1995-04-15 23:35:46 +00:00
Bruce Evans 99390fb82f Define DKBAD_NOTRKSEC. Cosmetic except it is required for recent changes
to bad144.c.
1995-04-15 23:21:28 +00:00
Bruce Evans 678308e07a Don't crash when there are too many items to fit on one screen. 1995-04-15 23:10:59 +00:00
Bruce Evans b7521ff571 Remove bogus unused `struct cpu_disklabel'. 1995-04-15 22:46:28 +00:00
Andrey A. Chernov 9cb939b4b4 Fight over non-working setruid 1995-04-15 22:08:10 +00:00
Bruce Evans e007f8483b - Don't write the label if the (undocumented) nflag is set.
- Don't write the label directly - use DIOCWDINFO.
- Avoid overflow in calculation of lseek() offsets.
- Fix format args in strings some more.  %ld and %lu were often reversed and
  #ifdefed out strings weren't fixed.
- Don't hard code the raw partition letter or DKBAD*.
- Write the qsort() comparision function in `C'.
- Fix all remaining warnings from `cc -Wall -Walmost-really-all'.
1995-04-15 21:59:26 +00:00
Justin T. Gibbs e68becc836 To celibrate the new status of the ahc driver, give it a man page.
Add references to the ahc driver to the other adaptec man pages.

Remove the "NOTE" section of the ahb man page that complained about
Adaptec's NDA policy preventing 274x driver development.
1995-04-15 21:48:31 +00:00
Justin T. Gibbs 3cddb2a3e2 John Aycock's BSD copyrighted sequencer assembler and sequencer code. This
is identical to the older version, just the copyright has changed.  Many
thanks go to Dean Gehnert of the Linux camp who went the extra mile to make
this happen.

Other changes:

Update assembler man page to include the -v and -D options

Merge in Dean's latest changes to the assembler

Have the sequencer do a MSG_REJECT when the negotiated syncronous rate
is lower than the adapter supports.  This forces asyncronous mode which
is faster at these rates anyway.

This code will be moved shortly to the non-gpld portion of the tree.
1995-04-15 21:45:56 +00:00
Andreas Schulz 892dbf3c38 Add mixer to the clean/cleandir targets to get it also cleaned up. 1995-04-15 21:45:49 +00:00
Bruce Evans 33242876a4 Fix initializations of kdc_state for serial consoles.
Change order of RTS flow control tests so that less tests are required
in the usual case.

Clean up parts of previous commits.  Cosmetic.
1995-04-15 21:45:16 +00:00
Justin T. Gibbs 241606bc72 kernel.h -> sys/kernel.h 1995-04-15 21:38:34 +00:00
Justin T. Gibbs 04f390ce00 Be more careful with how we do a chip reset.
Clean up some comments.
1995-04-15 21:37:32 +00:00
Bruce Evans 7897b3ce69 Don't waste time sending an EOI to ICU1 if option AUTO_EOI_1 is defined.
Previously, this worked right if both AUTO_EOI_1 and AUTO_EOI_2 are
defined, but not if AUTO_EOI_1 is defined and AUTO_EOI_2 is not defined.
The latter case should be the default.  DUMMY_NOPS should be the default
too.  Currently there are only two NOPs slowing down rtcin() (although
there are no delays in writertc()) and several FASTER_NOPs slowing down
interrupt handling in vector.s.

Fix stack offsets for the (previously) unused untested
FAST_INTR_HANDLER_USES_ES case.
1995-04-15 21:32:18 +00:00
Bruce Evans e2f03b0df0 Speed up ttnread() in the !(ICANON | ISIG) case by copying to user space
through a temporary buffer instead of one character at a time.  The old
method takes about 6 usec/char on a 486DX2/66.  This is larger than than
the combined interrupt and PIO overhead for a 16550!

This change was first implemented in 1.1.5.  It was rewritten for 2.1.
The clist access functions allow a simpler implementation at some cost
in correctness and speed.  There needs to be an ungetc() function to
recover from EFAULT, and it wastes time to copy through a temporary
buffer.

Don't snoop on single characters that weren't read due to EFAULT.
Rewrite a snoop comment in my approximation to English.

Undo bogus exportation of ttnread().
1995-04-15 21:04:58 +00:00
Bruce Evans f6c6c6428b Define IBUFSIZ as 384. This goes with speeding up ttnread().
OBUFSIZ should be increased to the same value as IBUFSIZE (both are
smaller than desirable because they have to fit on the stack), but
there are currently problems with magic buffer limits and watermarks.

Remove unused #define of TTMASK.

Undo bogus exportation of ttnread().
1995-04-15 20:59:28 +00:00
Andreas Schulz 5d2cacaa26 Put vnode_if.h and vnode_if.c into CLEANFILES that are automatically
generated. Should this lkm set VFS_LKM ?
1995-04-15 17:36:53 +00:00
Andreas Schulz 695176ba79 Removed the y.tab.h file from the sources. It is automatically generated
from yacc.
Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the
makefile, they are all generated and need to be removed on a clean.
1995-04-15 17:15:11 +00:00
Jordan K. Hubbard af087363e8 Bump the snap date. 1995-04-15 16:40:34 +00:00
Poul-Henning Kamp 6d7b3d3838 Added kzipboot 1995-04-15 08:24:33 +00:00
Poul-Henning Kamp 7970b29866 The magic code to uncompress a kernel.
Reviewed by:	phk
Obtained from:	Linux via 386BSD.
1995-04-15 08:23:55 +00:00
Poul-Henning Kamp 3e4ece9108 Added kzip in i386 section 1995-04-15 08:19:16 +00:00
Poul-Henning Kamp 2c3b2c6c13 This program to compress a kernel with. You loose all the symbols, so
usability is limited.  Very useful on fixit floppies &c.

Obtained from:	Linux via 386BSD
1995-04-15 08:18:20 +00:00
Gary Palmer 7253b58b7b Fix two more references to /etc/motd that I overlooked. PR #29 1995-04-15 07:05:07 +00:00
Gary Palmer 025362a70b Close PR #29. The file should be /etc/ftpmotd, not /etc/motd. 1995-04-15 07:02:22 +00:00
Poul-Henning Kamp 194c19ed17 Changes needed for kzip to work. 1995-04-15 06:54:13 +00:00
Jordan K. Hubbard 61eaec4e49 Make DISTNAME and RELEASE the same for now. It makes more sense. 1995-04-15 06:00:11 +00:00
Jordan K. Hubbard 08ed1b1db6 Go to a coherent release number for uname(1). 1995-04-15 03:56:06 +00:00
David Greenman 29e1dc7556 Install with default BINOWN (as it once used to be). 1995-04-15 03:31:19 +00:00
David Greenman 567f2ec907 Install setgid kmem rather than setuid root. The problem with procfs that
was breaking this before has been fixed.
1995-04-15 03:25:52 +00:00
David Greenman d7e03b7a8b For P_SUGID processes, we must also change ownership of the mem file
to root so that group kmem can still get to it. *SIGH*
1995-04-15 03:20:31 +00:00
Bill Paul 8efe1172e2 Head off potential core dump in _havemaster() (we don't need to free any
memory here: the underlying YP routines handle this one for us).
1995-04-15 03:11:55 +00:00
David Greenman 5232af2cf1 Retain group kmem readability for P_SUGID processes. 1995-04-15 02:50:13 +00:00
David Greenman f62e09f22e Made /proc/n/mem file group kmem and group readable. Needed to fix ps so
that it doesn't need to be setuid root.
1995-04-15 02:30:17 +00:00
David Greenman cf8ad5100d Fixed serious off by one bug I introduced that will likely cause the
machine to panic whenever the name cache fills up.

Submitted by:	John Dyson
1995-04-15 00:49:35 +00:00
Poul-Henning Kamp 0fbb4a064b "jl" and "jb" doesn't quite do the same thing...
Reviewed by:	phk
Submitted by:	"DI. Christian Gusenbauer" <[email protected]>
1995-04-14 23:01:33 +00:00
Poul-Henning Kamp c112d76dd6 I commit this for Bruce, who has serious connectivity problmes pt.
This should NOT go into 2.0.5  /phk

Support disk slices.  This involves mainly replacing inline code with
function calls.  Support for ST506 drives is temporarily broken since
the `setgeom' arg to dsopen() is not implemented completely enough to
use.  The `setgeom' arg will go away and ST506 drives will be supported
in another way.  A large amount of dead code is left in wdopen() as a
reminder of the problems here.

Close the device in wdsize().  Open tracking was broken on all drives
with a swap device.

Remove support for soft write protection.  There are no ioctls to set
it.  It was used to disable writing to unlabelled disks, but we want
to support writing to foreign partitions on unlabeled disks.

Use generic dkbad routines to do about 2/3 of the work for supporting
bad144.

Improve disk statistics: estimate 4MB/sec instead of 8MB/sec for
the transfer rate (ISA max is 4MB/sec, old IDE max is 3.3MB/sec);
fix dk_xfer[] (it counted sectors, not transfers); keep the estimate
dk_seek[] = dk_xfer[] (was sectors, is now transfers); only count
words actually transferred (the count is still too high after a
failed write and after retries).  Remove wdxfer[].

Fix indentation in wdattach().  Fix resulting botched printing of the
disk size for ST506 drives.  Print the disk geometry less cryptically.
1995-04-14 22:31:58 +00:00
Andrey A. Chernov c5dda01527 Fix MAILTO hole by passing -t to sendmail
Submitted by: Mike Pritchard <[email protected]>
1995-04-14 21:54:18 +00:00
Joerg Wunsch 15c99149f8 Boot block cleanup.
o Fix the keyboard probe to properly wait for the ready bit before
sending a command to the keyboard controller.  This should avoid the
problems some people are experiencing where the boot blocks hang the
system during keyboard probe.  (It does solve it for me.)

o Fix a bug that effectively prevented the boot blocks from ever
passing control to the serial console.  [while(--retries) instead of
while(retries--)]

o Gratuitously reduced the keyboard probe timeout from 500 to 5
seconds. :)

o Introduced a new option ``FORCE_COMCONSOLE'' as a commented-out
example in the Makefile, to force the usage of a serial console
regardless of a keyboard being connected or not.

o Moved all external declarations to boot.h, declared all functions
there, and ANSIfied all function declarations/definitions.
(printf() remains bogus, however -- i'm too lazy to fix this.)
We're in the ninetees, dunno why we should still support compilers
from the 70's.
1995-04-14 21:26:53 +00:00
Garrett Wollman 606eff77a1 Add `-s' flag to permit selection of devices in accordance with their
state (after all, who wants to be offered a menu of devices which
weren't found?).
1995-04-14 18:33:44 +00:00
Andrey A. Chernov a702c7b87b Add missing -lmytinfo, hits when compiled -static
Add DPADD
1995-04-14 16:13:28 +00:00
Andrey A. Chernov 8b2ceaa471 Add separate entry for screen(1), slightly different from vt220 1995-04-14 15:57:49 +00:00
Andrey A. Chernov e323ad35f3 Move digits before letters 1995-04-14 15:56:32 +00:00
Andrey A. Chernov e6325d4843 vt220: fix k1-k4 to be more compatible with xterm
and other emulators.
Simplify se/ue for emulators
1995-04-14 15:38:46 +00:00
Nate Williams 3cc6a1ed2e Added back 'examples' to the subdirs which was bogusly removed. 1995-04-14 15:15:27 +00:00
Peter Dufault 1fff580519 Add scsi target 1995-04-14 15:14:33 +00:00
Peter Dufault bc0cfeb0ce Add scsi target support. 1995-04-14 15:13:46 +00:00
Peter Dufault 8db34c841e Add scsi target. Add "after config" call to autoconf so that scsi
targets will be configured after all scsi busses have been configured.
1995-04-14 15:13:26 +00:00
Peter Dufault 8909a72b5d Add "sctarg" and document new SCSI_REPORT_GEOMETRY option for ache 1995-04-14 15:12:24 +00:00
Peter Dufault 81e01d44ce Added "scsi target" device that can act as a target for scsi transfers
from an initiator
Added Julian's support for residuals.
Added Julian's fixes to the tape driver
Made compile cleanly with -Wall
Reduce boot up output
1995-04-14 15:10:44 +00:00
Bill Paul c98fda6ec8 Better conformance to SunOS behavior: if we can't match a user to one
of the plus or minus lists at all, reject him. This lets you create
a +@netgroup list of users that you want to admit and reject everybody
else. If you end your +@netgroup list with the wildcard line
(+:::::::::) then you'll have a +@netgroup list that remaps the
specified people but leaves people not in any netgroup unaffected.
1995-04-14 14:56:28 +00:00
Bill Paul 09a901eb60 Hopefully I won't get flamed for this: insert a few more #if defined(I486_CPU)
and #if defined (I586_CPU) thingies into identifycpu() so that we only
compile in what's actually needed for a given CPU. So far as I can tell,
none of my 386 machines generate a cpu_vendor code, so I made the extra vendor
and feature line conditional on I486_CPU and I586_CPU. (Otherwise we
print out a blank line which looks silly.)
1995-04-14 02:06:00 +00:00
Bill Paul 8a03631b28 According to a Usenet posting forward to me by Jordan, there's
at least one user out there who's system won't autoboot from the
serial console because of what sounds like 'phantom keystrokes'
making the timeout timer trip. I've tried to solve this by
adding an extra call to init_serial() right before the 'Boot:'
prompt is printed (done only if RB_SERIAL is set) to hopefully
make sure that the input buffer is clear. Unfortunately, the fellow
is in Germany and I haven't heard back from him yet. I haven't
been able to duplicate this problem on my hardware, so this is
a stab in the dark. At the very least, it shouldn't hurt anything.
1995-04-14 01:35:59 +00:00
Rodney W. Grimes 51564ceea8 A better solution for the noisy ibcs2 startup, just echo a space and then
call ibcs2.
Submitted by:	jkh, slight modification by me.
1995-04-13 21:23:17 +00:00
Garrett Wollman c4374cae95 Add devmenu(1). 1995-04-13 21:11:53 +00:00
Garrett Wollman f34bdd9a32 Another sample devconf application. This one's a menu of devices; read the
man page.
1995-04-13 21:11:01 +00:00
Andrey A. Chernov 7ed12e2a4a Really fix MAILTO hole by parsing spaces.
Remove local bitstring copy
1995-04-13 20:58:13 +00:00
Jordan K. Hubbard dcaaf7cf51 Get the matcd manpage linked into the parent directory like the others. 1995-04-13 20:44:51 +00:00
Garrett Wollman 98f232c875 Make class names easier to type 1995-04-13 20:37:51 +00:00
Joerg Wunsch 936209a647 Include pcvt into the list of subdirs, so its utilities will be
included into fututre distributions.
1995-04-13 20:27:11 +00:00
Jordan K. Hubbard ff0edab95c Remove fixit floppy from things to build until Poul makes it work again. 1995-04-13 20:21:06 +00:00
David Greenman f153fb6e99 Backed out previous change - it reduces performance. (oops). 1995-04-13 18:24:33 +00:00
Garrett Wollman 3688be0eeb Add err_set_file() and err_set_exit() functions to make it possible for
programs which use err(3) to work nicely in a wider range of environments
(e.g., dialog).
1995-04-13 18:04:11 +00:00
Garrett Wollman ef46188e27 Actually copy the class field over from the kernel to the user structure. 1995-04-13 15:33:14 +00:00
David Greenman cf0ec51aec Slight optimization to select(). 1995-04-13 15:27:51 +00:00
Garrett Wollman ed8be72c29 Disallow Kerberos when S/Key is required. Fixes PR #339.
Submitted by: Paul Traina <[email protected]>
1995-04-13 15:20:35 +00:00
Garrett Wollman ae60406da6 Forgot two things in yesterday's massive devconf update:
initialized class for sio
don't bogusly re-initialize it in sio_registerdev()
1995-04-13 15:03:29 +00:00
Andrey A. Chernov 6b4198130e Allow root to delete uchg/uappnd files 1995-04-13 13:35:09 +00:00
Andrey A. Chernov 3cf91c530d Move setcompat code to another place, initial/locked devices
not supposed to work with old style ioctls
1995-04-13 11:11:11 +00:00
Gary Palmer ea4e5e0fbf The tmpdir cleaning routine _still_ wasn't right! :-(
I think this truly fixes it.
1995-04-13 09:30:58 +00:00
Andrey A. Chernov d17ad80fda Comment out ttcompat via COMPAT_SUNOS too
Fix error handling initial/callout devices
1995-04-13 09:22:40 +00:00
Poul-Henning Kamp 5184328cf8 tell people what we do at the end, since it can take a little while.
use "set -e" when extracting bindist
make src dists extract.
1995-04-13 09:06:15 +00:00
Poul-Henning Kamp 9776cec4df Reduce inode count on floppies a bit again 1995-04-13 09:05:25 +00:00
Bill Paul 695e4afe85 This a subtle reminder to people that not everybody compiles their
kernels with 'options I586_CPU.'

The declaration for pentium_mhz is hidden inside an #ifdef I586_CPU,
but machdep.c refers to it whether I586_CPU is defined or not. This
temporary hack puts the offending code inside an #ifdef I586_CPU as
well so that a kernel without it will successfully compile.

I must emphasize the word 'temporary:' somebody needs to seriously
beat on the identifycpu() function with an #ifdef stick so that
I386_CPU, I486_CPU and I586_CPU will do the right things.
1995-04-13 04:55:35 +00:00
David Greenman 9b798f72a1 Various changes from Matt Thomas to improve media selection and fix
support for the DC21140.
1995-04-13 04:46:40 +00:00
Poul-Henning Kamp 54f835a545 Even more inodes on the floppies... 1995-04-13 02:11:31 +00:00
Jordan K. Hubbard d99fdc4f07 I missed some of Frank Durda's changes for MAKEDEV. Fixed.
Submitted by:	Frank Durda IV <[email protected]>
1995-04-13 00:51:55 +00:00
Jordan K. Hubbard 624b327c77 DISTNAME="2.0-950412-SNAP" 1995-04-12 23:29:14 +00:00
Jordan K. Hubbard b9ebe70c00 Add Steve Gerakines <[email protected]> to contributors. 1995-04-12 22:47:31 +00:00
Bill Paul 8b4709fa93 Add an ethers(3) man page. 1995-04-12 22:28:49 +00:00
Jordan K. Hubbard 9599f64201 We're now shooting for a 950412-SNAP
Reviewed by:
Submitted by:
Obtained from:
1995-04-12 22:26:47 +00:00
Bill Paul e868bdd2a0 Add ethers(5) man page. 1995-04-12 22:16:08 +00:00
Poul-Henning Kamp e5f2c8f67e Add "BREAK_TO_DEBUGGER" option. 1995-04-12 22:02:51 +00:00
Poul-Henning Kamp 04a6a5a9ac ttsetcompat is a '#ifdef COMPAT_43' feature.
Dropping into the debugger when a break comes down the serial line is a
>MISFEATURE (1st class)< and has been put under it's own #ifdef.  This
should be a magic sequence of chars instead.
1995-04-12 22:00:41 +00:00
Poul-Henning Kamp 15587f8eaf added a missing '; \' 1995-04-12 21:13:08 +00:00
Garrett Wollman 6c0081e92b Add a class field to devconf and mst drivers.
For those where it was easy, drivers were also fixed to call
dev_attach() during probe rather than attach (in keeping with the
new design articulated in a mail message five months ago).  For
a few that were really easy, correct state tracking was added as well.
The `fd' driver was fixed to correctly fill in the description.
The CPU identify code was fixed to attach a `cpu' device.  The code
was also massively reordered to fill in cpu_model with somethingremotely
resembling what identifycpu() prints out.  A few bytes saved by using
%b to format the features list rather than lots of ifs.
1995-04-12 20:48:13 +00:00
Martin Renters fd7e139eed Break netboot into device specific versions.
nb8390.[cr]om for NS8390 boards (if_ed driver)
nb3c509.[cr]om for 3c509 boards (if_ep driver)

Submitted by:	Serge Babkin ([email protected])  [3c509 support]
1995-04-12 20:15:33 +00:00
Andrey A. Chernov f8cb57f574 Don't set -or0s (timeout 0) for possible network MAILTO 1995-04-12 19:28:30 +00:00
Andrey A. Chernov 4f7ac4bd57 Add some useful sendmail options 1995-04-12 19:21:43 +00:00
Andrey A. Chernov 4c256f710e Fix home dir cheating 1995-04-12 19:04:26 +00:00
Andrey A. Chernov 1cb37d6325 Close MAILTO security hole 1995-04-12 18:57:37 +00:00
Andrey A. Chernov 5c613ed190 Call gated as /usr/local/sbin/gated instead of possible adding
/usr/local/sbin to rc PATH
1995-04-12 16:58:06 +00:00
Poul-Henning Kamp 895449d220 Add bad144 to fixit floppy.
Remove kernel compile directories.
Put all *[sw]d* devices on floppies
Make more inodes on floppies as function of the above.
1995-04-12 08:00:24 +00:00
Poul-Henning Kamp d32bd61e78 Improve the if_eg driver a bit in style. It's still by far the worst driver
we have :-/
1995-04-12 07:50:44 +00:00
David Greenman 230620627b Fixed bug I introduced when changing PCB list to use 4.4BSD style queue
macros. Basically, detect 'tp' going away differently.
1995-04-12 06:49:56 +00:00
Andrey A. Chernov 7cccae663d Fix "at" directories owner 1995-04-12 03:02:01 +00:00
Andrey A. Chernov c70e5825aa Upgrade.
Close security holes reported.
1995-04-12 02:52:21 +00:00
Andrey A. Chernov b89321a57d Upgrade. 1995-04-12 02:42:39 +00:00
Gary Palmer fa877a53cb The servers bootpd & bootpgw live in /usr/libexec not /etc. Correct the
references in the man page.
1995-04-12 00:24:48 +00:00
Joerg Wunsch c8a2ad770c Fix broken file name globbing. Man is now also able to find pages
like "3DBorder" and "[".  (NB, the "3DBorder" problem has actually
been intention, it allowed for weird section names like "3xyzzy".  We
don't have them, either.)

(Partially) Submitted by:	[email protected] (Brian Tao)
1995-04-11 22:01:53 +00:00
Joerg Wunsch bfb50190bb The implementation of rexec() missed the function ruserpass(), so the
link stage fell over for any program that attempted to use rexec().

Ruserpass() remains undocumented; i could not find any documentation
for it on other systems.

Also added a BUGS section to the man page, stating that this function
constitutes a potential security hole (as well as the underlying
"exec" service).

Submitted by:	rgrimes
Originally submitted by: [email protected] (Alistair G. Crooks)
Obtained from: [email protected]
1995-04-11 19:52:10 +00:00
Andrey A. Chernov 0af4664a6c Read of a record smaller then request size always fails
Submitted by: [email protected]
1995-04-11 19:09:31 +00:00
Andrey A. Chernov 7970bd101c Fix output field range
Submitted by: [email protected]
1995-04-11 18:50:51 +00:00
Andrey A. Chernov 8889e816b4 Add -r to rm -f /var/spool/uucp/.Temp/* 1995-04-11 18:36:10 +00:00
Andrey A. Chernov d99adf96e5 Fix link sys call
Submitted by: [email protected]
1995-04-11 18:32:17 +00:00
Andrey A. Chernov 2178b9bb49 Call new ttsetcompat() function for proper working
old v7 ioctls with locking bits.
1995-04-11 17:58:09 +00:00
Andrey A. Chernov 0a247e7d30 Extract "set" family functions to separate module, needed for
locking in sio f.e.
1995-04-11 17:54:25 +00:00
Andrey A. Chernov bc9685528a Add new ttsetcompat function (from tty_compat) 1995-04-11 17:53:14 +00:00
Nate Williams 65cc5b32c2 Re-enabled cvs now that Rod is satisfied that it will work correctly. 1995-04-11 17:28:26 +00:00
Bruce Evans 2360b9bfc7 Submitted by: Mike Pritchard <[email protected]>
Fix PR 303: msdosfs: moving a file into another directory causes panic.

" ... the code that does the rename already has the denode
locked when msdosfs_hashins() gets called, resulting in the panic
when the routine attempts to lock the denode again.
...
The attached patch changes the msdosfs_hashins() routine to not lock the
denode.  The caller is now resposible for obtaining the lock instead
of having msdosfs_hashins() do it for them."
1995-04-11 17:13:17 +00:00
Bruce Evans 82f196916e Submitted by: Wolfgang Solfrank <[email protected]>
Fix off-by-1-sector error in the range checking for the end of the root
directory.  It was possible for the root directory to overwrite the FAT.
1995-04-11 16:43:20 +00:00
Jordan K. Hubbard 7565491c79 Bump this to 0408. I have my reasons. 1995-04-11 07:43:33 +00:00
David Greenman 81c6e3e558 Handle the "syncing VCHR vnode hang" problem a little differently; just
don't lock the vnode - it doesn't appear to ever be necessary for VCHR
vnode/inodes. This fixes a bug introduced in the previous commit that
caused tty timestamps to act strange (causing 'w' and 'finger' to show
the tty wasn't idle when it may have been for hours).
1995-04-11 04:23:47 +00:00
Martin Renters a9f9caeabd Add myself to the Contrib list. 1995-04-11 03:14:50 +00:00
Rodney W. Grimes d75038b6e7 Remove obsolete comments about my-name and my-network.
Have netstart directly source sysconfig so that it stands on its own.
Do not source netstart in rc, run it with sh.

Rework the dangerous /etc/hostname.* so that it uses a variable with
a list of interfaces and a variable for each interface in that list.
The files /etc/hostname.* become obsolete with this change, the
information is now stored in /etc/sysconfig.

Source any /etc/start_if.${ifn} files so they can export things to
netstart (plans for future enhancements in this area.)

Obsolete /etc/defaultrouter, this is now down with $defaultrouter from
sysconfig.
1995-04-11 01:22:24 +00:00
Jordan K. Hubbard c8aaabd573 Performance enhancements and a redesign of the transmitter code.
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-04-10 21:25:06 +00:00
Garrett Wollman d3a2b17ad7 Define tuncdev for the benefit of tunnel LKM so that it knows which
device slot to take.
1995-04-10 20:40:11 +00:00
Garrett Wollman 1f3d84e82a Tunnel driver is nmow capable of installing its own cdevsw[] entry,
with a little help from conf.c.  While e're at it, actually declare the
tunnel entry points to have the correct types.  This fixes PR #306.
1995-04-10 20:35:45 +00:00
Poul-Henning Kamp 8d89e37c73 I got that wrong,
lnc0	@ 0x280
	lnc1	@ 0x300

moved le0 into sorted sequence.
1995-04-10 19:13:51 +00:00
Poul-Henning Kamp 1f9e6f1901 lnc0 is @ 0x300
lnc1 is @ 0x280
1995-04-10 19:12:29 +00:00
Garrett Wollman a5ce0490a4 Fix initialization error that caused `mount -vat' to behave unexpectedly
in certain circumstances.  Fixes PR #182.

Submitted by:	Andrew Atrens <[email protected]>
1995-04-10 18:57:08 +00:00
Garrett Wollman 3c6bef7ee8 Correct name `cd9660' for MOUNT_CD9660 (but NB that this whole table
is bogus and only exists for the benefit of find(1)).  Old name was
`iso9660fs'.

Submitted by:	Andrew Atrens <[email protected]>
1995-04-10 18:52:40 +00:00
Joerg Wunsch a72408576b My libcompat cleanup.
o	add missing man pages

o	make all man pages clearly refer to the libcompat thingie

o	add the information to the vtimes(3) and vlimit(3) man pages
	that nobody has reimplemented the functions by now

o	add the missing getpw.c

o	add code and man pages for cftime(3) and
	ascftime(3) -- i found them somewhere in old
	unfinished work
1995-04-10 18:48:06 +00:00
Andrey A. Chernov 20f97715a5 sdattach: print out cyl/hd/sec info in the same format as wd driver does
as default case, very helpful in many cases.
1995-04-10 18:44:49 +00:00
Garrett Wollman fe9140c204 there is a endian problem when setting up tunnel and phyint boundaries
in the mrouted. inet_parse returns network byte ordered address, but there
are a couple comaprisons that need to be done on the addresses and the
comparisons are done in host order. I left the comparisions for 0xffffffff
alone, because this value is the same in network and host orders.

Submitted by:	Mark Tinguely <[email protected]>
1995-04-10 18:42:10 +00:00
Joerg Wunsch e03e5bb758 There have been a few occasions where some actions could dereference
uninitialized tty pointers early during boot; it got very obvious when
pressing Alt-F11 after a boot -c.
1995-04-10 18:34:51 +00:00
David Greenman d79940da0a Further satisfy my paranoia by making sure that the ACKNOW is only
set when ti_len is non-zero.
1995-04-10 17:37:46 +00:00
David Greenman afa70c96dd Fixed bug I introduced with my Nagel hack which caused tcp_input and
tcp_output to loop endlessly. This was freefall's problem during the past
day.
1995-04-10 17:16:10 +00:00
Jordan K. Hubbard f0681de0c2 Mods to tar (--fast-read) to cause it to stop looking for exact-matching
file specifications when they've been extracted (enabling you to get a file
fast if it occurs somewhere close to the front).
Submitted by:	Marc van Kempen <[email protected]>
1995-04-10 11:47:37 +00:00
David Greenman 7bc4aca7f0 Added splnet protections for PCB list manipulations and traversals. 1995-04-10 08:52:45 +00:00
Jordan K. Hubbard 9e87dd6ab1 Don't pass duplicate pkgdeps to pkg_create 1995-04-10 08:09:21 +00:00
Jordan K. Hubbard 1b164cce2b Neither of these tools really told you what you needed to know neatly
and succinctly in verbose mode.  I hope people find this more to their
liking.
1995-04-10 08:01:52 +00:00
Poul-Henning Kamp 01feef2c19 Sanitize the making of kernels a bit, and make the BOOTCDROM kernel too.
If we can get away with it, it will always just be the GENERIC kernel
with a different name.
1995-04-10 08:01:27 +00:00
Poul-Henning Kamp 17755ac806 Changes to make FreeBSD use a CDROM as rootdev, for installation purposes.
If "BOOTCDROM" is defined, you get this pretty special case stuff.
1995-04-10 07:44:31 +00:00
Andrey A. Chernov 83d05492ed Call ptsstop in ptsclose instead of ptcwakeup 1995-04-10 01:45:43 +00:00
Rodney W. Grimes 40a36bc906 Add missing "echo '.'" to end of file so that the next file called
starts on a new line.
1995-04-10 01:39:13 +00:00
David Greenman 64e4231041 Backed out Jordan's #include of queue.h 1995-04-10 00:43:18 +00:00
David Greenman 9dcb6988b3 Removed bogus #include of netinet/in_pcb.h 1995-04-10 00:41:25 +00:00
David Greenman d2bccb9fbe Added #include <sys/queue.h> 1995-04-10 00:38:15 +00:00
Nate Williams b6b718f326 as Thomas Graichen recently wrote in private mail:
> * the gdb-4.13 of current (compiled and used under 2.0R) can not attach to my
> own processes (it works only then i'm root - else i get open failed - for my
> own processes)

how embarassing ! This turns out to be a bug in infptrace.c. Below
is a patch. Could some kind soul apply it ?

Submitted by:	"Gary J." <[email protected]>
1995-04-10 00:01:01 +00:00
Andrey A. Chernov 9d9cea2bce ptcwakeup() was called from wrong places 1995-04-09 22:28:24 +00:00
Bill Paul 2d91aab798 First crack at a man page for ypbind. 1995-04-09 21:59:06 +00:00
Bill Paul b9729ac259 More of the same: we also need to handle multiple domains properly
even if /var/yp/binding/DOMAIN.VERS doesn't exist yet.
1995-04-09 21:52:31 +00:00
Bill Paul f067dfeabc Fix behavior of YP library routines in environments with multiple domains,
where one or more of the non-default domains are not yet bound.

If we make a YP request for a domain other than the default domain,
and there is no binding for the new domain yet, _yp_dobind() sees
that the /var/yp/binding/DOMAIN.VERS file for the unbound domain is
not locked (by ypbind) and from this it concludes that the NIS system
is dead, so it gives up.

This behavior has been changed: before giving up in this case, we now
make a second check to see if the binding file for the *default* domain
is also not locked. Only if the default domain binding file is also
unlocked to we now assume that ypbind has bought the farm and bail out.
(Note: this assumes that the user hasn't changed the default domain
while ypbind is running.)

With this change, _do_ypbind() is allowed to proceed into the next
section of code wherein it prods ypbind into establishing a binding
for the new domain. This first call times out after ten seconds,
after which it should retry and succeed. From then on, the binding
for the second domain should be handled normally.
1995-04-09 19:26:23 +00:00
Jordan K. Hubbard cb7533f532 #include <sys/queue.h> or die horribly. 1995-04-09 16:46:47 +00:00
Jordan K. Hubbard b81be3d3e8 Add matcd.4 to list of manpages. 1995-04-09 15:55:21 +00:00
Jordan K. Hubbard 7988f8a2c7 Part of Frank Durda IV's new matcd driver CD audio support.
Submitted by:   Frank Durda IV <uhclem%[email protected]>
1995-04-09 15:50:48 +00:00
Jordan K. Hubbard 08d5844ce1 This is the new submission of the matcd driver. In addition to the
new driver code, there are diffs to several other existing files
on the system and a man page.

This version of matcd implements the rest of the key ioctls related to
playing audio CDs and reading table of contents information from any
type of disc.

This update also corrects several problems detected since the original
version 1(10) was released.  These include:
1.	Jordons report on the kernel -c string problem.
2.	A problem with the driver being confused by other types of
	devices located at addresses it probes.
3.	An old CD TOC wouldn't always be cleared after a disc change.
4.	Cleaned up code so -Wall yields no warnings on 2.0 and later.
5.	A problem with drive getting out of sync with the driver when
	changing between CD-Data and CD-DA.

There have only been two reports from the field relating to problems
so either the first release isn't really being used or doesn't have
many problems.

If there are any problems with this submission, please let me know.

Submitted by:	Frank Durda IV <uhclem%[email protected]>
1995-04-09 15:50:27 +00:00
Jordan K. Hubbard 83376d5b95 A new man page for the matcd driver.
Submitted by:   Frank Durda IV <uhclem%[email protected]>
1995-04-09 15:49:46 +00:00
David Greenman affcfa1401 Updated for 4.4BSD queue macros. (Oops, I forgot to commit this last night;
sorry Jordan).
1995-04-09 15:21:08 +00:00
David Greenman a9d6f1a78d That's what I get for doing things in a hurry...applied up-to-date patch
to this file rather than old one (before I renamed the structure element).
1995-04-09 15:12:21 +00:00
Jordan K. Hubbard 6c5325bf0e Add true support for dependency lists.
1. pkg_create now has a -P argument for specifying dependencies on the
   command line.
2. pkg_add will honor dependencies and chain-load them automatically if
   it finds the required package(s) in the same directory as the package
   that is being loaded.  For best results, install packages from a directory
   containing all the packages you'll possibly need
   (like /usr/ports/packages/all).

2 remaining flaws:

1. pkg_add looks in one place (where you were when you loaded the primary
   pkg) for depended packages.  If you can come up with a search path scheme
   that's not a total hack - be my guest!

2. Recursive dependency expansion can result in the name of a dep being
   listed more than once.  This doesn't bother pkg_add since it checks
   for package existance with pkg_info and will skip already-loaded packages.
   I don't know how/if pkg_delete handles this yet, however.  I need to look
   into it.
1995-04-09 15:05:01 +00:00
Jordan K. Hubbard a8f0877be0 Add new -P argument to pkg_create. 1995-04-09 15:00:56 +00:00
Jordan K. Hubbard 489c51e631 Add 2 new targets to facilitate some things I'm thinking about.
1.  package-name
	Simply echos the associated package name for a port (if any).
2.  package-depends
	Shows all package names on which this port depends.
1995-04-09 12:27:58 +00:00
Jordan K. Hubbard c4fb365962 1. Fix the first line (should be a proper comment - silly emacs).
2. KEYWORDS+= CATEGORIES
3. CATEGORIES+= all (always want to be in "all"!)
1995-04-09 10:24:09 +00:00
Satoshi Asami 3d0c66c99a Add support for categorized subdirectories for packages. By default,
all .tgz files go to /usr/ports/packages/.packages, and a relative
symlink is created for every item in CATEGORIES...i.e., if "CATEGORIES
= foo bar", then /usr/ports/packages/{foo,bar}/pkgname.tgz both point
to /usr/ports/packages/.packages/pkgname.tgz.

Suggested by:	jkh
1995-04-09 09:59:42 +00:00
Rodney W. Grimes 1f55ebbcd9 This is a purely cosmetic clean up. Fix many cut and paste problems that
had turned tabs into spaces.
1995-04-09 09:54:51 +00:00
Joerg Wunsch a3e026396c The rmt protocol didn't allow to pass a file creation mode (permission
bits) along, and rmt did the wrong thing in calling open(2) with random
garbage as third parameter.  Make it create new files with 0666
(modified by the umask of the remote shell anyway).

This removed the last show-stopper from tar not working with remote
archives.
1995-04-09 09:20:47 +00:00
Jordan K. Hubbard fa4733a739 Do another pass over the delete code. This is better. Now we don't
try to expand a wildcard to delete the entire contents.
1995-04-09 09:01:56 +00:00
Jordan K. Hubbard e4c66f9566 Try and see if I can make the remove function work.. 1995-04-09 08:56:02 +00:00
Jordan K. Hubbard 239f2b151f Bump this to 950408-SNAP. 1995-04-09 07:17:45 +00:00
Jordan K. Hubbard 5a12a69a54 Document that flags 0x1 is required on fdc0 line to make ft0 work.
Also please note that previous commit regarding UH24F controller was
misattributed to Poul - it was Steve's!
Submitted by:	Steve Gerakines <[email protected]>
1995-04-09 07:02:03 +00:00
Jordan K. Hubbard 881c5753b5 Could you please update the list of drives supported. It currently
lists:

        UH-14f Series <ISA>
        UH-34f Series <EISA/VLB>

Should read:

        UH-14f Series <ISA>
        UH-24f Series <EISA>
        UH-34f Series <VLB>

Submitted by:	phk
1995-04-09 06:59:42 +00:00
Justin T. Gibbs 0b000afb3b More code optimizations. Use a slightly different approach to decide
whether a reconnecting target is a tagged device or not.
1995-04-09 06:40:16 +00:00
Justin T. Gibbs f2f31e3b40 Disable tagged queuing by default. option AHC_TAGENABLE will turn it on.
This is temporary until I can get a device flags added.
1995-04-09 06:39:01 +00:00
Rodney W. Grimes f98f9503d5 Increase the timeout for FTCMD_SEEK commands to complete from 1 second to
1.5 seconds in ftintr_wait().

Three people have reported that this fixes the problem they are having.

Submitted by:	Steve Gerakines <[email protected]>
1995-04-09 06:23:12 +00:00
David Greenman e9dd619d44 From John Dyson: Disabled multi-sector I/O. It is causing some people
problems.
1995-04-09 06:09:31 +00:00
Poul-Henning Kamp 18987c6ebd Clean up, and make it work with Bruces wd.c changes.
Bad144 is on the way back.
1995-04-09 06:06:01 +00:00
David Greenman f6b04d2bfb Changes from John Dyson and myself:
Fixed remaining known bugs in the buffer IO and VM system.

vfs_bio.c:
Fixed some race conditions and locking bugs. Improved performance
by removing some (now) unnecessary code and fixing some broken
logic.
Fixed process accounting of # of FS outputs.
Properly handle NFS interrupts (B_EINTR).

(various)
Replaced calls to clrbuf() with calls to an optimized routine
called vfs_bio_clrbuf().

(various FS sync)
Sync out modified vnode_pager backed pages.

ffs_vnops.c:
Do two passes: Sync out file data first, then indirect blocks.

vm_fault.c:
Fixed deadly embrace caused by acquiring locks in the wrong order.

vnode_pager.c:
Changed to use buffer I/O system for writing out modified pages. This
should fix the problem with the modification date previous not getting
updated. Also dramatically simplifies the code. Note that this is
going to change in the future and be implemented via VOP_PUTPAGES().

vm_object.c:
Fixed a pile of bugs related to cleaning (vnode) objects. The performance
of vm_object_page_clean() is terrible when dealing with huge objects,
but this will change when we implement a binary tree to keep the object
pages sorted.

vm_pageout.c:
Fixed broken clustering of pageouts. Fixed race conditions and other
lockup style bugs in the scanning of pages. Improved performance.
1995-04-09 06:03:56 +00:00
David Greenman 213fd1b6e8 Changes from John Dyson and myself:
Fixed remaining known bugs in the buffer IO and VM system.

vfs_bio.c:
Fixed some race conditions and locking bugs. Improved performance
by removing some (now) unnecessary code and fixing some broken
logic.
Fixed process accounting of # of FS outputs.
Properly handle NFS interrupts (B_EINTR).

(various)
Replaced calls to clrbuf() with calls to an optimized routine
call vfs_bio_clrbuf().

(various FS sync)
Sync out modified vnode_pager backed pages.

ffs_vnops.c:
Do two passes: Sync out file data first, then indirect blocks.

vm_fault.c:
Fixed deadly embrace caused by acquiring locks in the wrong order.

vnode_pager.c:
Changed to use buffer I/O system for writing out modified pages. This
should fix the problem with the modification date previous not getting
updated. Also dramatically simplifies the code. Note that this is
going to change in the future and be implemented via VOP_PUTPAGES().

vm_object.c:
Fixed a pile of bugs related to cleaning (vnode) objects. The performance
of vm_object_page_clean() is terrible when dealing with huge objects,
but this will change when we implement a binary tree to keep the object
pages sorted.

vm_pageout.c:
Fixed broken clustering of pageouts. Fixed race conditions and other
lockup style bugs in the scanning of pages. Improved performance.
1995-04-09 06:02:46 +00:00
David Greenman fcb5be87ad Cosmetic changes. 1995-04-09 05:40:38 +00:00
David Greenman fe9cff485b Oops, remove some chaff from previous commit. 1995-04-09 05:34:54 +00:00
David Greenman 7452c2a5ef Updated netstat to grok 4.4 QUEUE macros now being used to like the PCBs
together.
1995-04-09 05:33:17 +00:00
Andrey A. Chernov 929fb7fedd Add missing header reference 1995-04-09 04:59:40 +00:00
David Greenman 29b4e57966 From Matt Thomas: Added support for 100Mb cards (such as the DEC DE-500-XA
and SMC 9332).
1995-04-09 04:46:15 +00:00
Jordan K. Hubbard 916b53653d Add etc/sysconfig to list of files stuck on the cpio floppy. I thought
we did this already?!?
1995-04-09 03:47:55 +00:00
Jordan K. Hubbard 845f1b7740 Remove preservation of myname and defaultrouter files - they're deprecated
anyway.
1995-04-09 03:44:03 +00:00
Andrey A. Chernov 6b234a88dc Non-blocking lock
Remove old salt cause possible endless loop
Submitted by: <[email protected]>
1995-04-09 03:34:10 +00:00
Andrey A. Chernov ea1e26d7e2 Upgrade to RFC1700 (IANA) 1995-04-09 03:02:08 +00:00
David Greenman 15bd2b4385 Implemented PCB hashing. Includes new functions in_pcbinshash, in_pcbrehash,
and in_pcblookuphash.
1995-04-09 01:29:31 +00:00
David Greenman 17792ebcb7 Added a few more entries to the list of prime numbers. 1995-04-09 01:19:25 +00:00
Andrey A. Chernov d71c8ca1ab Remove unneded substitutes 1995-04-08 21:51:26 +00:00
Poul-Henning Kamp 63373752ea Move default address of lnc0 to 0x300. Luigi Rizzo said that his card
cannot even go below 0x300...
1995-04-08 21:41:52 +00:00
Joerg Wunsch 4fb0b0de3e Implement a simple hook (or hack?) to allow graphics device console
drivers to protect DDB from being invoked while the console is in
process-controlled (i.e., graphics) mode.

Implement the logic to use this hook from within pcvt.  (I'm sure
Søren will do the syscons part RSN).

I've still got one occasion where the system stalled, but my attempts
to trigger the situation artificially resulted int the expected
behaviour.  It's hard to track bugs without the console and DDB
available. :-/
1995-04-08 21:32:11 +00:00
Poul-Henning Kamp 60ca0bff59 Don't choke if secure bits are not available. 1995-04-08 21:29:56 +00:00
Joerg Wunsch d95f5d1983 pcvt is proud enough to have a man page. :) 1995-04-08 20:08:42 +00:00
Nate Williams 5b9d4f5aa8 Added Makefile for example files. They are now installed in
/usr/share/examples/cvs for use by the cvsinit script.
1995-04-08 17:50:48 +00:00
Nate Williams dff188f7dc Added /usr/share/examples/cvs for use by cvsinit. 1995-04-08 17:48:00 +00:00
Andrey A. Chernov 56694345a1 Update controls & remains 1995-04-08 17:34:15 +00:00
Andrey A. Chernov 1aefeada69 Remove digrams to not confuse sorting 1995-04-08 17:08:45 +00:00
Andrey A. Chernov 9265b96620 Add ident (commented out) 1995-04-08 16:21:45 +00:00
Andrey A. Chernov 8075515025 Fix official name of 113/tcp service
Obtained from: SunOS /etc/services
1995-04-08 16:17:05 +00:00
Andrey A. Chernov 017e602c0c pca: change IO_PPI to IO_TIMER1 due to syscons conflict 1995-04-08 16:08:35 +00:00
Joerg Wunsch 785b47579d Upgrade pcvt to 3.20 b24. 1995-04-08 16:04:22 +00:00
Joerg Wunsch fa74aea62d Some long-waiting fixes for the COFF module. They silence compiler
warnings and are cosmetic only.  Poul once requested them, but neither
Sean nor Søren commented on them, so i commit it now before it's
getting lost some day.
1995-04-08 15:52:30 +00:00
Joerg Wunsch fe696eb64c Update pcvt to 3.20 b24 1995-04-08 15:49:25 +00:00
Jordan K. Hubbard 0814dcedd3 Add lnc0 ethernet driver. 1995-04-08 11:41:22 +00:00
Poul-Henning Kamp 27d441157b Fix the bug which removes all empty dirs from distribution. Sorry Jordan... 1995-04-08 09:45:31 +00:00
Poul-Henning Kamp f10bf24c33 Added zp0 and eg0 to interface menu. Dropped all the "at 0xfoo" comments. 1995-04-08 09:43:54 +00:00
Poul-Henning Kamp 1e85d7f664 Added Dean Huxley <[email protected]>. 1995-04-08 09:40:18 +00:00
Poul-Henning Kamp b994e1c2a4 Driver for 3c505 boards. Uses the onboard firmware, which is not a good
way to do it.  Doesn't support DMA or high speeds.

Contributed by:	Dean Huxley <[email protected]> via NetBSD
1995-04-08 09:39:36 +00:00
Poul-Henning Kamp 12cfa43650 Added the "eg0" interface driver for the 3Com "3c505" or "etherlink/+"
card.  This is the braindamaged card with the 80186 CPU on it.  It is
slow, probably not very good after all, but hey, if you have one lying
around doing nothing anyway...

Added the "zp0" driver to GENERIC.
1995-04-08 09:36:04 +00:00
Bruce Evans 9f747fa23e Submitted by: J.T. Conklin <[email protected]>
Second part of update to fdlibm 5.2: speed up argument reduction for trig
functions in the case pi/4 < |x| < 3pi/4.

Remove unused static constants ("one").
1995-04-07 23:23:27 +00:00
Bruce Evans b29986e0f1 Submitted by: J.T. Conklin <[email protected]>
First part of update to fdlibm 5.2: fix jn(n, x) and jnf(n, x).
jn(-1, x) was too large by a factor of 3.
1995-04-07 23:13:43 +00:00
John Fieber f9fc2cff0c Fixed a big typo pointed out by phk. 1995-04-07 16:45:35 +00:00
Bruce Evans 980f2abdb8 Reviewed by: ache and wollman (long ago)
isctype.c:
o The tolower() and toupper() functions duplicated too much code
  and were out of date (surprise).  This didn't matter because
  it was difficult to call them.
o Change formatting to be more like that in <ctype.h> (with
  extra parentheses as in the macros).  Perhaps this file should
  be machine generated or everything should be handled like
  __tolower() so that no code is repeated.

nomacros.c:
o Instead of looking at _USE_CTYPE_INLINE_ to see what <ctype.h>
  has done, set _EXTERNALIZE_CTYPE_INLINES_ to tell <ctype.h>
  what to do, so that we don't have anything left to do.  Note
  that code is now generated even if inlines are used by default.
  This allows users to switch to non-inline versions.
1995-04-07 11:52:17 +00:00
Bruce Evans 18c34920f8 Reviewed by: ache and wollman (long ago)
Fix numerous ANSI conformance bugs and other nits.

ctype.h:
o There were no prototypes behind the macros (conformance bug).
o isascii() didn't have enough parentheses (plain bug).
o tolower() and toupper were always static inline (conformance
  bug?  You could undef them and take their address, but this
  gave different addresses in different modules.  You couldn't
  undef them and declare them (correctly) again).  <stdio.h>'s
  treatment of putc() shows one way to handle this problem,
  but it only works because the putc() macro is allowed to
  reevaluate its args.  I used a hack controlled by
  _EXTERNALIZE_CTYPE_INLINES_ to get <ctype.h> to generate the
  code (the previous hack involving _ANSI_LIBRARY_ goes away).
  This has the advantage that the core of the functions is only
  written down once and the disadvantage that another layer of
  functions is required.  The extra layer goes away if inline
  functions are used, leaving only the problem of understanding
  why there are functions named toupper(), __toupper and
  ___toupper() as well as a macro named toupper.
o Nothing seems to define _USE_CTYPE_LIBRARY_.  Eliminate it
o Let the user set _USE_CTYPE_INLINE_ and _DONT_USE_CTYPE_INLINE_
  for full control over inlining.
o The args for the inline functions didn't have enough
  underscores (conformance bug).
o The formatting and ordering was inconsistent (style bug).
o TODO: fix conformance bugs brought by including <runetype.h>.
1995-04-07 11:43:40 +00:00
Andrey A. Chernov ead39f6e45 Move inline args out of user namespace.
Obtained from: 1.x
1995-04-07 09:56:10 +00:00
Nate Williams 5a5755a556 Because -lcompat defines the same symbols as -lgnuregex and the weakness
of the linker to enforce linking of modules in command line order it is
not possible to link gdb shared with -lcompat.

*HACK ALERT*
Removed -lcompat from LDADD and bring in the necessary functions out of
libcompat as a source module until the linker can be fixed.
1995-04-07 05:13:26 +00:00
Nate Williams 7e613ac7bd Back out my change to enforce command line linker order due to
underlying bugs which are caused by mixing static/shared libraries with
this change in place.

The shlib code is not capable of supporting this feature in it's present
state and will need significant modifications in order to do so.
1995-04-07 05:08:28 +00:00
Poul-Henning Kamp d2b9896124 Various changes:
tip removed from cpio.flp (!)  crunch chokes on it after the latest changes.
source for secure & eBones moved into securedist.
1995-04-07 01:20:26 +00:00
Satoshi Asami b43cac1cdd Added Nobuhiro Yasutomi and Akito Fujita, deleted me (Satoshi, not
Michael :) from "Additional Contributors" list.
1995-04-06 17:26:14 +00:00
Bruce Evans ffe57f1a20 Obtained from: 1.1.5 (originally by jtc)
Fix printf("%g", 0.0) - print "0", not "0.".  The previous fixes in this
area had one non-cosmetic (non-)change that caused this bug.

Bruce
1995-04-06 16:28:15 +00:00
John Fieber f85e2485b8 The skeletal framework for the FreeBSD help system. Point a WWW
browser at index.html to see how it works.  Ultimately what currently
lives in the tutorials section will become the User and Admin manual
sections.
1995-04-06 15:56:10 +00:00
Andrey A. Chernov 70e6b1cd61 Manpage not installed 1995-04-06 14:41:50 +00:00
Andrey A. Chernov e64ae15d3a Add port IO_PPI for pca per Bruce suggestion 1995-04-06 14:01:20 +00:00
Andrey A. Chernov a30090c5f7 Print "on isa" for devices with port==0 per Bruce suggestion 1995-04-06 13:55:56 +00:00
Rodney W. Grimes 5f34517b1c Output the CPU features line during the probe on a seperate line, for
folks with lots of features the output use to wrap and look ugle.

Reviewed by:	phk
1995-04-06 07:55:42 +00:00
Rodney W. Grimes 74fa89f4f5 Correct recalibrate/seek code at attach time so that we do not get
all the ``fdc0: ready for output in input'' messages when probing
for ft devices.

Submitted by:	Steve Gerakines <[email protected]>
1995-04-06 07:20:16 +00:00
Jordan K. Hubbard d31b19afb1 The negative expire times shown by netstat are confusing and ugly.
Destination      Gateway            Flags     Refs     Use     Netif Expire
199.182.75.128   link#1             UC          0        0       ed0 -842660
Submitted by:	John Capo <[email protected]>
1995-04-06 06:09:44 +00:00
Jordan K. Hubbard ce0436e7a6 It has always bugged me that ps and w did not display su with tcsh
properly.  I know, tcsh is not a "Real Shell".

jc       p2 :0.0             Tue04PM     - -u (tcsh)
                                           ^^^
7173 p2  S+     0:01.33 -u (tcsh)
			^^^

Submitted by:	John Capo <[email protected]>
1995-04-06 06:06:47 +00:00
Jordan K. Hubbard 0264a8a9c6 0x330 is the default address for SB Midi, not 0x300
Submitted by:	Doug Rabson <[email protected]>
1995-04-06 03:22:12 +00:00
Jordan K. Hubbard 0039743841 Don't spit out a gratuitous ibcs2 startup message. 1995-04-06 02:38:37 +00:00
Joerg Wunsch d108492508 The man page setmode(3) declares `void setmode' when it should be
declared `void *setmode'.

Submitted by:	[email protected]
1995-04-05 22:56:45 +00:00
Joerg Wunsch fe89da38f6 Sed dumps core when linked with some coalescing malloc because it
doesn't initialize malloced structure.

Submitted by:	[email protected]
1995-04-05 22:55:27 +00:00
Jordan K. Hubbard 04ed90efd4 Close message catalogs. 1995-04-05 13:16:30 +00:00
Jordan K. Hubbard cd3a5023d6 Correct the watchdog routine.
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-04-05 13:12:13 +00:00
Andras Olah 755c1f07c8 Fix a bug in tcp_input reported by Rick Jones <[email protected]>.
If a goto findpcb occurred during the processing of a segment, the TCP and
IP headers were dropped twice from the mbuf which resulted in data acked
by TCP but not delivered to the user.
Reviewed by:	davidg
1995-04-05 10:32:14 +00:00
Jordan K. Hubbard 3df0a1ed3f Add Satoshi Asami. 1995-04-05 10:22:58 +00:00
Jordan K. Hubbard 7ab533048d Update information on newsgroups. 1995-04-05 10:04:56 +00:00
David Greenman 7172ec19fd From Matt Thomas: Finished EISA support. 1995-04-05 08:19:23 +00:00
Jordan K. Hubbard 4ba103156d Latest version of this package from Wolfram. Is now /etc/sysconfig aware,
handles default settings and has a prototype translation file for people
wishing to add extra languages (please!).
Submitted by:	Wolfram Schneider <[email protected]>
1995-04-05 08:09:25 +00:00
Jordan K. Hubbard 55f61a13e3 Latest language support changes from Wolfram.
Submitted by:   Wolfram Schneider <[email protected]>
1995-04-05 08:02:52 +00:00
Jordan K. Hubbard 761b249a88 Latest language support changes from Wolfram.
Submitted by:	Wolfram Schneider <[email protected]>
1995-04-05 08:02:24 +00:00
Nate Williams 070e3ec139 Modify behavior of INCLUDES to never look in /usr/include unless we
can't find the src/include directory.

Reviewed by:	"Rodney W. Grimes" <[email protected]>
Submitted by:	Mike Pritchard <[email protected]>
1995-04-05 04:10:58 +00:00
Bill Paul 3670011ae8 Added a new feature from Peter Eriksson's latest release of ypserv (0.13):
register ourselves as an NIS version 1 UDP server to pacify older SunOS 4
ypbinds that seem to insist on having one around. All this does is allow
ypserv to respond to DOMAIN_NONACK requests that are periodically
transmitted by ypbind: the server will not actually work as an NIS v1
server in any other way.

Unlike the mainline code, which implements this as a compile-time
option, this feature can be turned on with the newly-added -k flag
at runtime.

Bunped version number to 0.13. (What the hell.)

Updated the man page to reflect this change, also made a couple of small
edits to reflect the recent changes in the /etc/rc* setup.
1995-04-05 03:23:40 +00:00
Jordan K. Hubbard d5b3cf8435 options LKM is now the default. No need to reference option that's
already turned on (and isn't in LINT).
1995-04-05 01:06:00 +00:00
Andrey A. Chernov 29ecb6a386 Print "on motherboard" for isa? devices with id_iobase == 0 1995-04-04 22:48:40 +00:00
Søren Schmidt 8c4344bebd Fixes to the hardware cursor emulation.
Submitted by:	ache
1995-04-04 20:06:26 +00:00
Rodney W. Grimes 756097f16a Bring down the old version of Makefile from the Attic and replace with this
bmake version of Makefile to build and install dcfd.

Submitted by:	Vincenzo Capuano <[email protected]>
1995-04-04 17:48:02 +00:00
Andrey A. Chernov d9e7919357 Set desired cursor type for syscons 1995-04-04 17:34:55 +00:00
David Greenman 9b7f6efb67 Added UIO_NOCOPY. 1995-04-04 17:01:49 +00:00
Andrey A. Chernov a65a3dd65a Move unit structure member down to optimize com->state per Bruce
suggestion. Move hotchar setting to set_bypass routine and rename it
to disc_optim
1995-04-04 16:26:04 +00:00
Andrey A. Chernov ffe8306afd Add "before inclusion of any header which ... "
Suggested by: bde
1995-04-04 11:29:51 +00:00
Jordan K. Hubbard 30854325fe Add USE_X11 for ports which are X11 users but don't use IMAKE. 1995-04-04 05:57:19 +00:00
Bill Paul ef8f52ad53 'Fix' for esoteric misfeature discovered while searching for another bug:
select() returns EINVAL if you try to feed it a value of FD_SETSIZE greater
that 256. You can apparently adjust this by specifying a larger value of
FD_SETSIZE when configuring your kernel. However, if you set the maximum
number of open file descriptors per process to some value greater than
the FD_SETSIZE value that select() expects, many selects() within the RPC
library code will be botched because _rpc_dtablesize() will return
invalid numbers. This is to say that it will return the upper descriptor
table size limit which can be much higher than 256. Unless select() is
prepared to expect this 'unusually' high value, it will fail. (A good
example of this can be seen with NIS enabled: if you type 'unlimit' at
the shell prompt and then run any command that does NIS calls, you'll
be bombarded with errors from clnttcp_create().)

A temporary fix for this is to clamp the value returned by _rpc_dtablesize()
at FD_SETSIZE (as defined in <sys/types.h> (256)). I suppose the Right
Thing would be to provide some mechanism for select() to dynamically
adjust itself to handle FD_SETSIZE values larger than 256, but it's a
bit late in the game for that. Hopefully 256 file descriptors will be enough
to keep RPC happy for now.
1995-04-04 05:53:22 +00:00
Bill Paul 958f4e365d getpwent.c: fix problem with emacs dumping core when NIS is enabled. Also
add #includes for YP headers when compiling with -DYP to avoid some implicit
declarations.

getgrent.c & getnetgrent.c: add some #includes to avoid implicit declarations
of YP functions.
1995-04-04 05:36:16 +00:00
Gary Palmer 9a8496fd7b Remove a `.' from the end of the echo line
`>> Attempting to fetch from $${site}' as it is misleading
1995-04-04 04:23:37 +00:00
David Greenman bb2d12a636 Check for case of blkno already known to avoid unnecessary VOP_BMAP's.
Submitted by:	John Dyson
1995-04-04 02:10:17 +00:00
David Greenman 6824b322b1 Added prototype for phashinit() function. 1995-04-04 02:02:28 +00:00
David Greenman 22e53424b2 kern_subr.c:
Added a new type to uiomove - "UIO_NOCOPY" which causes it to update
pointers and counts, but doesn't do any data copying. This is needed
for upcoming changes to the way that the vnode pager does its page
outs.
Added a new hash init function call "phashinit" that allocates and
initializes a prime number sized hash table.

vfs_cache.c:
Changed hashing algorithm to use the remainder of dividing by a prime
number to improve the distribution characteristcs. Uses new phashinit
function in kern_subr.c.
1995-04-04 02:01:13 +00:00
David Greenman 2e837708b1 Fixed the formatting breakage I added in the previous commit. 1995-04-04 01:35:33 +00:00
Andrey A. Chernov 05e2ed0de3 Properly describe how to expand default limit of handled descriptors 1995-04-04 01:27:54 +00:00
Joerg Wunsch 29c52ddd49 date(1) didn't emit a final newline if the format had been specified
with `+'.  This breaks tradition and violates Posix 1003.2.

Discoverd by: [email protected] (Luigi Rizzo)
1995-04-03 20:08:33 +00:00
Andrey A. Chernov 021ad37586 Allow serial console BREAK to DDB
Use com->unit in several places
1995-04-03 10:29:14 +00:00
Nate Williams 13eb8ded47 This is the 90's, ask the user for a Subject by default when sending mail. 1995-04-03 05:40:54 +00:00
Nate Williams 146e71662f Added -I/usrinclude to the tail end of the INCLUDES line. This hack
will cause kernel compiles to work even if the src/includes directory
doesn't exist but still do the 'Right Thing' and pull files from the
source tree if it does exist.

Reviewed by:	Bruce Evans
1995-04-03 01:13:50 +00:00
Bill Paul 9711ae2a9f Fix implicit declaration the right way. (This has not been a good
weekend for me.)
1995-04-03 00:25:06 +00:00
Bill Paul a10f48530b Fix implicit declaration of cngetc(). 1995-04-02 23:02:17 +00:00
Bruce Evans df62fcee1f Update declaration to match the change made to dir.c a few hours ago. 1995-04-02 22:53:36 +00:00
Bill Paul 0b2a7a1bff Take yp_svc.c out of CLEANFILES rule. 1995-04-02 20:28:09 +00:00
Bill Paul f9dde4e78c Submitted by: Sebastian Strollow
Obtained from: Casper H. Dik (by vay of Usenet)

Small patch to help improve NIS rebinding times (among other things):


>From: [email protected] (Casper H.S. Dik)
>Newsgroups: comp.sys.sun.misc,comp.sys.sun.admin
>Subject: FIX for slow rebinding of NIS.
>Summary: a small change in libc makes life with NIS a lot easier.
>Message-ID: <[email protected]>
>Date: 17 Jan 92 17:39:05 GMT
>Sender: [email protected]
>Organization: FWI, University of Amsterdam
>Lines: 138
>Nntp-Posting-Host: halo.fwi.uva.nl

Have you been plagued by long waits when your NIS server is rebooted?
READ ON!

Sun has a patch, but the README says:

********************* WARNING ******************************

  This is a new version of ypbind that never uses the NIS
  binding file to cache the servers binding. This will have
  the effect of fixing the current symptom. However, it might
  degrade the overall performance of the system when the
  server is available. This is most likely to happen on an
  overloaded server, which will cause the network to produce
  a broadcast storm.

*************************************************************

Therefor, I have produced another fix.

o What goes wrong.

When the NIS server is rebooted, ypserv will obtain different ports
to listen for RPC requests. All clients will continue to use the old
binding they obtained earlier. The NIS server will send ICMP dst unreachable
messages for the RPC requests that arrive at the old port. These ICMPs
are dropped on the floor and the client code will continue sending the
requests until the timer has expired. The small fix at the end of this
message will pick up these ICMP messages and deliver them to the RPC layer.

o Before and after.

I've tested this on some machines and this is the result:

	(kill and restart ypserv on the server)

original% time ypmatch user passwd
user:....
0.040u 0.090s 2:35.64 0.0% 0+126k 0+0io 0pf+0w (155 seconds elapsed time)

fixedhost% time ypmatch user passwd
user:....
0.050u 0.050s 0:10.20 0.9% 0+136k 0+0io 0pf+0w (10 seconds elapsed time)

Rebinding is almost instantaneous.

o Other benefits.
	RPC calls that use UDP as transport will no longer time out but
	will abort much sooner. (E.g., the remote host is unreachable or
	111/udp is filtered by an intermediate router)
1995-04-02 20:05:20 +00:00
Bill Paul adaf7ba36a Add back some stuff to yppush.c that I was a little over-zealous in
removing. Also do away with compiling yp_svc.c: yppush doesn't need it.
1995-04-02 20:01:50 +00:00
Bill Paul 6cc65caedb Fix xdr_ypmap_parms() so that it agrees with xdr_domainname(), xdr_peername()
and friends.
1995-04-02 19:58:29 +00:00
Andrey A. Chernov b97843726d Fix manpage rule 1995-04-02 19:35:40 +00:00
Andrey A. Chernov bedbd95393 Back out changes related to locked bits until more elegant
solution will be found. Remove some unused variables sneaked in.
1995-04-02 19:28:58 +00:00
Andrey A. Chernov efb76ea60f Back out changes related to locked bits until more elegant solution will be
found. Fix flags declarations.
1995-04-02 19:26:50 +00:00
Bruce Evans 8c62f8d80f Remove redundant declarations. 1995-04-02 19:05:09 +00:00
Bruce Evans 73d1243fe5 Include <stdlib.h> so that malloc() is declared. 1995-04-02 19:01:07 +00:00
Bill Paul b8ca7ca6c6 Removed code from yp_xdr.c module that now lives in libc. (Unfortunately,
ypxfr can't easily be reduced down to one file like yppush because it
needs to do certain special things (such as binding to a specific
machine (the NIS master)) which the yp_*() functions in libc don't
allow.
1995-04-02 17:01:31 +00:00
Bruce Evans 11a40aa5ad Submitted by: Philippe Charnier <[email protected]>, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 16:52:14 +00:00
Bruce Evans 444da1eb3c Make this actually work. It always failed in FreeBSD because it attempted
to open the mounted block device containing the directory to put the bad
sector files in, and opening of mounted block devices hasn't been allowed
since Net/2 or before.  Attempt to open the raw device instead.  Be more
careful about long names.

Use lstat() instead of stat() to search for block devices so that my
symlink to the default floppy doesn't cause problems.

Check for truncation of the block number when it is squeezed through the
mknod() interface.  The maximum used to be only 32767, but now it large
enough.
1995-04-02 16:36:39 +00:00
Joerg Wunsch 9bb751a368 Attempt to fix the `you can log into console only once' problem (PR
#179).  The fix implements a ttyhalfclose() (sort of), resetting the
session and pgrp pointers when the physical device is about to be
closed.

Suggested by: bde
1995-04-02 16:14:51 +00:00
Bill Paul 56e74043f4 Make yppush compile again when obj directory exists. *groan* 1995-04-02 16:00:30 +00:00
Bruce Evans 3eeb5bdcb3 Submitted by: Philippe Charnier <[email protected]>, distilled by bde
Fix a couple more bogus types that aren't reported by `gcc -Wall'.
1995-04-02 15:25:19 +00:00
Bruce Evans 31f4ab50bc Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 14:52:29 +00:00
Bruce Evans 15519b2f58 Fix compiler warnings: don't declare enum types as static. 1995-04-02 13:11:14 +00:00
Andrey A. Chernov 890bf1b00d Fix error:
old type (stty) ioctls can easily bypass locking bits.
It involves manual conversion from old ioctls to new ones,
large piece of code duplicated from tty_compat.c
1995-04-02 04:21:09 +00:00
Andrey A. Chernov c6345bc1b6 Fix error in TIOCSETC/TIOCSLTC, they need to call TIOCSETA.
Remove static from some functions, needed in sio (later)
1995-04-02 04:15:08 +00:00
Andrey A. Chernov 1ef5e50eee Return EINVAL instead of setting wrong in/out speed
Fix declaration of cc arrays
Remove static from compatspcodes, will needed in sio (later)
1995-04-02 03:51:53 +00:00
Bill Paul 9f3db41ff5 Fix long standing bogosity in ypbind: if /var/yp/binding doesn't exist,
ypbind is supposed to create it but it doesn't. This is because when
it checks the return value for the attempted open() of
/var/yp/binding/DOMAIN.VERSION, it tests only for a value of -1. This
is bogus because open() doesn't return -1 in this case. Now it checks
for < 0 instead.

This should make life easier for many NIS-newbies who would otherwise
be left scratching their heads wondering why the NIS client stuff won't
work despite their best efforts. ("I set the domain name on my machine,
and /var/yp exists, but when I start ypbind and try a 'ypcat passwd,'
it says it can't bind to a server for this domain! Please help!")

*long, heavy sigh*
1995-04-02 03:10:55 +00:00
Bill Paul df561fc414 Spruce up Makefile.yp: add support for netgroups and bootparams maps,
make use of yp_mkdb's -i, -o and -m flags.
1995-04-02 01:53:47 +00:00
Andrey A. Chernov 5fba2bf3bd Move SET_BYPASS macro to function per Bruce suggestion.
Add set_bypass() call after l_close.
Move ttioctl()/set_bypass() pair under spltty() protection
1995-04-02 01:47:06 +00:00
Bill Paul 84e41ecfbe Get rid of ether_addr.c: it's been moved to libc. Also add proper
declaration for ether_ntohost(). (Does anyone know what header file
is supposed to contain the declarations for the ether_addr functions?
I can't them in the SunOS includes anywhere.)
1995-04-02 01:35:54 +00:00
Bill Paul 7680d1b004 Add ether_addr functions to libc. This seems to be the logical place
to put them. A man page is in the works.
1995-04-02 01:31:17 +00:00
Bill Paul 5f6d32c735 Add declaration for struct ether_addr (this is where Sun documents
it to go).
1995-04-02 01:26:26 +00:00
Bill Paul 812647ed6b Reduce yppush. Now that all the required yp_xdr functions are
in libc, we can get rid of the private/special copies of yp_*.c
files and rpcgen them at compile time instead. This leaves us with
just one unique source files: yppush.c
1995-04-02 01:10:13 +00:00
Bill Paul 97fd4ecfb6 Add some missing xdr functions needed for server-side implementations.
(This is to help me reduce yppush a bit: it has its own copy of yp_xdr.c
right now, but I can get rid of it now that this stuff is here.)
1995-04-02 01:02:17 +00:00
Bruce Evans 439b2b1e9c Add braces to fix wrong if-if-else-if nesting that broke `cp -pR' for
fifos.
1995-04-02 00:49:16 +00:00
Andrey A. Chernov d8e3948cc1 Finally restore my original MAIL fix after all junk patches. 1995-04-02 00:16:09 +00:00
Bruce Evans 5f679211e3 Fix slioctl(). It has to return -1 for ioctls that it doesn't know about
so that these ioctls can be handled by the calling layer(s).

Clean up the recently added code:
- include the appropriate header to declare an implicitly declared function.
- declare timeout functions correctly and remove numerous bogus casts that
  hid (but didn't fix) their incorrectness.
1995-04-02 00:11:48 +00:00
Andrey A. Chernov 5daae55cdf Move setting BYPASS state to macro, use it in several times,
after ttioctl too, because it can change t_line.
Remove (TS_CNTTB | TS_LNCH) test, it is always inherits from
old tty mode and can't be reach in currently setted mode.
1995-04-01 23:56:08 +00:00
Andrey A. Chernov 6a5f6acc8d Adjust TS_CAN_BYPASS_L_RINT state after l_open(), t_line
can be changed there.
1995-04-01 22:57:43 +00:00
Andrey A. Chernov 8a9f513775 slopen() never sets t_line to SLIPDISC, but uses slip-specific queue allocation 1995-04-01 22:11:10 +00:00
Joerg Wunsch 76e2642ce4 subr_prf.c used to provide an exported function kprintf(), but only had
a private declaration for it.  Declare the function publically instead.
1995-04-01 20:19:00 +00:00
Joerg Wunsch 7fd9907e0b Correct a few minor things in pcvt:
o  the includes are now properly done by <sys/foo.h> instead of "foo.h"
o  a bunch of undeclared functions has been resolved
o  pcvt finally supports devconfig
1995-04-01 20:16:15 +00:00
Bruce Evans 65202423ff Fix count in mark_for_update() for insert-char(s) and delete-char(s).
Everything from the cursor to the end of the line must be updated.

Fix comment about erase-char(s).
1995-04-01 19:57:36 +00:00
Justin T. Gibbs 25e44d3935 Log ABORT_TAG messages to the console.
When attempting to abort a command, don't assume that just because the
sequecer happens to have SCBPTR pointing at the scb we want that it is
an active command.
1995-04-01 19:53:04 +00:00
Justin T. Gibbs cc865dd008 Off by one error in -MSG-START+0 was just Justin being tired -- revert to
old value.

Remove unnecessary check for active messages in setup SCB.  This same test
would also jump to p_mesgin_done which would "ACK" an extra time possibly
confusing the target.

Tell the kernel driver whenever we send an ABORT_TAG message.
1995-04-01 19:51:40 +00:00
Bill Paul ef230bdf24 Log syslog messages at LOG_NOTICE priority. 1995-04-01 19:31:12 +00:00
Bill Paul 8e36f47bd5 Remove yppasswd_xdr.c and take out references to if from Makefile: use
-lrpcsvc instead.
1995-04-01 19:23:11 +00:00
Bill Paul 8ae049436c Remove references to yppasswd_xdr.c: the stuff in this file already exists
in librpcsvc. Add -lrpcsvc to LDADD instead.
1995-04-01 19:19:15 +00:00
Joerg Wunsch 175fa6182a Update pcvt to 3.20b23
Submitted by:	Hellmuth Michaelis <[email protected]>
1995-04-01 17:16:40 +00:00
Bruce Evans e1bc021264 Include <machine/cpufunc.h> to get i/o functions - don't duplicate almost
200 lines of code.
1995-04-01 16:08:58 +00:00
Bruce Evans 19b204bc85 Fix dependencies for netboot.rom. ${OBJS} isn't valid when the
dependencies are checked - it is set much later in bsd.prog.mk.

Add a comment about broken dependencies on options.
1995-04-01 16:03:25 +00:00
Andreas Schulz 0479c3b471 Delete a second getenv("MAILPATH") that happens immediately after a first
try. Doesn't make sense.
1995-04-01 15:50:04 +00:00
Andrey A. Chernov 213abfcf47 Add missing ';' 1995-04-01 12:55:33 +00:00
Andrey A. Chernov c6e19ceaa0 Use new TS_CAN_BYPASS_L_RINT state to avoid complex test
each time.
Remove unefficient loop of zeroing error chars in siopoll(),
now done at interrupt level.
1995-04-01 12:01:13 +00:00
Andrey A. Chernov 3c0c5e2163 Add TS_CAN_BYPASS_L_RINT state for serial devices 1995-04-01 11:58:27 +00:00
Joerg Wunsch f000edcf92 Fix the
Ignore wrong indent value: ``''

bug, as reported by Chris Kukulies.
1995-04-01 11:43:09 +00:00
Jordan K. Hubbard a6ae8257a8 By default, KEYWORDS is a copy of CATEGORIES. 1995-04-01 10:01:49 +00:00
Jordan K. Hubbard c9cf4a47d8 Add default values and document them for CATEGORIES and KEYWORDS. 1995-04-01 09:35:29 +00:00
Jordan K. Hubbard 2cc9ea7aee Add support for new CATEGORIES and KEYWORDS fields. 1995-04-01 09:34:11 +00:00
Jordan K. Hubbard c35cf316d8 Greatly clean up the Makefiles and add a Makefile.inc to more obviously
advertise tip's choice of location and perms.
1995-04-01 09:14:37 +00:00
Andrey A. Chernov 3d0b7a8e9f Check for never opened or closed device before testing
terminal flags at interrupt level
1995-04-01 06:55:24 +00:00
Andrey A. Chernov c0e553d42d Add hook for rc driver
Submitted by: bde
1995-04-01 04:56:32 +00:00
Andrey A. Chernov 179b3cdf2d Make /usr/share/nls/* dirs for message catalog stuff 1995-04-01 04:47:43 +00:00
David Greenman b4fff2ae1a Patch from Greg Ansley:
In rare cases, when the filter specified accesses an multi-byte value that
is split across mbuf's, the value loaded is incorrect.  And if you are very
unlucky (like me) it will index off the end of the mbuf and into an
unallocated page and panic the system.

If you look at the code you will discover the the index *k* is added to
the pointer *cp* and the used AGAIN as a subscript.
1995-04-01 01:46:27 +00:00
David Greenman 1fca221ae2 Patch from Matt Thomas to fix mbuf leak in FDDI driver. 1995-04-01 01:43:56 +00:00
Garrett Wollman 478140b95f Forgot to add these two.
Submitted by:	Mark Tinguely <[email protected]>
1995-03-31 21:18:13 +00:00
Garrett Wollman 94036a8cf0 Fix paths of dump files and PID file.
Added man pages for mrinfo and map-mbone.
Rewrote all man pages to use mdoc(7).

Submitted by:	Mark Tinguely <[email protected]>
1995-03-31 21:16:59 +00:00
Jordan K. Hubbard 0f976d1e04 I must have been very sleepy last night, sigh..
1. Nuke out the aculib files that crept in somehow by mistake.
2. Fix the ${.CURDIR} path so that this stuff actually compiles.
   It actually compiled for me before the commit, but I must have had
   something short-cutting the bug.
1995-03-31 21:04:48 +00:00
Bill Paul 4f93d7d4de One line fix to silently ignore entries that start with a '+' or '-'.
This prevents yp_mkdb from adding magic NIS entries to NIS maps themselves.
1995-03-31 19:45:13 +00:00
Justin T. Gibbs bbf437ee54 Mask the call to ahc_attach with an splbio/splx pair. This allows us
to poll succesfully even if we are sharing the interrupt.

Register the interrupt handler before the attach.

This commit makes the 294x PCI shared interrupt compliant.  This has
been tested with an aic7870 motherboard controller and a 294x in the
same machine shareing an irq.
1995-03-31 14:08:33 +00:00
Justin T. Gibbs 5743c01c3f Major overhaul of the aic7xxx driver:
- Report valid residual byte counts.  We actually pause the sequencer
	  when the residual is non-zero.  I thought about using DMA to do this,
	  bus sequencer program space is tight.

	- Fix embarassing off by one error in the computation of a 2's
	  compliment variable.  This was most likely the cause of the
	  many problems reported with the tagged queuing code.

	- Handle "MAX_SYNC" as a special case (ie we are the ones starting
	  the sync negotiation sequence).  This was done so that the target
	  scratch area can be initialed to 0 offset (asyncronous transfers)
	  safely.  The initialization to 0 (was 15) is necessary since in
	  some cases a Wide negotiation could run into problems if SCSIRATE
	  was set wrong and we went into data(in/out).

	- Trim the DMA routines a little by using some procedures.  Net
	  effect is more functionality with 3 less instructions after this
	  update.

	- Toggle the WIDEODD bit of the DFCNTRL whenever this is not the
	  last SG block.  It has no effect in the 8bit bus configuration,
	  but in the Wide configuration ensures that the overlap byte is
	  held in the SCSI block if the transfer is odd so it will end
	  up in the next SG (the correct behavior).
1995-03-31 14:06:02 +00:00
Justin T. Gibbs c5e0851d47 Major overhaul of the aic7xxx driver:
- catch the interrupt type (EDGE/LEVEL) before chip reset instead
	  of guessing the right type.

	- Add pause variable to the ahc struct to better handle the different
	  interrupt types and pausing the sequencer.

	- CLRINTSTAT -> CLRSCSIINT: This is a documented bit in the CLRINT
	  register in newer Adaptec documentation, so use their name for it.

	- Report valid residual byte counts.

	- Don't mess with the target scratch areas > id 8 on single, narrow,
	  channel devices.  The BIOS does a checksum of this area and can
	  flip out if we zero it out.

	- Initialize the sequencer FLAGS scratch ram variable in the single
	  channel devices to 0.  This was the cause of the annoying warning
	  where we would get a cmdcmplt the first time we did any type of
	  transfer negotiation with no valid scb.  It also fixes the problem
	  that looked like the INTSTAT register wasn't clearing fast enough.
	  This only showed up on 294x cards, not motherboard aic7870s.

	- Add the AHC_AIC7870 type and use it as the superset of aic7870
	  based controllers.

	- clear the sync offset section of the targ scratch area so that
	  we default to asyncronous transfers.  This was only a problem
	  for wide controllers because there was a scenario where the
	  offset wouldn't get updated before a data(out/in) phase would
	  occur.  This required some change in the sequencer code since we
	  were depending on this field to hold the rate to negotiate.

	- allow sync and wide negotiated commands to be tagged (the sequencer
	  now handles this properly).
1995-03-31 13:54:41 +00:00
Justin T. Gibbs 793ac7a94c Use EISA_MAX_SLOTS to be consistent with other EISA drivers.
Fix off by one error in slot probe.

Update some comments.
Submitted by: [email protected]
1995-03-31 13:36:57 +00:00
Jordan K. Hubbard 6c7de23fdb Back out the previous commit. 1995-03-31 11:48:35 +00:00
Jordan K. Hubbard 18cc36fb15 Tom Gray's new tip changes to support a modem capabilities database and
fixes to many assorted bugs and misfeatures.
Submitted by:	Tom Gray - DCA <[email protected]>
1995-03-31 11:47:39 +00:00
Jordan K. Hubbard 9cd4774910 Add modem database file for new tip changes. 1995-03-31 11:41:58 +00:00
Andrey A. Chernov c03e3a2617 Fix overrun error define name 1995-03-31 11:04:22 +00:00
Andrey A. Chernov dfd88e5a00 Fix typing error sneaked somehow in prev. commit 1995-03-31 11:01:29 +00:00
Nate Williams 7b1fcc6ab5 Forgot one FreeBSD specific change needed.
date: 1995/02/04 20:27:23;  author: phk;  state: Exp;  lines: +1 -1
added *.info and *.db to the default "ignore" list in cvs to avoid obviously
common mistakes.
1995-03-31 08:21:06 +00:00
Nate Williams 73a425b915 Temporarily disable building CVS to avoid anyone hosing up their CVS
tree until a bit more testing is done.

Submitted by:	[email protected] "Rod Grimes"
1995-03-31 08:00:06 +00:00
Nate Williams 01c3e6a55a Merged in FreeBSD necessary changes in. Note, all of our source
modifications were *not* merged in (FreeBSD-DEVELOPER and symlink) but
the source is now the stock sources.
1995-03-31 07:55:30 +00:00
Nate Williams 488f2c4c00 This commit was generated by cvs2svn to compensate for changes in r7516,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:34 +00:00
Nate Williams 30d2417fd3 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
Nate Williams 06d8715958 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
Nate Williams 789377fada This commit was generated by cvs2svn to compensate for changes in r7514,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:33 +00:00
Nate Williams 33afdd16ab Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:33 +00:00
Jordan K. Hubbard 85fad26631 I noticed that the current version of ncftp dos not do the very useful
job af warning me about mail as my work version does. This patch will
will fix this for bash(1) if MAILPATH is exported:
Submitted by:	Mark Murray <[email protected]>
1995-03-31 07:02:49 +00:00
Jordan K. Hubbard ee0afc78a8 Patches to make this work with FreeBSD with the DCF77 Boeder Receiver.
This is only useful to European users (esp. Germans) as DCF77 transmits
from Frankfurt.
Submitted by:	Vincenzo Capuano <[email protected]>
1995-03-31 07:01:11 +00:00
Jordan K. Hubbard b32d3189e4 Diskless boot support for 3C509.
I'm not exactly sure why all the inb/outw stuff got added to netboot.h
and I'd be happy if someone like Martin or Bruce could take a look at it!
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-03-31 06:51:37 +00:00
Jordan K. Hubbard ec835d2414 * Promiscuous mode added and interrupt logic slightly changed
*  to reduce the number of adapter failures. Transceiver select
 *  logic changed to use value from EEPROM. Autoconfiguration
 *  features added.
Submitted by:	"Serge A. Babkin" <[email protected]>
1995-03-31 06:41:38 +00:00
Jordan K. Hubbard 496ccdde57 I and Seiji Murata <[email protected]> contributed 3C589 PCMCIA
Etherlink III 'zp' on 2.0R, but it did not work with the -current.
Noriyuki Takahashi <[email protected]> san has fixed this bug.

Our alpha-testers are tested this driver with 3C589B-COMBO and
3C589B-TP.  And it works fine.

I also fixed a little about the use of ZP_DEBUG symbol and beautified
the awful Frankenstein-style indent :-) with "indent -c0 -nfc1 -i4".

[Also merge with Bruce's last changes]

Submitted by: "HOSOKAWA Tatsumi" <[email protected]>
1995-03-31 06:10:22 +00:00
Bill Paul 4b2f613d23 Rework error reporting/logging: although the SunOS documentation says
that ypxfr is supposed to log messages to /var/yp/ypxfr.log if it exists,
using syslog() makes more sense, especially since ypserv does the same
thing already. Try to use stderr by default, and use syslog() if stderr
is not a tty.

Also update the man page to reflect this change.
1995-03-31 05:45:23 +00:00
Joerg Wunsch c0106644ad Wolfram's latest update.
Submitted by:	[email protected] (Wolfram Schneider)
1995-03-31 04:00:53 +00:00
Jordan K. Hubbard 8d0f93af56 Missing const clashes with prototype definition in ntp_stdlib.h; fixed. 1995-03-31 02:30:15 +00:00
Stefan Eßer 244c89d543 Include <stddef.h> for standard definition of offsetof() instead of
defining it explicitly in the driver.
1995-03-31 00:05:08 +00:00
David Greenman 8a31826613 Backed out changes in rev 1.5 that prevent sending FIN if in CLOSING
state. This causes an infinite loop in some rare cases (probably caused
by some other, much more difficult to find bug).
1995-03-30 23:35:55 +00:00
Andrey A. Chernov ca9301398c This sl enhancement helps to keep serial line (modem) connection alive.
It is common case when modem hangs with carier on but don't
receive anything from another side.
This thing commonly healed with hangup and redialing.
Enhancements below allows to determine when such action
is needed and inform attach program with SIGURG signal.
There two ioctls set: outfill and keepalive, used from both
sides of connection. Outfill repeatedly sends FRAME_END with
specified timeout (i.e. 40 seconds). It is needed to get input on
other side even if no user activity on slip line currently.
Keepalive checks FRAME_ENDs from other side, and if no one
got in specified timeout (i.e. 60 seconds, max modem retrain time),
send SIGURG to attach program.
I plan to add code to slattach to handle this thing too.

Reviewed by: wollman
1995-03-30 20:43:32 +00:00
Poul-Henning Kamp 295a3379fe Make build work, even if there is no obj subdir. 1995-03-30 19:45:20 +00:00
Stefan Eßer 7685716d64 Do not try to negotiate synchronous SCSI transfers in the Boot Kernel. 1995-03-30 15:41:33 +00:00
Søren Schmidt 1fe226ce8b Update to new screen update method. 1995-03-30 15:10:20 +00:00
Søren Schmidt 90fffd8e85 Fix probe message printing 1995-03-30 14:33:03 +00:00
Søren Schmidt 085db34497 Emulate hw cursor closely, and get start&end scanlines from BIOS. 1995-03-30 14:32:31 +00:00
Jordan K. Hubbard db2a3eb2aa Add gencat to Makefile
Obtained from: NetBSD
1995-03-30 12:49:25 +00:00
Jordan K. Hubbard 4633c1ace8 Add the gencat command for creating message catalog fodder for the new
catgets* routines.
Obtained from: NetBSD
1995-03-30 12:49:09 +00:00
Jordan K. Hubbard 03060874ed Add a necessary include file for the catgets* routines.
Obtained from: NetBSD
1995-03-30 12:47:56 +00:00
Jordan K. Hubbard 6eaef61813 Add the nls code for XPG3-style message catalogs to libc.
Obtained from: NetBSD
1995-03-30 12:47:27 +00:00
Jordan K. Hubbard c7e6130943 Add nls include to Makefile. 1995-03-30 12:46:36 +00:00
Ugen J.S. Antsilevich 9289ddbe2e make pass work also as the first keyword
(while addf skipped)
Reviewed by:
Submitted by:
Obtained from:
1995-03-30 12:18:10 +00:00
Andrey A. Chernov 923782ecb6 Restore my function key configuration stuff which Rod promise to
restore but really didn't do it.
Restore message from old rc about configuring syscons whith
echo added before it to go to new line after "echo -n xtend" f.e.
and similar stuff.
1995-03-30 09:39:51 +00:00
David Greenman 7b0047e213 Made pmap_testbit a static function. 1995-03-30 08:55:39 +00:00
Poul-Henning Kamp 139762f2be Install the dlopen.3 manpage. 1995-03-30 06:40:31 +00:00
Rodney W. Grimes 8c0aac9163 Make the creation of the header line in /etc/motd be consistent
with other BSD based systems.

Submitted by:	wollman
1995-03-30 06:34:46 +00:00
Rodney W. Grimes 711aa1c272 This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.

Comments:

(a) sysconfig is still used to do all configuration.  I was not going to
    change that out from under you.... a user never need edit netstart
    or rc* unless they're being very weird.

(b) rc.maint has been folded back into rc.  It is just unworkable as
    a separate chunk because of ordering bogosities

(c) netstart does what it says... it starts up enough of the network to
    get up,  it doesn't start every bloody daemon that might talk to a
    socket...  netstart ifconfig's the devices and sets up routing if
    configured to do so.

(d) nfs disks are mounted immediately after netstart completes

(e) syslog is started as early as possible (right after nfs) so that error
    messages can get logged to remote syslog servers properly

(f) named is started (there is an argument that says that named should be
    started before syslogd because if you are the dns server for your domain,
    you'd like named to resolve remote hosts in syslog.conf,  but this is
    a minority case and the trivial workarround is to put the syslog host
    in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
    to catch named errors, which is a MUCH more important and likely occurance)

(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
    NIS, NFS, Kerberos and inetd are started

(h) the rest of the generic stuff is done (cron/printer/sendmail)

(i) shared libraries are set

(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
    xtend, and all of the syscons stuff
    (this is actually started as /etc/rc.`uname -m`

(k) the syscons stuff has gotten a serious cleaning to make it consistent
    with rc conventions

(l) rc.local has had the comments about syscons removed (they are not relevant
    to this file now) and the full name of the kernel has been restored to
    /etc/motd

Submitted by:	pts
1995-03-30 06:26:19 +00:00
David Greenman 97338af32f Killed Mr. "Falcon". May he rest in peace. 1995-03-30 05:46:17 +00:00
Andrey A. Chernov 8587890744 Move DSIMICROCODE ioctl to 85,
old value (88) is equal SLIOGUNIT ioctl
1995-03-30 05:17:50 +00:00
Bill Paul 8d36de4ea2 Ack... clean up the logfile name generation that I botched in the last
commit.
1995-03-30 04:21:31 +00:00
Bill Paul effe773667 Fix up the way _PATH_YP is used to put together the pathname to the
NIS maps (get rid of extraneous slash a la /var/yp//domainname).

Have ypxfr log all output to /var/yp/ypxfr.log if stdin is not a
tty. This should allow logging to be done when ypxfr is called from
inside ypserv in response to a yppush request.

Update man page to reflect the change (and fix a typo).
1995-03-30 04:14:46 +00:00
Andrey A. Chernov cddeed288c Fix default mailpath 1995-03-30 01:13:41 +00:00
Andrey A. Chernov 5c95f7a6dc Add Delete key description
Fix Right window/Left window/Menu keys numbers
1995-03-30 00:22:29 +00:00
Rodney W. Grimes ad0c439a34 Submitted by: Mahesh Neelakanta <[email protected]>
Change I/O address of Intel EtherExpress driver (ix0) from 0x280 to
0x300.
1995-03-30 00:20:08 +00:00
Andrey A. Chernov b480c2f090 Remove reference to examples/syscons 1995-03-30 00:10:31 +00:00
Andrey A. Chernov 3bea04e934 Remove syscons example 1995-03-30 00:05:58 +00:00
Andrey A. Chernov 0d58dfe47d Add function keys change setup 1995-03-30 00:01:09 +00:00
Andrey A. Chernov bb34201c6a Fixes for new TTY_BI & TTY_OE 1995-03-29 21:26:37 +00:00
Søren Schmidt 736277a951 Optimized the way physical screen updates are done. Now only
update what has actually been touched. This should speed up
screen access on slow hardware.
Introduced setting of "destructive" cursor size, much like
the old hardware cursor.
1995-03-29 20:55:03 +00:00
Andrey A. Chernov 3de5725908 pppinput:
Fix serial errors handling
Add no carrier check
1995-03-29 20:34:17 +00:00
Andrey A. Chernov 29a75ef5be Fix serial error recording using new TTY_BI & TTY_OE 1995-03-29 20:20:01 +00:00
Andrey A. Chernov f1e302d4cc c_iflag handling in setting compat modes now more close to V7 1995-03-29 19:50:58 +00:00
Andrey A. Chernov 3437da9391 Clear IGNPAR in cfmakeraw() instead of set it. 1995-03-29 19:28:35 +00:00
Andrey A. Chernov 64a49d2d33 Oops, fix typing error in prev. commit 1995-03-29 19:24:46 +00:00
Andrey A. Chernov 668a9ccefc Handle TTY_BI now instead of TTY_FE && c == 0 1995-03-29 19:22:37 +00:00
Andrey A. Chernov 9bbcea9480 Remove TTY_OE & TTY_BI definitions to allow translation,
more work required and will follow
1995-03-29 19:05:13 +00:00
Andrey A. Chernov 33eb491fce Add TTY_OE for overrun error and TTY_BI for break condition 1995-03-29 19:03:02 +00:00
Andrey A. Chernov 532f5941b0 Move parmark 0377 double code after control chars processing 1995-03-29 18:55:20 +00:00
Andrey A. Chernov aeab1b50e3 Fix timestamps when using Wall CMOS clock,
optimize dos2unixtime()
Submitted by: [email protected]
1995-03-29 18:48:06 +00:00
David Greenman 2547597bf4 Added a set of braces to make the compiler happy. 1995-03-29 11:54:02 +00:00
Poul-Henning Kamp 7dd147b45b The latest round of bugfixes here... 1995-03-29 06:13:08 +00:00
David Greenman e5e6090541 Added NQNFS option and a comment warning about it's overhead. 1995-03-29 05:14:22 +00:00
David Greenman cb9db2b6ff When NFS is compiled into the kernel, make NQNFS lease checking conditional
on a "NQNFS" kernel config option. NQNFS is a 4.4 wart and the performance
penalty of the lease checks on the client/server for _local_ I/O is too high
to have this occur all the time - especially when most people will never
use it.
1995-03-29 05:09:44 +00:00
Jordan K. Hubbard 9f06251380 Move the invocation of rc.maint ahead of netstart. This is actually OK
since /var wouldn't be mounted at this point anyway - the mount of NFS
comes after both of them are run.  This closes misc/276.
1995-03-29 03:42:21 +00:00
Jordan K. Hubbard 59beb5883d 1. Add missing -n's to echo lines, closing misc/278
2. Make output of spaces follow conventions used elsewhere.
3. Inform user of a few things being started that were silent before.
1995-03-29 03:35:10 +00:00
Rodney W. Grimes 27aeb9321a History merge after repository restore of netstart,v:
date: 1995/03/26 18:18:59;  author: wpaul;  state: Exp;  lines: +23 -17
Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.

Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
1995-03-29 03:33:55 +00:00
Jordan K. Hubbard c80147acd5 Remove gratutious echo to close misc/279. 1995-03-29 03:30:22 +00:00
Rodney W. Grimes 9845d771df History merge after repository restore of netstart,v:
date: 1995/03/23 01:25:18;  author: jkh;  state: Exp;
Another pass through our rc files in an attempt to eliminate historical
crufy and generally make all of this easier to understand and modify.
1995-03-29 03:28:08 +00:00
David Greenman 90fef96dd0 From Mark Murray:
I got irritated with not seeing the interrupt numbers in a (crowded)
"systat -vmstat" display, so I fixed it. Here is a patch to please be
applied in src/usr.bin/systat
1995-03-29 00:10:14 +00:00
David Greenman 9f22c23da7 Fixed DDB's "ps" output formatting. 1995-03-28 23:29:52 +00:00
Doug Rabson db0770545f Use __tty_fileno instead of STDERR_FILENO when detecting window size
changes
Reviewed by:	Bob Willcox <[email protected]>
1995-03-28 22:20:19 +00:00
Søren Schmidt d23c175f9d Change fkey 63 from ^[[K to ^[[~.
Submitted by:		ache
1995-03-28 21:30:13 +00:00
Andrey A. Chernov b02b5aada3 Don't allow talk own messages wrap around on the screen, just
scroll them like normal user input/output does.
1995-03-28 19:48:45 +00:00
Poul-Henning Kamp 56f6016de9 Remove kernel compilation directories after use.
Move stray "info" files into info dist.
1995-03-28 19:28:32 +00:00
Poul-Henning Kamp c57e984258 Don't install /usr/mdec/boot
Install the biosboot as /usr/mdec/boot[12]
Make the traditional links from [swf]dboot and boot[swf]d to boot[12] files.
Install dosboot as /usr/mdec/boot/fbsdboot.exe
1995-03-28 19:22:43 +00:00
Andrey A. Chernov 0e933b8841 Move discard check up and do it only for error status
(per Bruce suggestion). It speedup things for a little.
Remove l_start optimization, call l_start always (per Bruce suggestion)
1995-03-28 19:22:11 +00:00
Søren Schmidt 84351cc95c Added ata device....
Not that it is ready yet, but I'm getting there eventually...
1995-03-28 18:18:31 +00:00
Søren Schmidt 012872c1ae Fixed most: target gnu/usr.sbin was install not all 1995-03-28 18:14:17 +00:00
Poul-Henning Kamp 286e783f03 Save /etc/sysconfig from destruction.
Don't put termcap.db and vgrinddefs.db in the tarballs when they are so
easy to generate and take up so much space...
1995-03-28 18:14:10 +00:00
Nate Williams a01bd386af Do what should have been done in v1.14
*Really* strip out unused local symbols from shared objects.

This was a typo on my part caused by an assumption that the profiled
libraries stripped symbols that same way as the non-profiled libraries.

Cut-n-Paste strikes again.

Obtained from: NetBSD
1995-03-28 17:54:11 +00:00
Andrey A. Chernov 702c5e7e17 ttyinput() fixes:
1) Preserve old buffer contents when input buffer overflows.

Old code clear buffer and rewrite it again, if !MAXBEL
(for MAXBEL it does right thing :-).
F.e. if you type too long string, last chars passed,
not first ones as expected.
Moreover, it flush output queue too in this case without any needs.

2) Don't do IXOFF, if IGNCR and c==\r, ignore completely.

3) If PARMRK is active and !ISTRIP and char == 0377
put yet one 0377 to distinguish it from parity mark sequence.
POSIX standard (thanx Bruce).

Reviewed by:
Submitted by:
Obtained from:
CVS:
1995-03-28 15:25:13 +00:00
Bruce Evans 2f86e398e1 CVS:
The previous patch was botched.
1995-03-28 12:29:11 +00:00
Andrey A. Chernov 4e0df42774 Don't use
if (tp->t_line != 0)
test when CS_ODONE, it fails for NTTYDISC, use
		       if (linesw[tp->t_line].l_start != ttstart)
instead.

Reviewed by:
Submitted by:
Obtained from:
CVS:
1995-03-28 12:26:40 +00:00
Andrey A. Chernov 8eefd80d06 Forget to add LSR_FE to discard (see prev commit)
Reviewed by:
Submitted by:
Obtained from:
CVS:
1995-03-28 11:13:44 +00:00
Andrey A. Chernov 63cadaef19 Bug fixed:
parity/framing/break not completely ignored when IGN* is set
but cause output restarted.
CVS:
1995-03-28 11:09:35 +00:00
Andrey A. Chernov 2cad35d11b Several fixes to help "raw" tty mode work correctly with
BREAK/parity/framing errors.
Term "correctly" assumes POSIX spec. and 4.4 ttyinput() behaviour.
1) Discard BREAK/parity at interrupt level when apropriate IGN*
is set in iflag. It helps "raw" mode works even IGN* is set.
2) Zero parity (if INPCK) and framing directly in buffer
before passing it to b_to_q() in "raw" mode.
Efficency:
interrupt level: if no error occurse, only two "test" commands added
"raw" mode: buf scan incc times for parity/framing added

Reviewed by:
Submitted by:
Obtained from:
CVS:
1995-03-28 10:51:59 +00:00
Jordan K. Hubbard e36fea798c Tweak a few things just to show how form traversal might work fully.
Fix some spelling errors in the example.c file and make error handling
a little more explanatory.
1995-03-28 10:42:09 +00:00
Jordan K. Hubbard 4fe2ad2c59 Include <strhash.h> instead now. 1995-03-28 10:25:13 +00:00
Jordan K. Hubbard 71e60921ff Fix a missing _hash() to prevent namespace pollution with the db/hash routines.
Grrr.  If the dbhash routines weren't grossly overengineered I wouldn't
even need to do this! :-(

Also now export the hash_stats routine.  Manpage coming RSN - I promise.
1995-03-28 08:41:02 +00:00
Jordan K. Hubbard 9829c3ed2e Change ahc driver comment to note that it's not just the 274x controller
it supports.
1995-03-28 08:14:55 +00:00
Jordan K. Hubbard 00f32d06c1 "matcd interface " -> "matcd"; this makes userconfig work again and
makes it more consistant with the other drivers.
1995-03-28 08:04:07 +00:00
Bruce Evans ce7c8b00ff CVS:
Enable -Wimplicit again.
bash: /src/z1: No such file or directory
1995-03-28 08:02:37 +00:00
Poul-Henning Kamp 1ff0174d3c They mystery of the recursive /sys/sys/ solved. 1995-03-28 08:01:47 +00:00
Bruce Evans 3aa12267a5 Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) that I didn't notice when I fixed
"all" such warnings before.
1995-03-28 07:58:53 +00:00
Poul-Henning Kamp 1b9d1a091a Readdir on a CDrom would return bogus "d_type" values, potentially confusing
everybody (incl find(1) ?).  Initialize it to DT_UNKNOWN.  Maybe we can
do better, but I don't have the time.
1995-03-28 07:46:38 +00:00
Andrey A. Chernov 243823db69 Raw ttyinput test was incomplete,
add !(IGNBRK | BRKINT | PARMRK) now.
1995-03-28 06:15:44 +00:00
David Greenman 17c4c40800 Fixed typo...using wrong variable in page_shortage calculation. 1995-03-28 05:58:35 +00:00
Andrey A. Chernov 81855a2ac4 Update cons25 to S0ren ^H back changes 1995-03-28 05:43:58 +00:00
Andrey A. Chernov 339b90b333 Fix break recording for ttyinput 1995-03-28 05:39:53 +00:00
David Greenman 0bb3a0d2f4 Fixed "pages freed by daemon" statistic (again). 1995-03-28 05:35:29 +00:00
Satoshi Asami df32d0cc55 Add support for "distributed" patches and a little extra cleanup.
New variables:

PATCH_SITES:	patch equivalent of MASTER_SITES, overridable with
.		MASTER_SITE_OVERRIDE.
PATCHFILES:	Additional files to fetch and give to patch before
.		applying the ones in patches/patch-*.  If name ends
.		with ".gz" or ".Z", it will be piped through zcat first.

Plus PATCH_DIST_STRIP and PATCH_DIST_ARGS that serve the same functions
as PATCH_STRIP and PATCH_ARGS for patches in patches/patch-*.

In the documentation and echo messages, I used the term "distributed
patches" and "FreeBSD patches" to refer to ${PATCHFILES} and patches/patch-*.
If you can come up with better names, by all means go ahead and fix them.

"grep PATCH /usr/ports/*/*/Makefile" reveals seven ports (mule, jless,
jtcl, jtk, dgd, less, color_xterm, gee I wonder why I'm the one who
implemented this) that can benefit from this.  I'm now diving headlong
into /usr/ports to fix their Makefiles.
1995-03-28 01:14:29 +00:00
Bill Paul b38bb6d374 Use yp_order() instead of yp_first() in _havemaster() to check for the
presence of the master.passwd.byname map, and remember to free the
returned order value before exiting.
1995-03-27 20:46:40 +00:00
Nate Williams 6fc818e63f Bump the shared library minor # because of the additions of the
strhash() functions.
1995-03-27 20:23:11 +00:00
Søren Schmidt 19c66761c7 Give backspace to the people (again)
Now the keymaps are as follows:

"backspace / <-"	^H
"grey del"		^? (0x7f)
"numpad , del"		^? (, if numlocked)
1995-03-27 19:41:11 +00:00
Andrey A. Chernov 18dbbebe5a Add hooks for upcoming riscom/8 driver 1995-03-27 19:39:58 +00:00
Satoshi Asami 32c4c80bff Added more standard package suport file names. INSTALL for the
installation script, DEINSTALL for the deinstallation script, and
REQ for the requirement script, will be added with appropriate
flags to PKG_ARGS if they exist under pkg/.
1995-03-27 13:11:18 +00:00
David Greenman e612a582cc Re-apply my "breakage" to the Nagel congestion avoidence. This version
differs slightly in the logic from the previous version; packets are now
acked immediately if the sender set PUSH.
1995-03-27 07:12:24 +00:00
Andrey A. Chernov 2f69f2f2f3 Remove duplicates: parm rindex & scroll right 1995-03-27 05:13:31 +00:00
Andrey A. Chernov 8e3cede18e Fix duplicate. 1995-03-27 05:08:43 +00:00
Andrey A. Chernov aca38c3602 pc3r (russian): change kD to old compatible value.
vt100: remove obsoleted nl
1995-03-27 04:55:41 +00:00
Andrey A. Chernov 910e8e7cc1 Set kb=\177 to make proper erase char for DEC VTs 1995-03-27 03:46:05 +00:00
Andrey A. Chernov 9a8677a158 Fix erase determination code: don't look at
system defaults which is always the same
1995-03-27 03:42:21 +00:00
David Greenman 2ddba2158c Explicitly set page dirty if this is a write fault - reduces calls to
pmap_is_modified() later.
1995-03-27 02:41:00 +00:00
Jean-Marc Zucconi 509b93f067 'directories...' is an argument, not an option 1995-03-27 01:52:59 +00:00
Rodney W. Grimes b34537dab7 Remove the private copy of directories in usr/include from here,
this is now handled in BSD.include.dist.
1995-03-27 01:36:19 +00:00
Andrey A. Chernov 4717f90280 Add :ut to vt100 generic entry 1995-03-27 01:36:00 +00:00
Rodney W. Grimes e080a7f08a We must do include and lib first so that the perl *.ph generation
works correctly as it uses the header files installed by this.
1995-03-27 01:31:09 +00:00
Andrey A. Chernov 668326cbc5 Fix bug using CSR for partial scrolling 1995-03-27 01:19:14 +00:00
Andrey A. Chernov 3952ec9bdb Yet one pass through DEC VT entries 1995-03-27 00:55:51 +00:00
David Greenman 6e14d964ac Removed some redundant 'vmio' checks. 1995-03-27 00:11:45 +00:00
David Greenman 1ae89ac36a Removed declaration of pmap_changebit()...it is no longer exported.
Submitted by:	John Dyson
1995-03-26 23:42:55 +00:00
David Greenman 880d1d842e Changed pmap_changebit() into a static function as it always should
have been.

Submitted by:	John Dyson
1995-03-26 23:42:07 +00:00
Bill Paul 8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
David Greenman 8953151fc8 Removed some obsolete flags.
Submitted by:   John Dyson
1995-03-26 23:33:14 +00:00
David Greenman f57459b632 Removed third arg (vmio) to allocbuf() that was added with the original
merged cache changes, and figure it out based on the B_VMIO buffer flag.
Fixes a problem where delayed write VMIO buffers would sometimes get
recopied into kernel-alloced memory.

Submitted by:	John Dyson
1995-03-26 23:29:13 +00:00
Andrey A. Chernov 73cab1a3bc Use more AI to predict initial/final isdst,
latest isdst  preffered.
1995-03-26 22:51:51 +00:00
Joerg Wunsch 266e938a21 Made this script a bit more fool-proof, so people like me can better
use it. :-)

It now explicitly requires the specification of a directory to import
from, either as an argument to the script, or by asking the user about
it.  (Previously, it implicitly used `.', like cvs import does.)

Also implemented an option `-n', which does essentially the same like
the overall CVS option `-n': show only what would have been done,
don't do any commitment.  Note that since the modules' database is
checked out in place (and not commited back), it will erroneously be
reported as to be imported, too:

cvs import: Importing /home/ncvs/ports/foobar/foo/modules
I ports/foobar/foo/modules/CVS
N ports/foobar/foo/modules/modules

This is an unwanted side-effect, but gives the user the option to see
if the `ed' magic did the right thing when editing modules/modules.

Rod, can you please check the function ``checktag'' in the script if it
will be restritctive enough?
1995-03-26 21:56:32 +00:00
Poul-Henning Kamp 37c1d2607b Fixed a bug so that a delta#0 can be applied.
Fixed a typo in the generation of temp filenames.
"Blame" Joerg for the man-pages (and clarify a couple of minor points).
Most appreceiated Joerg!
1995-03-26 20:09:52 +00:00
Andrey A. Chernov d030a0729f Hash 8bit chars without sign extension 1995-03-26 19:32:24 +00:00
Rodney W. Grimes 6a0e6f4266 Terminate all probe/diagnostic/error messages correctly with a \n.
Report floppy/tape units on seperate lines as fdX:/ftX: to correct lots of
ways the current scheme failed to end the output with \n.

Add controller and/or drive designator to the fron of several messages
that come from this drive.  [It's not fun to track down driver messages
using grep over the source tree.]
Reviewed by:	joerg
1995-03-26 19:28:22 +00:00
Andrey A. Chernov 626da9c8ba Update info about LC_COLLATE implementation 1995-03-26 18:57:19 +00:00
Poul-Henning Kamp d2757e2bd6 If possible, pick up the caesar program inside in the compilation tree. 1995-03-26 18:53:45 +00:00
Bill Paul 04bc775d03 Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.

Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
1995-03-26 18:18:58 +00:00
Jordan K. Hubbard be01ce9346 change hash.h to strhash.h to match new convention.
Manpage for strhash functions to follow tomorrow.
1995-03-26 10:25:00 +00:00
Jordan K. Hubbard 4796867161 Add the strhash family of routines. They provide a number of features
that the db/hash functions don't, and they're much simpler to use for
low-overhead string hashing.
1995-03-26 10:21:55 +00:00
Jordan K. Hubbard 7f5473b3cc add strhash.h for libc's new string hashing function. 1995-03-26 10:12:53 +00:00
Paul Richards 62773adf71 Use a hash table to hold all the bindings info rather than a linked list.
Forms now have their own local bindings table so that anything
declared within a form is local to that form. This means you can
have fields of the same name in different forms.

Added inlined attribute setting for strings e.g. "This is \bold bold"

Added entry and exit functions for fields.
1995-03-26 07:44:33 +00:00
Bill Paul bdb44d5fb6 Stop callbootd from dumping core when attempting to directly query a
bootparam server on a host that isn't running bootparamd: if clnt_create()
comes back with a NULL pointer, bail out with an error.
1995-03-26 03:15:39 +00:00
Andrey A. Chernov 4b99bfd375 Comment out all perverted curses optimization 1995-03-26 03:01:04 +00:00
Andrey A. Chernov 4b0ef7df4c Change wrong -ltermcap -ltermlib picked up to -lmytinfo 1995-03-26 02:41:45 +00:00
Bill Paul 7112864e5c Make sure we free() the result returned to us by yp_match(). 1995-03-26 02:37:00 +00:00
Andrey A. Chernov 2adf028be3 Add eo:it#8 to vt100 entry 1995-03-26 01:30:33 +00:00
Andrey A. Chernov c6159a7bd8 vt100/102/220 entries affected:
major cleanup
add lot of missing capabilities
1995-03-26 01:02:54 +00:00
Andrey A. Chernov bc4908f401 Continue of previous fix: eliminate backslashes too. 1995-03-26 00:47:02 +00:00
Andrey A. Chernov 9da94f20f7 Compact entry returned to user:
1) Eliminate spaces and double ':'.
2) Remove duplicated capabilities from tc= expansion.
It is needed to not overflow historycal 1024 limit.

Add range check and return -1 if entry is too big instead
of corrupting user memory.
1995-03-26 00:35:36 +00:00
Bill Paul 12aeae6c45 Submitted by: Sebastian Strollo <[email protected]>
Use hosts.byname as the alias for 'hosts' instead of hosts.byaddr.
1995-03-25 23:26:54 +00:00
Bruce Evans 8e4150e95a Reviewed by:
Submitted by:
Obtained from:

Disable previous change.  I missed a lot of implicit declarations.
1995-03-25 23:21:36 +00:00
Bruce Evans 208ce078ed Remove wrong redeclarations of printf() and bzero(). Include the correct
header to declare DELAY().
1995-03-25 22:40:49 +00:00
Bruce Evans e9f80c0133 Make untested NS code at least compile so that it doesn't break LINT. A
struct member had an old name.
1995-03-25 22:06:27 +00:00
Bruce Evans f0d47944e2 Forward-declare kern_devconf for use in a prototype. Some drivers
include <pci/pcivar.h> without including <sys/devconf.h> and other
drivers include <pci/pcivar.h> before including <sys/devconf.h> if
certain identifiers are defined.

The devconf headers have convoluted interdependencies.  <sys/devconf.h>
includes <machine/devconf.h> which includes <pci/pcivar.h>.  Most
drivers include <sys/devconf.h> so even isa drivers depend on
<pci/pcivar.h>.  For similar reasons, most drivers depend on another
pci header, on an isa header and on two scsi headers.
1995-03-25 21:10:38 +00:00
Joerg Wunsch de8020d29b Call open(2) and mkdir(2) with 0666/0777 as the `mode' argument (as
opposed to 0644 or 0755).  It's finally still masked by the process'
umask(2), and it does not make sense to restrict it further than that.

This (especially for mkdir(2)) was causing major headaches for the CVS
tree, since a member of group cvs was later not able to get cvs
checkout permission for the mirrored tree failed to write the lock file).
1995-03-25 20:46:51 +00:00
Joerg Wunsch b2b31a1c92 Make finger(1) accept "cua" to be also a tty, and use the suffix instead
of the very meaningful string "cu" to describe the tty.
1995-03-25 18:15:40 +00:00
Jordan K. Hubbard 3268de551f Add gil.physik.rwth-aachen.de to mirrors 1995-03-25 18:15:12 +00:00
Bruce Evans eb2cb5e165 Fix the path to scdreg.h.
Fix implicit declarations.
1995-03-25 18:14:37 +00:00
Joerg Wunsch fee6e7cc49 Added a man page for the ctm(1) command, as well as a format description
for the CTM deltas.

Largely based on Poul-Henning's README, and the source code.
1995-03-25 18:14:26 +00:00
Bruce Evans feae7fb7d3 Add -Wimplicit to ${CWARNFLAGS} so that implicitly declared functions
don't come back.  There are still a few for unsupported network protocols.
1995-03-25 17:50:19 +00:00
David Greenman 6c534ad868 Fix logic bug I just introduced with the flags to msync(). 1995-03-25 17:44:03 +00:00
David Greenman 492d73bd99 Pass syncio flag to vm_object_clean(). It remains unimplemented, however. 1995-03-25 17:36:57 +00:00
David Greenman 1e62bc6357 Disallow both MS_ASYNC and MS_INVALIDATE flags being set at the same time
in msync().
1995-03-25 17:36:00 +00:00
David Greenman cdfc91f0da Fixed msync() prototype. 1995-03-25 17:28:30 +00:00
David Greenman eb0bc8709b Updated manual page to indicate flags argument; added return value and
errors section.
1995-03-25 17:24:47 +00:00
Jordan K. Hubbard 91f88b9615 Get PERL found in any of its obvious locations. 1995-03-25 17:14:11 +00:00
David Greenman e6c6af1149 Added "flags" argument to msync, and implemented MS_ASYNC and MS_INVALIDATE.
The MS_ASYNC flag doesn't current work, and MS_INVALIDATE will only toss out
the pages in the address space (not all pages in the shadow chain).
1995-03-25 16:55:46 +00:00
David Greenman bc4c84cf7e Added a third "flags" argument to msync() ...as other systems have. 1995-03-25 16:52:24 +00:00
David Greenman f2b247fab8 Added flags definitions for msync(). 1995-03-25 16:43:42 +00:00
Bruce Evans efeca6c1f3 Don't attempt to fix the mode of mus - mus might be read-only. Just
interpret it.  I've preserved the bugs that perl must be installed
to build part of perl and that it must be installed in the wrong place
(no ${DESTDIR}).
1995-03-25 15:43:57 +00:00
Joerg Wunsch bcd20d16ce Include ``toor'' in the list of forbidden ftp users, just in case someone
is providing this user with a password.

Pointed out by: [email protected]
1995-03-25 13:11:40 +00:00
Joerg Wunsch d92d2e1236 Update the kernel debugging FAQ to match the new (k)gdb and new DDB
symbol behaviour.
1995-03-25 12:35:00 +00:00
Bruce Evans a7d783dddb Add more compatibility cruft:
- ignore the partition table if it is identical with the bogus one in
  /usr/src/sys/i386/boot/biosboot/start.S.  Honoring the bogus size
  field was fatal.  The error is detected but other compatibilty
  cruft weakens the error handling too much for this case.
- weaken the partition entry checking to allow the following treatments
  of C/H/S addresses when C should be >= 1024:
    (1) allow C = 1023, H = max, S = max.
    (2) allow C to be correct modulo 1024.
  Other compatibilty cruft weakens the error handling to allow all
  C/H/S addresses, but there too many errors were reported.

Improve error messages:
- print C/H/S addresses if relevant.
- distinguish primary partition table from extended partition tables.
- don't use diskerr() except for i/o errors.
1995-03-25 12:07:31 +00:00
David Greenman 763652056a Removed an old VMIO #ifdef and made the type of b_pages 'struct vm_page *'. 1995-03-25 08:55:02 +00:00
David Greenman 7fd9a8b12f Implemented cnt.v_reactivated and moved vm_page_activate() routine to
before vm_page_deactivate().
1995-03-25 08:47:35 +00:00
David Greenman ff93e578a0 Removed object lookup/hit count and changed the order of things a little. 1995-03-25 08:44:48 +00:00
David Greenman 260295f979 Removed (almost) meaningless "object cache lookups/hits" statistic. In
our framework, these numbers will usually be nearly the same, and not
because of any sort of high 'hit rate'.
1995-03-25 08:42:14 +00:00
Poul-Henning Kamp e169c6670b scandir(3) didn't transfer d_type, and d_ino is called d_fileno now. 1995-03-25 07:39:02 +00:00
David Greenman 1d93250fd2 Removed cnt.v_nzfod...we don't support it in the kernel. 1995-03-25 06:39:47 +00:00
David Greenman 42d825e109 Removed printing of cnt.v_nzfod: we don't implement this in the kernel. 1995-03-25 06:11:43 +00:00
David Greenman a34297995a Removed cnt.v_nzfod: In our current scheme of things it is not possible
to accurately track this. It isn't an indicator of resource consumption
anyway.
Removed cnt.v_kernel_pages: We don't implement this and doing so accurately
would be very difficult (and ambiguous - since process pages are often
double mapped in the kernel and the process address spaces).
1995-03-25 06:09:33 +00:00
Steven Wallace c27bd0ad13 Do a printf("\n") after all conditional printfs have been done so that
a newline is always done.  Remove \n's from last conditonal printfs.
1995-03-25 05:54:33 +00:00
Poul-Henning Kamp fdf36512dd mkdir /usr/src if it doesn't exist. 1995-03-25 05:03:40 +00:00
Jordan K. Hubbard cbec1346b0 Add sysconfig to list of cpio floppy targets. 1995-03-25 04:53:39 +00:00
David Greenman 3ed8a40336 Use 'p' rather than 'curproc' when appropriate. 1995-03-25 01:34:21 +00:00
David Greenman b35ba931bd Use NDINIT macro to initialize fields for namei. 1995-03-25 01:20:38 +00:00
Bill Paul f05daed916 Add calls to endgrent() and endnetgrent() to the end of _createcaches(). 1995-03-25 00:30:35 +00:00
Poul-Henning Kamp f551164802 Make sure exit() is sensible; 1995-03-24 21:36:32 +00:00
Poul-Henning Kamp 15a9992ca2 Modes on dirs were decimal by mistake.
Submitted by:	joerg
1995-03-24 21:33:20 +00:00
Bill Paul 06643071e5 Add more sanity checks. *Lots* of sanity checks. Huge tracts of sanity checks.
Make sure all arguments to the yp_*() functions are valid before sending
them off to the server. This is somewhat distressing: once again my
FreeBSD box brought down my entire network because of NIS bogosities.
I *think* the poor argument checking in this module is the cause, but
I still haven't been able to reproduce the exact series of events that
lead to the ypserv crashes. For now I've resorted to sticking my FreeBSD
box in a seprate domain. Hopefully a weekend of heavy testing will
uncover the problem.
1995-03-24 21:21:37 +00:00
Bill Paul 0ffe27f544 Make sanity checks saner: don't let setnetgrent() or innetgr() swallow
any bogus arguments.
1995-03-24 20:42:28 +00:00
Garrett Wollman a29ae2a103 Don't delete clones if they are PINNED. 1995-03-24 20:05:28 +00:00
Jordan K. Hubbard d8274511ca If mus script not executable, fix. 1995-03-24 19:22:33 +00:00
Andrey A. Chernov 09237e9da4 Fix -C arg overriding when -T file used 1995-03-24 19:01:25 +00:00
Jordan K. Hubbard 0fb7352341 Bring in the new non-GPL'd driver from Mikael Hybsch. This version is
NOT derived from the Linux code and is thus not GPL'd.  It is the author's
express wish that the GPL copyrighted version be removed and this BSD copyright
version take its place.  Considering our own stance on this, I'm certainly
not going to argue!  [Note to NetBSD folks:  You're free to grab it now :-)]
Submitted by:	Mikael Hybsch <[email protected]>
1995-03-24 18:33:02 +00:00
Jordan K. Hubbard d9d537017f scd driver now lives in non-GPL land. 1995-03-24 18:30:11 +00:00
Andrey A. Chernov ed42ac9324 Get rid of strtok(), it is depricated inside libs 1995-03-24 17:59:48 +00:00
Andrey A. Chernov c90720154b Get rid of strtok(), it is depricated in libs 1995-03-24 17:40:54 +00:00
Andrey A. Chernov c8448f10eb Change strtok() to strsep(), strtok() usage is depricated
in libraries.
1995-03-24 17:27:22 +00:00
Andrey A. Chernov bee5b8efe8 Change strtok() to strsep(), using strtok() can cause memory corruption
if user program use it too in the same time.
1995-03-24 16:33:44 +00:00
Jordan K. Hubbard 72a3d44887 Add what looks to be the right fix to this bogus code. 1995-03-24 16:07:09 +00:00
Andrey A. Chernov 3330823cc3 Sicnce this code shares the same fragment as gethostnamaddr:
Change strtok() to strsep(), cause memory corruption for all
programs which use strtok() too in the same time.
Fix potential NULL reference, depends of /etc/hosts.conf format
Fix the bug when service name fetched always from beginning of the line,
not from parsed token.
1995-03-24 15:51:30 +00:00
Andrey A. Chernov 3d1513bdeb Change strtok() to strsep(), cause memory corruption for all
programs which use strtok() too in the same time.
Fix potential NULL reference, depends of /etc/hosts.conf format
Fix the bug when service name fetched always from beginning of the line,
not from parsed token.
1995-03-24 15:38:54 +00:00
Poul-Henning Kamp 6075622c64 Fix cdrom.1 target. 1995-03-24 08:10:53 +00:00
Bill Paul 828447008a Yikes! Fix stupid mistake I made in last commit that made getpwent() ignore
local password entries when YP was enabled. (How the heck did that
get by me!?)
1995-03-24 08:01:01 +00:00
Jordan K. Hubbard 0b15614f22 Back out previous patch - better kept as a reminder. 1995-03-24 06:44:55 +00:00
Jordan K. Hubbard 97d6478890 Adjust include paths. 1995-03-24 05:56:41 +00:00
Bill Paul d34ef3d62b As per Justin T. Gibbs's request, agument the +@netgroup/-@netgroup
remapping mechanism in the following manner: if given an entry +@foo
and there is no netgroup named 'foo,' try searching for a regular
user group called 'foo' and build the cache using the members of
group 'foo' instead. If both a netgroup 'foo' and a user group 'foo'
exist, the 'foo' netgroup takes precedence, since we're primarily
interested in netgroup matching anyway.

This allows access control schemes based on ordinary user groups
(which are also available via NIS) rather than netgroups, since
netgroups on some systems are limited in really brain-damaged ways.
1995-03-24 05:46:47 +00:00
Andrey A. Chernov c0844b4775 Add yet one popular russian keyboard variant
Submitted by: Serge Babkin <[email protected]>
1995-03-24 05:40:17 +00:00
Andrey A. Chernov c568fce986 Fix truncating hostname using MAXHOSTNAMELEN
Submitted by: Jan Conard <[email protected]>
1995-03-24 05:15:09 +00:00
Jordan K. Hubbard cf522ac9ff Comment out a table of contents spec that didn't exist. 1995-03-24 04:42:21 +00:00
Jordan K. Hubbard 5390e1a7be kbdfont -> vidfont for greater commonality with kbdcontrol/vidcontrol 1995-03-24 04:36:19 +00:00
Jordan K. Hubbard 80926682fd Bring back perl/usub as usub/, this time containing an updated curseperl
which is also installed by default (the reason for which should also be
plain shortly).
1995-03-24 04:33:54 +00:00
Poul-Henning Kamp a833576497 Fix srcdist names. Fix structure in ftp-area. 1995-03-24 04:20:35 +00:00
Poul-Henning Kamp 7a10e6810f Fix a bogon. 1995-03-24 03:38:48 +00:00
Poul-Henning Kamp 836ed9f2c2 A whole slew of changes relating to the generation of src-dists. 1995-03-24 02:45:34 +00:00
Poul-Henning Kamp 32d2e89f5d The "DISTNAME" is now configured here too. 1995-03-24 02:41:47 +00:00
Poul-Henning Kamp 45209a22a5 Make src-tarballs in one level. Don't tar things named 'obj' 1995-03-24 02:05:32 +00:00
Poul-Henning Kamp d20722885e Tolerate both ways of doing the src-dists. 1995-03-24 02:04:00 +00:00
Justin T. Gibbs 61530543c9 Add recognition of HP Printer Job Language (PJL) commands. 1995-03-24 01:17:29 +00:00
Jordan K. Hubbard 7bf4ec6f56 Add the font index file. Other languages (French, Swedish, other)
needed for this file!
1995-03-24 01:11:56 +00:00
Jordan K. Hubbard f6f4d4be87 Add the keymap index file. Other languages (French, Swedish, other)
needed for this file!
1995-03-24 01:11:40 +00:00
Jordan K. Hubbard 9774e9cfaf Bring in the kbdmap/kbdfont utilities from Wolfram Schneider.
Renamed them to make them more consistent with kbdcontrol/fdcontrol/etc.
1995-03-24 00:52:28 +00:00
Jordan K. Hubbard 207f9157cd Set hostname properly in /etc/sysconfig 1995-03-24 00:23:18 +00:00
Poul-Henning Kamp 157b421d4e set SHELL for ftp. 1995-03-24 00:23:02 +00:00
Jordan K. Hubbard 0a2176cb4d Name juggling, make things a little clearer. 1995-03-24 00:18:31 +00:00
Jordan K. Hubbard 7b56107036 Add rc.maint file. 1995-03-24 00:17:37 +00:00
Poul-Henning Kamp 02f3cabc5d Add a missing ${DIST}/ 1995-03-24 00:16:51 +00:00
Jordan K. Hubbard e4ade01cb2 start syslog earlier
add optional ibcs2 startup
1995-03-24 00:16:26 +00:00
Poul-Henning Kamp 2a0b3f70d2 Install /etc/sysconfig 1995-03-24 00:15:15 +00:00
Jordan K. Hubbard a50ce32dec Correct a few spelling bogons.
Submitted by:	phk
1995-03-24 00:11:02 +00:00
Jordan K. Hubbard 43b9e11c93 Get around problem of not exporting variables in sysconfig 1995-03-24 00:01:21 +00:00
Rodney W. Grimes b3a028f703 Add gnu/usr.bin/ld to lib-tools: since you need this compiled very
early if you are running a back release.
1995-03-23 23:40:29 +00:00
Bill Paul d038db90e8 Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS
entry, it will cause all NIS uids and gids to be remapped to zero. This
is *intentional*. That's the way it's supposed to work. Enabling NIS with
no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly,
+:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh.
Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell
to /bin/csh but leave everyone else alone.
1995-03-23 22:31:11 +00:00
Bill Paul e17334c329 Don't let yp_match() or yp_next() operate on null or empty keys: asking
ypserv to do a yp_match() with an a null or empty key causes much havok.
(Note that this could be construed as a denial of service attack if used
maliciously.)
1995-03-23 22:23:15 +00:00
Bill Paul 62a771700f Don't let setnetgrent() operate on a null or empty group name: it can
tickle a bug in ypserv and make a serious mess of things.
1995-03-23 22:21:16 +00:00
Bill Paul 353fefe325 Very important sanity checks: today I clobbered all four NIS servers on
my network because setnetgrent() was trying to do a lookup on group "".
It seems that an attempt to do a yp_match() (and possible yp_next())
on a null or empty key causes Sun's ypserv in SunOS 4.1.3 to exit
suddenly (and without warning). Our ypserv behaves badly in this
situation too, thoush it doesn't appear to crash. In any event, getpwent,
getnetgrent and yp_match() and yp_next() are now extra careful not to
accidentally pass on null or empty arguments.

Also made a small change to getpwent.c to allow +::::::::: wildcarding,
which I had disabled previously.
1995-03-23 22:18:00 +00:00
Gary Palmer c534dadbfe Add a misssing `@' from before echo -n "|${MAINTAINER}" 1995-03-23 20:42:42 +00:00
Garrett Wollman db041b142b Enable DES if NOCRYPT is not set and and the user has the secure sources. 1995-03-23 19:13:04 +00:00
Garrett Wollman c16b583c3c Mark Murray's authdes.c for xntpd 1995-03-23 19:09:24 +00:00
Poul-Henning Kamp 90b0ec316f Having BLOCKSIZE=K and using "-k" option ls would use 2K block size... 1995-03-23 19:05:00 +00:00
Rodney W. Grimes 2c0e14c2d2 Fixed last defined(WANT_MSUN) -> !defined(WANT_CSRG_LIBM) in the src tree. 1995-03-23 19:03:02 +00:00
Garrett Wollman ffa5b11ab5 in_var.h: in_multi structures now form a queue(3)-style LIST structure
in.c: when an interface address is deleted, keep its multicast membership
.     records (attached to a struct multi_kludge) for attachment to the
.     next address on the same interface.  Also, in_multi structures now
.     gain a reference to the ifaddr so that they won't point off into
.     freed memory if an interface goes away and doesn't come back before
.     the last socket reference drops.  This is analogous to how it is
.     done for routes, and seems to make the most sense.
1995-03-23 18:14:41 +00:00
Garrett Wollman 3545b0484c radix.c: correct exit condition in rn_walktree_from()
route.c: be a little more careful when running deleting children of dying
.        routes
1995-03-23 18:07:29 +00:00
Bill Paul 5f115c9d15 Lots of fixes/improvements in the +user substitution handling:
- Have the +@netgroup/-@netgroup caches handle the +user/-user cases too.
- Clean up getpwent() to take advantage of the improved +user/-user handling.
1995-03-23 17:33:19 +00:00
Bill Paul 34876b9137 Summarily enable YP as soon as any a '+' is detected instead of generating
special values when +user substitutions are in effect. The new getpwent
code can handle all the special cases itself now.
1995-03-23 17:22:37 +00:00
Bruce Evans a1c6084710 Support disk slices. This involves mainly replacing inline code with
function calls.  Broken tracking of open partitions gets fixed as a side
effect.  Races in sdopen() and sdioctl() become more numerous than before.

Close the device in sdsize().  Media removal could not have worked right
when unused swap devices were held open.  There may now be a problem
with used swap devices not being held open.

Fix ancient operator precedence bug in sddump().  It may have been
possible to attempt dumping to unloaded media.

Remove NetBSD ifdefs.  We're too different now, and the NetBSD driver was
already too different for them to be relevant.

Remove support for soft write protection.  There are no ioctls to set it,
and this driver never set it either.  It was used in the wd driver to
disable writing to unlabelled disk, but we want to support writing to
foreign partitions on unlabeled disks.

Clean up some formatting and restore some old-style function headers.
1995-03-23 16:09:01 +00:00
David Greenman 64709e7406 Deleted bogus DIAGNOSTIC "nfs_fsync: dirty" message. This can and does
happen normally when there is heavy write activity to a file since the
vnode isn't locked (NFS plays fast and loose with vnode locks). This change
"fixes" PR#267.
1995-03-23 09:43:40 +00:00
Rodney W. Grimes 567448c8c7 Change MAX_SLOTS -> EISA_MAX_SLOTS and correct comments. Add this to
ultra14f.c and eliminate constants.

Correct EISA slot scan loops to look at slots 1 to 15 inclusive (off
by 1 errors all over the place).  Other drivers need this, I will get
to it after a little more work.

Correct the ultrastore EISA probe so that it starts after the last
EISA slot probed instead of starting over from slot 0.

We need an eisa.h to move a lot of common constants into.  I will
write it if someone tells me where it should go (sys/eisa?).
1995-03-23 09:00:20 +00:00
Rodney W. Grimes ecdb980f93 Convert from using old root.cache to new named.root 1995-03-23 08:43:07 +00:00
Rodney W. Grimes fa535a53dd Import the official InterNIC Registration Services named.root file
on a vendor branch for easy updates.
Reviewed by:	phk
1995-03-23 08:19:28 +00:00
Justin T. Gibbs 70b211b3a0 aha1742.c:
#include <i386/isa/isa.h>
	return IO_EISASIZE instead of hard coded 0x1000.

if_ep.c:
	Remove commented out disabling of interrupts that gave a
	"comment withing a comment" warning.
1995-03-23 07:31:08 +00:00
Rodney W. Grimes 63bc0cc148 Do not install libkern into /usr/lib, blank target install: added. 1995-03-23 07:02:14 +00:00
David Greenman 0602287958 Patches from Serge Babkin to fix interrupt handling bugs.
Submitted by:	Serge Babkin
1995-03-23 06:53:39 +00:00
Jordan K. Hubbard fadfd39bdf rc.netstart -> netstart 1995-03-23 06:42:36 +00:00
David Greenman a54907a1a7 Restore my changes to initialize the kdc_shutdown routine pointer. Stefan
clobbered it in his previous commit and not having it causes the machine
to panic during reboot (as well as not doing the important shutdown callout).
1995-03-23 06:14:44 +00:00
Jordan K. Hubbard 06b0ad8a6f /etc/rc.netstart back to /etc/netstart 1995-03-23 06:05:04 +00:00
David Greenman d7a0fc9360 Fixed warning caused by returning a value in a void function (introduced
in a recent commit by me). Relaxed checks before calling vm_object_remove;
a non-internal object always has a pager.
1995-03-23 05:19:44 +00:00
Bill Paul 89395683ea Small cleanups:
- Prepend a '_' to a couple of things
- Make sure YP is enabled in _createcaches()
- Remove a couple of unused/uneeded variables from _createcaches()
1995-03-23 04:04:01 +00:00
Jordan K. Hubbard 4642c87ca4 netstart -> rc.netstart 1995-03-23 01:49:15 +00:00
Jordan K. Hubbard a590b6a207 Add a home for system maintainance tasks. 1995-03-23 01:25:51 +00:00
Jordan K. Hubbard 89341fe2a5 Another pass through our rc files in an attempt to eliminate historical
crufy and generally make all of this easier to understand and modify.
1995-03-23 01:25:19 +00:00
Bill Paul 9531ca9353 Phew! Done at last: getpwent now understands +@netgroup/-@netgroup directives
in addition to the existing NIS substitutions. I may tweak this a bit in
the future, but the important stuff is all here.
1995-03-23 00:59:15 +00:00
Bill Paul ad5d3ccd4d - Add support for embedding special entries in the password databases
for +@netgroup/-@netgroup entries. This saves the getpwent functions
from having to do all the work.

- Fix potential bug: when pwd_mkdb writes the YP-enabled flag to the secure
password database, it uses the wrong database descriptor. (It uses the
descriptor from the non-secure database, which is already closed by the time
things are being written into the secure dastabase).
1995-03-23 00:54:57 +00:00
Bill Paul e13e2475dc Add a couple of extra #defines for special keys to be embedded in the
password databases:

#define _PW_KEYPLUSBYNUM        '5'     /* special +@netgroup entries */
#define _PW_KEYMINUSBYNUM       '6'     /* special -@netgroup entries */
#define _PW_KEYPLUSCNT          '7'     /* number of +@netgroup entries */
#define _PW_KEYMINUSCNT         '8'     /* number of -@netgroup entries */

This is to help getpwent.c in libc build the +@netgroup/-@netgroup
caches.
1995-03-23 00:08:00 +00:00
Jordan K. Hubbard 5abc844b74 Add maintainer to the index line. 1995-03-22 21:46:04 +00:00
Stefan Eßer 0f29bf015c Correct pcibus_setup() to return as soon as one test succeeds. 1995-03-22 21:35:39 +00:00
Jordan K. Hubbard 2d333dc2dd Add new EXTRACT_BEFORE_FLAGS and EXTRACT_AFTER_FLAGS variables to make
complex extraction rules easier.
1995-03-22 21:28:31 +00:00
Poul-Henning Kamp a414a675b3 Make /usr/include directories...
Submitted by:	rgrimes
1995-03-22 20:37:53 +00:00
Stefan Eßer 9c6f3c132b Delete PCI PCI bridge simulator code ...
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-22 19:51:59 +00:00
Stefan Eßer 41226e9d0a Set request sense data size from xp->req_sense_length if != 0.
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-22 19:45:22 +00:00
Nate Williams ab795d6abc Added gdb back in since it can no compile with the ld change. 1995-03-22 19:39:45 +00:00
Nate Williams 4979433a3c Modify the default behavior of the linker to no longer prefer static
members over shared library members.  This modification causes the linker
to use the first definition it sees for a symbol instead of having
priorities based on the library type.  This modification should allow
gdb to compile again.

Obtained from:
  Email conversation with Paul Kranenbury, but implemented completely by
  me.  If it doesn't work, it's my fault not his.
1995-03-22 19:38:07 +00:00
Jordan K. Hubbard a4b6c787e8 Finally remove the evil little bit of excreta that was the /etc/myname
file.  hostname is set in sysconfig.
1995-03-22 18:00:36 +00:00
David Greenman f5cf85d40a Removed unused fifth argument to vm_object_page_clean(). Fixed bug with
VTEXT not always getting cleared when it is supposed to. Added check to
make sure that vm_object_remove() isn't called with a NULL pager or for
a pager for an OBJ_INTERNAL object (neither of which will be on the hash
list). Clear OBJ_CANPERSIST if we decide to terminate it because of no
resident pages.
1995-03-22 12:24:11 +00:00
Stefan Eßer 6bf3dde846 Remove use of unitialised variable xp->req_sense_length.
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-22 11:00:23 +00:00
Stefan Eßer 33865a313c Remove spurious declaration of printf().
Submitted by:	Michael Reifenberger <[email protected]>
1995-03-22 10:52:05 +00:00
David Greenman 563128e49e Fixed potential sleep/wakeup race conditional with splhigh().
Submitted by:	John Dyson
1995-03-22 08:08:44 +00:00
Poul-Henning Kamp d7e1495a33 A little fix related to libm/msun migration.
Reviewed by:	phk
Submitted by:	rgrimes
1995-03-22 07:29:58 +00:00
David Greenman efea4e5256 Fixes and improvements from John Dyson:
Fixed the I/O statistics
Allow WD1007 type controllers to work
Support MULTI-BLOCK I/O
Correct delay to use port 0x84, reading the status register
	might not be a long enough delay.
Changed probe message to match SCSI type devices.
1995-03-22 05:23:01 +00:00
David Greenman c419d77e29 Added a check for wrong object size; print a warning, but deal with it
correctly. The warning will tell us that there is a bug somewhere else
in sizing the object correctly.

Submitted by:	John Dyson
1995-03-22 05:12:18 +00:00
David Greenman 8f4e17d4b2 Fixed bug in vm_mmap() where the object that is created in some cases
was the wrong size. This is the likely cause of panics reported by
Lars Fredriksen and Paul Richards related to a -1 blkno when paging
via the swap_pager.

Submitted by:	John Dyson
1995-03-22 05:08:41 +00:00
Andrey A. Chernov 3a46066496 Almost full syscons setup via rc & sysconfig 1995-03-22 03:29:55 +00:00
Jordan K. Hubbard 3bdf20c2d4 This just exited on most errors, some of which were legitimate and
I don't *want* to cause my application to be exited!  Some of the fprintfs()
should probably be calls to some dialog error menu popup anyway.
1995-03-22 02:06:06 +00:00
David Greenman 1b369d9858 Removed unused variable declaration missed in previous commit. 1995-03-21 23:09:53 +00:00
David Greenman 71263bf8db Removed do-nothing VOP_UPDATE() call. 1995-03-21 23:07:19 +00:00
Stefan Eßer 5b3f532eb1 New ISA specific PCI code.
Supports shared PCI interrupts.

Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-21 23:06:07 +00:00
Stefan Eßer 8673e05a9a Completely new PCI code:
1) Supports PCI to PCI bridge devices (and tries to initialise them,
   even if the BIOS is brain dead).
2) Supports shared PCI interrupts. Interrupt handlers now MUST return
   '0' if they found nothing to do, '1' otherwise.

New features tested with i486 systems based on the Intel Saturn and
a DEC 4channel Ethernet card only, but expected to work on most systems.

The option PCI_REMAP has been removed !

Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-21 23:01:06 +00:00
Stefan Eßer 1a4077c4c2 Stylistic changes. Update Wolfgang's e-mail address.
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-21 22:48:36 +00:00
Jordan K. Hubbard 2efda52f23 Make the fetch message a little more interesting and informative. 1995-03-21 22:43:36 +00:00
Stefan Eßer b4b37e9058 Silence "gcc -Wall".
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-21 22:43:04 +00:00
Stefan Eßer 067968d4d7 Cosmetic changes.
Submitted by:	Wolfgang Stnglmeier <[email protected]>
1995-03-21 22:41:19 +00:00
Stefan Eßer 82c5c9a9f0 Major cleanup: Stylistic changes, 386BSD specific code removed.
Adaptec to new PCI code.

Submitted by:	Wolfgang Stnglmeier <[email protected]>
1995-03-21 22:14:27 +00:00
Jordan K. Hubbard 49d60d606b Remove gratuitous remove and make it an ln -fs 1995-03-21 21:44:54 +00:00
Jordan K. Hubbard c951ad87a4 Update for new FAQ file locations. 1995-03-21 20:24:00 +00:00
Jordan K. Hubbard c80053bc55 Do a big re-org of the FAQs along the lines of those discussed awhile back.
It's time to start moving in the directions we've had in mind for awhile.
SGML for everything new and old stuff moved into a location where it can slowly
be aged and removed (basically, Text/).
1995-03-21 20:19:47 +00:00
Garrett Wollman 771edb14e9 Protocol-cloned routes should gain a reference to their parents to make
sure that rt->rt_parent values can never be re-used harmfully.
1995-03-21 19:50:34 +00:00
Bill Paul 8516cd0fa5 Use better/stronger/faster NIS lookup code: by using yp_match() instead of
the yp_first()/yp_next() combo, we let the database code in ypserv do some
of the work for us.
1995-03-21 19:47:12 +00:00
Garrett Wollman fabbf734e5 Change named starting convention to use $namedflags like most other
daemons that take command-line arguments.  Correct /etc/namedb installation
to use the correct files.
1995-03-21 16:44:04 +00:00
Garrett Wollman 1440dc3c88 Update root NS cache.
Delete bogus localhost.rev.
Add prototype localhost.rev and a script to create it automatically.
(NB to installl people: you should ask ``do you have a full-time connection
o the Internet?'', run this script, and enable named if the answer is
yes.)
1995-03-21 16:33:45 +00:00
Andrey A. Chernov 9dc5391c1c Bug fixed: even root was unable to edit restricted fields 1995-03-21 15:30:59 +00:00
Jordan K. Hubbard e017475bed Begin a long-overdue cleanup of this whole mess.
1. Move all system configuration variables into /etc/sysconfig
2. Adapt other files to use it.
3. Add a host of new variables for micro-managing your system in various
   ways.  For 2.1, /etc/sysconfig will be machine-edited so that the user
   doesn't even have to care at all about the various funny names we picked.
4. Enable dset.  We won't get it debugged if we never use it, and no one
   has said anything negative about it yet, so here goes!
5. Try to use one consistent style throughout.
1995-03-21 15:20:48 +00:00
Peter Dufault 3749fcff67 Set it so you can add and remove line disciplines without replicating
code for looking for open slots in table (and you could hide the table
if you wanted to).
1995-03-21 11:24:05 +00:00
Peter Dufault e8d9ff42ce Julian's suport of compressed tape drives. 1995-03-21 11:21:37 +00:00
Peter Dufault 3358f19c6e cd.c: Julian's CD audio cleanup
sd.c: Julian's removal of subdriver requests
st.c, scsi_tape.h: Julian's suport of compressed tape drives

Note: compressed tape drives are still not working fully.

scsiconf.h, scsi_base.c, scsi_driver.c: address problems in probes
and error console logs
1995-03-21 11:21:08 +00:00
David Greenman bc9ad24756 Disallow non page-aligned file offsets in vm_mmap(). We don't support this
in either the high or low level parts of the VM system. Just return EINVAL
in this case, just like SunOS does.
1995-03-21 10:15:52 +00:00
David Greenman f550a707bd Added a new version of trap_pfault() that disallows kernel page faults
to the user address space unless pcb_onfault is set. The code is currently
commented out because iBCS2 and process debugging parts of the kernel
need to be changed/fixed first.
1995-03-21 07:16:12 +00:00
David Greenman c6d5f3ac3e Changed some #ifdef DIAGNOSTIC code that I added to be #ifdef DEBUG. 1995-03-21 07:02:51 +00:00
Jordan K. Hubbard 99b1970f84 Fix apm and gsc rules to allow <blah>0' or just <blah>' to be shorthand.
[Actually, it's `<blah>*' but I'm not telling anyone]
1995-03-21 06:31:00 +00:00
Jordan K. Hubbard 3dd8895eb8 Add fetch-list command for Rod
Use ECHO_MSG macro for printing "===>" line things so that I can now turn
those OFF when I don't want them.
1995-03-21 03:59:13 +00:00
Poul-Henning Kamp 6950e7e24e make.conf doesn't postulate anything about libm now. 1995-03-21 02:55:33 +00:00
David Greenman fbcfcdf7db Fixed bug in the size == 0 case of msync() caused by a bogus return value
check..
1995-03-21 02:54:04 +00:00
Poul-Henning Kamp 72b799a9a3 msun becomes the default -lm the right way now. 1995-03-21 02:52:05 +00:00
Jordan K. Hubbard bc202f1b6e Make the describe rule generate more thorough information that's actually
of use to a front-end program.  Back out my bogus description of the `index'
target! :-)
1995-03-21 01:51:12 +00:00
Jordan K. Hubbard 9608972d54 Document the index target. 1995-03-21 01:31:43 +00:00
David Greenman b946193056 Fixed vinvalbuf() to work like NFS wants it to. The previous code wouldn't
flush pages in the vm object if V_SAVE was true.
1995-03-21 01:13:16 +00:00
David Greenman 7c1f6cedec Added a new boolean argument to vm_object_page_clean that causes it to
only toss out clean pages if TRUE.
1995-03-21 01:11:44 +00:00
Andrey A. Chernov ee02f1d697 Saved scroll fixed. 1995-03-21 01:06:07 +00:00
Bill Paul 2943bd1c53 Reviewed by: Bill Paul <[email protected]>
Submitted by:	Sebastian Strollo <[email protected]>

- In /usr/src/lib/libc/yp/yplib.c, function yp_first when clnt_call
fails with (r != RPC_SUCCESS) ysd->dom_vers should be set to 0! This
ensures that /var/yp/bindings/dom.vers will be read again on retry.
What happens now is that when our server is down and someone tries to
use yp they will continue to try until kingdom come. So:
        if(r != RPC_SUCCESS) {
                clnt_perror(ysd->dom_client, "yp_first: clnt_call");
                ysd->dom_vers = -1;
                               ^^^^ change to 0
                goto again;
        }
1995-03-21 00:48:55 +00:00
Andrey A. Chernov be27572a45 Better spelling of my name 1995-03-21 00:37:07 +00:00
Andrey A. Chernov eaf9238016 Fix wrong separator output
Submitted by: julian
Obtained from: newsgroup?
1995-03-21 00:26:32 +00:00
David Greenman 3682d2baf0 Made minor readability tweak. 1995-03-20 23:00:57 +00:00
Jordan K. Hubbard 39ad1abd89 Take out obsolete KERBEROS_IV build variable. Just eBones now.
Submitted by:	Mark Murray <[email protected]>
1995-03-20 21:35:15 +00:00
Garrett Wollman c2bed6a371 Better fix for the deletion of parents of cloned routes problem,
superseding the `nextchild' hack.  This also provides a way
forward to fix RTM_CHANGE and RTM_ADD as well.
1995-03-20 21:30:21 +00:00
Garrett Wollman cea0f2a090 Forgot pppcompress.c in PPP module. 1995-03-20 19:33:35 +00:00
Garrett Wollman 3432f42658 Forgot slcompress.c in SLIP module. 1995-03-20 19:31:47 +00:00
Garrett Wollman f065639f29 The discard, tunnel, SLIP, and PPP network interface pseudo-devices
are now dynamically loadable.  It doesn't make sense to do the same
for the loopback.
1995-03-20 19:25:49 +00:00
Garrett Wollman 69244b69db Support for pseudo-device LKMs. Note that this is restricted to only
one pseudo per module (a restriction which will eventually be lifted) and
isthus not in its final form.
1995-03-20 19:20:44 +00:00
Garrett Wollman 27a15c94ed Add support for pseudo-device LKMs. 1995-03-20 19:18:51 +00:00
Garrett Wollman 20e8807c09 This should be splimp() rather than splnet() since ifaddrs might go away
as a result of link-layer processing.
1995-03-20 18:31:51 +00:00
Garrett Wollman 9b626c29f7 Fix race conditions involved in setting IP multicast options. This should
fix Dennis Fortin's problem for good, if I've got it figured out right.

(The problem was that a `struct ifaddr' could get deleted out from under
the current requester, thus leaving him with an invalid interface pointer
and causing even more bogus accesses.)
1995-03-20 18:11:31 +00:00
Rodney W. Grimes 1a96efa2b8 Comment out declaration of kvm_uread until it can be fixed correctly. 1995-03-20 16:35:11 +00:00
Rodney W. Grimes 15f7fc2caa Change u_long to unsigned long to be consistent. 1995-03-20 16:17:50 +00:00
David Greenman 0426122fa0 Don't gain/lose an object reference in vnode_pager_setsize(). It will
cause vnode locking problems in vm_object_terminate().
Implement proper vnode locking in vm_object_terminate().
1995-03-20 10:20:42 +00:00
David Greenman 62b71ed629 Don't gain/lose a reference to the object when yanking its pages in
vinvalbuf()...it will cause vnode locking problems in vm_object_terminate,
and isn't necessary anyway.
1995-03-20 10:19:09 +00:00
David Greenman 9ba0a56334 Fixed "objde1" hang. It was caused by a "&" where an "&&" belonged in the
expression that decides if a wakeup should occur.
1995-03-20 10:14:55 +00:00
Rodney W. Grimes edbae4a194 Pretty much a complete rewrite of this Makefile.
Remove private mkdir command for /usr/include/g++, this is now
handled by mtree.

Make the whole file fit in 80 column output, sort the SRCS list and
split into .c and .cc sources.

Use $Id$ instead of $FreeBSD$ since we pulled support for this.

Add DPADD to match LDADD and now include <bsd.prog.mk> to define
the DPADD values (This is a hack until the .mk stuff can be corrected
so that ${LIB*} is visiable in bsd.lib.mk.)

Optimize beforeinstall target by eliminating a subshell.
1995-03-20 09:38:21 +00:00
Bill Paul 8538335f21 At last! Modified __ivaliduser() to do the same kind of user/host validation
that everyone else does: you can now use +host/-host, +user,-user and
+@netgroup/-@netgroup in /etc/hosts.equiv, /.rhosts, /etc/hosts.lpd and
~/.rhosts. Previously, __ivaliduser would only do host/user matches,
which was lame. This affects all the r-commands, lpd, and any other
program/service that uses ruserok().

An example of the usefullness of this feature would be a hosts.equiv
file that looks like this:

+@equiv-hosts

Since the netgroup database can now be accessed via NIS, this lets you
set up client machines once and then never have to worry about them
again: all hosts.equiv changes can now be done through NIS. Once I
finish with getpwent.c, we'll be able to do similar wacky things
with login authentication too. (Our password field substitution
will finally be on par with everyone else's, and I'll finally be
able to fully integrate my FreeBSD machine into my network without
having to worry about the grad students sneaking into it when I'm
not looking. :)

Danger Will Robinson! I tested this thing every which way I could, but
Murphy's Law applies! If anybody spots a potential security problem with
the way my matching algorithm works, tell me immediately! I don't want
crackers snickering and calling me names behind my back. :)
1995-03-20 07:29:55 +00:00
Andrey A. Chernov e86fff2c4a Fix wtmp logout
Submitted by: Gil Kloepfer Jr. <[email protected]>
1995-03-20 05:58:37 +00:00
David Greenman ff769afc81 Don't attempt to sync pages in the V_SAVE case of vinvalbuf; doing so can
lead to a deadlock. Just let the VM system deal with it.
1995-03-20 02:08:24 +00:00
David Greenman 83edfd47d8 Removed an unnecessary call to vinvalbuf after the page clean. 1995-03-20 02:06:09 +00:00
Andreas Schulz 261bbea610 Don't do anything if BATCH is specified and the port is interactive for
the package target.The port may is not build and the package fails
otherwise.
1995-03-20 00:41:36 +00:00
David Greenman 0bdb7528db Do proper vnode locking when doing paging I/O. Removed the asynchronous
paging capability to facilitate this (we saw little or no measureable
improvement with this anyway).

Submitted by:	John Dyson
1995-03-19 23:46:25 +00:00
David Greenman 9022e4ad9c Fixed bug introduced in the previous commit - the lock must be held until
after the call to exec_check_permissions().
1995-03-19 23:27:57 +00:00
David Greenman f5277ae71e Lose the lock on the vnode. Changes to implement proper locking in the
vnode pager now require this.

Submitted by:	John Dyson
1995-03-19 23:08:12 +00:00
Bill Paul e80307946b Whoops: expanding netgroups that reference multiple netgroups doesn't
work because parse_netgrp() doesn't recurse properly. Fixed by
changing

if (parse_netgrp(spos))
	return(1);
to

if (parse_netgrp(spos))
	continue;

inside parse_netgrp(). (Lucky for me I happen to have a fairly complex
'live' netgroup database to test this stuff with.)
1995-03-19 22:19:52 +00:00
Nate Williams c0585ea944 Separated out the _putchar & __cputchar() routines so that programs such
as tn3270 can replace _putchar(0 with their own routine and still keep
using the __cputchar() routine used by all of the other curses routines.

Reviewed by:	"Andrey A. Chernov, Black Mage" <[email protected]>
1995-03-19 21:47:51 +00:00
Poul-Henning Kamp ec71951908 Make extra arguments be subdirs to go through. 1995-03-19 21:26:00 +00:00
Nate Williams 8af57ca9dd Removed /usr/local/lib from the standard library search path to be
consistant.  Programs shouldn't rely on non-standard paths for bringing
in default libraries.

Suggested by:	Andreas Schulz <[email protected]>
1995-03-19 21:20:09 +00:00
Andreas Schulz 3cc5ba4318 Correct one little typing error from Rod :-).
lib/lib/pcap -> lib/libpcap.
1995-03-19 17:24:24 +00:00
David Greenman edf8a81561 Removed redundant newlines that were in some panic strings. 1995-03-19 14:29:26 +00:00
David Greenman 1b2cfc2645 Backed out change to panic call: As Chris just pointed out to me, panic()
does indeed work like printf(). gdb gets the string untranslated for some
reason.
1995-03-19 13:44:03 +00:00
Joerg Wunsch b2fbeb9a91 Finally applying my own fix. :-)
>Description:

ctm(1) sometimes did not free up all used resources (open pipes and
processes, heap memory).  This happened whenever one of the passes
ended prematurely, and it became very apparent when running it on
a bunch of already applied deltas, resulting in a ``gunzip: resource
temporarily unavailable'' due to the maxproc # exhausted.
1995-03-19 13:42:54 +00:00
Joerg Wunsch cb0b0e16cd libkvm exports kvm_uread(), so do declare it in the header file.
Got apparent by Philippe's -Wall patch for /usr/bin.
1995-03-19 13:36:49 +00:00
Joerg Wunsch ec4f225196 Cast the offset of one call to lseek() to off_t, as it's already done
in all other places here.

This is a hack, the interface should be changed to use off_t's
everywhere around, but this will require to update all the programs
that happen to use libkvm.
1995-03-19 13:33:05 +00:00
Joerg Wunsch 0fd510b71a You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.

I (Joerg) finished most of Philippe's cleanup.  /bin/sh will still
need *allot* of work, however.

Submitted by:	[email protected] (Philippe Charnier)
1995-03-19 13:29:28 +00:00
David Greenman 967a3bf893 Fix from Doug Rabson: Don't try to release a pbuf we didn't get.
Minor style change by me.
1995-03-19 13:28:54 +00:00
Andreas Schulz 0bc6b9462b Change the xmkmf call to a xmkmf -a call. This should be more correct for
all X11R5 and X11R6 ports. This is the way how it should be normally
used according the manuals. Only pre-X1R5 ( X11R4, X11R3) ports can't
handle it.
1995-03-19 12:49:06 +00:00
David Greenman c01a9b8ca0 Incorporated 4.4-lite vnode_pager_uncache() and vnode_pager_umount()
routines (and merged local changes). The changed vnode_pager_uncache
gets rids of the bogosity that you can call the routine without
having the vnode locked. The changed vnode_pager_umount properly locks
the vnode before calling vnode_pager_uncache.
1995-03-19 12:36:10 +00:00
David Greenman 0f52ba3503 Removed bogus, commented out, call to vnode_pager_uncache(). 1995-03-19 12:11:13 +00:00
David Greenman 50475e8bd3 Removed unnecessary call to vnode_pager_uncache(). We automatically clear
the VTEXT flag after all mappers have finished with the object.
1995-03-19 12:08:03 +00:00
Ollivier Robert 475239d0d8 Add a missing "\" in a printf before the "n". 1995-03-19 12:01:23 +00:00
David Greenman ab828ab8bd Moved call to vnode_pager_uncache in rename() to before the VOP_RENAME.
It was previously after the VOP_RENAME and the reference and lock on
the vnode had already been lost, allowing interesting internel
inconsistencies. This is one of the two reasons why freefall was crashing
every hour or two (the other being nullfs bugs).
Don't call vnode_pager_uncache in revoke(). revoke() is only allowed on
VCHR and VBLK vnodes.
1995-03-19 11:16:58 +00:00
Joerg Wunsch ae1f8971f2 Make the catman command (in the commented-out example) run by user `man'
instead of `root'.
1995-03-19 10:10:42 +00:00
David Greenman 1e1ece7deb Fix a call to panic: panic doesn't do token substitution on the panic
string.
1995-03-19 09:47:32 +00:00
David Greenman d7e3d98a5e Patch from Kirk McKusick to fix a bug introduced in the Poul's vfs_cache
rewrite.
1995-03-19 09:33:51 +00:00
Rodney W. Grimes df9059a610 Add installation of include files from libpcap. 1995-03-19 08:23:47 +00:00
Poul-Henning Kamp c0ac91fe89 Make newvers.sh usable from other places... 1995-03-19 07:25:41 +00:00
Poul-Henning Kamp afb8c020f0 Create osreldate.h from sys/conf/newvers.sh if we an find it. This
should take a completely ridiculous reboot out of the "make release"
process...
1995-03-19 07:25:17 +00:00
Poul-Henning Kamp f06a5580a6 add a couple of missing #include lines 1995-03-19 07:00:52 +00:00
Poul-Henning Kamp 2b76585664 add a \t which has been nagging me too long 1995-03-19 06:28:48 +00:00
Bill Paul 409495f6c7 Two major changes:
- Added support for reading netgroups from NIS/YP in addition to the
local /etc/netgroups file. (Note that SunOS and many other systems only
support reading netgroups via NIS, which is a bit odd.)

- Fix Evil Null Pointer Dereferences From Hell (tm) that caused
parse_netgrp() to SEGV when expanding netgroups that include
references to other netgroups. Funny how nobody else noticed this.

This is the first step in implimenting +@netgroup substitution in
getpwent.c and any other places that could use it and don't already
support it (which is probably everywhere).
1995-03-19 06:16:03 +00:00
Poul-Henning Kamp 9346bafa46 And all serial chars with 0x7f to discard parity bits. 1995-03-19 06:10:32 +00:00
Poul-Henning Kamp 9def6b02b2 Make the +%d-%d part +%03d-%03d so ls(1) sorts the files more sensibly. 1995-03-19 06:09:01 +00:00
Steven Wallace cb75121aaf Add back SNDCTL_DSP_SETBLKSIZE ioctl code that got zapped.
Submitted by:	Jim Lowe <[email protected]>
1995-03-18 20:01:10 +00:00
David Greenman 4e83f749ec Don't sync the inode date changes of character special devices
during the FS sync. The system would appear to hang momentarily
if there was a large backlog of I/O. This is because the vnode
remains locked during the output - preventing normal character
I/O. The problem was exacerbated by the FFS contiguous block
allocation fixes and a semi-broken disksort(). The inode/date
will still be synced during a normal FS dismount and whenever
the inode is changed for other reasons.
1995-03-18 18:03:29 +00:00
Andrey A. Chernov 798563cdfb Fix authunix_maxgrouplist test
Submitted by: Scott Hazen Mueller <[email protected]>
1995-03-18 17:55:03 +00:00
Andrey A. Chernov cb850faba6 Fix sparse files handling
Submitted by: Alan Bawden <[email protected]>
1995-03-18 17:45:13 +00:00
Bruce Evans ac6776236b Restore the 4.4lite version which apparently was clobbered by a repository
copy.  The differences are trivial.  I have no backups of the clobbered
history.
1995-03-18 17:38:43 +00:00
Nate Williams e6fc505e8f Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 17:36:30 +00:00
Nate Williams c36c788214 Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 17:18:15 +00:00
Bruce Evans 62e2a046b2 Obtained from: 1.1.5 (originally by Andrew Moore)
Add the manpage for the stuff in <machine/floatingpoint.h>.
1995-03-18 16:54:35 +00:00
Poul-Henning Kamp 475e2a7de8 Fix the Name-cache counters. I didn't realign the negative hits. 1995-03-18 08:55:15 +00:00
Rodney W. Grimes dddb7b460b Remove private mkdir for /usr/include/ss, no handled by mtree. 1995-03-18 08:34:42 +00:00
Rodney W. Grimes 0bdd4426bf Create /usr/share/games/quiz.db via mtree and remove private mkdir command
from Makefile.
1995-03-18 08:30:48 +00:00
Rodney W. Grimes f8e028be26 Add Intel EtherExpress16 (ix0) driver.
Reviewed by:
Submitted by:
Obtained from:
1995-03-18 08:12:48 +00:00
Poul-Henning Kamp d4a984cba4 Add "ix0" Intel EtherExpress. 1995-03-18 08:04:18 +00:00
David Greenman 0338878131 Woops, add back that #define...it's used later in the file. 1995-03-18 07:06:51 +00:00
Rodney W. Grimes 2a3e102a44 Correct chmod of /usr/include/rpcsvc to match mtree file. 1995-03-18 07:04:23 +00:00
Rodney W. Grimes 07cf92fa27 Temporarily add mkdir/chown of /usr/include/${LUDIR} so that things
are consistent with the mtree file.  These and all other mkdir/chown/
chmod calls shall be removed in a future version of this file.
1995-03-18 07:03:51 +00:00
Rodney W. Grimes 5a9e9cbac4 Use new mtree file to rebuild /usr/include. 1995-03-18 07:02:10 +00:00
Rodney W. Grimes 2c4bf858fd Use new mtree file to rebuild /usr/include.
Replace rm -f; ln -s with ln -sf when installing LATIN1LINKS, also
do not attempt to chown/chmod these links.
1995-03-18 07:01:53 +00:00
Nate Williams 50dfa3861b Don't rely on the shared library bringing in libmd, do it explicitly.
Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 06:50:00 +00:00
Nate Williams 79f5f586ac Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
1995-03-18 06:41:08 +00:00
David Greenman 9e4817309b Fixed comments and removed b_cylinder #define. 1995-03-18 06:38:04 +00:00
David Greenman 89247e0412 Integrated change from 1.1.5: Fixed broken disksort to sort by pblkno
rather than by cylinder.
1995-03-18 06:32:48 +00:00
Bill Paul 89047c9c7c Fix 'putting +: in /etc/group causes many programs to dump core' bug
by heading off possible null pointer dereferences in grscan(). Also
change getgrnam() slightly to properly handle the change: if grscan()
returns an rval of 1 and leaves a '+' in the gr_name field and YP is
enabled, poll the YP group.byname map before giving up. This should
insure that we make every effort to find a match in the local and
YP group databases before bailing out.
1995-03-18 05:03:10 +00:00
Andrey A. Chernov e831146aee Don't use user PATH into environment for sec reasons 1995-03-18 02:19:25 +00:00
Andrey A. Chernov 24e24f916f 1) Call nroff instead of groff, nroff have some internal groff options
2) Use absolute pathname for nroff
3) Use -Tascii instead -Tlatin1, too many strange chars (like
soft hyphens f.e.) appearse in other case.
1995-03-18 02:11:56 +00:00
Paul Traina 8454052590 rename ngroff to groff 1995-03-18 01:23:06 +00:00
David Greenman 806e386083 In vm_page_alloc_contig: Removed a redundant semicolon and used 'm' instead
of &pga[i] in one place.
1995-03-18 01:04:36 +00:00
Justin T. Gibbs 0c40ff690c Increase the DELAY used in ahc_poll. This is only used during intial
probe of the device and shouldn't affect normal operation.  It seems that
some version of the aic7870 are extreamly slow in clearing their interrupt
register so the added delay is required to ensure we don't poll a stale
interrupt value.

Clean up debugging printfs and stuff superflous output into #ifdef AHC_DEBUG.

Ensure that sdtrpending and wdtrpending are cleared in all cases after
we recieve an SDTR or WDTR message.

With this commit, the 294x should work or at least be much closer to
working properly.
1995-03-17 23:58:27 +00:00
Justin T. Gibbs b8d72a5ae8 Make the aic7xxx assembler take quoted strings as a single token.
Make $Id the version variable which required the quoted string "feature".
1995-03-17 23:54:17 +00:00
Garrett Wollman e1838a91c1 Beginnings of support for loadable pseudo-devices. bsd.kmod.mk support
and Makefiles for the more interesting ones to come on Monday.
1995-03-17 22:02:18 +00:00
Steven Wallace c8c244128f Change probe output to gus0 instead of snd4. 1995-03-17 21:27:39 +00:00
Nate Williams 738ff67657 Gcc v2.6.3 currently has a problem with templates. Specifically, with
default switches, template functions get EXTERNAL linkage in each file
in which they occur, causing multiple definition errors during
linking.  The enclosed patch (from gnu.g++.bug) appears to solve the
problem (I enclose the accompanying message as well).

This patch fixes the multiply defined template functions bug
which was introduced in 2.6.1.

Submitted by:	"Justin T. Gibbs" <[email protected]>
Obtained from:  Jason Merrill at cygnus support on G++ mailing list
1995-03-17 21:24:25 +00:00
Andrey A. Chernov dd970fbdb0 Fix savestring & gdb conflict
Moreover, this fix not breaks any pgm which uses readline's savestring
1995-03-17 21:11:53 +00:00
Joerg Wunsch 2dfe718316 Include a file system debugger fsdb(8). 1995-03-17 19:28:59 +00:00
Rodney W. Grimes 5ccb11c757 Remove extra fi that caused this script to fail during boot. 1995-03-17 17:57:24 +00:00
Rodney W. Grimes f71681dcf8 Add dummy lchown function so that cpio understands 4.4 symbolic links.
Reviewed by:	phk
1995-03-17 07:52:23 +00:00
David Greenman 45e3e324cc Changed some (incorrect) nfsrv_vput()'s back into regular vput()'s. This
fixes the last of the known NQNFS problems (until I find more, that is :-)).
1995-03-17 07:45:19 +00:00
Poul-Henning Kamp 5edd0e154f <libkern/libkern.h> has moved to <sys/libkern.h> (repository copy).
Since /usr/include/libkern doesn't and shouldn't exist, this is the
least evil way to handle this.
1995-03-17 06:15:40 +00:00
Poul-Henning Kamp 48c51d3282 Have include be the first $SUBDIR, this avoid install failure with the
kludgeous install rule in perl/x2p.

Pointed out by:	rgrimes
1995-03-17 04:59:44 +00:00
Poul-Henning Kamp 785bd4b416 Dont install DES bits in cdrom area. 1995-03-17 04:54:13 +00:00
Poul-Henning Kamp 64988eb339 Remove reference to fsdb(8). We don't have it. 1995-03-17 04:41:18 +00:00
Poul-Henning Kamp 2b65c0b067 Remove a spurious printf. 1995-03-17 04:39:41 +00:00
David Greenman cb09d35cb0 Added a new field to the pci_device struct called pd_shutdown to specify
a device specific shutdown routine for devconf. Assign the value of this
to the kern_devconf struct. Implement a device shutdown routine for if_de
that disables the device. This will stop the device from corrupting memory
after a reboot.
1995-03-17 04:27:21 +00:00
David Greenman 3e3eb41588 Call dev_shutdownall() just after unmounting filesystems. 1995-03-17 04:19:19 +00:00
David Greenman 6a21a04a14 Changed names of goaway routines into shutdown routines. 1995-03-17 04:18:07 +00:00
Andrey A. Chernov 0efbb29eec Upgrade 1995-03-17 01:40:52 +00:00
Poul-Henning Kamp c5b0a90902 Remove imutable bits, they will not survive anyway. First cut at cdrom
make rule.
1995-03-16 22:54:42 +00:00
Poul-Henning Kamp 38b590b187 Fix a spelling error.
Submitted by:	Stephen McKay <[email protected]>
1995-03-16 22:03:09 +00:00
Poul-Henning Kamp b372c217fc Fixed Stephen McKay's email address. 1995-03-16 22:01:57 +00:00
Garrett Wollman 0b11bfa164 Fix bonehead formatting error. 1995-03-16 21:43:03 +00:00
Garrett Wollman be02aec01b Print out the new flags. 1995-03-16 20:29:11 +00:00
Garrett Wollman bbf3a56610 Add four more filesystem flags:
VFCF_NETWORK (this FS goes over the net)
	VFCF_READONLY (read-write mounts do not make any sense)
	VFCF_SYNTHETIC (data in this FS is not real)
	VFCF_LOOPBACK (this FS aliases something else)

cd9660 is readonly; nullfs, umapfs, and union are loopback; NFS is netowkr;
procfs, kernfs, and fdesc are synthetic.
1995-03-16 20:23:48 +00:00
Garrett Wollman f1b2407b0b Print out flags as text rather than a number. 1995-03-16 18:37:47 +00:00
Garrett Wollman cff19ac2ef Statically-compiled filesystems now use a VFCF_STATIC flag rather than
abusing the refcount.
1995-03-16 18:31:00 +00:00
Garrett Wollman 0e5ca0d837 Document net.inet.ip.sourceroute MIB variable. 1995-03-16 18:24:19 +00:00
Garrett Wollman 1025071f85 Reject source routes unless configured on by administrator. 1995-03-16 18:22:28 +00:00
Bruce Evans b5e8ce9f12 Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'.  Fix all the bugs found.  There were no serious
ones.
1995-03-16 18:17:34 +00:00
Stefan Eßer 11098d3bad Prepare for shared interrupts (required by the new PCI code that adds
support for PCI PCI bridges, e.g. found on 4ch. Ethernet cards).

Submitted by:   Wolfgang Stanglmeier <[email protected]>
1995-03-16 17:41:20 +00:00
Garrett Wollman ef0cdf3329 Add inet_ntoa() and replace ARP's private routine with same. 1995-03-16 17:32:27 +00:00
Stefan Eßer 9b2fa02dd9 Prepare for shared interrupts (required by the new PCI code that adds
support for PCI PCI bridges, e.g. found on 4ch. Ethernet cards).

Submitted by:	Wolfgang Stanglmeier <[email protected]>
1995-03-16 17:31:19 +00:00
Bruce Evans 3bf0c362ad Remove isa/prof_machdep.c. It doesn't exist yet. 1995-03-16 17:18:49 +00:00
Garrett Wollman b53e909d11 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
Garrett Wollman 9d3b840f0a Semi-major RC file cleanup:
- Do ntp right
- Move recenrly-added and long-standing junk from rc.local into rc, so
. that rc.local truly is LOCAL.
- Fix named invocation to use the correct boot file location.
1995-03-16 16:58:01 +00:00
Garrett Wollman d99c7a23fa This set of patches enables IP multicasting to work under FreeBSD. I am
submitting them as context diffs for the following files:

sys/netinet/ip_mroute.c
sys/netinet/ip_var.h
sys/netinet/raw_ip.c
usr.sbin/mrouted/igmp.c
usr.sbin/mrouted/prune.c

The routine rip_ip_input in raw_ip.c is suggested by Mark Tinguely
([email protected]). I have been running mrouted with these patches
for over a week and nothing has seemed seriously wrong. It is being run in
two places on our network as a tunnel on one and a subnet querier on the
other. The only problem I have run into is that mrouted on the tunnel must
start up last or the pruning isn't done correctly and multicast packets
flood your subnets.

Submitted by:	Soochon Radee <[email protected]>
1995-03-16 16:25:55 +00:00
Stefan Eßer 619e03fa69 Reading NCR registers is not secure at all times, so prevent
an ordinary user from doing this. (Problem pointed out by
Guido van Rooij).
1995-03-16 15:10:11 +00:00
Stefan Eßer f37ec55185 Make ncr.c compile again (PRINT_ADDR() had been patched
into the middle of a printf() by a buggy diff ...).

Submitted by:	rgrimes
1995-03-16 13:02:40 +00:00
Poul-Henning Kamp 544eee1a54 Well, it seems like the vn driver is pretty hosed still, so don't use it :( 1995-03-16 05:58:28 +00:00
Poul-Henning Kamp 16e5d87eab Code to use vndevice instead of floppy to build floppy images. 1995-03-16 05:40:02 +00:00
Paul Richards eb8e92bd93 Added my little project to stop ps truncating output to pipes. 1995-03-16 05:07:09 +00:00
Poul-Henning Kamp 16ecbe2b7f Added cons30, cons43 and cons60 terminal types (==cons25 with more lines).
Theres a mono entry for them all, and cons50 already existed.
1995-03-16 01:37:41 +00:00
Joerg Wunsch 3ce2ec287b Included the (now use{able,ful}) catman program as an (commented out)
example.
1995-03-15 22:58:19 +00:00
Joerg Wunsch 01e694c2e2 Wolfram's replacement for the oldish ugly catman(1) program. The new
one is much more intelligent, not only that it would accept multiple
man page locations, it also behaves like ``make'' in that it will only
deal with cat pages that are out of date (by default).

Wolfram also wrote a man page for it.

Submitted by:	[email protected] (Wolfram Schneider)
1995-03-15 22:47:38 +00:00
Peter Dufault 66b0ec7d86 Plug lurking bug when a device returns ASC:ASCQ 0xff:0xff 1995-03-15 22:42:25 +00:00
Bill Paul d93cc1a933 According to stdlib.h, malloc and realloc return void * but error_table.y
declares them to return char *. For some reason, this causes no problems
with the old compiler tools, but doing a 'make world' with gcc 2.6.3 in a
seperate DESTDIR got me this error:

yacc -d /usr/src/usr.bin/compile_et/error_table.y
cc -O2 -I. -I/usr/src/usr.bin/compile_et/../../lib/libcom_err   -I/mnt/usr/include -c y.tab.c -o error_table.o
In file included from /usr/src/usr.bin/compile_et/et_lex.lex.l:11,
                 from /usr/src/usr.bin/compile_et/error_table.y:233:
/mnt/usr/include/stdlib.h💯 conflicting types for `malloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `malloc'
/mnt/usr/include/stdlib.h:104: conflicting types for `realloc'
/usr/src/usr.bin/compile_et/error_table.y:80: previous declaration of `realloc'
*** Error code 1

Stop.

Declaring malloc and realloc to return void * fixes this. It could be that
the new gcc is a bit more picky about these things.
1995-03-15 19:05:28 +00:00
Stefan Eßer 8e95bee6d4 Conditionalise debug message.
Submitted by:	Peter Dufault <[email protected]>
1995-03-15 18:15:32 +00:00
Bruce Evans fe7172b1a6 Fix support for extended partitions (forgot to release the buffer). 1995-03-15 16:25:08 +00:00
Peter Dufault 1a084a9abd Change it so it doesn't say "probe0" for SCSI probe "device". 1995-03-15 14:44:01 +00:00
Peter Dufault de6a307ec7 Document scsi options 1995-03-15 14:27:01 +00:00
Peter Dufault 7a162ba150 Add scsi/scsi_sense.c 1995-03-15 14:23:18 +00:00
Peter Dufault 73d664ca78 1. Add text for ASC/ASCQ
2. Clean up probe messages.  This is how I propose it looks for 2.1 so
if you don't like it you have my e-mail address.
1995-03-15 14:22:12 +00:00
David Greenman 5eb7d0cd2e Special cased the handling of mb_map in the M_WAITOK case. kmem_malloc()
now returns NULL and sets a global 'mb_map_full' when the map is full.
m_clalloc() has further been taught to expect this and do the right thing.
This should fix the "mb_map full" panics that several people have reported.
1995-03-15 07:52:06 +00:00
David Greenman 3669a02157 Changed manual page to conform to the reality in FreeBSD. 1995-03-15 07:08:33 +00:00
Poul-Henning Kamp 76f4de663a Extract the cpio-floppy relative to the root, not /stand. 1995-03-15 06:16:10 +00:00
Poul-Henning Kamp e12c435569 I belive the floppies work as expected now. (incl the fixit) 1995-03-15 06:14:19 +00:00
Bill Paul b337d29402 Repeat after me kids: "I will not try to install files into a directory
when I'm not sure whether or not that directory exists."

Today I discovered that rebuilding /usr/include completely from scratch
doesn't work, because the libss Makefile tries to install headers into
/usr/include/ss, which 'make includes' does not create. The result is that
the libss Makefile plants the header files in /usr/include as individual
files called 'ss,' with the second one overwriting the first, and the
third one overwriting the second. So instead of a directory called
/usr/include/ss, you end up with just one file called /usr/include/ss with
only the last header file in it. Check out /usr/include/ss on freefall
and you'll see what I mean.

I've modified the beforeinstall target in the libss Makefile to check
for the presence of the ${DESTDIR}/usr/include/lbss directory and to
create it if it isn't already there. Hopefully I did it right.
1995-03-15 01:33:05 +00:00
David Greenman e8f1ce6f5a Added $Id$ 1995-03-14 22:15:36 +00:00
David Greenman 2c8fe19f89 pcb allocations are not always done on behalf of a process; it is not
okay to wait.
1995-03-14 21:50:55 +00:00
Ollivier Robert 5eef901954 Add gnu/usr.sbin in the installmost and most targets.
Reviewed by:	roberto
Submitted by:	[email protected]
1995-03-14 21:32:46 +00:00
Stefan Eßer abfefaa786 Fix "-ssync=xx" option. 1995-03-14 21:12:26 +00:00
David Greenman 3c6e6efc95 Added manual page for DEC DEFPA and DEFEA FDDI adapters.
Submitted by:	Matt Thomas
1995-03-14 09:27:20 +00:00
David Greenman d41f24e742 Added support for generic FDDI and the DEC DEFEA and DEFPA FDDI adapters.
Submitted by:	Matt Thomas
1995-03-14 09:16:07 +00:00
David Greenman 78dfa6036a Removed "-D" option and made symbols load all the time. They will be
discarded if the kernel isn't built with DDB.
1995-03-14 08:21:53 +00:00
Poul-Henning Kamp 2706402fd9 This is the shared version of the libgcc which we will need for 2.0 stuff
to run on 2.1.
Obtained from:	2.0-RELEASE bindist
1995-03-14 00:06:11 +00:00
Poul-Henning Kamp 3bc93c76c6 Added a fixit floppy to the rules. 1995-03-13 20:09:38 +00:00
Poul-Henning Kamp c66585d539 Disabled gdb until it compiles. I need make world to work... 1995-03-13 19:14:05 +00:00
Andrey A. Chernov 00c965147b Fix wbkgdset macro
Submitted by: Andreas Wetzel <[email protected]>
1995-03-13 19:02:04 +00:00
Steven Wallace a91ccb55cf Change device entry examples to reflect the following:
Remove PAS-only entry for OPL as ache pointed out.
Update OPL comment to show OPL-2 or OPL-3 support as it is auto-detected.
1995-03-13 18:49:37 +00:00
Andrey A. Chernov 4ad6de4413 Bump SHLIB_MAJOR to 263 to match ../Makefile.inc 1995-03-13 01:30:02 +00:00
Andrey A. Chernov 34ee6d3450 Make /dev/pss instead of /dev/sndproc (unused) 1995-03-13 00:10:40 +00:00
Steven Wallace 12fd08535f Remove old snd file configuration list and add new file list
for the snd controller and the different sound devices.

Update LINT to include all sound device drivers using new format.

Reviewed by:	wollman
1995-03-12 23:43:15 +00:00
Joerg Wunsch 18c0c440eb Do not try to make any notice if the PID file cannot be created.
Makes folks happy that run slattach in single-user, where /var/run is
probably missing.
1995-03-12 23:37:28 +00:00
Steven Wallace 1e25d964d2 Reorganize how sound devices are configured. Use a snd controller
with individual devices for each type of sound card:
  opl, sb, sbxvi, sbmidi, pas, mpu, gus, gusxvi, gusmax, mss, uart

EXCLUDE_* options are no longer required to be included in the config file.
They are automatically determined by local.h depending on the devices
included.

Move #includes in local.h to os.h so files are included in the proper
order to avoid warnings.

soundcard.c now has additional code to reflect the device driver
routines needed.

Define new EXCLUDE_SB16MIDI for use in sb16_midi.c and dev_table.h.

#ifndef EXCLUDE_SEQUENCER or EXCLUDE_AUDIO have been added to
soundcard.c and sound_switch.c where appropriate.

Probe outputs changed to reflect new device names.

Readme.freebsd not needed.  Update sound.doc with new config instructions.

Reviewed by:	wollman
1995-03-12 23:34:12 +00:00
Andrey A. Chernov c14b1eb830 Add cmp -s to beforeinstall target 1995-03-12 23:21:29 +00:00
Joerg Wunsch 82f5379bc5 Finally get rid of this bothering ``biodone: buffer already done''
warning.  The buffer needs only to be `biodone()' again if the format
operation timed out; otherwise fdstate() did already do the job.
1995-03-12 22:40:56 +00:00
Ollivier Robert 40ac60750c Could some kind soul with commit power please add this site to the mirrors
list? (It should be added at the bottom to the sites serving export-
restricted code, please)

Country         Site and Maintainer
=======         ========================================================
Brazil          ftp://ftp.iqm.unicamp.br/pub/FreeBSD
                Pedro A M Vazquez <[email protected]>

Reviewed by:	roberto
Submitted by:	Mark Murray <[email protected]>
1995-03-12 22:34:05 +00:00
Poul-Henning Kamp 0282d7a383 Don't install shared libgcc, we can't do it this way.
I will uuencode and check in to a "compat20" area the 2.0-RELEASE version.
1995-03-12 20:17:07 +00:00
Bill Paul f7fa522e95 Impliment -ad and -au flags in addition to -a and document the change
in the man page. ifconfig -au affects all interfaces marked as up,
and ifconfig -ad affects only the interfaces marked down. ifconfig -a
still handles everything. This change is purely for compatibility with
SunOS, for those who might be accustomed to the SunOS ifconfig's
behavior.
1995-03-12 19:05:03 +00:00
Bruce Evans f2a5c98e24 Clean up white space. 1995-03-12 15:25:32 +00:00
Joerg Wunsch 21bfcc9f8c Make slattach create a PID file under /var/run when the connection is
established.  This way, automatic scripts are possible that might
control the SLIP connection.  It's unacceptable for a daemon that's
being controlled by a variety of signals to not leave its PID
somewhere.  The file name contains the terminal path name component of
the associated tty device, so it should be unique even with multiple
parallel slattach's running.  The file will be unlinked at regular exit.

Also found a minor bug in the option handling by compiling with -Wall.
1995-03-12 15:04:18 +00:00
Bruce Evans 918bed7582 Remove `|| flags & ALT == 0' which was an obscure no-op, not a
parenthesization/precedence bug.
1995-03-12 13:53:51 +00:00
Ugen J.S. Antsilevich 9870b4d2de Allocate memory as M_IPFW,now we can watch firewall memory usage
in vmstat..
1995-03-12 13:28:13 +00:00
Ugen J.S. Antsilevich 1079e644a8 Fix it - now this programm should work probably..It is
still commented out in rc and i ask everybody to test it and
reply  if it makes any troubles...If no - very good..
1995-03-12 13:27:24 +00:00
Bruce Evans d26be6f09d Obtained from: 1.1.5. Originally by jtc. Cosmetically changed for this
commit by bde.

Fix bugs in floating point formatting.  The 4.4lite version is similar
to revision 1.3 in old-cvs and is missing all of jtc's fixes in revision
1.4 in old-cvs.  Revision 1.2 in ncvs fixed one of the old bugs but
introduced at least one new one (for %.0e).

old-cvs log:
revision 1.4
date: 1993/11/04 19:38:22;  author: jtc;  state: Exp;  lines: +33 -20
My work from NetBSD to make printf() & friends ANSI C compliant.
Fixes several bugs in floating point formatting:
  1. Trailing zeros were being stripped with %e format.
  2. %g/%G formats incorrect.
  3. Lots of other nits.
1995-03-12 13:26:49 +00:00
Ugen J.S. Antsilevich a28fb64b82 Save all changed devices so thet dset would be able to retrive
data and device driver could change it as it wishes to..
1995-03-12 13:25:51 +00:00
Ugen J.S. Antsilevich 3f033b0f76 Add M_DEVS for list of saved isa_device's
and M_IPFW for firewall chans memory on the same opportunity,
theese types of memory are unique enough to have own identifiers and
besides vmstat looks much more useful and right for those now
1995-03-12 13:25:01 +00:00
Ugen J.S. Antsilevich 341dbf8041 Add id_next field to struct isa_device,this does not
breaks anything and needed only in userconfig to make dset work
for now..
1995-03-12 13:23:10 +00:00
Bruce Evans 1475d9283e Move a kernel inline function inside `#ifdef KERNEL' so that including
<vm/vm.h> doesn't cause warnings about nonexistent functions called
by the inline function.  Clean up the formatting of the function.
1995-03-12 12:42:00 +00:00
Bruce Evans 133d0cef4e Fix config-time syntax errors in sound options. 1995-03-12 12:18:43 +00:00
Bruce Evans 97f567ae95 Forward-declare `struct rpc_err' so that it isn't declared inside a
prototype when <rpc/clnt.h> isn't included.
1995-03-12 12:13:37 +00:00
Atsushi Murai 9cfb8f7ee9 Adding tunnel pseudo-device for Network Installation with User process PPP.
Reviewed by:	[email protected]
1995-03-12 12:10:35 +00:00
Atsushi Murai 108136679f Adding GETTING START and so on.
Submitted by:	[email protected]
1995-03-12 12:03:48 +00:00
Bruce Evans dad6f71aed Remove the last vestige of COMMENT_BEGIN. 1995-03-12 11:47:20 +00:00
Bruce Evans 60ae9f8840 Undo most of the changes in the gcc-2.6.3 "upgrade"
- Don't define NO_IMPLICIT_EXTERN_C here.  It is already the default
  (defined in i386/bsd.h).
- Don't lose the fixed comment about FUNCTION_PROFILER.
- Don't lose the define of NO_PROFILE_DATA.

Replace the unused define of COMMENT_BEGIN by the less-unused define
of ASM_COMMENT_START.  COMMENT_BEGIN was only defined in i386-specific
files and was not used in any part of gcc-2.6.3.  ASM_COMMENT_START
is defined for several targets and is used for stuff that we don't
support (dwarf).
1995-03-12 11:45:12 +00:00
cvs2svn 36d59faf6a This commit was manufactured by cvs2svn to create branch 'VENDOR-cvs'. 1995-03-12 10:18:55 +00:00
Joerg Wunsch 8dcdb65e4e Add my script here to make people's life easier when importing new
stuff.  I'd like to have it in CVS, and i figured that this might be
the best place to go.

Someone (phk?) could install it into /usr/local/bin on freefall, for
convenience.

Suggested by: phk
1995-03-12 10:18:54 +00:00
Poul-Henning Kamp fd6eef4fd9 Remove a bunch of funtions that are in libc already.
Add back the shared libgcc, now that we don't use it to link against.
1995-03-12 09:37:26 +00:00
Bruce Evans ec00834c18 Finish the previous change. The device name got lost in diskerr(). 1995-03-12 08:17:30 +00:00
David Greenman c4ed5a07a5 Fixed obsolete comment. 1995-03-12 08:11:34 +00:00
David Greenman 6879ca0fcd Deleted vm_object_setpager(). 1995-03-12 08:05:46 +00:00
David Greenman 61ca29b0e5 Deleted vm_object_setpager(). 1995-03-12 07:58:29 +00:00
David Greenman 4bb624613f Explicitly set object->flags = OBJ_CANPERSIST. 1995-03-12 07:56:06 +00:00
Poul-Henning Kamp 47f196941e Update a couple of counters. 1995-03-12 02:01:20 +00:00
Poul-Henning Kamp dc0b7482de Report the negative hits in the Namei section. 1995-03-12 01:58:18 +00:00
Poul-Henning Kamp c3f4fea40c Don't use curses until initialized. 1995-03-12 01:47:08 +00:00
David Greenman 3d2a8cf3d9 Added a comment. 1995-03-11 22:29:07 +00:00
David Greenman 17dda4c929 Added some additional DIAGNOSTIC code that makes sure that freed
memory addresses and types are with the valid range. Increased
MAX_COPY to 256 (used to verify no freed memory use with DIAGNOSTIC).
1995-03-11 22:28:16 +00:00
David Greenman a14e8fd032 Fix completely bogus comment. 1995-03-11 22:25:20 +00:00
David Greenman 63635f5ae2 Clear OBJ_INTERNAL flag for device pager objects and named anonymous
objects.
1995-03-11 22:25:02 +00:00
David Greenman 9a4bf98e66 Removed gratuitous and *extremely* evil setting of OBJ_INTERNAL. This
caused a cascade of problems including kernel memory corruption, file
corruption, system hangs, and panics.
1995-03-11 22:23:14 +00:00
Gary Clark II b97fb5afcb Add Ollivier as the main FAQ guy...:) (Whew) 1995-03-11 19:13:26 +00:00
Andrey A. Chernov 3ee80812fd Fix syscmd() output out of sync
Submitted by: [email protected]
1995-03-11 16:57:54 +00:00
Ollivier Robert c2766222c3 Add the excellent part on serial communications by Sean Kelly. That's a
great job, thanks Sean !
Reviewed by:	roberto
Submitted by:	Sean Kelly <[email protected]>
1995-03-11 16:48:17 +00:00
Atsushi Murai ca2b8d6944 Add BUGS and few explanation.
Submitted by:	[email protected]
1995-03-11 16:36:30 +00:00
Atsushi Murai 84b8a6ebd1 1.Reducing cpu usage at off connection.
2.Implment Redail function as working correctly.
3.Clean up a code as I notice.
4.Now, RTT getting close to 50ms with ISDN/TA 38400bps !!

Reviewed by:	[email protected]
Submitted by:	[email protected]
1995-03-11 15:18:55 +00:00
Peter Dufault a1b8d6bad1 Noticed by: Nate
Fixed the MAKEDEV pattern for SCSI processor type driver so it doesn't
screw up ptys.  Does anyone want to suggest a better name than "pt0" for
SCSI processor devices before 2.1?
1995-03-11 12:07:57 +00:00
Poul-Henning Kamp 5dad287ead The changes to support the new flags in the vn driver. 1995-03-11 09:33:25 +00:00
Poul-Henning Kamp 5511b2e4f3 A substantial change to the way this works. Not the "TEST_LABELING" is
a option you can turn on and of on the fly, as is debugging.
1995-03-11 09:32:45 +00:00
Nate Williams c6bc11c2f6 Added support for #pragma weak.
Obtained from: NetBSD
1995-03-11 04:07:26 +00:00
Nate Williams b18f8c1dda Updated the sources to gcc 2.6.3 with FreeBSD changes already applied.
Note: This isn't the most correct way, but it works and it's fast.
1995-03-11 03:51:44 +00:00
Poul-Henning Kamp fc20488fba Moved bb stuff to support.s per Bruces suggestion. 1995-03-11 03:49:50 +00:00
David Greenman 07be9bd45f Increased default minfree to 8%. 1995-03-10 22:18:16 +00:00
David Greenman e23c0ff5a0 The threshold for switching from time-space and space-time is too small
when minfree is 5%...so make it stay at space in this case.

Submitted by:	Kirk McKusick
1995-03-10 22:11:50 +00:00
David Greenman 57677027ac Patch to fix quota panic from Mike Karels:
allow Q_SYNC regardless of "target" uid, we allow it with -1;
fix bug that caused all ops to refer to user quotas, not group.

Submitted by:	Mike Karels
1995-03-10 22:06:39 +00:00
David Greenman f8a0b2dd88 Reorganized an if() expression for efficiency. 1995-03-10 21:18:24 +00:00
David Greenman 914e6eb70d Whoops, back out that last change - I misread what Poul had done there. 1995-03-10 20:29:51 +00:00
David Greenman dbd90d413f Don't thrash the name cache while trying to fill up the object cache.
(Make a new cache entry until desiredvnodes is reached).
1995-03-10 20:26:29 +00:00
David Greenman 8950c0148b Changes to support printing stats for the 'cached pages'.
Submitted by:	John Dyson
1995-03-10 20:07:21 +00:00
David Greenman 28b6ade77a Back out Poul's hack that forces static libgcc. This has been fixed via
gcc instead.
1995-03-10 19:41:50 +00:00
David Greenman c683527908 Define LINK_LIBGCC_SPECIAL_1 so that gcc will build static with libgcc. 1995-03-10 19:39:32 +00:00
Rodney W. Grimes 812a118139 Add protected and empty maninstall: targets.
Submitted by:	Philippe Charnier <[email protected]>
1995-03-10 08:54:42 +00:00
Poul-Henning Kamp 14c5b2ae27 Added the kernbb program. No man-page yet :( 1995-03-10 08:53:55 +00:00
David Greenman a74a73d96c Removed some #include's of unnecessary include files. 1995-03-10 08:44:20 +00:00
Rodney W. Grimes cf4a93ba78 Simplify all the newfs commands into ${NEWFS} and add -t 0 -u 0 so
we can again newfs floppies.

Now I just need to squish the bits back under 1.44MB :-(.  I don't know
if it will be possible to get down to 1.2MB.
1995-03-10 08:42:07 +00:00
Poul-Henning Kamp 9eefa8bfc4 Add a dummy ___bb_init_func for BB profiling of the kernel.
To use this: recompile src/gnu/usr.bin/cc, compile your kernel.  The
files you want to profile should be compiled with '-a -g'.  "strip -x"
the kernel and run.  You don't need to profile all files in the kernel.
My next commit is the program to extract the data from the running kernel.
1995-03-10 08:41:26 +00:00
Rodney W. Grimes a5d1fbe54d Need /usr/src/sbin/i386 in srcdirs to get fdisk. 1995-03-10 08:36:19 +00:00
Poul-Henning Kamp 93ccf2fa5e Since we are in the gcc bashing mood anyway: Add two changes for
basic-block profiling:
1. use a .stabs(25) symbol to link all the data structures together with.
The regular method isn't safe for the kernel.
2. add a BB before the prologue and add a BB after the epilogue,  this
alows us to find the length of any counted BB.  This is a cheap and somewhat
reasonable measure of actual cost.
1995-03-10 08:24:09 +00:00
David Greenman b4abbbcad3 kmem_alloc() returns zero-filled memory; it isn't necessary to bzero()
it.
1995-03-10 08:13:07 +00:00
David Greenman 90c47808bb Removed unnecessary routines vm_get_pmap() and vm_put_pmap().
kmem_alloc() returns zero filled memory, so no need to explicitly
bzero() it.
1995-03-10 08:05:00 +00:00
Paul Traina 35040f6884 Remove Matt Day patch (handled elsewhere in 8.6.11) 1995-03-10 05:12:47 +00:00
Paul Traina d986f3c961 Merge CSRG branch changes into main branch 1995-03-10 05:08:18 +00:00
Paul Traina 2a3b769d01 Merge sendmail 8.6.11 patches into CSRG branch 1995-03-10 04:50:28 +00:00
Andrey A. Chernov b603d90c20 Fix suspended vipw hangs
Obtained from: NetBSD
1995-03-09 21:53:12 +00:00
David Greenman 632f53dd4f Fix previous fix that removes an unnecessary space; the output is now
just like it was in 1.1.5.
1995-03-09 20:40:17 +00:00
Poul-Henning Kamp bff1f1d0dd Clean up and improve the namecache.
1. We always keep one 16th of the vnodes on the freelist, so that the
namecache doesn't get trashed.  It used to be that it wasn't a problem, but
the only vnodes getting released these days are directories and things which
Clean up and improve the namecache.

1. We always keep one 16th of the vnodes on the freelist, so that the
namecache doesn't get trashed.  It used to be that it wasn't a problem, but
the only vnodes getting released these days are directories and things which
gets forced out of the VM/cache.  The latter is not numerous enough to keep
the pool of vnodes needed for the namecache sufficiently big.

2. Purge invalid entries in the namecache as soon as we notice them.  This
avoids a stale entry pushing out a valid entry on the LRU list.

3. Speed up the lookup in the namecache by avoid a special case branch.

4. Make the cache purge routines do the thing they're supposed to, and in
a decently efficient manner.

5. Make the size of the namecache follow the number of vnodes, so that we
can always point to all the vnodes we have in core.

6. Readability has gone way up.

7. Added a "options NCH_STATISTICS" feature that will gather more
detailed statistics on the performance of the namecache.

Reviewed by:    davidg
1995-03-09 20:27:21 +00:00
Poul-Henning Kamp fbd6e6c9ef Clean up and improve the namecache.
1. We always keep one 16th of the vnodes on the freelist, so that the
namecache doesn't get trashed.  It used to be that it wasn't a problem, but
the only vnodes getting released these days are directories and things which
Clean up and improve the namecache.

1. We always keep one 16th of the vnodes on the freelist, so that the
namecache doesn't get trashed.  It used to be that it wasn't a problem, but
the only vnodes getting released these days are directories and things which
gets forced out of the VM/cache.  The latter is not numerous enough to keep
the pool of vnodes needed for the namecache sufficiently big.

2. Purge invalid entries in the namecache as soon as we notice them.  This
avoids a stale entry pushing out a valid entry on the LRU list.

3. Speed up the lookup in the namecache by avoid a special case branch.

4. Make the cache purge routines do the thing they're supposed to, and in
a decently efficient manner.

5. Make the size of the namecache follow the number of vnodes, so that we
can always point to all the vnodes we have in core.

6. Readability has gone way up.

7. Added a "options NCH_STATISTICS" feature that will gather more
detailed statistics on the performance of the namecache.

Reviewed by:    davidg

(cvs is dumping core on me :-(  )
1995-03-09 20:27:04 +00:00
Poul-Henning Kamp b2e10d6d6f Clean up and improve the namecache.
1. We always keep one 16th of the vnodes on the freelist, so that the
namecache doesn't get trashed.  It used to be that it wasn't a problem, but
the only vnodes getting released these days are directories and things which
gets forced out of the VM/cache.  The latter is not numerous enough to keep
the pool of vnodes needed for the namecache sufficiently big.

2. Purge invalid entries in the namecache as soon as we notice them.  This
avoids a stale entry pushing out a valid entry on the LRU list.

3. Speed up the lookup in the namecache by avoid a special case branch.

4. Make the cache purge routines do the thing they're supposed to, and in
a decently efficient manner.

5. Make the size of the namecache follow the number of vnodes, so that we
can always point to all the vnodes we have in core.

6. Readability has gone way up.

7. Added a "options NCH_STATISTICS" feature that will gather more
detailed statistics on the performance of the namecache.

Reviewed by:	davidg
1995-03-09 20:23:45 +00:00
Paul Richards 0d09ae1111 Change the return status of do_system_command to be -1
if a signal is received.

This fixes a bug where killing the process would cause a
"No manual entry for XXX" to be printed even if the manpage
was found.
1995-03-09 19:56:23 +00:00
Andrey A. Chernov b76cc0f831 stdio.h --> unistd.h 1995-03-09 17:45:23 +00:00
Andrey A. Chernov 0572cd894a Merge. 1995-03-09 17:40:56 +00:00
Andrey A. Chernov 0e0d6a8042 Upgrade. 1995-03-09 17:28:46 +00:00
Andrey A. Chernov 4ef279038c This commit was generated by cvs2svn to compensate for changes in r6962,
which included commits to RCS files with non-trunk default branches.
1995-03-09 17:28:46 +00:00
Andras Olah c8f313a356 Add -I.' to CFLAGS in order to fix the make depend' problem. 1995-03-09 12:15:17 +00:00
Andrey A. Chernov f01592bbca o more options
o less restrictive, you can choise uid, gid ...
	o invite user into some groups
	o encrypted passwords with crypt
	o batch mode (for instance, this works now:
	  $ adduser -batch jkh guest,uuadmin "Jordan K. Hubbard" passwd
	  see manpage for more details)

Submitted by: Wolfram Schneider <[email protected]>
1995-03-08 22:44:37 +00:00
Ugen J.S. Antsilevich 6a8cccb088 Remove redundant IORW definition..
because of this definition never ioctl's for sound
devices worked..For me this resulted also in  loss of
snd1 device...
1995-03-08 18:43:49 +00:00
Nate Williams 2899d0086a Removed redundant function to64() which also exists in local_passwd.c 1995-03-08 18:05:50 +00:00
Andras Olah 9520a7526d Make tcpdump understand the T/TCP (RFC-1644) options. Some extra sanity
checks were also introduced to the tcp_print function so it doesn't try
to interpret TCP options beyond the length of the sniffed packet.
1995-03-08 13:13:01 +00:00
Andras Olah cafb7c1233 Upgrade tcpdump and tcpslice to version 3.0
Obtained from: ftp.ee.lbl.gov and Vern Paxson <[email protected]>
1995-03-08 12:53:42 +00:00
Andras Olah 1dcbf7af64 LIBPCAP -> ${DESTDIR}/usr/lib/libpcap.a 1995-03-08 09:01:32 +00:00
Bruce Evans b2fd1f671d Obtained from: NetBSD
Remove common sources from ${SRCS} when they are replaced by arch-specific
sources.
1995-03-08 01:41:40 +00:00
Poul-Henning Kamp a0e8a1e29b Another little optimization to the nameicache.
If an entry is stale, ditch it.
1995-03-08 01:40:44 +00:00
Poul-Henning Kamp 2425396b27 Improve the quality of the hash used in the namei-cache. 1995-03-08 01:08:03 +00:00
Søren Schmidt edf16d1564 Added ata.c device driver file.
Just so I don't have to repatch files.i386 again & again...
1995-03-07 21:15:30 +00:00
David Greenman d8cb3fb153 Increased number of buffers to 1/12 of (page_count - 1024). This makes the
cache minimum closer to 10% in the usual case.
1995-03-07 19:58:02 +00:00
David Greenman 5dcf309046 Removed most of the special policy regarding the seperation of VMIO and
dir/metadata buffers as it seems to have anomolous effects.
1995-03-07 19:53:27 +00:00
David Greenman 0007244260 Set VAGE flag when pager is destroyed. This usually happens when an
object has fallen off the end of the cached list - this is likely the
last reference to the vnode and it should be reused before non file
vnodes that are already on the free list (VDIR mostly).
1995-03-07 19:04:10 +00:00
David Greenman 79f7a9e1ef Added a new flag "VAGE" to indicate that the vnode should go on the head
of the free list.
1995-03-07 19:00:47 +00:00
David Greenman acc835fd3f Put VAGE vnodes at the head of the free list. 1995-03-07 18:59:45 +00:00
David Greenman f2da180f8e Fixed object reference count problem that occurred in the MAP_PRIVATE
case after we rewrote vm_mmap(). Added some comments to make it easier
to follow the reference counts.
1995-03-07 17:27:49 +00:00
David Greenman be6d5bfac7 Don't attempt to reverse collapse non OBJ_INTERNAL objects. 1995-03-07 17:25:46 +00:00
Ollivier Robert 05048ea000 Correct a few URL for ftp.FreeBSD.ORG. 1995-03-07 13:54:44 +00:00
Peter Dufault 84d84db480 Change warning message for when a device is wired to a floating
host adapter to something hopefully clearer.  Take into account
that "wnum()" writes into a static buffer in the warning.
1995-03-07 11:03:42 +00:00
Justin T. Gibbs 06f0e1ceb8 Be careful to maintain the bits in SBLKCTL that are reserved. 1995-03-07 09:00:44 +00:00
Justin T. Gibbs 7896fbec24 Compile cleanly -Wall. Remove some code that was an attempt to make
the 294x probe more stable, but since the guess was wrong, go back to
the clearer aproach I used the first time around.
1995-03-07 08:59:28 +00:00
Justin T. Gibbs 433c166775 Compile cleanly -Wall. 1995-03-07 08:58:22 +00:00
Bruce Evans 553e72d902 Don't build swab.o here. It gets built in libc/i386/string. Previously
the copy built from here was overwritten by the other copy and the other
copy was put in library-building command lines twice.  ld now objects to
duplicated modules.
1995-03-07 04:19:11 +00:00
Peter Dufault 558b7c23d1 Submitted by: [email protected] (Bruce Evans)
Fix it so that calls to extend_get won't dereference 0 when "swap
on sd.." calls sdsize() on systems with no SCSI devices.

This probably really fixes Poul's "boot with no SCSI" problem.
1995-03-06 15:02:13 +00:00
Jordan K. Hubbard f7ae0afb88 Back out my previous change and file it under the catagory of One Of Those
Things That Seemed Like A Good Idea At The Time.  There's a better solution
for /etc out there and this is not a step in that direction.
1995-03-06 14:33:39 +00:00
Stefan Eßer d3b1e73dd2 Add missing double quote (") in "echo".
Submitted by:	[email protected]
1995-03-06 13:32:58 +00:00
Jordan K. Hubbard fdf5c453e0 We can't bail out on generating the pic archive yet.
Submitted by:	bde
1995-03-06 12:17:49 +00:00
Ugen J.S. Antsilevich 7332d95a98 Restore IPACCT out there.. 1995-03-06 10:33:34 +00:00
Ollivier Robert ffa717dd36 Change some names to First_name Last_name with proper capitalization.
Fix a typo.
1995-03-06 09:54:06 +00:00
Poul-Henning Kamp 3d496ce9e4 Don't make the shared libgcc. I don't belive we need the libgcc_pic.a
anymore, so I killed that as well.
1995-03-06 08:04:05 +00:00
Poul-Henning Kamp 316f7f7725 Never again shall we link libgcc dynamic. It was a big mistake in the
first place and we were too long in finding out.  Now we know, and the
damage is hard to fix.  This is part one:  ld will not link gcc dynamic,
if specified as "-lgcc".

Suggested by:	dyson & davidg
1995-03-06 08:00:23 +00:00
Poul-Henning Kamp 30f467d84a Update vfs_cache.c to use the <sys/queue.h> macros. This makes it easier
to read, but doesn't change the speed.

Reviewed by:	phk
Obtained from:	via NetBSD
1995-03-06 06:45:52 +00:00
Nate Williams 7cd21d1909 Since at least one utility depends on it (GNU diff), install the gnu regex
include file (gnuregex.h) in the includes target.
1995-03-06 05:52:47 +00:00
Nate Williams 0be9c260c5 Install the include file in the same way that all other includes file are
in the 'beforeinstall' target.
1995-03-06 05:51:32 +00:00
David Greenman 7c89bce067 Removed an old (commented out) call to cldisksort(). This has been
obsolete since 4.4 clustering.
1995-03-06 05:40:44 +00:00
David Greenman e1acba5ab1 Remove some of my old debugging junk that somehow slipped in under my nose. 1995-03-06 05:36:59 +00:00
Nate Williams 7e58dfddc1 The new ld has apparently uncovered the bug that sio.c and tty.c
both define ttydefchars[] as globals.  This was fixed in 1.1.5
by making ttydefchars[] static like it should always have been.

Submitted by:	Bruce Evans <[email protected]>
1995-03-06 02:50:49 +00:00
Nate Williams 9617d8b1f6 Removed unnecessary define for TCPOUTFLAGS since they are not used. 1995-03-06 02:49:24 +00:00
Ollivier Robert 1dd5ec0345 Add a remark about the new ctm-announce list. Everyone that use CTM
SHOULD subscribe to it.
Reviewed by:	roberto
Submitted by:	Poul-Henning Kamp <[email protected]>
1995-03-05 23:13:08 +00:00
Joerg Wunsch 2389804061 Make `p'' an explicit alias for `print'' instead of being an
implicit alias for ``panic'', since this seems to be more rational.
1995-03-05 22:56:21 +00:00
Joerg Wunsch 31aafd54c3 Adding the various documentation files that are accompanying
the regular pcvt distribution under pcvt/Misc.
1995-03-05 22:50:24 +00:00
Bill Paul e7969ab094 Added support for bootparams map. 1995-03-05 22:48:50 +00:00
Joerg Wunsch 0e679f8b28 Upgrade to beta 3.20/b22 1995-03-05 22:47:12 +00:00
Joerg Wunsch 9fef3e04b3 Adding the various documentation files that are accompanying
the regular pcvt distribution under pcvt/Misc.
1995-03-05 22:44:03 +00:00
Joerg Wunsch d83a2a270d Update to beta3.20/b22
pcvt_ioctl.h doesn't belong to here.
1995-03-05 22:26:21 +00:00
Joerg Wunsch 1076e16083 Update to beta3.20/b22 1995-03-05 22:25:44 +00:00
Joerg Wunsch 0aff94e169 Make pcvt actually work. 1995-03-05 22:24:59 +00:00
Joerg Wunsch 68cfe626f7 pcvt is still using the XSERVER option; document this. 1995-03-05 22:23:35 +00:00
Steven Wallace 66e456c58e Revert to earlier code which contains FreeBSD snd[1-7] probe information,
$Id$ information, and other code to make sound driver compile and work
correctly with FreeBSD.

Integrate changes obtained from Sujal Patel.  These changes are:
 o  local.h:  reverse option logic from EXCLUDE_* to AUDIO_*
 o  pas2_mixer.c:  small addition
 o  ad1848.c:  minor change with macro names
 o  sequencer.c:  minor change with note check
 o  many spelling corrections in comments in about every other file
1995-03-05 22:11:57 +00:00
Bill Paul 7757d94047 ether_addr.c:
- Implement ether_hostton()
- Implement ether_aton()
- Modify ether_aton() and ether_ntoa() to match the semantics of the
SunOS versions of these functions.
- Neaten up ether_hostton() and ether_ntohost() a little.
- Get rid of ether_print() since it isn't needed for rarpd and it isn't
documented as a standard ethers(5) function.

rarpd.8:

- Make it clear that the 'ipaddr' that rarpd looks for in /tftpboot
is actually in hexadecimal (as in /tftpboot/803B4032) since those who
are not versed in the black art of system administration are not likely
to know this.
1995-03-05 22:04:05 +00:00
Jordan K. Hubbard 68f4eef929 If there is a host-specific rc file lurking in /usr/share/misc, execute
it.
Submitted by:	Heikki Suonsivu <[email protected]>
1995-03-05 22:00:40 +00:00
Jordan K. Hubbard 8d0ab00912 Allow 0 as a signal number to match the man page.
Noticed by:	Mike Murphy <[email protected]>
1995-03-05 21:52:41 +00:00
Jordan K. Hubbard feadd38979 Reserve cdev 63 for Brian Litzinger & his Talisman Lite MPEG decoder
Submitted by:	Brian Litzinger <[email protected]>
1995-03-05 21:41:40 +00:00
Poul-Henning Kamp fcb2469be6 "Various very violent dissections
disables dysfunctional disinformed namei's,
needlessly negating namei cache."

These hacks cuts the number futile attempts made by cc and ccp to find
cross-compilers and other weird stuff.  A make of the BOOTFLP kernel
has 20% less namei calls now, that is from 30647 down to 24563 calls.
1995-03-05 20:34:41 +00:00
Peter Dufault 0f48de1c30 Fix when SCSI_DEBUG turned on. Thanks to Michael Reifenberger. 1995-03-05 20:01:44 +00:00
Joerg Wunsch 2723e3d4c6 Use `interactive' (foreground) delivery by default. The old behaviour
of queuing mails only can be restored by uncommenting a CFLAGS+= line
in the makefile, so sites that _really_ need this (perhaps some huge
mail hubs) can still have it.  The majority of FreeBSD boxes is better
served with an immediate delivery (and last time i've been asking on
the list, nobody complained).
1995-03-05 08:27:14 +00:00
Jordan K. Hubbard 3c931b7071 Have dmabuf.c match the roll-back in soundcard.c. We should be making
better noises again.
Submitted by:	Sujal Patel <[email protected]>
1995-03-05 08:10:28 +00:00
Bill Paul bf3e3428b6 Changed the printf()s in npxattach a bit so you don't end up with
messages like this:

wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <ST506>
wd0: size unknown, using BIOS values: 615 cyl, 4 head, 17 sec, bytes/sec 512
npx0 at 0xf0-0xff irq 13 on motherboard
npx0: changing root device to wd0a
^^^^^^

The spurious 'npx0: ' pops up if you have a 386 with a 387 FPU.
1995-03-05 04:06:44 +00:00
Jordan K. Hubbard 383fc89445 Correct some of the spelling. 1995-03-05 04:06:11 +00:00
Jordan K. Hubbard 7a31e4deeb Revert change on advice of author.
Submitted by:	Sujal Patel <[email protected]>
1995-03-05 04:01:29 +00:00
Andrey A. Chernov 21a3970b05 PLEASE, PLEASE, PLEASE!!!!!!!
DO NOT COMMIT NEW VOXWARE VERSIONS BLINDLY, TAKE CARE TO RESTORE
PAS16D FIXES, I AM REALLY TIRED TO DO IT WITH EACH NEW RELEASE!!!
1995-03-05 03:28:38 +00:00
Bruce Evans 84428d8465 Don't depend on <stdio.h> bogusly including <sys/types.h>. 1995-03-05 02:19:21 +00:00
Jordan K. Hubbard 7b936a1e66 Remove a gratutious cast. 1995-03-04 21:14:19 +00:00
Jordan K. Hubbard ca83dc2de1 Upgrade the sound drivers to VoxWare pre-3.0 and fix a number of bugs.
Make the sound configuration a little neater
	(see /sys/i386/isa/sound/Readme.freebsd)
Add support for the Microsoft Sound Source.
Document the sound options again.
Submitted by:	Sujal Patel <[email protected]>
Obtained from:	Voxware
1995-03-04 21:11:21 +00:00
Poul-Henning Kamp dd8723c2e3 make sys_nerr __const.
Reviewed by:	phk
Submitted by:	ollivier
1995-03-04 20:57:12 +00:00
Peter Dufault cb282243be This time add the real man pages for "pt" and "worm". 1995-03-04 20:56:39 +00:00
Peter Dufault 8bcbc1f424 Add processor and worm drivers 1995-03-04 20:54:24 +00:00
Peter Dufault 108b30f402 Add processor type and worm drivers 1995-03-04 20:53:18 +00:00
Peter Dufault 33bc833290 Add processor type and worm type drivers 1995-03-04 20:52:38 +00:00
Peter Dufault f29b7a5d14 1. Change driver signatures to full signature for slice support.
2. Add "pt" (processor type) driver.
3. Add "worm" (Write Once) driver for Jordan.
1995-03-04 20:51:10 +00:00
Poul-Henning Kamp 920052bded Look at the .ctm_status file and ignores all patches already applied.
Reviewed by:	phk
Submitted by:	J Wunsch <[email protected]>
1995-03-04 20:36:46 +00:00
Andrey A. Chernov a1bb896c3a Use \E[x in "op" for cons25 1995-03-04 20:14:28 +00:00
Nate Williams c79eac4c4c Weak symbol support from NetBSD. This should bring us in sync with the
NetBSD ld code except for local changes for dlopen() and friends and
the hashing on the minor value of the shlibs.  We should be binary
compatible now with all their libraries.

Obtained from: NetBSD
1995-03-04 17:49:20 +00:00
Nate Williams 5ec07232b9 Fix rpcgen so that generated files are written to the current working
directory (instead of the same directory as the source files) and that
#includes in those files do not contain the path to the source file.

Obtained from: J.T. Conklin via NetBSD
1995-03-04 17:47:50 +00:00
Nate Williams 4f749d2669 If we are going to set the OBJS target, don't add to the old target. This
caused the RPC libraries to contain two versions of the same file.
1995-03-04 17:39:24 +00:00
David Greenman 9bd1697199 Added some more of John's "anti-chatter" fixes - set the page activation
count to 0 after activating the page; the previous behavior biased the
pages too high in some cases.

Submitted by:	John Dyson
1995-03-04 15:16:07 +00:00
Bruce Evans b09e27e3d0 Remove unused common variable `extended'. 1995-03-04 12:36:55 +00:00
Bruce Evans f8360b9bf3 For sd, vn and wd:
Support sliced devices better.  E.g.:
`sh MAKEDEV sd0' creates [r]sd0 and [r]sd0s[1-4] as well as [r]sd0[a-h]
(the extra devices created by default won't hurt apart from wasting inodes).
`sh MAKEDEV sd0s1[a-h]' creates [r]sd0s1[a-h] (any partition creates all).
`sh MAKEDEV sd0s5' creates [r]sd0s5.

Support unit numbers 0-31 (was 0-6).

For wd:

Remove support for creating DOSpartitions wd*[i-m].  These will get removed
if you run MAKEDEV on `all' or on wd*.
1995-03-04 12:22:14 +00:00
Bruce Evans 7262c5ee2c Support extended DOSpartitions.
Accept even suspicious partitions.

Moved most handling of the compatibility slice to dsopen().

Report i/o errors.
1995-03-04 11:44:05 +00:00
Bruce Evans 2973a0eba4 Don't warn about missing labels for non-BSD slices.
Don't print debugging messages by default.

Initialize the compatibility slice here and not in the machine-dependent
code.

Fix initialization of the label for the whole disk slice.

Make it clear that write protection of labels doesn't apply when there is
no label.
1995-03-04 11:42:27 +00:00
Bruce Evans 17fb427c08 Fake the geometry to be 32 sectors * 64 heads * (vn->sc_size / 2048)
cylinders instead of vn->sc_size * 1 * 1.

Remove unnecessary tests of the unit numbern vnioctl().
1995-03-04 11:08:26 +00:00
Bruce Evans 80eee75ed9 Add a type field to struct diskslice. 1995-03-04 11:05:44 +00:00
Dima Ruban 21fa3d85e3 "vidcontrol -s" -> "modload" 1995-03-04 08:03:28 +00:00
David Greenman af78195e00 Reduced loopback MTU to 16k to work around a miriad of problems with it
set near or above 32k (likely caused by 16bit signed word overflow). 16k
actually (surprizingly) has higher performance than other values I tested.
1995-03-04 04:28:50 +00:00
David Greenman 403ef252fa Removed obsolete vtrace() remnants. 1995-03-04 03:24:45 +00:00
David Greenman 812a11a2ec Removed obsolete vtrace() and reorganized a little. 1995-03-04 02:25:36 +00:00
Andrey A. Chernov c08bf286df Use ASCII lock, like everything else does
Submitted by: John Capo <[email protected]>
1995-03-04 00:05:30 +00:00
Gary Palmer 3c4d31f1c8 Add support to miss out ``DUDS'' subdirectories. See thread in freebsd-ports
for more.
1995-03-03 23:30:32 +00:00
Andrey A. Chernov 12a34c80d0 Upgrade cons25 and cons25-r to lastest syscons changes 1995-03-03 23:29:22 +00:00
Andrey A. Chernov 2a999a94c3 Remap Grey Delete to ESC[~ 1995-03-03 23:21:52 +00:00
Andrey A. Chernov 72fe72793f Remove unwanted change sneaked in 1995-03-03 23:17:32 +00:00
Andrey A. Chernov 537907d280 Fix flag bugs with RUKEYMAP 1995-03-03 23:12:20 +00:00
Andrey A. Chernov ac9de083c6 Restore russian traditions 1995-03-03 22:55:02 +00:00
Bill Paul 112072599b Gave rarpd back the ability to poke temporary entries into the arp
table; arptab.c is really a hacked up version of arp.c that only
supports adding temporary entries. (This stuff is nasty -- I wish I
knew what was so wrong with SIOCSARP/SIOCGARP/etc... that made the
BSD developers decide to take it out.) The idea here is that the
client issuing the rarp is expected to be in the middle of booting
and would therefore be unable to answer arp queries from other machines
on the wire. Having rarpd stuff a temporary entry for the booting
host into the local arp table helps keep arp requests from going unanswered.

Also added ether_print() and ether_ntoa() to the ether_addr.c module.
Eventually I'll get ether_aton() and ether_hostton() written and
then this file can be dropped straight into libc. (Assuming no one
objects, of course. :)
1995-03-03 22:20:15 +00:00
David Greenman 3b7517f887 Preserve reverse link integraty while doing the queue insertion. 1995-03-03 22:14:42 +00:00
David Greenman 22470903a0 Fixes from John Dyson to work around vnode lock hang. Basically, remove
the VOP_BMAP calls, and add one to bdwrite.

Submitted by:	John Dyson
1995-03-03 22:13:16 +00:00
Peter Dufault 1ea3a7260a Make sure there is a device before opening. Fixes NULL access
when opening unattached devices.
1995-03-03 21:38:43 +00:00
Dima Ruban 50d387a36e remove option "-s saver" from usage() 1995-03-03 21:21:24 +00:00
Jordan K. Hubbard fe8d7aae57 Remove bogus email message from the top.
Change spelling of "obsolute" to "obsolete" ("obsolute" is the pinacle
of obsolescence :-).
Submitted by:	me
1995-03-03 20:17:16 +00:00
Peter Dufault f88f624943 Fixed bug with wiring down given SCSI bus. 1995-03-03 19:00:39 +00:00
Nate Williams 00076281bf Make in lkm/syscons fails due to missing include for apm stuff.
Submitted by:	John Capo <[email protected]> and John Hay <[email protected]>
1995-03-03 18:38:00 +00:00
Nate Williams 2e2c837a56 Removed redundant delcaration of msdosfs_denode.c from the SRCS line. 1995-03-03 18:33:04 +00:00
Stefan Eßer 9aae4932d6 Have this resemble an actual german keyboard a bit more ... 1995-03-03 18:26:10 +00:00
Stefan Eßer 252e349211 Reduce burst length to 4 DWORDs for now, since there seem to
be 486 chip sets that can't tolerate bursts > cache line size.
This should really made dependent on the particular buggy
chip sets, but for now we'll play safe ...
1995-03-03 16:44:33 +00:00
Nate Williams 19b72402c7 emoved redundant definition of imcs2_close() since it already exists in
ibcs2_file.c

Reviewed by:	Sean and S'oren
1995-03-03 15:44:44 +00:00
Ugen J.S. Antsilevich 009f85df0b Update manpage..BTW,if somebody wit good English
would go through it and fix it would be a really good idea.
1995-03-03 12:59:47 +00:00
Ugen J.S. Antsilevich 3c3f8b95a8 Oops..remove some debugging leftover.. 1995-03-03 12:47:23 +00:00
Ugen J.S. Antsilevich 9071ec3796 Ok..so everybody picking on me that ipfw syntacs
is a pain in ...wel.. trying to fix this
 * from/to/via position indepenndant syntax
 * "any" for 0/0 host address
 * addf/addb default keyword in case you skip it..
 * pass = accept new action, seems to be somewhat better
   in particular cases
 * on = via (as on ed0 instead of via ed0,loook at
   reject tcp on ed0 from hacker )
1995-03-03 12:28:34 +00:00
Søren Schmidt dc463a367e Minor update to syscons.
Let "grey delete" be a function key (default is 0x7f)
Fix the xor cursor again..
Made the backspace key generate del as default
Made CTRL-space generate nul as default.
1995-03-03 08:37:52 +00:00
Jordan K. Hubbard 0722449a9b Back out my previous change. I need to really think about this. 1995-03-03 07:42:10 +00:00
Jordan K. Hubbard 493d75a9d5 A small feature just for my own use. 1995-03-03 06:53:27 +00:00
Andrey A. Chernov 5b79c36cbc Solve conflict between two global force variables 1995-03-03 02:34:14 +00:00
Andrey A. Chernov ad17fe5cc1 Fix CurHostName ($m macro)
Submitted by: [email protected]
1995-03-03 02:06:39 +00:00
David Greenman 9ad19d92e1 Use copyout to install the sigframe rather than directly writing to the
user's stack.
1995-03-03 00:43:08 +00:00
Bill Paul 37fda94006 Make 'config [kernel] swap generic' work again. It would seem that
'matcd' has taken over the position and major number of 'pcd,' so
swapgeneric.c needs to be updated accordingly. (It was still looking
for pcd.h.)
1995-03-02 23:45:49 +00:00
Stefan Eßer a2564a2e9c Disable vga_attach() code, as it always should have been. 1995-03-02 23:29:44 +00:00
Bill Paul c7f2725d43 Took out .include "../../Makefile.inc" which shouldn't be needed now that I
put a proper Makefile.inc in the top level of the bootparam heirarchy.
(Someday I'll learn. *sigh*)
1995-03-02 22:00:33 +00:00
Stefan Eßer 79a6470e10 Speed up PCI attach code by ommiting test if its result is ignored anyway. 1995-03-02 21:51:53 +00:00
Bill Paul c529ee1973 Whoops. I knew I was forgetting something. 1995-03-02 21:24:54 +00:00
Bill Paul e8dfeb8828 Some people have complained that they were unable to boot the
Feb. 10th snapshot. The keyboard probe in the bootblock seems to
have been singled out as the cause of these problems, so I've beefed it
up alittle. This pushes us right up to the edge of the size limit:
the second stage boot is now 7152 bytes in size, just 8 bytes under
the wire. On the other hand, the new probe now does almost exactly
what syscons does, so hopefully this will do the trick. It seems
to work properly on my hardware, but then so did the old probe.
1995-03-02 21:00:14 +00:00
Nate Williams d6212a19ca Add the abilitity to compile the Lites code with the native FreeBSD assembler.
(This adds minor support for the .bss directive)

Submitted by:	Many folks, but I believe Remy Card was the first person to
                propose this change.
1995-03-02 20:29:18 +00:00
Peter Dufault 833eac3148 Fix it so that systems with NSCBUS==0 don't have undefineds. 1995-03-02 20:07:05 +00:00
David Greenman 9d55322b75 Don't try to cluster busy buffers.
Submitted by:	John Dyson
1995-03-02 19:36:50 +00:00
Gary Clark II 0e6a76efea Add notice for Jordans submitters.FAQ.
Cleaned up entry on sup to point to the correct area.
1995-03-02 19:34:05 +00:00
David Greenman 3dbdc25caa Move exact match pcb's to the head of the list to improve lookup
performance.
1995-03-02 19:29:42 +00:00
Jordan K. Hubbard 3d0dfb4eea My first rough cut at a guide to new submitters. I started out answering
someone's question and ended up writing an entire FAQ - I *hate* that! :-)
1995-03-02 12:28:04 +00:00
Jordan K. Hubbard f0ce30bcf4 Add this file here so I finally have something to point people at as a
prototype.
Obtained from: U.C. Regents standard copyright.
1995-03-02 12:00:16 +00:00
Rodney W. Grimes 0af0a35d04 Correct printf format strings to match argument types.
This driver now compiles -Wall both with and without debugging enabled.
1995-03-02 08:17:14 +00:00
Rodney W. Grimes e902ae382a Remove unused variables, and move some inside of DEBUGDO to quite up
compiler.
Be carefull about over usage of volatile, it really killed performance
in a few areas and there was a better place to make things volatile in
almost all cases.  The driver can now receive at full speed without RNR
errors.
1995-03-02 07:40:27 +00:00
Jordan K. Hubbard d52f2f6e84 Move the matcd includes to the right place. 1995-03-02 07:38:12 +00:00
Jordan K. Hubbard 3c034efc04 Finish the matcd import. My face is red. 1995-03-02 07:34:38 +00:00
Jordan K. Hubbard 4c08a2305c Fix up the matcd import. 1995-03-02 07:33:59 +00:00
Jordan K. Hubbard d3468839bf Add Bill Paul to contributors list. We probably need a "FreeBSD associates"
list or something since there are many contributors now but very few on
the order of folks like Bill or Satoshi or Jean-Marc..  This seems unfair.
Suggestions?
1995-03-02 07:20:59 +00:00
Bill Paul 8c9c9e9743 Add rarpd. 1995-03-02 06:44:30 +00:00
Bill Paul 67ba270de8 This commit was generated by cvs2svn to compensate for changes in r6823,
which included commits to RCS files with non-trunk default branches.
1995-03-02 06:41:40 +00:00
Bill Paul 9636a39a61 Obtained from: An old BPF release packaged with the tcpdump-2.0 source code.
"Yes Virginia, there is a rarpd."

(Before anyone asks, this *not* the rarpd from NetBSD. It did come from
the same place as theirs, however.)

This is a port of the rarpd program included with the tcpdump-2.0
source code (which I finally unearthed after scrounging around
some of the darker corners of the Internet). It's as close to the
original as I could keep it except for the following changes:

- The original program was based on an older version of the Berkeley
  Packet Filter which used different filter programming instructions.
  Fortunately, an updated RARP packet filter is available right in the
  BPF man page so this was easy to fix.

- The old code didn't know how to deal with variable length addresses
  in ifreq buffers. This has been fixed.

- Some byte order weirdness had to be fixed. The sanity checks in
  rarp_check() needed some htons()es, and the rarp_reply() function
  needed to properly set the ether_type field in the ethernet header
  to ETHERTYPE_REVARP before transmitting the packet, otherwise
  the bytes in ether_type would wind up reversed. It is important to note
  that using htons(ETHERTYPE_REVARP) will not work. This is odd, because
  the NetBSD rarpd uses htons(ETHERTYPE_REVARP). (Praise be to tcpdump:
  I would never have been able to track this silliness down without it.)

- The update_arptab() function has been castrated. It depends on
  SIOCSARP which has been deprecated in 4.4BSD. The NetBSD people
  don't seem to be using this function either. It wouldn't be too
  hard to replace this with equivalent code from arp.c, but it
  might not be necessary.

- I put together an ether_ntohost() support function that allows
  both local (/etc/ethers) and NIS lookups. This stuff should go
  in libc at some point, but nothing else seems to need it for now,
  so it can wait a while.

As you may have guessed, you need to have the Berkeley Packet Filter in
your kernel in order to use this program. The good news is that together
with the recently added bootparamd, you can use finally use a FreeBSD
box to boot Sun boxes over the network. (This was my whole motivation
for getting this stuff to work: I have this one subnet that has a whole
bunch of Sun3 X-terminals on it with only two Sun4 workstations, both
of which are locked in peoples' offices. If those two machines crash
(and they do every so often) then none of the X-terms will boot. Now I
can use a spare PC that I have as a boot server. :)
1995-03-02 06:41:40 +00:00
Jordan K. Hubbard 9fe9f406a3 Add entry for Sound Blaster/Matsushita CDROM 1995-03-02 04:18:43 +00:00
Jordan K. Hubbard 6ccfe20ece Add Matsushita CDROM device entries.
Submitted by: Frank Durda IV <[email protected]>
1995-03-02 04:11:47 +00:00
Jordan K. Hubbard 05e1d9d455 Changes to incorporate the Matsushita CDROM driver (otherwise known as
the "Sound blaster CDROM").
Submitted by:	Frank Durda IV <[email protected]>
1995-03-02 04:07:03 +00:00
Poul-Henning Kamp ac9dbeaf66 Missed a reference to numvnd.
Thanks Ollivier.
1995-03-02 01:04:38 +00:00
Andrey A. Chernov 2270889953 Fix arrows printout for non-arrows keys in menubox
Move arrows printout to single kernel function
Add PgUp/PgDn/Home/End to checkbox and radiobox
1995-03-02 01:03:39 +00:00
David Greenman 1d1b971bec Use su/fubyte instead of directly touching the user's address space. 1995-03-01 23:59:21 +00:00
David Greenman f919ebde54 Various changes from John and myself that do the following:
New functions create - vm_object_pip_wakeup and pagedaemon_wakeup that
are used to reduce the actual number of wakeups.
New function vm_page_protect which is used in conjuction with some new
page flags to reduce the number of calls to pmap_page_protect.
Minor changes to reduce unnecessary spl nesting.
Rewrote vm_page_alloc() to improve readability.
Various other mostly cosmetic changes.
1995-03-01 23:30:04 +00:00
Joerg Wunsch be7f0d04fe On snap 950210, format %s (print seconds from the epoch) is missing
from the code in strftime.c . This affects both the library code
and all the commands using it (e.g. date +%s).

Note that %s is not required by ANSI, but we've already got it in 1.1.5.1.

Suggested by: [email protected] (Luigi Rizzo)
1995-03-01 23:08:40 +00:00
Peter Dufault c30c84ed1f Added configuration for SCSI devices wired in place. The documentation
is in "man 4 scsi".
1995-03-01 22:34:05 +00:00
Peter Dufault 2460bdf04b Updated man pages to reflect new configuration options. These man pages
are getting pretty out of date and need to be visited some more.
1995-03-01 22:32:38 +00:00
Peter Dufault ded1144b39 Made host id configurable with a kernel option "AIC_SCSI_HOSTID=val".
This is really only a stop gap; it should be settable in config.
1995-03-01 22:30:47 +00:00
Peter Dufault 2778e6ab23 1. Added a "scsi" command to userconfig as a start
2. "uk" is no longer an option.
1995-03-01 22:29:06 +00:00
Peter Dufault ebc1a0e2f8 Added a little documentation on the fixed SCSI config and
fixed a few quirks that snuck in.
1995-03-01 22:27:45 +00:00
Peter Dufault 6675c2f09d 1. "uk" driver now optional on scbus
2. Added base scsi driver file scsi_driver.c
1995-03-01 22:26:23 +00:00
Peter Dufault a0520fbaac Reviewed by: [email protected] [email protected]
1. Support for fixed device configuration
2. Hoisted common code to scsi_driver
3. SCSI busses dynamically allocated at boot
4. Reorg'd for LKMs
1995-03-01 22:24:47 +00:00
David Greenman fde2cdc48a Various changes from John and myself that do the following:
New functions create - vm_object_pip_wakeup and pagedaemon_wakeup that
are used to reduce the actual number of wakeups.
New function vm_page_protect which is used in conjuction with some new
page flags to reduce the number of calls to pmap_page_protect.
Minor changes to reduce unnecessary spl nesting.
Rewrote vm_page_alloc() to improve readability.
Various other mostly cosmetic changes.
1995-03-01 22:08:55 +00:00
David Greenman 54ab07303b Slight change to include file order to accommodate upcoming changes. 1995-03-01 21:37:44 +00:00
Jordan K. Hubbard 60e2f05af7 My patch this morning was not complete. I never tested make install - stupidly
thinking that it would work :( The install program never get a destination
directory. Here is another patch that should also be added. I think this
should be the last one for these makefiles :)

[Note:  I realize that there are more things wrong than this, but this should
at least get the tree compiling again! -jkh]

Submitted by:	John Hay <[email protected]>
1995-03-01 20:36:20 +00:00
Guido van Rooij 528ad82b4c Fix the deletion of trailing newlines with backquote expansion.
Reviewed by:
Submitted by:
Obtained from:
1995-03-01 13:04:15 +00:00
Justin T. Gibbs ce584e16e7 Implement "clean" entries for device config entries.
Submitted by: Pointed out by Bruce Evans <[email protected]>
1995-03-01 10:09:03 +00:00
Justin T. Gibbs 0bf316f5ac Fix "dependency" spelling error. Implement "clean" entries for device
config entries.  Add clean rules to aic7xxx and aic7xxx_seq.h.

Submitted by: Pointed out by Bruce Evans <[email protected]>
1995-03-01 10:08:07 +00:00
Paul Richards 133d8eae53 Disable fib 1995-03-01 08:32:42 +00:00
Paul Richards a7535d5b95 Pull old lex.l out of attic and update to new one. 1995-03-01 08:25:40 +00:00
Paul Richards be7d950dc8 Completely rewrite libforms so everything is done at runtime rather
than at compile time.

Should have same functionality as old libforms but with new mechanism.

Lots of new features that use the new mechanism are still to be added.
1995-03-01 08:19:06 +00:00
Poul-Henning Kamp 1214e6da66 The current bootparamd makefiles break if you do a make obj first. It does
work if you don't have the obj link. Here is a patch for it. It will still
work if you don't have an obj link:)

(I stuck a ${DESTDIR} in front of the absolute path to /usr/include... /phk)
Reviewed by:	phk
Submitted by:	John Hay <[email protected]>
1995-03-01 08:04:40 +00:00
Poul-Henning Kamp d33ac9d9a8 Update entry. 1995-03-01 06:43:12 +00:00
Gary Clark II 87d17a3130 Update some of the FTP entries here.
Also correct name of sup package
1995-03-01 06:12:15 +00:00
Poul-Henning Kamp 3938d930a1 Try to be even more understandable and clear.
What I need is a good speech writer...
1995-03-01 05:41:14 +00:00
Jordan K. Hubbard 7a15a32a17 Additions from Thomas Graichen to mention each functions' floating point
counterpart.
Submitted by:	Thomas Graichen <[email protected]>
1995-03-01 05:06:48 +00:00
Poul-Henning Kamp ee32cbed3b Less bogus allocation of softc to avoid races.
Thanks for the hint David!
1995-03-01 05:05:21 +00:00
David Greenman 3aed948b88 No longer assume that a process's address space can be directly written to. 1995-03-01 04:09:50 +00:00
Andrey A. Chernov f1df5d8bdd Better collate table for koi8-r
Submitted by: [email protected]
1995-02-28 23:38:20 +00:00
Andrey A. Chernov 5d8619d1f2 Workaround IXOFF bug when output queue is full && RTS control is on 1995-02-28 23:21:33 +00:00
Joerg Wunsch c71243fd9a typo.
Submitted by: "Philippe Charnier" <[email protected]>
1995-02-28 23:16:33 +00:00
Poul-Henning Kamp d47cc3d78a Added lock-files, so we should know if the machine panic'ed in the middle
of an "apply".
1995-02-28 20:52:56 +00:00
Poul-Henning Kamp 598c5bd0cc Move a -P 1995-02-28 20:32:29 +00:00
Poul-Henning Kamp 8b5f78d2f6 cvs export doesn't like a explicit '-P' 1995-02-28 04:38:21 +00:00
David Greenman 519b3d1aa6 Do a vnode_pager_uncache after the VOP_RENAME to lose the remaining
reference to the old vnode.

Suggested by:	Bruce Evans
1995-02-28 02:52:48 +00:00
Poul-Henning Kamp 2469b9a2ef More bugfixes. 1995-02-28 01:15:52 +00:00
Paul Traina 90e614df0f Fix a minor grammar bug. 1995-02-28 00:24:47 +00:00
Paul Traina 8c5c37cd75 Incorporate bde's code-review comments.
(a) bring back ttselect, now that we have xxxdevtotty() it isn't dangerous.
(b) remove all of the wrappers that have been replaced by ttselect
(c) fix formatting in syscons.c and definition in syscons.h
(d) add cxdevtotty

NOT DONE:
(e) make pcvt work... it was already broken...when someone fixes pcvt to
	link properly, just rename get_pccons to xxxdevtotty and we're done
1995-02-28 00:21:11 +00:00
Andreas Schulz db312e6697 Delete one of the two references to intro(3) in the SEE ALSO section
and add an intro(7) instead.
1995-02-28 00:19:41 +00:00
Andreas Schulz ecea97a372 build the link from man8/man8.i386/MAKEDEV.8 toman8/MAKEDEV.8 so that this
manual page can now also be read.
Change the references in MAKEDEV from com to tty and delete flog and add
sd instead.
Need much more work, but for today, after i lost my first changes through
a new sup :-), that's enough.
1995-02-28 00:16:13 +00:00
Jordan K. Hubbard 16818161a3 Many stylistic and grammar changes. 1995-02-28 00:13:20 +00:00
Poul-Henning Kamp c855f71f96 Updated. 1995-02-27 23:58:19 +00:00
Poul-Henning Kamp eafbf78d25 Latest updates to this. 1995-02-27 22:26:58 +00:00
Guido van Rooij dcb8def0e7 Fix completely broken find behaviour:
a find -foo -o -bar would behave like find -bar. The same for -a
This broke (among others) ./etc/security.

Obtained from: NetBSD
1995-02-27 20:52:36 +00:00
Ugen J.S. Antsilevich c120979990 same 1995-02-27 19:48:19 +00:00
Ugen J.S. Antsilevich 0739a0dc6e same 1995-02-27 19:47:53 +00:00
Ugen J.S. Antsilevich eeef1b59d9 same.. 1995-02-27 19:46:27 +00:00
Ugen J.S. Antsilevich 446cbcf7ed Snoop device stuff
* Make snoop see the output in tty ECHO mode
 * Allow writing to observed tty (very funny)
 * Fix and extend watch util.
 * Fix and update manpages
1995-02-27 19:45:57 +00:00
Bill Paul fb07c04ab0 Add entry for bootparamd and friends. 1995-02-27 19:21:16 +00:00
Andrey A. Chernov 8a6fe12553 Cleanup device names, add more devices for Linux sounddriver 1995-02-27 18:54:27 +00:00
Stefan Eßer 7368f324a8 Don't try to make use of useless rotational position optimisation,
if all free blocks are in the same bucket (i.e. NRPOS == 1).
Else a free block is choosen, possibly from a different cylinder,
even if the block succeeding bpref was free ...

Submitted by:	se
1995-02-27 17:43:57 +00:00
Stefan Eßer c79b89e28f Add code to deal with PCI-PCI bridge chips, especially the DEC 21050.
Try to deduce maximum number of PCI buses in system (working around
chip set bugs).
Better check for devices at multiple addresses (aliases).

Reviewed by:	se
Submitted by:	<[email protected]> Wolfgang Stanglmeier
1995-02-27 17:22:09 +00:00
Stefan Eßer 04dbb40865 First try to add support for PCI-PCI bridge chips (written for the
DEC 21050 chip in particular, don't have specs of other such chips).

This should add support for Multiple-Ethernet PCI cards (e.g. Znyx 314).

Reviewed by:	se
Submitted by:	<[email protected]> Wolfgang Stanglmeier
1995-02-27 17:17:14 +00:00
Stefan Eßer dff6de1a8c Delete bogus semicolon in macro definition. 1995-02-27 17:10:20 +00:00
Ugen J.S. Antsilevich 5321a06fb8 Remove strncmp() fro userconfig,it's
already in libkern..if there is any other place
strncmp() used,remove it there guys..
1995-02-27 13:39:39 +00:00
Atsushi Murai 41db65649e Fixing minor bug and allow help(Not for all command) and quit
but not close line connection by "quit all" command if not
authorized.

Reviewed by:	[email protected]
Submitted by:	[email protected] [email protected]
1995-02-27 10:57:54 +00:00
Ugen J.S. Antsilevich ce83f1d6d8 Fixed manpage..ldeny,lreject and log options are there
and others not..
Submitted by:	[email protected]
1995-02-27 10:52:22 +00:00
David Greenman 7500ed1d63 Backed out previous change. I forgot (for about the fourth time) that
v_rdev is a #define which is dereferenced through v_specinfo->si_rdev,
and that isn't initialized until later in checkalias().
1995-02-27 10:15:38 +00:00
Ugen J.S. Antsilevich be96c4f445 Add strncmp() function..I need it and
hope nobody will eat me alive for this..:)
1995-02-27 09:16:04 +00:00
Poul-Henning Kamp 841d930e9d Another shameless plug for CTM :-) 1995-02-27 08:31:19 +00:00
Poul-Henning Kamp 015d0d4157 Document CTM now that it went public. 1995-02-27 08:25:53 +00:00
David Greenman f9ceb7c7b5 Initialize v_rdev in getnewvnode() - it appears that some filesystems
may not properly initialize this field in all cases, and this would
result in very anti-social behavior (overwriting on some other random
device/location).

Submitted by:	John Dyson
1995-02-27 06:50:08 +00:00
David Greenman 9ddf48f0d2 Slight change to wdwait() to improve performance while not violating the
ATA spec.

Submitted by:	John Dyson
1995-02-27 06:42:35 +00:00
Atsushi Murai b808c7565b Compile error occured by missing auth.h/cdefs.h
Reviewed by:	[email protected]
1995-02-27 03:18:28 +00:00
Atsushi Murai d71413016a Re add ppp entry causing by missing auth.h/cdefs.h
Reviewed by:	[email protected]
1995-02-27 03:16:48 +00:00
Andrey A. Chernov 6c5f92f17f Fix two quad_t casts, one reported by [email protected] 1995-02-26 23:48:51 +00:00
Bill Paul b9fefab743 Obtained from: The Xkernel source distribution
I hope I'm doing this right.

This is an initial version of bootparamd for FreeBSD based on a public
domain rpc.bootparamd implementation by a gentleman named Klas Heggemann.
This program has apparently been around for a while. The README explicitly
lists the code as public domain, so I guess it's safe to use.

This program is needed for booting diskless SunOS and Solaris machines.
rarpd is also required, but that's in the works too.

I have made two changes to this code:

- Implemented NIS lookups. If /etc/bootparams contains a '+' then the
  bootparams map is consulted.

- Allow 0.0.0.0 as a user-specified router address. The SunOS rpc.bootparamd
  returns this value in many cases.
1995-02-26 23:40:53 +00:00
Jordan K. Hubbard 23adc6b882 I think the security check to invalidate ALL write requests was just a little
excessive, and violates the specification defined in the manpage to boot.
1995-02-26 23:28:00 +00:00
Poul-Henning Kamp f3fb4d806f I really hate this:
unless I go "splhigh" (as opposed to splimp before) the TCP/IP driver
doesn't work anymore...  Why ?
1995-02-26 21:41:41 +00:00
Gary Clark II 22cb53a866 Update Mitsumi CD-ROM entry to state we do not support the IDE
interfaces.
1995-02-26 21:27:29 +00:00
Bill Paul 3e38f89608 The bootparam protocol file needs some extra includes in FreeBSD in order
to properly resolve some definitions in <nfs/nfs.h>. I suppose nobody noticed
this before because no one's tried to build bootparamd in FreeBSD until
now.

(Yes, you read that right: I've got bootparamd ready to go. And
rarpd is on the way. :)
1995-02-26 21:11:08 +00:00
Poul-Henning Kamp 7e055f73f4 Various things, bits and pieces to make this maybe work next time. 1995-02-26 20:45:34 +00:00
Poul-Henning Kamp 7705c77bd6 The things you have to go through some times! Add a minimal program to
read a termcap entry, since tset is picky about filedescriptors...
1995-02-26 20:39:40 +00:00
Andrey A. Chernov e04e0de266 Move symlinks creation here 1995-02-26 20:29:37 +00:00
Rodney W. Grimes 10d8be01f2 Update to use 4.4 style includes.
Include proper files for 2.x.
Remove old unused argument to ixreset (int uba)
Nolonger convert ether_type to host byte order.
Use arp_ifinit in place of arpwhohas.
Change cb_ias to be non volatile.
1995-02-26 20:13:15 +00:00
David Greenman caffd55fe6 Doubled 'maxwait' to 200 (240us).
Submitted by:	[email protected] (Brian Litzinger)
1995-02-26 20:03:53 +00:00
Rodney W. Grimes 28fe6ad5e3 Update copyright to be UCB style allowing redistributions. 1995-02-26 19:40:07 +00:00
Guido van Rooij 3eb568f24c Add some functionality to ftpd so it logs all anonymous file
transfers. It only does this when -S is set.
Reviewed by:
Submitted by:
Obtained from: logdaemon package
1995-02-26 19:36:59 +00:00
Joerg Wunsch def5a1b108 Patch bei Wolfram to avoid processing duplicate directories.
Submitted by:	[email protected] (Wolfram Schneider)
1995-02-26 19:35:06 +00:00
Rodney W. Grimes a44078d03f Last 1.x version of Intel EtherExpress driver. 1995-02-26 19:34:34 +00:00
Jordan K. Hubbard be4ddfeba3 Take ppp out until it works again - there's actually stuff missing from
the merge.
1995-02-26 18:58:49 +00:00
Jordan K. Hubbard a860ee982e I assume someone had a good reason for breaking this? Try again!
For now, I'll content myself with fixing the tree.
1995-02-26 18:20:36 +00:00
Atsushi Murai 53c9f6c0c4 New user Process PPP based on iij-ppp0.94beta2.
o Supporting SYNC SIO device (But need a device driver)
     - add "set speed sync"
   o Fixing bug for Predictor-1 function.
   o Add new parameter that re-sent interval for set timeout commands.
   o Improving RTT (Round Trip Time) and reducing processor time.
     - Previous Timer service was using polling, and now using
       SIGALRM ;-)
     - A 0.94beta2 will not work correctly....

   -- Follows are additinal feature not including 0.94beta2
   o Support Proxy ARP
     - add "enable/disable proxy" commands
   o Marging common routine in CHAP/PAP.
   o Enhancing LCP/IPCP log information.
   o Support local Authfication connection on port 300x and tty.
     - You can set up pair of your "hostname -s" and
       password in ppp.secret. if either ppp.secret file nor
       your hostname line don't exist, It will notify a message
       and working as same as previous version.(Backword compatibility)
     - If you did set up them, It's allow connection but nothing to do
       except help and passwd command.
     - add "passwd yourpasswd" commands
   o Support afilter - keep Alive filter that a packet can send/receiving
     according to ifilter/ofilter but doesn't count it as preventing idle
     timer expires.
     - Same syntax of other filters.
   o Fixing bugs reported by current user for previous one. Thanks !!

Reviewed by: Atsushi Murai ([email protected])
1995-02-26 12:18:08 +00:00
Bruce Evans 550f8550ec Replace all remaining instances of i386/include' by machine' and fix
nearby #include inconsistencies.
1995-02-26 05:14:53 +00:00
Bruce Evans c5489d9047 Use relative include path and -nostdinc avoid getting anything from
/usr/include.
1995-02-26 05:05:53 +00:00
Bill Paul 6a4f61a2ab Submitted by: Sebastian Strollo <[email protected]>
Fixes to ypbind:

- Correctly report the fact that we've bound to a new server when
logging the 'server OK' message.

- Report 'server not responding' just once instead of every
5 seconds while searching for a new server. (Prevents overstuffing
the syslog.)

- Apply patch from Sebstian Strollo to implement '-s' (secure) flag.
ypbind will reject connections from servers that do not originate
from a reserved TCP port.

- Apply patch from Sebastian Strollo to detect when a YP server has
crashed and come back up on a different port number.
1995-02-26 04:42:48 +00:00
Bruce Evans 0fe414febc Eliminate my private type `bool_t'. 1995-02-26 03:15:36 +00:00
Bruce Evans eac78dccac Install manpath.config.sample with the correct mode. It should be installed
elsewhere.
1995-02-26 03:03:15 +00:00
Bruce Evans 2c9da268b6 Remove dbsym. 1995-02-26 02:33:09 +00:00
Bruce Evans eecd3071a6 Don't confuse the frequency with the wavelength in DELAY() args. 960 cps
is close to 1000000 / 960 usec so the confusion probably didn't matter.

Test for COMCONSOLE before testing for RB_SERIAL so that the RB_SERIAL
test can be optimized away if COMCONSOLE is 1.

Simplify and Uniformize style of previous commit.
1995-02-26 02:30:18 +00:00
Poul-Henning Kamp 9ff24e353a Updated TODO a bit.
PLEASE take a little time to dump a couple of the things you know you will
never get around to do yourself into this file !!
1995-02-26 02:10:04 +00:00
Poul-Henning Kamp c8006b1500 oops. 1995-02-26 02:00:35 +00:00
Poul-Henning Kamp 23b406e176 Add a '-p' option to md5. This will save some time in generation of the
ctm deltas.
1995-02-26 01:55:31 +00:00
Bruce Evans 671e2cee97 Declare all the args of Fdopen() and fdclose().
Initialize dk_wpms[] less bogusly.

Clean up includes.

Remove some obsolete comments.
1995-02-26 01:37:51 +00:00
Poul-Henning Kamp 7eb112010a Various changes to make this work. 1995-02-26 01:35:32 +00:00
Poul-Henning Kamp 16c634b104 use etc:distrib-dirs instead of release:hierarchy. remove SUBDIR reference
to release.
1995-02-26 01:27:27 +00:00
Bruce Evans 77a6e242ae Declare all the args of wdclose() and wdioctl(). Cosmetic. 1995-02-26 01:15:30 +00:00
Ollivier Robert 4640bd1515 The latest version of XFree86 is 3.1.1. 1995-02-25 23:42:14 +00:00
Gary Clark II 653ae0189f Updated the FAQ. Would everyone please review their sections.
e.g.
Non-USA DES
Networking cards
Do we have an update kernel debugging FAQ?

I'll posting the FAQ on SUNDAY!!
1995-02-25 23:00:50 +00:00
Poul-Henning Kamp bd668f6f6c New and better "make release" rules. 1995-02-25 22:08:48 +00:00
Poul-Henning Kamp fba33612b8 make distribute change. 1995-02-25 21:01:48 +00:00
Poul-Henning Kamp ffd87c071d "make distribute" have changed, beware if you use it. 1995-02-25 20:51:14 +00:00
Poul-Henning Kamp ca063ee672 Change EISA size to 256 instead of 4096.
Neither are correct, but 256 does least damage.
1995-02-25 20:26:14 +00:00
Paul Traina 8340e9ceab Update to reflect new calling conventions 1995-02-25 20:15:20 +00:00
Paul Traina cb95dc2435 Update to use new calling conventions 1995-02-25 20:14:31 +00:00
Paul Traina 77f77631e7 (a) remove the pointer to each driver's tty structure array from cdevsw
(b) add a function callback vector to tty drivers that will return a pointer
    to a valid tty structure based upon a dev_t
(c) make syscons structures the same size whether or not APM is enabled so
    utilities don't crash if NAPM changes (and make the damn kernel compile!)
(d) rewrite /dev/snp ioctl interface so that it is device driver and i386
    independant
1995-02-25 20:09:44 +00:00
Jordan K. Hubbard 686c46d225 iodone->biodone; get rid of older call syntax. 1995-02-25 19:11:11 +00:00
Poul-Henning Kamp 6e65a78aee Read K&R and get the { } right :-) 1995-02-25 18:55:53 +00:00
Bruce Evans 4f9fb771a5 Don't use __P(()) in a function definition. 1995-02-25 18:39:04 +00:00
Poul-Henning Kamp d8ee5072e3 I belive I finally got the "on eisa" right.
| if (!(isdp->id_iobase & 0xf300)) {
| 	printf(" on motherboard\n");
| } else if (isdp->id_iobase >= 0x1000 &&
| 	!(isdp->id_opbase & 0x300)) {
| 		printf (" on eisa slot %d\n",
| 			isdp->id_iobase >> 12);
| 	} else {
| 		printf (" on isa\n");
| 	}
| }

Based on info in "The undocumented PC" p.165
1995-02-25 18:29:10 +00:00
Andrey A. Chernov 7fe4e56742 configure_network() if carrier already present
Submitted by: [email protected]
1995-02-25 18:06:23 +00:00
Stefan Eßer 781d9d4623 Keep PCI_CONF_MODE in a safe place for later reference, if #defined.
Reviewed by:	se
Submitted by:	[email protected] (Sebastian Strollo)
1995-02-25 17:51:18 +00:00
Stefan Eßer 9b7d1decfc Make people happy, who claim to better know how "interupt"
is to be spelled :).

Submitted by:	<[email protected]> Wolfgang Stanglmeier
1995-02-25 17:34:03 +00:00
Stefan Eßer ef2dee21dc Deal with systems, that lack a fully decoded PCI configuration space.
Submitted by:	<[email protected]> Wolfgang Stanglmeier
1995-02-25 17:26:22 +00:00
David Greenman c3a1e4250f Fixed severely broken printf (arguments out of order, no newline). 1995-02-25 17:02:48 +00:00
Bruce Evans a07f28e24e Remove YF comments. 1995-02-25 16:48:28 +00:00
Bruce Evans 64f14011a8 Fix previous fix to agree with the man page - don't report errors in
kvm_open() if errstr is NULL.
1995-02-25 16:44:01 +00:00
Bruce Evans 5dddb8148b Don't attempt to lstat() the POSIXLY invalid empty pathname.
realpath() still accepts "" as an arg and converts it to a canonical
pathname for the current directory.
1995-02-25 16:06:07 +00:00
David Greenman 386094e305 Fixed comment - IFT_P80 is 80mbit.
Submitted by:	[email protected] (Frank van der Linden)
1995-02-25 15:57:55 +00:00
David Greenman c5b90f7db2 Spell "guaranteed" correctly.
Submitted by:	[email protected] (Frank van der Linden)
1995-02-25 15:56:00 +00:00
Andrey A. Chernov 4e1d0de380 cons25: turn off bold in "op" escape 1995-02-25 13:49:47 +00:00
Poul-Henning Kamp fb7f926e3d Add a '-l' option, which lists the argv[0]'s we will respond to. This will
simplify the src/release Makefile quite a bit.
1995-02-25 07:25:31 +00:00
Poul-Henning Kamp 286e9a77d2 (Not tested yet. I may insist that ctm be invoked with absolute path. /phk)
This patch fixes the concurrency problem, and adds a possibly useful -f switch
(which you can read about in the man page :-) ).  It also removes the absolute
path from the invocation of ctm.  I'll write a note about how to use a script
with sendmail and procmail or some such, and people can fix their PATH there.

BTW, this patch changes ctm_rmail.1, ctm_rmail.c and error.c in the ctm_rmail
directory.

Stephen.

Reviewed by:	phk
Submitted by:	Stephen McKay <[email protected]>
1995-02-25 05:10:18 +00:00
Poul-Henning Kamp 28db07dea2 Just a precaution: ctm will not accept '..' in paths anymore.
I'm never going to generate one, so this is a guard against hackers mostly.

Reviewed by:	phk
Submitted by:	Stephen McKay <[email protected]>
Obtained from:
1995-02-25 05:02:18 +00:00
Poul-Henning Kamp 728736c058 Explain the full story, and make it understandable too. 1995-02-25 04:43:20 +00:00
David Greenman 4494100855 Fixed thrashing buffer problem.
Submitted by:	John Dyson
1995-02-25 01:46:26 +00:00
Joerg Wunsch bcdd2389fe Allow tty0? to be an alias for tty? when creating the dev nodes.
People tend to be confused unnecessarily otherwise.
1995-02-24 19:26:59 +00:00
Ugen J.S. Antsilevich 29fe22b93f Allow "via" to be specified ever as IP adress or
as interface name/unit...
1995-02-24 14:33:54 +00:00
Ugen J.S. Antsilevich b71bca73b6 Add commeent to say that this manpage is out of date
and will be rewwritten..
1995-02-24 14:33:18 +00:00
Ugen J.S. Antsilevich ab7d7f5827 Change utility to accept interface name
along with IP as "via" argument
1995-02-24 14:32:45 +00:00
David Greenman 55088a1c1e In ifa_ifwithdstaddr() when walking through ifa structs associated with
a point-to-point link, don't attempt a comparison if the pointer to the
destination sockaddr is NULL (i.e. it has not been set/initialized).
1995-02-24 11:47:31 +00:00
Jordan K. Hubbard 5865e890a7 Correct a few typos. 1995-02-24 11:21:34 +00:00
Poul-Henning Kamp e4f13e774e Remove a couple of nested comments. 1995-02-24 08:57:45 +00:00
Poul-Henning Kamp 6c20486de4 Clean a bunch of -Wall warnings. 1995-02-24 08:51:34 +00:00
Poul-Henning Kamp 12eaa3d55d Remove some unused variables and fix two blatant core dump triggers. 1995-02-24 08:15:27 +00:00
Poul-Henning Kamp e9434bccf7 Remove an unused variable. 1995-02-24 07:51:13 +00:00
Poul-Henning Kamp 888bbd45f9 fix the synopsis to show
|     void
|    *signal(int sig, void (*func)(int))

instead of

|     void
|     *signal(sig, func())
|
|     void
|     (*func)()
1995-02-24 07:35:49 +00:00
Poul-Henning Kamp b117ae8a85 I (phk) blundered with the last change. Make it right & better now.
Reviewed by:	phk
Submitted by:	John Hay <[email protected]>
1995-02-24 05:41:24 +00:00
Poul-Henning Kamp 6d5be8a5d4 OK, we changed our mind again: -ln -s ... 1995-02-24 04:16:26 +00:00
Andrey A. Chernov 81c427da32 Add releasing of input flow control into
ttyflush(FREAD)
1995-02-24 02:36:01 +00:00
Andrey A. Chernov 977e8ea0c9 Add missing #include <time.h> with time() prototype 1995-02-24 01:02:59 +00:00
Andrey A. Chernov 838dadc476 Revive input flow control, some ideas from [email protected]
Get rid of TS_RTS_IFLOW, all kinds of input flow control handled
by only one flag now: TS_TBLOCK
Add missing put(VSTOP) when IXOFF control is active.
1995-02-24 00:11:01 +00:00
Andrey A. Chernov e6c16d383f Implement --hline "line" and --hfile file 1995-02-23 22:42:44 +00:00
Andrey A. Chernov fdcf149868 Simplify notify()
Fix dupwin usage, now it really restore screen
Disable helpline while helpfile displayed
Fix helpfile borders
Fix mesgbox range computing
1995-02-23 22:36:56 +00:00
David Greenman b106f3b255 Removed redundant HOLDRELE()'s. 1995-02-23 22:32:38 +00:00
Joerg Wunsch 8f72439b71 Update my mail addr, now that i've got my own subdomain. 1995-02-23 20:34:09 +00:00
Poul-Henning Kamp 3acca2e108 Once and for all: Never a ${DESTDIR} in ${BINDIR} ! 1995-02-23 19:45:30 +00:00
Poul-Henning Kamp 0aba884c7d Make sure link to /etc/rmt happens.
Now I know that there was talk of moving it to the release/Makefile or the
etc/Makefile, but I don't think it was ever decided where.

Reviewed by:	phk
Submitted by:	John Hay <[email protected]>
1995-02-23 19:40:48 +00:00
David Greenman 9b4b42d17b Implemented mbstat.m_wait and mbstat.m_drops. 1995-02-23 19:10:21 +00:00
David Greenman c585f97c65 Changed "mapped pages in use" to "mbuf clusters in use". 1995-02-23 19:08:11 +00:00
Andrey A. Chernov 7f3b05aa16 Fix typo: pcap.h.h 1995-02-23 18:47:06 +00:00
Rodney W. Grimes 2828ae663a Fix spelling error (scipt -> script).
Submitted by:	<[email protected]>
Obtained from:	NetBSD-bugs mailling list
1995-02-23 17:46:35 +00:00
Andrey A. Chernov 32a61937d7 READSUBCHANNEL:
complete implementation of CD_MSF_FORMAT
implement CD_LBA_FORMAT
Issue STOP before reading toc entries
1995-02-23 17:40:16 +00:00
Bruce Evans 7f3ae831f7 Submitted by: [email protected] (Sebastian Strollo)
Remove over-cautious early fnop() synchronization.  It caused the probe to
hang on systems without an FPU.
1995-02-23 17:32:38 +00:00
Bruce Evans 226d4c89da Make diskslice files standard and remove option DISKSLICE. ufs_disksubr.c
needed a diskslice function yesterday and all disk drivers will need it.
The diskslice initialization routine should be configurable (but isn't).
1995-02-23 17:19:54 +00:00
Ugen J.S. Antsilevich c8183bbb29 Fix(it was 1 character actually:) 1995-02-23 11:18:35 +00:00
Poul-Henning Kamp 38994f93ce Fix -Wall warnings.
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
Poul-Henning Kamp 5dec1760ed Quench a warning and fix some duplicity by using the official strerror
routine, instead of rolling our own.
1995-02-23 06:55:14 +00:00
Poul-Henning Kamp 7d6349eb5f Don't rely on execute bit. 1995-02-23 05:48:38 +00:00
Poul-Henning Kamp d742998bc1 Make us a little safer, by writing to a tempfile, and rename when done.
Still needs more locking I belive.
1995-02-23 04:51:36 +00:00
Andrey A. Chernov 227b711d8e Add two IXOFF checks to not confuse with CRTS_IFLOW.
Now TS_TBLOCK used as general input flow flag
for both IXOFF and CRTS_IFLOW cases.
1995-02-23 03:02:38 +00:00
Paul Traina 7fec27e124 Correct error in structure definition 1995-02-23 01:27:17 +00:00
Paul Traina 533f4c5076 Clean up man page 1995-02-23 01:25:48 +00:00
Paul Traina f098a2f451 Import 8.6.10 release notes 1995-02-23 00:53:39 +00:00
Paul Traina 950d9f5aa8 Cover 8.6.10 merge conflicts and warnings 1995-02-23 00:46:36 +00:00
Paul Traina c11cc9c931 Remove watch(8) 1995-02-23 00:27:08 +00:00
Paul Traina 1c4239e90e Add watch(8) 1995-02-23 00:26:49 +00:00
Paul Traina 53493c9b78 Sendmail 8.6.10 update for security problems.
Imported on CSRG/V_8_6_10 branch.

Obtained from: CSRG/Allman
1995-02-23 00:20:00 +00:00
Jean-Marc Zucconi bb12981561 Change permissions and ownership of joystick device files. 1995-02-22 23:52:58 +00:00
Paul Traina 16ae87aed1 Rewrite manual page to use mandoc correctly and fix english grammar. 1995-02-22 23:47:51 +00:00
Jean-Marc Zucconi 95344a43ed Put the joystick status in a struct {int x, y, b1, b2;} rather than in a
dummy array of 4 integers. Declare the struct in the header file and update
the man page.
1995-02-22 23:34:58 +00:00
Bruce Evans f75dd51832 Don't clobber d_secperunit in disklabel -e'. disklabel -e' replaces all
the values that it doesn't print by defaults.  This seems wrong.  I want
to be able to see the total number of sectors more than edit it.  The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
1995-02-22 23:21:29 +00:00
Andrey A. Chernov d8947494e5 Revive hadrware input flow control
Submitted by: [email protected]
1995-02-22 23:20:51 +00:00
Paul Traina 343f523cb9 Added name to contributor list. 1995-02-22 22:57:20 +00:00
Bruce Evans 30ca037de1 Use dsname() to get consistent names. 1995-02-22 22:46:48 +00:00
Bruce Evans 268c424b23 Remove the #error that temporarily stopped this from supporting slices and
labels.

Please test the slice/label features:
	cd /dev; sh MAKEDEV svn0
	cd /var/tmp; dd if=/dev/zero of=vnfile bs=8192 count=1024
	vnconfig -c /dev/rvn0 /var/tmp/vnfile
	fdisk /dev/rvn0  # invent a geometry, create one BSD partition
	disklabel -r -w vn0 floppy  # a convenient (bogus) label
	disklabel -e vn0  # edit label to match device
	newfs /dev/rvn0a
	mount /dev/vn0a /mnt
	...
The steps after the fdisk could name the device vn0s1 instead of vn0.
1995-02-22 22:06:20 +00:00
Bruce Evans ae623967ec Fix initialization of the copy of the label passed to setdisklabel().
Fix the sign of the adjustment after writing a label.

Writing of labels should work now.

Merge adjust_label() into fixlabel().  Detect more errors and don't
write if there is an error.  Adjust sectors/unit and total sectors
to the numbers on the slice.

Add a function dsname() to print slice device names consistently, and
use it.
1995-02-22 21:51:53 +00:00
Ollivier Robert 07d35ca333 Add my thin 8x16 font with ISO-8859-1 characters.
Sorry, no 8x8 or 8x14 font.
1995-02-22 21:49:53 +00:00
Andreas Schulz 08b48e644c Document the mountdtab file in the man page. 1995-02-22 21:42:48 +00:00
Bruce Evans 60a411daf4 Add a prototype. 1995-02-22 21:24:21 +00:00
Rodney W. Grimes 7f4be180a5 Add ``Make find smarter about -fstype local''. 1995-02-22 20:28:07 +00:00
David Greenman 197611452d Added v_interrupt_free_min to cnt struct. 1995-02-22 18:06:49 +00:00
Stefan Eßer fe5278a5cc Cleanup for compatibility with another OS.
Submitted by:	wolf
1995-02-22 18:04:56 +00:00
Jordan K. Hubbard b5909509ee Make good on my promise to finally clean up the config clobbering.
If you invoke config with the `-n' flag or have NO_CONFIG_CLOBBER in
your environment, config will behave the same way it used to.  This is
now _documented_ as well.  Rip out all the CONFIG_DONT_CLOBBER cruft;
some of it wasn't even correct anyway.
1995-02-22 15:37:32 +00:00
Stefan Eßer d9dc2f74ef New PCI attach code:
PCI BIOS mappings are retained, except if option PCI_REMAP
is specified in the kernel config file.
There is now a list of attach addresses, and the first
address that seems to make some device registers appear
is chosen.

Reviewed by:	se
Submitted by:	wolf
1995-02-22 14:17:15 +00:00
Søren Schmidt 1242c0a653 Added six new thin fonts (great on laptops)
Cleaned up Makefile
1995-02-22 14:03:16 +00:00
Søren Schmidt 17ee9d00bc Next syscons update (given up on numbering :)
Removed screensavers from syscons, they are now LKM's. This makes it
possible to do some really "interesting" screensavers...
Fixed bug that sometimes caused garbage to appear when leaving
"scroll-lock" history.
Reformattet indentation, it got too deep for a normal 80 pos screen.
Split up in syscons.c & syscons.h for use with the saver-lkm's.
Temporarily removed -s option from vidcontrol, savers should now
be loaded with modload.
1995-02-22 13:48:07 +00:00
Jordan K. Hubbard dd33263156 Add a man page for the Sony CDROM driver. Other driver authors, you might
do a quick check here..
1995-02-22 13:30:39 +00:00
David Greenman 187f007190 Changed return value from vnode_pager_addr to be in DEV_BSIZE units so
that 9 bits aren't lost in the conversion. Changed all callers to expect
this. This allows paging on large (>2GB) filesystems.

Submitted by:	John Dyson
1995-02-22 10:34:34 +00:00
David Greenman 6f2b142ed8 vm_page.c:
Use request==VM_ALLOC_NORMAL rather than object!=kmem_object in deciding
if the caller is "important" in vm_page_alloc(). Also established a new
low threshold for non-interrupt allocations via cnt.v_interrupt_free_min.

vm_pageout.c:
Various algorithmic cleanup. Some calculations simplified. Initialize
cnt.v_interrupt_free_min to 2 pages.

Submitted by:	John Dyson
1995-02-22 10:27:24 +00:00
David Greenman 5e716206c0 Just return in the case of a page not on any queue in vm_page_unqueue().
Return VM_PAGE_BITS_ALL even if size > PAGE_SIZE in vm_page_bits().

Submitted by:	John Dyson
1995-02-22 10:16:21 +00:00
David Greenman 26f5e3ab12 Removed object locking code (it was a left over from an abortion that
was done a month or so ago).

Submitted by:	John Dyson
1995-02-22 10:06:43 +00:00
David Greenman a7ac758ec7 Removed bogus copy object collapse check (the idea is right, but the
spcific check was bogus).
Removed old copy of vm_object_page_clean and took out the #if 1 around
the remaining one.

Submitted by:	John Dyson
1995-02-22 10:00:16 +00:00
David Greenman a3a8bb29d2 vfs_cluster.c:
Various more tweaks from John Dyson to improve read ahead calculations.

vfs_subr.c:
Only wakeup if numoutput is 0 in vwakeup().

Submitted by:	John Dyson
1995-02-22 09:39:22 +00:00
David Greenman 701d45805b Added some code to make sure that buffers associated with directories and
metadata aren't thrashed by regular file I/O.
Added mechanism to limit the amount of outstanding I/O on a given vnode.
Pagedaemon wakeup policy changed to skew priority a little in favor of
file caching.
Slight code reorganization to improve clarity.
Added a few more comments.

Submitted by:	John Dyson
1995-02-22 09:30:13 +00:00
David Greenman 7a53944444 Only do object paging_in_progress wakeups if someone is waiting on this
condition.
Added some comments.

Submitted by:	John Dyson
1995-02-22 09:16:07 +00:00
David Greenman c0503609a0 Only do object paging_in_progress wakeups if someone is waiting on this
condition.

Submitted by:	John Dyson
1995-02-22 09:15:35 +00:00
David Greenman 50ce2102e1 Rewrote MAP_PRIVATE case of vm_mmap() - all of the COW portion of this
routine was highly convoluted.

Submitted by:	John Dyson
1995-02-22 08:40:54 +00:00
Bruce Evans 6f05a6e836 Fix benign type mismatch. 1995-02-22 07:23:26 +00:00
Atsushi Murai 91fe718914 The 'set ifilter'/'set ofilter' commands accept a syntax containing
IP addresses and/or protocol+port, but in the case where both are
supplied, it happily accepts the command but ignores the proto+port
It also attempts to handle the case where the second IP address
is omitted, but this doesn't work.

Reviewed by:  [email protected]
Submitted by: [email protected]
1995-02-22 06:44:03 +00:00
Andrey A. Chernov 2b7b13bca8 add /usr/local/share, needed by some ports 1995-02-22 04:34:19 +00:00
Poul-Henning Kamp f99949bf6c Added entry from Jim Bryant 1995-02-22 03:49:46 +00:00
Andrey A. Chernov e1a0a1cdfb Increase retry count while reading toc, old one
isn't enough for spin up
1995-02-22 02:12:10 +00:00
Andrey A. Chernov ae9ad53d84 Use CDPLAY environment variable to not type argument each time
Submitted by: [email protected]
1995-02-22 01:45:03 +00:00
Justin T. Gibbs 45e002218d Add a define for the SCSI_QUEUE_FULL sense message 1995-02-22 01:44:21 +00:00
Justin T. Gibbs 6d1dd577f3 Add tagged queueing support. Right now, we only allow two tagged
commands per target.  I could have followed the route of the ncr driver
and gone to great lengths to get the SCSI subsystem to support more, but
I think I'll use the time saved to help Julian and Peter make tagged
queuing a better handled generic feature.  This also includes some comment
and enum clean up and a possible fix for the hanging PCI controllers.
1995-02-22 01:43:25 +00:00
Justin T. Gibbs 7325b76b7d Add tagged queueing support to the aic7xxx sequencer code. 1995-02-22 01:37:52 +00:00
Andrey A. Chernov 13438c1874 mixer added 1995-02-22 01:37:47 +00:00
Andrey A. Chernov ae9304b170 Move mixer to usr.sbin 1995-02-22 01:36:12 +00:00
Andrey A. Chernov 50a3eb230e Do not close cd after eject, close on each ioctl error instead.
Do not open cd on help and quit commands.
1995-02-22 01:19:06 +00:00
Andrey A. Chernov 39c88daba9 Implement tray closing and tray locking
Fix first open fails bug
1995-02-22 01:11:36 +00:00
Bruce Evans 2d091ecf19 Obtained from: memories of 1.1.5
Fix the sign of the timezone offset again.
1995-02-21 18:41:30 +00:00
Jordan K. Hubbard 9016a6c149 Remove FAT_CURSOR - it's deprecated.
Submitted by:	"Philippe Charnier" <[email protected]>
1995-02-21 13:42:57 +00:00
David Greenman 2c0bc39683 Panic if u_map allocation fails. 1995-02-21 12:06:06 +00:00
Andras Olah 8a695f765c Fix bogus Makefile which resulted in incompatible shared and static
libs.

Reviewed by:	Michael Reifenberger <[email protected]>,
		[email protected] (Ollivier ROBERT)
1995-02-21 10:46:34 +00:00
Andreas Schulz 0e13d5af6f Add sgsc to the clean/cleandir targets. 1995-02-21 10:30:41 +00:00
Bruce Evans cf343b5640 Discard junk from partition tables when reading the tables for applications
the same as when initializing the in-core copies.  Adjust checksums in
labels after adjusting labels.  This finishes fudging the on-disk label to
make it coherent with the in-core label.

Handle EIO during initialization better.

Initialize the compatibility slice to the whole disk If there are no real
slices.

Don't warn about adjusting offsets in the label to make the 'c' partition
start at 0.  The 'c' offset is now always absolute on-disk and 0 in-core
so an adjustment is usually required.

Don't confuse LABEL_PART with RAW_PART so much.

Check for partitions being within slices differently.
1995-02-21 08:38:24 +00:00
Bruce Evans 22544eb7a0 Don't generate any errors here other than EIO. An invalid partition
table is not an error, it just causes a smaller slice table.
1995-02-21 08:37:09 +00:00
Poul-Henning Kamp d66cc71bb5 Speed md5 up around 30% by shorting out a couple of cumbersome
memcpy equivalent functions.
1995-02-21 06:01:49 +00:00
Poul-Henning Kamp b27dffd2ac add "fib"
Reviewed by:	phk
Submitted by:	Mark Murray <[email protected]>
Obtained from:
1995-02-21 04:41:03 +00:00
Garrett Wollman e151093c6f Not sure why this one was -lcompat since it doesn't reference anything in
it.
1995-02-21 04:35:43 +00:00
Garrett Wollman 94ea865c39 Use POSIX.2 regular expressions, kill libcompat. 1995-02-21 04:32:55 +00:00
Jordan K. Hubbard a34565af65 Totally get rid of the snic driver.
Submitted by:	davidg
1995-02-21 04:26:35 +00:00
Garrett Wollman 59bfb274d1 Use tcflush(), eliminate libcompat. 1995-02-21 04:15:15 +00:00
Garrett Wollman d7a124e5d8 Use POSIX.2 regular expressions, get rid of libcompat. 1995-02-21 04:05:20 +00:00
Garrett Wollman 9908b9abfc more now uses POSIX regular expressions and no longer needs libcompat. 1995-02-21 03:46:48 +00:00
Poul-Henning Kamp b833a22c62 Be more exclusive about cvs-locks. 1995-02-21 02:09:47 +00:00
David Greenman 2df771e5c0 vm_extern.h: removed vm_allocate_with_pager.
Removed vm_user.c...it's now completely deprecated.
1995-02-21 01:32:47 +00:00
David Greenman 92a63cbb92 Removed vm_user.c. 1995-02-21 01:31:14 +00:00
David Greenman 7fb0c17ed2 Deprecated remaining use of vm_deallocate. Deprecated vm_allocate_with_
pager(). Almost completely rewrote vm_mmap(); when John gets done with
the bottom half, it will be a complete rewrite. Deprecated most use of
vm_object_setpager(). Removed side effect of setting object persist
in vm_object_enter and moved this into the pager(s). A few other
cosmetic changes.
1995-02-21 01:22:48 +00:00
David Greenman d9459480fb Set page alloced for map entries as valid. 1995-02-21 01:13:05 +00:00
David Greenman 5d55f743e7 Added missing extern declaration for 'maxprocperuid'. 1995-02-21 00:37:31 +00:00
David Greenman ffeec4aefe Removed vm_allocate(), vm_deallocate(), and vm_protect() functions. The
only function remaining in this file is vm_allocate_with_pager(), and this
will be going RSN. The file will be removed when this happens.
1995-02-20 23:58:10 +00:00
David Greenman 91ee94544a Use of vm_allocate and vm_deallocate has been deprecated. 1995-02-20 23:52:39 +00:00
David Greenman 0c1dacbc5c Moved ACT_MAX, ACT_ADVANCE, and ACT_DECLINE to vm_page.h. 1995-02-20 23:35:45 +00:00
David Greenman 68940ac1a0 Use of vm_allocate() and vm_deallocate() has been deprecated. 1995-02-20 22:23:31 +00:00
Bruce Evans 7335113fc2 Fix restoring cpl in the swi_ast_phantom case. The system sometimes
returned to user mode without enabling ASTs.  The problem fixed itself
at the next syscall or non-FPU trap, if any.  It hung the system for
a test process that masked SIGFPE's and divided by zero.  The faulting
division was returned to endlessly and this gave plently of opportunities
for the swi_ast_phantom case to be reached; after it was reached the
system hung because the ASTs for preemption and SIGINT handling were
disabled.
1995-02-20 20:35:24 +00:00
Guido van Rooij e6373c9ec0 Implement maxprocperuid and maxfilesperproc. They are tunable
via sysctl(8). The initial value of maxprocperuid is maxproc-1,
that of maxfilesperproc is maxfiles (untill maxfile will disappear)

Now it is at least possible to prohibit one user opening maxfiles

-Guido

Submitted by:
Obtained from:
1995-02-20 19:42:42 +00:00
Poul-Henning Kamp 95104c63d5 Use absolute path for the "ctm" program. 1995-02-20 19:07:32 +00:00
Nate Williams f8972f58e8 Fixed non-conflict errors that occur when changes made to the local files are
the same as the changes made in the repository.  This is often seen by
people with remote CVS trees that have applied their local patches to the
master site.  a 'cvs update' will show bogus conflicts.

Obtained from: CVS mailing list, Stig<[email protected]>

In diffutils 2.6 and 2.7, diff3 -A complains about identical overlapping
changes.  They're different from the ancestor but not from each other...
Why bother?  The patch below fixes this nonsense and preserves [B]ackwards
compatiblity with the -B flag (also --show-bogus-conflicts).

    Party on...
    Stig
1995-02-20 18:47:18 +00:00
Nate Williams 56b688ea1c Make libcompat a static only library.
Since functions will come and go from libcompat as they are deprecated
it makes no sense to build a shared library out of it as it will change.

Based on freedback from Terry and Jonas on the mailing lists.
1995-02-20 18:19:50 +00:00
David Greenman a6e1b30301 vm_inherit function has been deprecated. 1995-02-20 18:08:18 +00:00
David Greenman a1e5cf9de7 Stop using vm_allocate and vm_deallocate. 1995-02-20 17:36:36 +00:00
David Greenman ff16eeefb0 VM for the kernel stack and page tables doesn't need to be explicitly
deallocated as it isn't inherited across the fork.
Use vm_map_find not vm_allocate.

Submitted by:	John Dyson
1995-02-20 17:26:21 +00:00
Jordan K. Hubbard e8d94d90b8 Add Ollivier and Satoshi to list of contributors. 1995-02-20 16:24:30 +00:00
David Greenman 59a9ecebb5 Make sure process isn't swapped when messing with it.
Added missing newline to log() call.
1995-02-20 15:53:33 +00:00
David Greenman 38aa9fc375 Added missing newlines to calls to log(). 1995-02-20 15:48:46 +00:00
David Greenman ba8da83911 Panic if object is deallocated too many times.
Slight change to reverse collapsing so that vm_object_deallocate doesn't
have to be called recursively.
Removed half of a previous fix - the renamed page during a collapse doesn't
need to be marked dirty because the pager backing store pointers are copied
- thus preserving the page's data. This assumes that pages without backing
store are always dirty (except perhaps for when they are first zeroed, but
this doesn't matter).
Switch order of two lines of code so that the correct pager is removed
from the hash list. The previous code bogusly passed a NULL pointer to
vm_object_remove(). The call to vm_object_remove() should be unnecessary
if named anonymous objects were being dealt with correctly. They are
currently marked as OBJ_INTERNAL, which really screws up things (such as
this).
1995-02-20 14:21:58 +00:00
David Greenman d0686727c0 Don't allow act_count to exceed ACT_MAX when bumping it up.
Small optimization to vm_page_bits().

Submitted by:	John Dyson
1995-02-20 14:00:50 +00:00
David Greenman d89ced81b2 Fully initialize pages returned via vm_page_alloc_contig() so that the
memory can be later freed.
1995-02-20 13:58:14 +00:00
Jordan K. Hubbard 304bce7fcf Add Gary J. for all his fine work with gdb and other things. 1995-02-20 12:45:09 +00:00
Poul-Henning Kamp 97074d779f The new and improved mkCTM. Learning from this experience it has been
improved on a couple of accounts.  Amongst these are "damage control"
more than 100 files removed and it will bail out...
1995-02-20 03:03:02 +00:00
Poul-Henning Kamp 9b1fd0e50e Clean this file up so it is readable... 1995-02-20 00:48:50 +00:00
Bruce Evans a3f4faced6 Don't flush the message buffer when it fills up. 1995-02-19 15:02:26 +00:00
Jordan K. Hubbard f1f0a0bf8b Remove the SCSI idsn line - it's permanantly dead. 1995-02-19 14:07:28 +00:00
Jordan K. Hubbard d3a1cd614e remove gnu/scsi/nic5000.c - it's deprecated. 1995-02-19 14:06:29 +00:00
Gary Palmer 43decb5384 Bruces fixes for large filesystems
Submitted by:	Bruce Evans <[email protected]>
1995-02-19 10:36:17 +00:00
Jordan K. Hubbard e28d028200 Whoops! It wasn't totally winning. I left out a couple of :'s. Fixed. 1995-02-19 09:52:52 +00:00
Jordan K. Hubbard 53d8c5c063 A much more winning default dir file. 1995-02-19 09:50:27 +00:00
Rodney W. Grimes e84c2699b9 Change DIR to VOLUME so that this installs in the correct location. 1995-02-19 09:11:30 +00:00
Jordan K. Hubbard 0ccb57e856 1. Get all the nodes in this texinfo document happily pointing in the proper
directions.

2. Drop in a Makefile that properly installs the info files for this.
1995-02-19 09:11:07 +00:00
Poul-Henning Kamp 3e2402edc3 Some recent small changes. Probably about time I start writing this in C. 1995-02-19 04:51:41 +00:00
David Greenman 9219d44e66 Truncate the pte address to a page boundry. This probably won't fix the
panic, but at least it's more correct.
1995-02-19 02:50:31 +00:00
Bruce Evans bd6edcba54 Keep absolute offsets in on-disk labels for backwards compatibility. This
requires complications to adjust the offsets to relative when a block
containing the label is read and back to absolute when such a block is
written.  The adjustment is not made on the whole disk slice.

Don't allow setting the offset of partition C to nonzero in in-core labels.
This will cause some (nonstandard) disktab entries to fail.  They will
need to be changed to have relative offsets (and no partitions outside
of the slice).

Don't write protect the (nonexistent) label on the whole disk slice.

Writing labels and bootstraps should work right now (except if there is
no DOSpartition table).
1995-02-18 22:10:44 +00:00
Bruce Evans 51bcc40b35 Write setconf() in KNF, in K&R C, and in Standard C.Standard C. 1995-02-18 21:32:19 +00:00
Bruce Evans 9d2ccc8e66 New field b_biodone_chain to support nested b_iodone's. 1995-02-18 21:12:33 +00:00
Andreas Schulz c0577faf0c Submitted by: Ollivier ROBERT [email protected]
There is a typo in the include file specification in the  man page  of
time(1).
1995-02-18 20:44:55 +00:00
Bill Paul 188291d20f Do away with 'options SWAP_GENERIC' once and for all: I get ill
just thinking about it.

Two changes need to be made to allow 'config kernel swap generic' to
work properly without requiring any compile-time flags:

/usr/src/usr.sbin/config/mkswapconf.c: we need to define a dummy stub
for the setconf() function to replace the one in swapgeneric.c that
isn't available in non-generic configurations.

/usr/src/sys/i386/i386/autoconf.c: the -a boot flag causes setroot()
to be skipped and lets setconf() prompt the user for a root device.
If you skip setroot() in a non-generic kernel, you could get severely
hosed. To avoid this, we silently ignore the -a flag if rootdev != NODEV.
(rootdev is always initialized to NODEV in swapgeneric.c, so if
we find that rootdev is something other than NODEV, we know we're
not using a generic configuration.)
1995-02-18 18:05:35 +00:00
Jordan K. Hubbard b96f37e2b0 Remove bogus reference to snp.4. Somebody kinda screwed up their move! :) 1995-02-18 17:10:40 +00:00
Jordan K. Hubbard 61a3cfb7a3 ipfirewall.4 is obviously not here anymore! Adjust the Makefile. 1995-02-18 16:36:23 +00:00
Andrey A. Chernov e96a21509f Minor optimization. 1995-02-18 11:36:33 +00:00
Jordan K. Hubbard 590d3b8680 Add Nate back as promised before, but I will also note that he's on
probation..  Another vanishing act and I won't hesitate to nuke this back
out again.  He hasn't been heard from very much since he was over here to
visit! :-)
1995-02-18 09:31:16 +00:00
Scott Mace 1b0c06d938 Correct the grammar for the label of the number of users.
It is plural when zero and >1 users are logged in.
1995-02-18 08:24:16 +00:00
David Greenman 9b4814bba2 1) Added protection against collapsing OBJ_DEAD objects.
2) bump reference counts by 2 instead of 1 so that an object deallocate
   doesn't try to recursively collapse the object.
3) mark pages renamed during the collapse as dirty so that their contents
   are preserved.

Submitted by:	John and me.
1995-02-18 06:48:33 +00:00
Jordan K. Hubbard f4fcba6266 1. Add Justin Gibbs
2. Make all the core team members use FreeBSD.org - it just looks better.
1995-02-18 04:07:09 +00:00
David Greenman 0e65588688 Only clear B_VMIO in brelse() - a bunch of special processing is required
whenever this happens, and that wasn't occurring in some cases.
1995-02-18 02:55:09 +00:00
Andrey A. Chernov 3d4c9a4bd7 Minor optimization 1995-02-18 01:42:02 +00:00
Andrey A. Chernov 7b7aeeccde Copyrights cleanup 1995-02-18 01:39:00 +00:00
Stefan Eßer b5fd1704b2 Bruce pointed out, that a misleading warning would be issued
in an (unlikely) border case (maxgroups==1 and the user is on
an /etc/group line for the same group and that group only ...).

Now this case is dealt with as before ...
1995-02-17 19:45:21 +00:00
Bruce Evans 390784fbeb Undo the busy latch changes made in the previous revision. They broke
some 386/387 systems.

Don't print the IRQ number twice in the boot diagnostics.
1995-02-17 19:38:13 +00:00
Ugen J.S. Antsilevich a53227ff18 Move ipfirewall.4 & snp.4 facility manpage
to share/man/man4
1995-02-17 18:48:36 +00:00
Ugen J.S. Antsilevich 9d0ee8a480 oops..here is the manpage 1995-02-17 18:06:11 +00:00
Ugen J.S. Antsilevich 3377c114e1 Manpage for snoop device itself. 1995-02-17 17:53:52 +00:00
Andrey A. Chernov 5e6cdc1eae colldef added 1995-02-17 17:37:55 +00:00
Stefan Eßer f067e922a9 Protect against duplicate gids in group list (as could be the
result of being a member of some group in both /etc/group and YP).
1995-02-17 17:36:09 +00:00
Andrey A. Chernov a1c128ae2a collate tables compiler
Submitted by: [email protected]
1995-02-17 17:29:50 +00:00
Stefan Eßer 3453c5d5db Improve diagnostics:
Test for correct execution of cache test script by NCR,
and give meaningful error description if it fails.
(A cache problem was reported before.)
Don't wait forever for cache test to complete (to protect
against faulty hardware).

Submitted by:	wolf
1995-02-17 16:45:08 +00:00
Ugen J.S. Antsilevich e2f16ea3ee Add manpage to makefile 1995-02-17 16:41:43 +00:00
Ugen J.S. Antsilevich 15c592c7f2 Watch fresh-made manpage.. 1995-02-17 16:40:32 +00:00
Andrey A. Chernov 926f20c973 Don't pick _warn module now 1995-02-17 16:36:12 +00:00
Ugen J.S. Antsilevich 96fd3f53e8 Finally document "via" feature.. 1995-02-17 15:44:08 +00:00
Ugen J.S. Antsilevich 7f4c79484b This is watch - programm to work with /dev/snp,
it still lacks manpage-i will commit it today later.
For now to test try: watch [ttyname] :)
1995-02-17 14:36:03 +00:00
Ugen J.S. Antsilevich 5d6cb6cac4 Added to makefile watch - snooping programm to work
with /dev/snp
1995-02-17 14:34:21 +00:00
Joerg Wunsch 68be960997 Removed the bogus duplicate pcvt* alias names. Ache renamed them
to shut up cap_mkdb warnings, but they better have to go away.

Reviewed by:	Hellmuth Michaelis
1995-02-17 14:06:51 +00:00
Bruce Evans c69e71b3e9 Fix some bogus and missing chowns:
444 -> root.wheel
root -> root.wheel
uucp -> uucp.wheel (perhaps this should be .dialer, but .wheel is safer)
missing -> root.wheel

chown to root is usually bogus because mknod had to be run by root to
create the inode.  Setting the group explictly is currently necessary
because MAKEDEV does nothing to ensure that its working directory has
a suitable group.

Driver authors!  Please fix any bogons in MAKEDEV that involve your
drivers.  The sound devices are still world writable...
1995-02-17 12:32:34 +00:00
Jordan K. Hubbard f1f041888e Remove the ISDN dialer from LINT until it's working. 1995-02-17 09:33:29 +00:00
Jordan K. Hubbard 664b5e14dc Always go to ${WRKDIR} before extraction. Modify the tar extract command
args to take advantage of this.
Pointed-out-by: asami
1995-02-17 08:52:55 +00:00
Bruce Evans 94a7cbb03e Restore alphabetical order (except gnu is last). 1995-02-17 08:45:59 +00:00
Dima Ruban 399e5b4411 Security fixes.
CERT Advisory CA-95:03.telnet.encryption

Obtained from: CERT
1995-02-17 03:57:00 +00:00
Jordan K. Hubbard 571a258ad5 fstab is in section 5, not section 8.
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
Poul-Henning Kamp 648c711bb4 This is the latest version of the APM stuff from HOSOKAWA, I have looked
briefly over it, and see some serious architectural issues in this stuff.

On the other hand, I doubt that we will have any solution to these issues
before 2.1, so we might as well leave this in.

Most of the stuff is bracketed by #ifdef's so it shouldn't matter too much
in the normal case.

Reviewed by:	phk
Submitted by:	HOSOKAWA, Tatsumi <[email protected]>
1995-02-17 02:22:57 +00:00
Andreas Schulz 2c0529005c Correct the parameters for the fchown. The third was erroneously
specified as uid_t but should be gid_t.
1995-02-17 00:41:30 +00:00
Garrett Wollman c7a82f9016 Include missing <sys/kernel.h> for `hz'.
Submitted by:  David Greenman, Rod Grimes, Christoph Kukulies
1995-02-17 00:29:42 +00:00
Andrey A. Chernov a4d5d0cbde Add 8bit collate stuff
Submitted by: [email protected]
1995-02-16 17:01:11 +00:00
Bruce Evans 96658fee5a Adjust for rearranged slice numbers. Only create partitions on slice 0
for now (there are too many minors to create by default).  The special
sliced disk case ssd*|svn*|swd*) can almost replace the standard disk
case sd*|vn*|wd*) now (it just creates a few more devices), but there
will have to be special cases to allow creating slices 6-31 and partitions
on slices 2-31.

Fix bogus default cases.
1995-02-16 16:03:29 +00:00
Bruce Evans 7a867ed547 Add compatibility cruft.
Slice 0 is now for the first BSD slice.  The first BSD slice is
the first DOSpartition with id 0xa5 or the whole disk if their
are no DOSpartitions (except the latter is not yet implemented).
Existing partitions on it work the same as in 2.0 except the
'd' partition is no longer special and partitions are relative
to the skice.

Slice 1 is now for the whole disk and gets a read-only label
describing the disk.  Previously, slice 0 was for the whole disk
and there was no label on it.

Slices 2-31 are for DOSpartitions.  Slice 0 is an alias for one
of these if there is a BSD slice.  Previously, slices 1-31 were
for DOSpartitions.

diskslice_machdep.c:
Expand whole disk slice to include all DOSpartitions.  More work
is required for >1024 cylinders and to rewrite the label iff the
driver is unsure about the geometry.

subr_diskslice.c:
New function dsisopen() to help handle media changes.
1995-02-16 15:19:19 +00:00
Bruce Evans 2987d72f4a Adjust for rearranged slice numbers. 1995-02-16 15:06:09 +00:00
Bruce Evans de13c90ff2 Adjust slice names in diskerr() for the rearranged slice numbers. The
mapping from numbers to names is messy for backwards compatibility.
E.g., for driver "sd", unit "0":

slice 0: omit the slice number for compatibility; names are sd0[a-h].
slice 1: omit the partition letter 'c' because the whole disk device
         shouldn't have anything to do with partitions; sd0 is the
         only name.
slices 2-31: subtract 1 from slice number to compensate for the
         compatibility slice 0; names are sd0s[1-30][a-h].
1995-02-16 14:47:38 +00:00
Bruce Evans b10eec80c5 Rearrange slice numbers for compatibility. 1995-02-16 13:35:21 +00:00
Bruce Evans ceb91b3e4a Fix syntax errors in #ifdefed out code. 1995-02-16 13:21:47 +00:00
Bruce Evans 59c0a09db6 Temporarily stop this compiling if the option TEST_LABELLING is defined
so that new slice support code can be installed without risk of
corrupting vn devices (if any).
1995-02-16 13:09:39 +00:00
Jordan K. Hubbard 87e4e7246c Rename TMPDIR to PKG_TMPDIR, just to make Jeff happy.. :-) 1995-02-16 12:43:00 +00:00
Jordan K. Hubbard c21ad9f78e Give user a change to read startx messages.
Suggested by:	David Muir Sharnoff <[email protected]>
1995-02-16 12:36:47 +00:00
Jordan K. Hubbard 5c95e17f96 Make a link to /etc/rmt when we're installed. 1995-02-16 12:34:35 +00:00
Jordan K. Hubbard c80adb3803 Fix embarassing typo pointed out by Dave Sharnoff - 16bit does
NOT = 16k colors! :-}
Submitted by:	David Muir Sharnoff <[email protected]>
1995-02-16 12:30:31 +00:00
Bruce Evans da12c6d2aa config.y:
Support slice numbers in device names.  The syntax is `<driver name>
[<unit number>] ['s' <slice number>] [<partition letter>]'.  Only
`['s' <slice number>]' is new here.  The slice number defaults to 0
so that there is no change in the output from config if this new
feature is not used.

Replace some magic disk numbers by `dk' slice and label macros.

mkswapconf.c:
Improve the output formatting:
Generate <> style includes.
Print minor numbers in hex so that slice numbers are easy to see and edit.
Print the rootdev and dumpdev names in comments like the swapdev names.
1995-02-16 12:17:30 +00:00
Joerg Wunsch 8b47b44cc0 Spell my name with an umlaut. Looks better to me. :-) 1995-02-16 12:04:53 +00:00
Jordan K. Hubbard 6129798f6a Update this a little, though we probably need to either nuke or rename it! 1995-02-16 12:02:08 +00:00
Bruce Evans 5cea80f170 Always return null-terminated identifiers from yylex(). 1995-02-16 11:52:11 +00:00
Bruce Evans 829b9f6e93 Fix checking of directory access for "/foo". The parent directory is
"/", not "".
1995-02-16 11:42:36 +00:00
Joerg Wunsch 3ab1adc555 Alow overriding of the various SHM* options.
Submitted by:	Heikki Suonsivu <[email protected]>
1995-02-16 11:29:19 +00:00
Bruce Evans 48ab66a1f5 Fix another bogon in the change before the last. 1995-02-16 11:23:25 +00:00
Joerg Wunsch 99909befb6 Make the argument list for the (non-Posix) fchown() consistent with
Posix chown(), and also with the man page.

Submitted by: Doug Rabson <[email protected]>
1995-02-16 11:10:24 +00:00
Joerg Wunsch 66b7e31706 gettytab:
Add the `lc' option to default.  Having getty understand the issues of
CAPS-only terminals is a nop these days, but `lc' avoids hassles for
people with CAPS-only user names.

Suggested by: Don Yuniskis


weekly:

Modify the call to makewhatis, now that our makewhatis can take the
entire ${MANPATH} as a single argument.
1995-02-16 10:51:53 +00:00
Jordan K. Hubbard b5886db230 1000000 usec -> 1 sec 0 usec; fix.
Submitted by:	"Philippe Charnier" <[email protected]>
1995-02-16 09:17:27 +00:00
Jordan K. Hubbard 1d5f5f9312 Fix a few bogons introduced when config lost the 3 char limitation. 1995-02-16 08:06:28 +00:00
Bill Paul fbf23e9a0b Minor changes and additions to the serial README file. 1995-02-16 07:37:35 +00:00
Andrey A. Chernov c3d0cca4e9 Add 8-bit collate stuff
Submitted by: [email protected]
1995-02-16 04:24:39 +00:00
Rodney W. Grimes d5b8d6b667 Update my email address. 1995-02-16 03:13:50 +00:00
Garrett Wollman cb04d5c55b Don't need to retransmit FIN bit in CLOSING state.
Obtained from: Stevens, vol. 2, exercise 29.5 (solution p. 1090)
1995-02-16 01:53:31 +00:00
Garrett Wollman 1c09f77422 spl back down in unusual out-of-memory condition in udp_output().
Obtained from: Stevens, vol. 2, exercise 23.4 (solution p. 1083)
1995-02-16 01:47:36 +00:00
Garrett Wollman 1fdbc7ae46 Correctly initialize so_linger in ticks (not seconds).
Obtained from: Stevens, vol. 2, p. 1010
1995-02-16 01:42:45 +00:00
Garrett Wollman dac2030182 Avoid deadlock situation described by Stevens using his suggested replacement
code.

Obtained from: Stevens, vol. 2, pp. 959-960
1995-02-16 01:39:19 +00:00
Garrett Wollman 9bb8795d71 Don't add back in the IP header length to ip_len; icmp_error will do it
for us.

Obtained from: Stevens, vol. 2, p. 774
1995-02-16 01:25:06 +00:00
Bill Paul 5d645648b1 ypbind jumbo patch :)
The existing ypbind exhibits some truly anti-social behavior. After
initially establishing a binding with an NIS server, the following events
take place:

- ypbind waits for 60 seconds before trying to broadcast a ping again
- after the 60 seconds expires, ypbind sends out broadcasts every 5 seconds
  come hell or high water.

These broadcasts travel far and wide, even to NIS servers in other domains
which dutifully log the packets even though they don't respond to them.
This leads to lots of unnecessary traffic and bloated log files.

This behavior has been fixed/changed. Here's what happens now:

- We still broadcast every 5 seconds at startup, just like before.

- Once bound, we send out packets once every 60 seconds to the server
  we're bound to AND NO ONE ELSE.

- If we fail to receive a reply from our server within FAIL_THRESHOLD
  seconds, we assume our server has croaked and go back to broadcasting
  everywhere every 5 seconds again until somebody answers. FAIL_THRESHOLD
  is currently set to 20 seconds.

Other fixes/improvements:

- ypbind now logs 'server not responding' and 'server OK' messages where
  appropriate.

Thanks to Thomas Graichen <[email protected]> for
reporting the problem and guilt-tripping me into fixing it. :)
1995-02-16 01:21:44 +00:00
Garrett Wollman 39052a0eeb Attempting to bind() or connect() a routing socket, while meaningless,
shouldn't cause a panic.

Obtained from: Stevens, vol. 2, p. 667
1995-02-16 01:11:38 +00:00
Garrett Wollman 5f540404a8 getsockopt(s, SOL_SOCKET, SO_SNDTIMEO, ...) would construct the returned
timeval incorrectly, truncating the usec part.

Obtained from: Stevens vol. 2 p. 548
1995-02-16 01:07:43 +00:00
Garrett Wollman 41f82abe5a Transaction TCP support now standard. Hack away! 1995-02-16 00:55:44 +00:00
David Greenman eb2463e1fc Fixed botched previous change - use 'pageno' not initialized to NULL 'kva'.
Submitted by:	Lars Fredriksen
1995-02-16 00:41:16 +00:00
Garrett Wollman 9426bb7c1d Allow the user access to net.inet.igmp, even though there's nothing
sysctl(8) can interpret there.  (Someday there might be.)
1995-02-16 00:28:42 +00:00
Garrett Wollman f2ea20e676 Add lots of useful MIB variables and a few not-so-useful ones for
completeness.
1995-02-16 00:27:47 +00:00
Garrett Wollman bae74debca Document Transaction TCP extensions to generic system calls. 1995-02-15 22:53:04 +00:00
Joerg Wunsch 27dd3ef3b9 Wolfram now also submitted a man page for this.
Submitted by:	Wolfram Schneider <[email protected]>
1995-02-15 22:52:52 +00:00
Andrey A. Chernov 93a56d1fd1 Restore deleted in second time my & bde fixes.
UGEN STOP IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1995-02-15 22:25:51 +00:00
Garrett Wollman d69128d862 Document Transaction TCP. 1995-02-15 22:07:28 +00:00
Andrey A. Chernov 108497c8b6 Remove dir creating, done by mtree
Add missing file name for cmp
1995-02-15 20:59:13 +00:00
Andrey A. Chernov c44aef5655 Add include/readline and share/misc/pkg_manage 1995-02-15 20:57:01 +00:00
Andrey A. Chernov b6d7ccaf9d pkg_manage added 1995-02-15 20:52:52 +00:00
Andrey A. Chernov 56d3ff658b pkg_manage utility, using file selector 1995-02-15 20:47:56 +00:00
Joerg Wunsch c851c2f0ea Include three lines about the pcvt console driver, so we don't ever need
a different config file for it.
1995-02-15 20:38:36 +00:00
Stefan Eßer 6977dc165f For the sake of people, who like to move pci_configure()
before isa_configure() in autoconf.c:

ncr_intr() protected by splbio()/splx()

Submitted by:	wolf
1995-02-15 20:06:38 +00:00
Andrey A. Chernov 12430b365a Changes for new _menu interface 1995-02-15 19:48:10 +00:00
Andrey A. Chernov 895aadbcfb file selector, helpline, helpfile and more, with my fixes
Submitted by: [email protected]
1995-02-15 19:44:08 +00:00
Poul-Henning Kamp 7f8573b091 Various nitpicking from Stephen.
Reviewed by:	phk
Submitted by:	Stephen McKay <[email protected]>
1995-02-15 19:41:38 +00:00
Andrey A. Chernov 9b3f7fd62d Make libexec & sbin for tcp_wrapper and others 1995-02-15 19:12:21 +00:00
Ugen J.S. Antsilevich 964587caee More changes to support user calls.
It's 22:00  here,utility still to come(hopefully tomorrow
morning..)
1995-02-15 18:41:57 +00:00
Bruce Evans ae5e131ac8 Avoid duplicating ttselect() so that we don't have to change cyselect()
when ttselect() is improved.  This requires using an array of tty structs
and not using ttymalloc().

Fix an off by 1 error.  Some caclulations seem to be off by a factor
of NCY.  NCY defaults to 16, which gives 256 tty structs occupying
0xd000 bytes.  The minor number encoding only allows 16 ttys.

Update the types of timeout functions to 2.0.
1995-02-15 18:41:41 +00:00
Ugen J.S. Antsilevich 73bac2c219 More changes to support user calls. 1995-02-15 18:41:21 +00:00
Andrey A. Chernov 8c91744a04 Add more verbosity for status, if standalone 1995-02-15 17:43:12 +00:00
Andrey A. Chernov 6d5f4f30a7 mixer added 1995-02-15 17:39:52 +00:00
Andrey A. Chernov ae0de42130 non-X mixer, useful into rc.local 1995-02-15 17:33:04 +00:00
Ugen J.S. Antsilevich 019b4d63ae Fix couple of nasty bugs..
- Overflow now calculated right
- Close works ok,does not looses tty
- Better overflow handling now the snooping stops
   on overflow,but programm notified and can reconnect if
   it want to..Default maximal buffer set to 664 K and this
   is probably too much..:)))
Utility still to come
1995-02-15 16:35:38 +00:00
Ugen J.S. Antsilevich 1bf407a7a5 Add more flags to snoop device 1995-02-15 16:33:16 +00:00
Bruce Evans 23564ff8c3 Remove duplicated code from ttymalloc(). Disable ttyfree().
Restore fixes to flushing that were lost in the previous commit.

Clean up snoop changes.

Add my TODO list from 1.1.5.  The improvements in 1.1.5 should be "obtained"
first.
1995-02-15 16:00:56 +00:00
David Greenman 792016e7a4 Woops, last change wasn't done quite right...fixed. 1995-02-15 14:45:08 +00:00
David Greenman 32e68582d1 Yanked out (now obsolete) support for 'fastboot'. 1995-02-15 14:35:29 +00:00
David Greenman 2ee6a63f1f Include the special device in the error output so that it makes sense. 1995-02-15 14:29:26 +00:00
David Greenman 8a978495e7 Verify that the last component of the mount point path exists and is
a directory - allows for better error reporting.
1995-02-15 14:20:50 +00:00
Andreas Schulz b019cc8f8e Add a description for the np flag. 1995-02-15 13:59:56 +00:00
David Greenman 919364ea6a Use proc0's proc struct rather than curproc's when calling sync. 1995-02-15 12:27:01 +00:00
Jordan K. Hubbard 8c324d5fb8 Whap a few things not used in the Cyclades driver, at least not for now. 1995-02-15 12:01:24 +00:00
Jordan K. Hubbard 7b2e66b08b Fix a few more nits. Should compile better now! :_) 1995-02-15 11:59:41 +00:00
David Greenman 402cc72db6 Fixed bug caused by attempting a connect with a null 'nam'. 1995-02-15 11:30:35 +00:00
David Greenman ca40da7417 Don't bother calling pmap_create() when creating the temporary map.
The whole COW section of vm_mmap() should be rewritten; the current
implementation is highly convoluted.
1995-02-15 09:22:17 +00:00
Jordan K. Hubbard a043a8428a Quiet the last of the warnings. Must have had my eyes closed when
I committed this! ;-(
1995-02-15 08:19:31 +00:00
David Greenman 2f8f2dd5bb >From a week or two ago I got kernel panics as soon as I tried to access my
tape drive. I traced it to sys/scsi/scsi_base.c where some code were added
to print the return values of the sense command. My tape drive returned a
extended flags value of 0x20, so the key that is the lower 4 bits, is 0.
The code uses "key-1" to index into a table and then the kernel go to never-
never land.

Here is a fix for this. Will somebody please apply it?

Submitted by:	John Hay
1995-02-15 07:44:07 +00:00
Jordan K. Hubbard 37c4acbb58 Make the email address syntax more regular
Add pointer to Mark Murray's foreign eBones/secure site.
1995-02-15 07:07:18 +00:00
Jordan K. Hubbard 38eb155156 Add Hong Kong mirror. 1995-02-15 06:41:50 +00:00
Jordan K. Hubbard f87104d983 And fix some more compiler warnings. Then give up. /sys/net* is FULL of
bogus code!  And besides, Poul's doing this already.. It's just that
fixing compiler warnings is sort of like eating potato chips.. :-)
1995-02-15 06:29:47 +00:00
Jordan K. Hubbard e53e112497 Nuke some more compiler warnings, while I'm at it.. 1995-02-15 06:28:48 +00:00
Jordan K. Hubbard 7543a838ee Fix up include paths, nuke some warnings. 1995-02-15 06:28:29 +00:00
Jordan K. Hubbard f2eea8100f We can enable pcd0 when we actually have one. 1995-02-15 06:18:15 +00:00
Jordan K. Hubbard e7891cd349 Boy, no sooner do I clean it up then dirty it again! Clean up the enxio
stuff I should have caught earlier.
1995-02-15 04:51:10 +00:00
Jordan K. Hubbard a46a6df7e5 Comment out snic0 until it gets updated to the newer scsi code. 1995-02-15 04:49:18 +00:00
Poul-Henning Kamp b8e4cd2bb3 This is a MS-DOS program, but is does something useful for us:
It boots FreeBSD from a running MS-DOS system.

It's compiled using some MS-DOS tools, but there is a binary
hidden in the uuencoded file.  (Go ahead, flame me if you can come up
with a solution for the problem.  Just saying "this is bad" doesn't count!)

Rod, you were right: one would have to deal with weird interfaces to the
memory managers, and it seems that Christian found them all, and made them
work.

Thanks Christian!

Reviewed by:	phk
Submitted by:	DI. Christian Gusenbauer <[email protected]>

Christians README:
------------------

Hi Everybody!

This is version 1.5 of "fbsdboot", a program that allows you to boot a kernel
from a MS-DOS partition or a FreeBSD partition. This program runs using DOS.
It works with various memory managers (like  EMM386, 386MAX) under certain
circumstances.

First, a FreeBSD kernel is always loaded to memory starting at 0x100000. To
assure that loading the kernel *does not* overwrite memory used by memory
managers, high memory for the kernel is allocated and after loading the kernel
it's moved to 0x100000.

Second, there are many ways to switch to protected mode which is necessary to
start the kernel. Each BIOS gives you the possibility to use INT15H (AH=89H)
to do that. But some memory-managers like 386max does not allow you to use
this method.

An other way to do the switch is to use DPMI services, but they do not
guarantee, that the protected mode application is executed with privilege
level 0. Therefore this method is *not* used.

VCPI services offer another way to switch to protected mode, and VCPI servers
are built into "emm386.exe", "386max" and "qemm". That's why, this method is
implemented in fbsdboot.exe.

Fbsdboot.exe tries to switch to protected mode using VCPI services. If they're
not available INT15H is used to do the switch. If that fails, it's not possible
for this version of fbsdboot.exe to boot a kernel :-(.

You can get commandline options of fbsdboot if you start it with "-?" as option!

I don't know, if fbsdboot works with QEMM, as I don't have the possibility to
test it.

Enjoy and have fun!

Christian.
[email protected]


PS: Many thanks to Bruce Evans for his assistance!
1995-02-15 04:45:50 +00:00
David Greenman 7389231d06 Killed the pmap_use_pt and pmap_unuse_pt prototypes as they are now in
machine/pmap.h.
1995-02-15 04:36:31 +00:00
Bill Paul 0e59c1bde3 More DESTDIR lossage. Hopefully this will solve the case of the missing NIS
scripts.
1995-02-15 04:35:55 +00:00
Bill Paul f464a3788e Fix losing Makefile so that it properly honors DESTDIR when installing
/var/yp/Makefile and /usr/libexec/mknetid. *grumble* *mutter* *mutter*
1995-02-15 04:33:52 +00:00
Poul-Henning Kamp 78ff637a2c YF fix. 1995-02-15 04:21:32 +00:00
Rich Murphey 73b2840c90 Reviewed by: Jordan
Submitted by:	Rich

Make conditionals on BIOSWAIT consistent with usage in io.c.

If you had 'BOOTWAIT=0' in your /etc/make.conf then biosboot wouldn't
compile.  It was '#if' in io.c and '#ifdef' in probe_keyboard.c so I
changed the latter to '#if'.

Even if BOOTWAIT is undefined then '#if BOOTWAIT' becomes
'#if 0' so it should compile either way with this change.
1995-02-15 04:17:59 +00:00
Jordan K. Hubbard 6fc1110b71 Make pkg_install use /var/tmp instead of /tmp
Suggested by:	hsu
1995-02-15 03:48:13 +00:00
David Greenman efefea024a Fixed two more bugs related to the merged cache changes.
Submitted by:	John Dyson
1995-02-15 03:40:00 +00:00
David Greenman ad21d87fd5 Woops, change a nfsrv_vput back into a nfsrv_vrele.
Submitted by:	John Dyson
1995-02-15 03:38:12 +00:00
Garrett Wollman a2cc1fa205 Document TCP MIB variables (tcp.4).
Document IP MIB variables (inet.4).
Document Internet-family protocol-specified route cloning (inet.4).
Delete all references to classed addresses (inet.4).
1995-02-15 03:30:54 +00:00
David Greenman 6b03a7ffc5 Fixed three bugs related to the merged cache changes. The bugs likely would
make NFS servers flakey - probably the cause of freefall's recent hangs.

Submitted by:	John Dyson
1995-02-15 03:03:03 +00:00
David Greenman a8c6dbca84 >Description:
The "strings" program chokes if you try using "-n".

>How-To-Repeat:

	Try "strings -n SOMENUMBER SOMEFILE".

>Fix:

Here's a "diff -u" patch that corrects the problem.

Submitted by:	Lon Willett <lon%[email protected]> via NetBSD
1995-02-15 02:47:47 +00:00
Jordan K. Hubbard f4eba1d716 Make /var/yp.
Suggested by: se
1995-02-15 01:51:18 +00:00
Garrett Wollman 8f283fdc8f Move apm(4) to i386 section, since it is i386-specific. 1995-02-15 01:20:03 +00:00
Jordan K. Hubbard 6f96f72b16 Add ISDN entries to LINT. 1995-02-15 00:53:15 +00:00
Jordan K. Hubbard 8c5da82528 Import the ISDN userland utilities. Just about ready to start shaking
this baby out in earnest..
1995-02-15 00:46:26 +00:00
Jordan K. Hubbard c7fcb45b9c Create a /usr/share/isdn directory. 1995-02-15 00:41:23 +00:00
David Greenman 1564b6f5e0 Slight change of wording on clean flag not set message to appease some
complaints.
1995-02-15 00:23:56 +00:00
David Greenman 69f92856cb >The fix for the missing ".." in the root directory is enclosed below.
Submitted by:	Kirk McKusick
1995-02-15 00:17:56 +00:00
Jordan K. Hubbard bfbd29a110 I've found two bugs in manctl(8). There are two spurious ";" after a "then"
in the script. The result is the following :

203 [23:47] root@keltia:/build/cvs-1.4A2# manctl
/usr/sbin/manctl: 165: Syntax error: ";" unexpected

Here is the fix :
Submitted by:	Ollivier Robert <[email protected]>
1995-02-15 00:07:59 +00:00
Jordan K. Hubbard 19c84690f0 Add device entries for ISDN driver. 1995-02-14 23:48:05 +00:00
Stefan Eßer 9ddf96998e ncr.c:
New config option "NCR_IOMAPPED" makes the driver use port I/O.
Put back in 53c815 defines, submitted by Mikael Hybsch <[email protected]>.
These had got lost between cvs rev. 1.14 and now ...

pci.c:

Really write config space register.
Assign ports starting at 0xbc00.

Submitted by:	wolf
Reviewed by:	se
1995-02-14 23:33:38 +00:00
Garrett Wollman 628e3e3401 After dynamically reducing rtq_reallyold, have in_rtqkill() reduce the
expiration timer of anything which would expire later than that.  (There
should be a way to call this from ip_sysctl() as well, but there currently
isn't.)
1995-02-14 23:11:26 +00:00
Garrett Wollman ea80aed1a9 Attempt to make the host route cache a bit smarter under conditions of
high load:

	1) If there ever get to be more than net.inet.ip.rtmaxcache entries
	   in the cache, in_rtqtimo() will reduce net.inet.ip.rtexpire by
	   1/3 and do another round, unles net.inet.ip.rtexpire is less than
	   net.inet.ip.rtminexpire, and never more than once in ten minutes
	   (rtq_timeout).

	2) If net.inet.ip.rtexpire is set to zero, don't bother to cache
	   anything.
1995-02-14 23:04:52 +00:00
Stefan Eßer 1bc2211b44 Verify that NCR was mapped to uncached address.
Submitted by:	[email protected] <Wolfgang Stanglmeier>
1995-02-14 22:48:01 +00:00
Jordan K. Hubbard 804b5d8f47 Bring in the ISDN driver entries. 1995-02-14 22:36:49 +00:00
Jordan K. Hubbard 53c1e53822 Add the ISDN entries 1995-02-14 22:34:41 +00:00
Jordan K. Hubbard 730d52ffe3 Add the ISDN entries. 1995-02-14 22:34:04 +00:00
Jordan K. Hubbard 2933703e6d Julian E. says the code is out of date, but I can at least make the
includes look right until we get a chance to fix the rest of this.
1995-02-14 22:33:10 +00:00
Rodney W. Grimes a533e22a54 Export ${DESTDIR} to h2ph so that the *.ph files end up in the DESTDIR
directories instead of /usr/share/perl.
1995-02-14 21:47:04 +00:00
Gary Palmer 05002e8cb5 Make the checksum target not bomb out if there is a mismatch, just
print a warning. A better fix will come along just as soon as I
work out what it is.
1995-02-14 21:29:28 +00:00
Ugen J.S. Antsilevich d667b870a2 TS_SNOOP flag added to identify tty is begin snoopped
snoop.h have all structures related to the snp device and stuff
1995-02-14 21:23:48 +00:00
Ugen J.S. Antsilevich dde8a05baa Here it came-the all-brand-new snoop device..
Users-beware..
It is tested and working for me but probably have some bugs i
didn't noticed so test it and reply...
It can:
 look at what's sent to the user from tty device
 snoop on pty's,vty's and serial tty's
It (still) can't:
 write to tty
 see what user types in local echo mode
It is probably bad styled and
 very dependant on tty_pty.c,sio.c and syscons.c
I would be really happy if another ppl would make their
changes because i am not sure this is the best snoop
we can have..but it is good..:)))))
1995-02-14 21:21:26 +00:00
Ugen J.S. Antsilevich 71ac9ea4e9 cdevsw[] entry for snoop device.
I took 53 and it was too late when Jordan sayd
it better been 60..besides i have no clue how to make it 60..
Jordan- pleeease don't kill me..(This is also useful(??) device..)
1995-02-14 21:16:43 +00:00
Rodney W. Grimes 99fd7a9b42 Add missing ${DESTDIR} so that the sample dir file ends up in the
correct place.
1995-02-14 21:15:58 +00:00
Ugen J.S. Antsilevich 4cba45558a pseudo-device snp 3
Example entry for snoop.
1995-02-14 21:15:12 +00:00
Ugen J.S. Antsilevich 819f72f9f9 kern/tty_snoop.c - optional for snp device
added..
1995-02-14 21:14:11 +00:00
Ugen J.S. Antsilevich 187ec8f5ae Added /dev/snp? entry.. 1995-02-14 21:13:14 +00:00
Rodney W. Grimes 36d9739b48 Remove usage of LINKS and LN_FLAGS=-s, this does not do the correct thing
for symbolic links when $DESTDIR is set.

Add afterinstall: target to handle symbolic link creation.
1995-02-14 21:08:45 +00:00
Stefan Eßer 70b344d1af Added Matt Thomas' e-mail address. 1995-02-14 20:20:46 +00:00
Rodney W. Grimes 4a218a6de8 Remove use of ${DESTDIR} in target of symbolic link, it makes the link
point to the wrong place.
1995-02-14 19:43:09 +00:00
Poul-Henning Kamp d06b2f2908 Another one... 1995-02-14 19:39:50 +00:00
Søren Schmidt 1e1e0b4463 First attempt to run linux binaries. This is only the changes needed to
the generic kernel. The actual emulator is a separate LKM. (not finished
yet, sorry).
Submitted by:	[email protected] & [email protected]
1995-02-14 19:23:22 +00:00
Poul-Henning Kamp 47ccef1936 More people not on the list.
Submitted by:	se
1995-02-14 19:19:15 +00:00
Poul-Henning Kamp 00ee0c15e4 Gene Stark added. Should have been here for a long time already.
Anybody else missing ?
1995-02-14 18:04:16 +00:00
Poul-Henning Kamp ae4c9a0208 Removed a YF comment. 1995-02-14 18:01:24 +00:00
Bill Paul 01ed185959 Changed passwd's Makefile to use the built-in LINKS mechanism to create
the symlinks for yppasswd & friends (we still can't use hard links
because passwd is installed immutable). This would have been simpler
if the LN_FLAGS variable hadn't chosen to wait until now before leaping
out of the /usr/share/mk directory and biting me in the ass. (And thus,
I was enlightened.)
1995-02-14 15:38:13 +00:00
Jordan K. Hubbard e316b1a9de An ISDN driver that supports the EDSS1 and the 1TR6 ISDN interfaces.
EDSS1 is the "Euro-ISDN", 1TR6 is the soon obsolete german ISDN Interface.
Obtained from: Dietmar Friede <[email protected]> and
	Juergen Krause <[email protected]>

This is only one part - the rest to follow in a couple of hours.
This part is a benign import, since it doesn't affect anything else.
1995-02-14 15:00:39 +00:00
Søren Schmidt 314908fae3 Fixed cursor xor problem... 1995-02-14 14:37:53 +00:00
Jordan K. Hubbard 47d5df1d7d The destructor always assumed that it would be called on objects created from
ONE constructor routine.  This was bogus - there is also a system provided
constructor which does not allocate a pattern buffer.  Make less assumptions.
1995-02-14 12:35:03 +00:00
Ugen J.S. Antsilevich dbec390e8a Ppl asked to make ipfw smarter..ok..
here it is..
1995-02-14 09:34:04 +00:00
Ugen J.S. Antsilevich 8f6466e847 Fix for rather stupid bug by which you couldn't set
ports for the destination IP addr/port.
Nobody reported this btw , while a lot of other things reported-
probably ppl does not use destination ports at all????
1995-02-14 08:28:27 +00:00
Poul-Henning Kamp f0dbdbbf11 Jordan forgot to move the scd in this file. 1995-02-14 07:19:10 +00:00
Poul-Henning Kamp 86ca01bcee Whoops! back out last commit partly. 1995-02-14 06:57:45 +00:00
Poul-Henning Kamp b53d84607c YFfix. 1995-02-14 06:55:42 +00:00
Poul-Henning Kamp f026fea644 susword -> systm.h 1995-02-14 06:51:31 +00:00
Poul-Henning Kamp ed78b305f6 YPfix 1995-02-14 06:34:49 +00:00
Poul-Henning Kamp cb21b8cf38 YFfix. 1995-02-14 06:33:53 +00:00
Poul-Henning Kamp 9977034cd2 YFfix 1995-02-14 06:31:13 +00:00
Poul-Henning Kamp c70f45100d YFfix. 1995-02-14 06:28:25 +00:00
Poul-Henning Kamp c178994d81 YPfix 1995-02-14 06:25:17 +00:00
Poul-Henning Kamp 473e9734a8 YFfix
+int    nfsrv_vput __P(( struct vnode * ));
+int    nfsrv_vrele __P(( struct vnode * ));
+int    nfsrv_vmio __P(( struct vnode * ));
1995-02-14 06:22:18 +00:00
Poul-Henning Kamp a14b2c282e YFfix 1995-02-14 06:19:23 +00:00
Poul-Henning Kamp 01c9aaafc4 YFfix. added
errval scsi_probe_busses __P(( int, int, int));
1995-02-14 06:17:23 +00:00
Poul-Henning Kamp 8ede9d03cf YFfix.
added int    susword __P((void *base, int word));
1995-02-14 06:15:25 +00:00
Poul-Henning Kamp d2fc53150b YF fix. 1995-02-14 06:14:28 +00:00
Poul-Henning Kamp 7aa3a026ad YF Fix. 1995-02-14 06:11:21 +00:00
Poul-Henning Kamp 5723344759 YF fix.
Reviewed by:	phk
Submitted by:	[email protected] (Yves Fonk)
1995-02-14 06:06:07 +00:00
Poul-Henning Kamp a3dbba7a60 Yves has sent us a ~600 Kb patch, which shuts up gcc entirely for the
entire kernel.
Unfortunately we didn't send him a copy of the style guide before he did it.
I'm trying to find all the benign and downright sound bits and will commit
them without any other explanation than "YF fix" if they are merely cosmetic.

Reviewed by:	phk
Submitted by:	[email protected] (Yves Fonk)
1995-02-14 06:00:17 +00:00
Poul-Henning Kamp a2d29640be Added a bunch of people who deserved it. 1995-02-14 04:07:59 +00:00
Jordan K. Hubbard 3268f6b644 Get scdreg.h from new location. 1995-02-14 04:05:04 +00:00
David Greenman bf4bd9bd9b Fixed problem with msync causing a panic.
Submitted by:	John Dyson
1995-02-14 04:00:17 +00:00
Garrett Wollman 522bab9535 Make capitalization consistent with other devices registered in
the database.  Also, distinguish between VGA-like display devices
and everything else.
1995-02-14 03:19:27 +00:00
Garrett Wollman 9a94a59774 Make netstat report the correct state for T/TCP.
Submitted by: Andras Olah <[email protected]>
1995-02-14 03:09:51 +00:00
Garrett Wollman 2f96f1f446 Get rid of some unneeded #ifdef TTCP lines. Also, get rid of some
bogus commons declared in header files.
1995-02-14 02:35:19 +00:00
Jordan K. Hubbard 9e5c18f7b1 The following patches are for the sound drivers. These changes will
add a an ioctl call to set the transfer block size (SNDCTL_DSP_SETBLKSIZE)
and add the select system call to the drivers.  They also fix a problem with
the #EXCLUDE macros for the PAS-16 card.
Submitted by:	Jim Lowe <[email protected]>
1995-02-13 22:49:06 +00:00
Andrey A. Chernov 21edcfa248 Pass prgbox exit code to main exit code 1995-02-13 19:49:42 +00:00
Andrey A. Chernov 7b5de861cd Much better error handling added. 1995-02-13 18:51:50 +00:00
Andrey A. Chernov c6493ee41b Add missing lib_window.c to SRCS 1995-02-13 17:23:18 +00:00
David Greenman 2655f62632 In sync(), don't dereference the proc pointer if it's NULL. Should fix
most or all of the problems with calling sync() without a curproc (which
can happen in machdep.c during a panic sync).
1995-02-13 13:45:04 +00:00
Poul-Henning Kamp 1e3a24e880 Actually access the right first page if the file.
Bruce finally caught this bogon for me, Thank you Bruce !
Due to some part of the VM/buffer/pmap magic doing clustering, this bogon
managed to work better than 99.9% of the time.  Amazing.
If You ever again see a weird message from the gzip code, please tell me.
1995-02-13 07:40:33 +00:00
Poul-Henning Kamp 46fe71cc98 Add -D__BSD__ and don't write "LINUX" on a CD as default. 1995-02-13 06:54:47 +00:00
Poul-Henning Kamp 9170aeb809 Made the changes needed here to install from a CDrom.
Cleaned some cruft in the process.
This program becomes curiouser curiouser...
1995-02-13 06:52:16 +00:00
Poul-Henning Kamp 4a565df5ed strategy for block and char devices are rightfully spec_strategy.
I feel like yanking all the "ISODEVMAP" stuff altogether, it looks
like a bad kludge...
1995-02-13 06:12:32 +00:00
David Greenman d86d477fe6 Fixed incorrect bufsize assignment that was causing a panic.
Submitted by:	John Dyson
1995-02-13 04:25:46 +00:00
Jordan K. Hubbard 31998a1a56 Fix up the comments about NFS options - the ones listed were wrong
Submitted by:	wpaul
1995-02-13 02:28:14 +00:00
Andrey A. Chernov 6d50a4a80f Purge queues in ttylclose(), if ttywflush() failed 1995-02-13 02:18:28 +00:00
Andrey A. Chernov a3f80a9b22 *close: just purge tty queues if we can't drain them 1995-02-13 02:09:14 +00:00
Andrey A. Chernov dee8849b8d Replace previous fix with less agressive, just return EIO
if ttywait can't drain queue.
1995-02-13 02:03:57 +00:00
Jordan K. Hubbard c5c8ff8669 Some small cosmetic changes I'd been meaning to make. 1995-02-13 01:58:29 +00:00
Bill Paul 4b35aae3dd Added three line hack to nfs_ops.c to add support for the 'resvport'
mount option: you need this little bugger in environments with facsist
SunOS NFS servers (like mine :).
1995-02-13 01:56:22 +00:00
Andrey A. Chernov 911b598f11 1. If some output still present at the end of ttywait, kill it.
2. Even if ttywait() fails, call ttyflush(FREAD) in ttywflush.
This two fixes guarantee that queues are empty after calling ttywflush()
in any case
1995-02-12 23:01:13 +00:00
Jordan K. Hubbard bb71d76710 Try to clean up some of these nasty warnings.. This code is not just
twisted, it's seriously evil!
1995-02-12 09:53:03 +00:00
Jordan K. Hubbard ad23c66664 Add mkisofs to list of targets. 1995-02-12 09:51:53 +00:00
Jordan K. Hubbard 9da6a15aa4 Pick a more sensible default for # of ptys, add comment that this can
go as high as 64 now.
1995-02-12 09:29:59 +00:00
David Greenman 17703e4e91 Carefully choose the low limit for number of buffers to acheive the best
performance on small memory machines.
1995-02-12 09:21:04 +00:00
David Greenman 0217125f2b Carefully choose the value for vm_object_cache_max. The previous calculation
was rather bogus in most cases; the new value works very well for both
large and small memory machines.
1995-02-12 09:19:44 +00:00
David Greenman 06031f1f3f Fixed a bogus comment and made a stylistic change (testl instead of orl
to test for zero).
1995-02-12 09:13:27 +00:00
David Greenman 4aa2b6cf22 Minor code improvement to uiomove() 1995-02-12 09:11:47 +00:00
Jordan K. Hubbard bcbd38050e Rename the local variable used by various macros outside the user's
namespace.
Reported-By: "Philippe Charnier" <[email protected]>
1995-02-12 08:31:31 +00:00
Jordan K. Hubbard 8c96ef7169 Walnut Creek's local hacks to this code. Bob says he'll clean them up
RSN and send them back to Eric.
1995-02-12 08:16:50 +00:00
Jordan K. Hubbard 03d08911fe Changes to make it compile under FreeBSD. 1995-02-12 08:06:09 +00:00
Jordan K. Hubbard 6f50ceba0f Original virgin sources for version 1.2 of mkisofs, by Eric Youngdale of
Yggdrasil Computing Inc.  This is a useful concession to us CDROM mastering
weenies out here.
Obtained from: Yggdrasil Computing, Inc.
1995-02-12 08:00:42 +00:00
Poul-Henning Kamp 4519b73393 Fix broken makefile. 1995-02-12 02:35:35 +00:00
Jordan K. Hubbard ceb3de7af6 Updated this to be more FreeBSD-like; there was a lot of bipartisan cruft
in here that just made it a heck of a lot more confusing to maintain.
Somebody like Joerg can reality-check this at some point, when they have more
time.  For now, it works.
1995-02-12 01:51:34 +00:00
Andrey A. Chernov 3d70f09304 Build kpasswd from normal passwd sources now
Submitted by: [email protected]
1995-02-11 18:25:38 +00:00
Andrey A. Chernov 279c49616d Merge with eBones stuff
Submitted by: [email protected]
1995-02-11 18:20:06 +00:00
Andrey A. Chernov cc01ee1e51 Shut up cap_mkdb warnings on pcvt* entries 1995-02-11 15:16:11 +00:00
Jordan K. Hubbard 25719d742a Remove the evil I perpetrated on this file in the name of the Cyclades driver,
now we're back to the old way.  By way of amends, I cleaned up all the
casting evils and generally neated this file up as much as possible.  It
still, however, needs to die.
1995-02-11 05:54:04 +00:00
Jordan K. Hubbard 6469abd9ba Remove dead sound blaster driver entry. 1995-02-11 05:43:44 +00:00
Poul-Henning Kamp 7c89a442ad /var/games -> games dist. 1995-02-11 05:35:37 +00:00
Poul-Henning Kamp d80a026702 Make sure that info files never hit the "bin" dist. 1995-02-11 05:28:31 +00:00
Poul-Henning Kamp 499454c6e9 Intels App Note AP-485 applied.
We will now tell a good deal more about the CPU if Intel made it.

What is a i486DX2 Write-Back Enhanced CPU ?
1995-02-11 04:21:24 +00:00
David Greenman 914a63ebd4 Wire the page table before doing the vm_fault(). Fixes a panic that
happens when using gdb.

Submitted by:	John Dyson
1995-02-10 22:36:11 +00:00
Andreas Schulz 77357d7355 Fix a little typo. Change the "race record" to a "trace record" :-). 1995-02-10 22:07:42 +00:00
Martin Renters d65161535c Added FIFO restore capability. 1995-02-10 21:57:02 +00:00
Bruce Evans 0e229bc0a8 Add chowns for pty's, ttyv's and ttyd's. Correct the chown for lptctl's.
The group was wrong if MAKEDEV was run in a directory with group other
than wheel.  This may have messed up the group in recent SNAPs
(sysinstall/obj should have group bin).

Reset the umask to 77 after running MAKEDEV.local.  Some cases depend on
the 77 default.  MAKEDEV.local and all cases should probably set the
umask explictly and not depend on a default.  Most cases already set it.
1995-02-10 20:08:25 +00:00
Bruce Evans 24d4540cff Use the correct block number for updating the backup copy of the FAT when
deleting a file.  Deleting a large file used to scramble the backup copy.
1995-02-10 18:39:45 +00:00
Stefan Eßer 045de8d38f Block interrupts in more places and warn about the NCR exception handler
being called at inappropriate times (should never happen !).

Reviewed by:	se
Submitted by:	[email protected] (Wolfgang Stanglmeier)
1995-02-10 13:24:52 +00:00
David Greenman 459a929e36 Changed extended memory test so that it's non-destructive and not a
complete test (it never was "complete", which is why it was bogus). Now
only a single longword is checked in each page.
1995-02-10 07:44:03 +00:00
Jordan K. Hubbard 3e68f6e616 Link to /sys in extract. 1995-02-10 07:22:39 +00:00
David Greenman 3c632e1f0c Removed obsolete and unused vmtime() function. 1995-02-10 07:17:46 +00:00
Jordan K. Hubbard 15b07edd97 Fix a small punctuation typo I just noticed. 1995-02-10 06:52:16 +00:00
David Greenman b1e4a738e0 Removed unnecessary check for pr_scale in the AST/OWEUPC case. 1995-02-10 06:43:47 +00:00
David Greenman 5a32829d98 Check P_PROFIL flag for profiling rather than pr_scale as it makes more
sense.
1995-02-10 06:25:14 +00:00
David Greenman 95b44faffd Turn on "Capture Effect" avoidence. This modifies the collision algorithm
so that the interface won't have the effect of blocking other senders
during bulk transfers (i.e. hogging the ethernet). It improves performance
in all of my tests by reducing collisions and I believe it to be a Good
Thing.
1995-02-10 06:06:42 +00:00
Poul-Henning Kamp 99b3da9348 A better fix for the newfs floppy problem 1995-02-10 06:04:58 +00:00
Jordan K. Hubbard e599dc2c51 Merge in some cosmetic changes - clean the two kernel images we depend
on when a `make clean' is done - prevents a Feb 2nd BOOTFLP kernel going
onto a Feb 10th boot.flp, as now almost happened.. :-)
1995-02-10 05:51:01 +00:00
Atsushi Murai b60d4a5d98 Delete a redundant line - "options TUN" and Add explanation for
"pseudo-device tun" as same as other device.
1995-02-10 05:42:24 +00:00
Poul-Henning Kamp ae9548f6ba A bit of unexpected fallout from the newfs change.
newfs'ing a floppy fails now, unless we tell it geometry.  I thought at
disktype would take precedence.
1995-02-10 05:41:10 +00:00
Poul-Henning Kamp 833ccb5d7a Clean up some details, to make it clear to gcc that we do not try to do
something stupid.
1995-02-10 05:25:00 +00:00
Jordan K. Hubbard 070b9f121a On second thought, only do extract if select returns success. 1995-02-10 05:05:41 +00:00
Jordan K. Hubbard 63a5c45719 Clean up some of the english, make things more explanatory. 1995-02-10 05:02:33 +00:00
Jordan K. Hubbard d80fe64d6e Eliminate gratuitous select step. 1995-02-10 04:53:01 +00:00
Garrett Wollman 8075d17ee2 mtree * MD5 = better security
Idea from: Dr. John T. Wroclawski
1995-02-10 03:12:42 +00:00
Jordan K. Hubbard 982a35748b Prepare for 950210-SNAP 1995-02-10 01:13:27 +00:00
Garrett Wollman 35c13fa033 Implement TCP MIB variables. 1995-02-09 23:16:17 +00:00
Garrett Wollman a0292f2375 Merge Transaction TCP, courtesy of Andras Olah <[email protected]> and
Bob Braden <[email protected]>.

NB: This has not had David's TCP ACK hack re-integrated.  It is not clear
what the correct solution to this problem is, if any.  If a better solution
doesn't pop up in response to this message, I'll put David's code back in
(or he's welcome to do so himself).
1995-02-09 23:13:27 +00:00
Stefan Eßer fd65acba73 Try to detect overlapping PCI memory assignment.
(This can only happen with devices that are mapped
by the BIOS.)

Reviewed by:	se
Submitted by:	wolf (Wolfgang Stanglmeier)
1995-02-09 20:20:33 +00:00
Stefan Eßer 6f22585dd4 Initialisation of interrupt masks changed.
Reviewed by:	se
Submitted by:	wolf (Wolfgang Stanglmeier)
1995-02-09 20:16:19 +00:00
Bruce Evans 1e30185a78 Don't allow the alternate superblock block number for one file system
to apply to others (except when it is given on the command line).
1995-02-09 15:58:31 +00:00
Bruce Evans db23157e7c Add ctm and sgsc. ctm is has proved useful and sgsc seems to have been
forgotten.
1995-02-09 15:36:08 +00:00
David Greenman a7fa409d30 Killed MACHVMCOMPAT function prototypes as the functions don't exist. 1995-02-09 14:16:07 +00:00
David Greenman 94aade54ff Killed MACHVMCOMPAT code. It doesn't compile, and in its present state
would require some work to make it not a serious security problem. It's
non-standard and not very useful anyway.
1995-02-09 14:14:13 +00:00
David Greenman 62f8f85b7e Clean up after Jordan's commit: add d_read_t and d_write_t types for
compatibility with the screwy conf.c macros.
1995-02-09 13:51:25 +00:00
Ugen J.S. Antsilevich 742d9f28f7 Ok..at least this man page is up to date now
To be continued..
1995-02-09 13:13:18 +00:00
L Jonas Olsson dc81ebd7a2 Change my email address. 1995-02-09 12:49:41 +00:00
Jordan K. Hubbard b7e56a8d18 Add L Jonas Olsson <[email protected]> 1995-02-09 12:45:42 +00:00
Jordan K. Hubbard 4a48e9b15a The whole NEW_CONF_C_SYNTAX was bogus; David's right, it can't be
optional at all.  Make it non-optional.
Submitted by:	davidg
1995-02-09 11:59:40 +00:00
Jordan K. Hubbard 640ed9d2a8 Remove duplicate functions.
Submitted by:	gj
1995-02-09 11:30:07 +00:00
Jordan K. Hubbard 11af896263 Add PPP to the generic kernel. Now that Poul has made us all this space,
maybe I can get us back into the slip/ppp game without having to tell users
to reconfigure their kernels all the time! :)
1995-02-09 11:21:07 +00:00
Jordan K. Hubbard e17312113c Fixes for chpass.
Submitted by: Heikki Suonsivu <[email protected]>
1995-02-09 11:14:39 +00:00
Jordan K. Hubbard 1f26416679 Export ttnread().
Submitted by: Heikki Suonsivu <[email protected]>
1995-02-09 11:14:19 +00:00
Jordan K. Hubbard 3663f75c18 >32 PTY support
Submitted by: Heikki Suonsivu <[email protected]>
1995-02-09 11:13:30 +00:00
Jordan K. Hubbard 89c1e72662 Some scary macros from Heikki Suonsivu <[email protected]>. Actually, they
make cdev entries look almost readable.  If his stuff works for most of
the entries in here, it might be worth it to refit them all.
1995-02-09 11:13:09 +00:00
Jordan K. Hubbard 1aa515e96a Update some folks who were inadequately credited. Still at least 2 more
passes thru this file required.
1995-02-09 11:11:39 +00:00
Jordan K. Hubbard 1338e00966 Support for >32 PTYs.
Submitted by:	Heikki Suonsivu <[email protected]>
1995-02-09 11:11:01 +00:00
Jordan K. Hubbard a8716840ba Device entries for >32 PTYs.
Submitted by:	Heikki Suonsivu <[email protected]>
1995-02-09 11:10:02 +00:00
Jordan K. Hubbard 232fcad29a Eliminate a duplicate line.
Submitted by:	Heikki Suonsivu <[email protected]>
1995-02-09 11:09:41 +00:00
Jordan K. Hubbard cfc9f6212d Add the Cyclades serial driver code (ALPHA) from Andrew Werple and
adapted to FreeBSD by Heikki Suonsivu <[email protected]>.
Submitted by:	Andrew Werple <[email protected]> and
		Heikki Suonsivu <[email protected]>
Obtained from:	NetBSD
1995-02-09 09:47:31 +00:00
Jordan K. Hubbard 0ba70b00c0 Andreas Schulz asks:
I have seen two strange things in it :-).
	The first: in CLEANFILES is CPIO3 referenced, that leads to the
	deletion of half of the scripts that are in the source. Intended ?
	Second: The comment above the CPIO3= line says that bininst must be
	the last on the floppy, but setup follows it now ?
And I reply:
	This was all wrong!  Fixed!  Thanks!
Submitted by:	ats
1995-02-09 08:36:23 +00:00
Jordan K. Hubbard f2c81e4dd7 Install the header files. 1995-02-09 08:00:20 +00:00
David Greenman 1ed81ef2fa Minor algorithmic adjustments that reduce the CPU consumption of the
pagedaemon in half while not reducing its effectiveness.

Submitted by:	me & John
1995-02-09 07:41:42 +00:00
David Greenman e99d026c60 Fixed another TTCP ifdef problem...there isn't any tcp_sysctl field in
!TTCP.
1995-02-09 00:56:09 +00:00
David Greenman 512ff5eaa0 Fix/#ifdef prototype for tcp_mss...apparantly overlooked by Garrett. 1995-02-09 00:49:20 +00:00
Jordan K. Hubbard 819ab54771 Add y.tab.h to CLEANFILES. 1995-02-09 00:24:00 +00:00
Bruce Evans a2d5fd1975 Disable bogus attempt to switch from the TS_ISOPEN state to the
TS_WOPEN state when CLOCAL is toggled from on to off while there
is no carrier.  There is no way back, and with sio there is no way
forward either (TS_ISOPEN will never be set again for the current
open).  This bug was observed in 1.1 and was fixed in 1.1.5.
1995-02-08 22:02:02 +00:00
Bruce Evans 2c3a858e68 Rewrite the netisr dispatcher.
Rename `_dummynetisr' to `dummynetisr' so that it doesn't show up in
profiling (with gprof -u).

Clean up.
1995-02-08 21:46:44 +00:00
Bruce Evans cdaec7b1a1 More complete implementation of SUBDIR for programs, libraries and kmods.
`depend' wasn't supported.  This seems to have only broken `make depend'
in gnu/usr.bin/ld.

bsd.prog.mk:
Build the man pages in ${MANDEPEND} at build time.
1995-02-08 21:35:31 +00:00
Bruce Evans 7111dc5ac1 CLEANFILES was missing most of the source links. 1995-02-08 21:27:09 +00:00
Bruce Evans c2b5bd7a79 CLEANFILES was missing a few files. 1995-02-08 21:11:39 +00:00
Bruce Evans 9ee337da19 Add libpcap. I don't know what it is doing in the tree, but it has
settled for too long.  Compiling it gives 142 lines of compiler
warnings.  Perhaps the dirt will be fixed if it is visible.
1995-02-08 20:46:53 +00:00
Garrett Wollman 999f1343a5 T/TCP changes to generic IP code. This is all ifdefed TTCP so should
have no effect on most users for now.  (Eventually, once this code is
fully tested, the ifdefs will go away.)
1995-02-08 20:22:09 +00:00
Garrett Wollman eb6ad69646 Merge in T/TCP TCP header file changes. 1995-02-08 20:18:48 +00:00
Bruce Evans b185266a8a Quiet `make -s'. 1995-02-08 20:12:08 +00:00
Garrett Wollman 81e3e0570d Define RTF_PINNED for future use. 1995-02-08 20:01:13 +00:00
Bruce Evans 0c47d7b5e0 Restore the field widths that were clobbered by the previous commit so that
the columns in ioconf.c line up if there are no long names.
1995-02-08 18:42:58 +00:00
Bruce Evans 02a7dd7637 Define CLK_TCK right. 1995-02-08 18:37:14 +00:00
Jordan K. Hubbard 2a947a4bbf Add two parts of Mark's/Gary's dlopen() changes that I missed before. 1995-02-08 17:56:27 +00:00
Bill Paul 17936913ce Small NIS fixes:
1) ypserv is started with nis_serverflags, not yppasswddflags (that's what
   I get for cutting & pasting without paying attention).

2) ypbind can also be started with arguments, so turn nis_client to
   nis_clientflags.
1995-02-08 16:42:12 +00:00
Jordan K. Hubbard 2b6645c034 Various documentation changes.
Submitted by:	Mark Murray <[email protected]>
1995-02-08 10:54:30 +00:00
Dima Ruban 8aec260842 Fixed usage() (cosmetic changes. "(string)" looks much better
than "(string" :-)
1995-02-08 01:07:16 +00:00
Andreas Schulz 8f80ac0afa Submitted by: Michael Reiffenberger ?
Changed the yppaswddd to a yppaswdd :-).
1995-02-07 20:52:35 +00:00
Gary Palmer 6db216a6d7 Remove a possible loophole - previously the code wouldn't pass packets destined
to the loopback address to the packet filter.

Reviewed by:	"Ugen J.S.Antsilevich" <[email protected]>
1995-02-07 20:30:42 +00:00
Bill Paul 6c1bb9003f Hurm... I could have sworn I added usr.sbin to the top level GNU
Makefile. Apparently I was mistaken. *groan*
1995-02-07 19:10:39 +00:00
Garrett Wollman 5404440735 Correct fix for merge conflicts: RTM_VERSION is always 5. Header files
included by user code must never depend on kernel compile options.
1995-02-07 19:05:12 +00:00
Jordan K. Hubbard 19c408ae08 Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:	gj
Submitted by:	Mark Diekhans <[email protected]>
1995-02-07 13:33:42 +00:00
Jordan K. Hubbard 38f4fb1525 Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:    gj
Submitted by:   Mark Diekhans <[email protected]>
1995-02-07 13:27:29 +00:00
Jordan K. Hubbard efa6e5fa69 Support for more Sun compatible dlopen() and friends. Also added proper error
handling.
Reviewed by:	gj
Submitted by:	Mark Diekhans <[email protected]>
1995-02-07 13:26:39 +00:00
Jordan K. Hubbard 89bcd2d778 Video Spigot entries.
Submitted by:	Jim Lowe <[email protected]>
1995-02-07 12:07:18 +00:00
Søren Schmidt e3dbac5e96 Added new choises of cursors. 1995-02-07 11:56:21 +00:00
Søren Schmidt 719d3245ae Fixed the bug that caused the cursor to disappear under
boot with -c option
1995-02-07 11:53:27 +00:00
David Greenman e128aa716c Fixed unresolved CVS conflict on RTM_VERSION. 1995-02-07 06:19:56 +00:00
David Greenman 16be381004 Backed out Keith Bostic's getcwd/$PWD hack. It is causing things to break
all over the place.
1995-02-07 05:52:57 +00:00
Bill Paul df76d2a332 Do proper job of reaping child 'ypxfr' processes (we could sometimes
leave a zombie lying around until the next map transfer came alone).

Also fixed some minor typos on the man page.
1995-02-07 05:04:53 +00:00
David Greenman 17279d6cb5 Changed maximum number of symlinks in a path from 8 to 32. The exact value
isn't important; it is only used to prevent symlink loops from looping
forever. 32 is a quite reasonable default.

Submitted by:	Ed Hudson <[email protected]>
1995-02-07 03:33:05 +00:00
Garrett Wollman 838ecf4225 Make sure to disable RSVP intercept when the socket is closed. 1995-02-07 02:53:14 +00:00
Garrett Wollman 24e16f2e1c Merge in the socket-level support for Transaction TCP from the OLAH_TTCP
branch.

Submitted by: Andras Olah <[email protected]>
1995-02-07 02:01:57 +00:00
Garrett Wollman 6b8fda4d12 Merge in the socket-level support for Transaction TCP. 1995-02-07 02:01:16 +00:00
Jordan K. Hubbard c5c3febed7 Extract the sources into the right place! Can't believe I didn't notice
this before.
1995-02-07 01:01:21 +00:00
Bill Paul 6e532401dd Removed annoying changelog entries from ypclnt.c, added usage() function
to ypxfr.c.
1995-02-06 23:35:49 +00:00
Jordan K. Hubbard f741ad121b The very minimum driver required to support a Video Spigot. See the
copyright notices in the code for information on where to go to pick
up additional useful bits.
Submitted by:   Jim Lowe <[email protected]>
1995-02-06 23:20:17 +00:00
Jordan K. Hubbard 2cd01159da The very minimum driver required to support a Video Spigot. See the
copyright notices in the code for information on where to go to pick
up additional useful bits.
Submitted by:	Jim Lowe <[email protected]>
1995-02-06 23:19:49 +00:00
Jordan K. Hubbard ace891ef08 Commit Gary's diffs for adding xcdplayer support to the Sony CDROM driver.
Submitted by:	gj
1995-02-06 22:35:07 +00:00
Bill Paul 5920e7589e Wrote manual page for ypxfr, modified Makefile to install it. 1995-02-06 22:15:21 +00:00
Stefan Eßer 91857942bb Add short delay after NCR reset.
Submitted by:	[email protected] (Wolfgang Stanglmeier)
1995-02-06 22:01:58 +00:00
Jeffrey Hsu e687de7a15 Allow arbitrarily named configure script for use w/ HAS_CONFIGURE. 1995-02-06 08:52:19 +00:00
Jordan K. Hubbard 5297690cfe Commit my userconfig stuff:
1. add iosize command, and show it in `ls'
2. add a probe command
3. add an attach command

[the latter 2 do the obvious thing - call the device's routine and print the
 status returned].
1995-02-06 02:48:38 +00:00
Poul-Henning Kamp e96b9d9f84 Stephen lost a -D, now it's back. 1995-02-06 02:22:29 +00:00
David Greenman a635d6c76a Use M_NOWAIT instead of M_KERNEL for socket allocations; it is apparantly
possible for certain socket operations to occur during interrupt context.

Submitted by:	John Dyson
1995-02-06 02:22:12 +00:00
David Greenman 081129c5e3 Changed order of release of vnode/object to fix a problem where the vnode
is freed with an old object still attached (subsequently causing a panic).
Fixes NFS server panic "object/pager mismatch".

Submitted by:	John Dyson
1995-02-06 02:20:40 +00:00
Jean-Marc Zucconi 30ad8d9349 Correct a bug in the P function: according to 7th edition UNIX (tm), the
newline must be part of the pattern space i.e. `echo a|sed -e P' must print
a
a
and not
aa
This is consistent with gnu sed, SunOS, Ultrix (and probably others!)
1995-02-06 00:14:50 +00:00
Søren Schmidt 768483b761 Fixed the annoing bug that caused writes to /dev/console to go to
the active virtual terminal (Boy, do I have little hair left).
Misc other fixes, try to enable cursor earlier in the game.
1995-02-05 23:44:25 +00:00
Gary Palmer 5b07358347 Add the ports-base target and correct two typos (hosbase!=hostbase) 1995-02-05 23:31:25 +00:00
Bill Paul 714f0adda1 Wrote manual page for yppush and edited Makefile to install it.
Added conditional definition for _PATH_YP in yppush.c in case _PATH_YP
isn't defined anywhere else.
1995-02-05 21:48:04 +00:00
Poul-Henning Kamp c807f32c6b Removed the name length limitations on the device-driver names entirely.
Now device-names can be more than 3 chars.
1995-02-05 21:15:21 +00:00
Poul-Henning Kamp 3eac488435 Added "panic" command to ddb, so we can do something sensible even if
we have no symbols.
1995-02-05 21:09:04 +00:00
Poul-Henning Kamp d55ceee7a3 Document the getenv(PWD) feature. 1995-02-05 18:14:38 +00:00
Poul-Henning Kamp 4e93a5203c Allow zero as value for certain arguments to indicate "take from disklabel". 1995-02-05 18:03:37 +00:00
Jordan K. Hubbard 88644a577e PCVT userland utilities.
Submitted by:	hm
1995-02-05 13:49:25 +00:00
Jordan K. Hubbard a1fed99776 This was wrong - PCVT and syscons don't share the same entrypoint
names.
Submitted by:	mh
1995-02-05 11:29:38 +00:00
Jordan K. Hubbard f534e77446 Add pcvt termcap entries (quite a lot of them - whew!)
Submitted by:	hm
1995-02-05 11:17:03 +00:00
Jordan K. Hubbard 6554acd8ba Add man page for pcvt console driver.
Submitted by:	hm
1995-02-05 11:16:33 +00:00
Jordan K. Hubbard 37be911712 Add pcvt's header files.
Submitted by:	hm
1995-02-05 11:02:45 +00:00
Jordan K. Hubbard b19f21cf89 Bring pcvt console driver into the tree - now users can chose whichever
console driver they like best (2 is ok, it was 4 that was a little insane
for awhile there! :-).
Submitted by:	hm
1995-02-05 11:01:24 +00:00
Jordan K. Hubbard 4530be5246 Bring PCVT's config files into the tree.
Submitted by:	mh
1995-02-05 10:56:47 +00:00
Poul-Henning Kamp 55abc5794a Change the defaults for newfs to disregard the geometry in the disklabel.
We pretend we have one head with two megabyte worth of sectors per cylinder.

The code try to access another head in what it belives to the same
physical cylinder, because it belives that it would be faster than
waiting for the next free sector under this head to come around.

Most modern drives doesn't have a "classical" geometry, and thus
we end up fooling ourselves doing the above optimization.  With this
change we will fill a cylinder sequentially if we can, and thus get
much more mileage from the track-buffer/cache built into the drives.

As a result a lot of seeks to the next or previous track should be
avoided by this.

(My disk is a lot less noisy actually...)

You can still get the old behaviour, by specifying zero for the
numbers.

This will also solve the problem with newfs barfing at really big
drives.

Obtained from:	adult advice from Kirk.
1995-02-05 08:42:31 +00:00
Bruce Evans 0bc786d076 Update kmem_malloc() call to new waitflag(s) interface.
This might fix recent problems on thud and freefall.
1995-02-05 07:08:27 +00:00
Bill Paul d66efc62bd Collapsed _masterpw_breakout_yp() and _pw_breakout_yp() into a
single function.
1995-02-05 02:12:49 +00:00
Poul-Henning Kamp 4620f0962b Use absolute path to md5 program. It lives in /sbin and people are unlikely
to have $PATH to it.
1995-02-04 22:56:28 +00:00
Bill Paul c807d0240e Created manual page for ypserv and changed Makefile to install it.
Also tweaked server.c to support newer versions of tcpwrapper (log_tcp.h
is now tcpd.h and FROM_UNKNOWN changed to STRING_UNKNOWN).
1995-02-04 21:32:04 +00:00
Poul-Henning Kamp ed81a94967 added *.info and *.db to the default "ignore" list in cvs to avoid obviously
common mistakes.
1995-02-04 20:27:23 +00:00
Poul-Henning Kamp b2ea996c3a Added final '\n' 1995-02-04 20:02:01 +00:00
Poul-Henning Kamp 7a614290f3 Added final '\n'. 1995-02-04 19:59:58 +00:00
Poul-Henning Kamp a309714274 Add missing trailing '\n' 1995-02-04 19:56:39 +00:00
Poul-Henning Kamp 19393bbed2 Support 32bit access to IDE disks, if it seems to work for the drive.
You will normally have to have a VLB or other 32bit IDE "controller" for
this to work.

Depending on your setup, this may gain you 20-100 % speed from your disk.

Reviewed by:	phk
Submitted by:	[email protected]
1995-02-04 19:39:36 +00:00
Poul-Henning Kamp 03cfe806a2 A cute hack to speed up things by Keith: if getenv("PWD") is the same
inode as ".", then just return that.  I added a check so it must start with
a '/'.

Reviewed by:	phk
Submitted by:	[email protected] (Keith Bostic)
1995-02-04 19:29:22 +00:00
Poul-Henning Kamp cbaba1a477 A couple of sensible changes from down under...
Reviewed by:	phk
Submitted by:	Stephen McKay <[email protected]>
1995-02-04 19:20:49 +00:00
Poul-Henning Kamp 1adb7b0dca fixed spelling error. 1995-02-04 19:11:14 +00:00
Stefan Eßer ee1b86ffbd Disable I/O port accesses in case the BIOS enabled them.
Clear all output lines except ATN and ACK when waiting
for target phase change.

Submitted by:	wolf (Wolfgang Stanglmeier)
1995-02-04 14:02:44 +00:00
Stefan Eßer fabf3fb247 Moved "#include <pci/pcivar.h>" from "usr.sbin/lsdev/i386.c"
to "/sys/i386/include/devconf.h", where it really belongs.
1995-02-04 12:47:19 +00:00
Atsushi Murai ddf5b7cc16 Adding ppp configuration files entry for distribution packages. 1995-02-04 11:16:47 +00:00
Dima Ruban 49c42f9a5f comment localhost by default. 1995-02-04 08:32:15 +00:00
Satoshi Asami 94dcffca87 Add long-awaited (:) support for sophisticated dependency checking. We now
have three variables:

EXEC_DEPENDS	- A list of "prog:dir" pairs of other ports this
		  package depends on.  "prog" is the name of an
		  executable.  make will search your $PATH for it and go
		  into "dir" to do a "make all install" if it's not found.
LIB_DEPENDS	- A list of "lib:dir" pairs of other ports this package
		  depends on.  "lib" is the name of a shared library.
		  make will use "ldconfig -r" to search for the
		  library.  Note that lib can be any regular expression,
		  and you need two backslashes in front of dots (.) to
		  supress its special meaning (e.g., use
		  "foo\\.2\\.:${PORTSDIR}/utils/foo" to match "libfoo.2.*").
DEPENDS		- A list of other ports this package depends on being
		  made first.  Use this for things that don't fall into
		  the above two categories.

DEPENDS behaves exactly like before, so old Makefiles will still work
the same.  The two variables are lists of pairs as described above.

For instance, if your program depends on unzip and libjpeg.5.*, use
the following definitions:

EXEC_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS=	jpeg\\.5\\.:${PORTSDIR}/graphics/jpeg

gmake:${PORTSDIR}/utils/gmake is automatically added to EXEC_DEPENDS
if USE_GMAKE is defined.

If NO_DEPENDS is defined, the list will just be printed out one by one.
1995-02-04 05:49:26 +00:00
Bill Paul 1d709ccef1 Created yp_mkdb(8) manual page, modified Makefile to install it. 1995-02-04 04:26:20 +00:00
Bill Paul a613523aa3 Changed some comments. 1995-02-04 00:13:21 +00:00
Bill Paul 3269f6b60e Added options for starting NIS client and server processes. All are
off by default.
1995-02-03 23:54:07 +00:00
Bruce Evans 66a96c4ca4 Include <time.h> instead of <sys/time.h> to get CLK_TCK. Including
<sys/time.h> works because <sys/time.h> includes <time.h> if KERNEL
is not defined, but is ugly.
1995-02-03 22:28:34 +00:00
Bruce Evans 50c1f8972c Include <limits.h> to get the definition of INT_MAX - don't depend on
namespace pollution in <time.h>.
1995-02-03 22:21:09 +00:00
Bruce Evans 711fbb0afc Change CLK_TCK to CLOCKS_PER_SEC.
Add a missing apostrophe that suggests inverting the frequency to get
tick size.  It read better before because `CLK_TCK' suggests a tick
size although it is actually a frequency.
1995-02-03 22:09:56 +00:00
Bill Paul a50aabb5d6 Fixed potential Makefile glitch that could arise if /var/yp doesn't exist yet. 1995-02-03 22:01:17 +00:00
Bruce Evans 3652b5c25d Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature
and is not necessarily related to the ANSI CLOCKS_PER_SEC).

Parenthesize macro args.
1995-02-03 21:59:45 +00:00
Bruce Evans 6231933da9 Fix previous change to preserve const'ness. 1995-02-03 21:54:03 +00:00
Bruce Evans ee6075a391 Don't define CLK_TCK here.
Uniformize idempotency ifdef.
1995-02-03 21:49:18 +00:00
Bruce Evans 339b0f68f2 Define CLOCKS_PER_SEC.
Define CLK_TCK only if _ANSI_SOURCE is not defined.

Don't include <machine/limits.h> to get the definition of CLK_TCK.
CLK_TCK should never have been defined there, and the inclusion
polluted the namespace.
1995-02-03 21:47:48 +00:00
Bruce Evans 125bd0c85c Don't depend on namespace pollution in <machine/limits.h> for the
definition of CLK_TCK.  Use _BSD_CLK_TCK_ instead of CLK_TCK so that
we don't have to include the user header <time.h>.
1995-02-03 21:31:35 +00:00
Bruce Evans 915e66b767 Define _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to support correct
definitions of CLK_TCK and CLOCKS_PER_SEC.
1995-02-03 21:23:46 +00:00
Søren Schmidt 130c74bbe7 Allow all characters except "real" control chars.
Fix NULL reference when serial console (thanks bruce).
1995-02-03 21:09:44 +00:00
Bruce Evans b0b1fe4f53 Include <limits.h> to get LONG_MAX - don't depend on namespace pollution
in <time.h>.
1995-02-03 20:55:37 +00:00
Bruce Evans 9ca5d38370 Include ncr.c from where it is now. 1995-02-03 20:49:10 +00:00
Stefan Eßer 80cdd2af76 Add #include <pci/pcivar.h> for definition of PCI_EXTERNAL_LEN.
Reviewed by:
Submitted by:
Obtained from:
1995-02-03 20:26:50 +00:00
Bruce Evans 9504046bea Include <sys/types.h> explicitly to get declaration of u_long for
<netinet/in.h> - don't depend on namespace pollution in <stdio.h>.
1995-02-03 20:25:59 +00:00
Justin T. Gibbs 1bca1a0922 Have version number track CSV version number. No other change. 1995-02-03 17:18:44 +00:00
Justin T. Gibbs cfa2e9e703 Keep track of when we actually are awaiting a reply to an SDTR or WDTR
message instead of relying on the fact that we are scheduled to send them.
The old method worked 99.9% of the time, but someone reported some periferals
that did MSG_REJECT at odd times (sometimes before we could send an SDTR
or WDTR) that we would construe as the response to an SDTR or WDTR message.
This also removes a possible race condition where after a bus reset (the
result of a command time out not during intial probe time), we might queue
two commands both requesting SDTR, WDTR or both.
1995-02-03 17:15:12 +00:00
Justin T. Gibbs 4e259174eb #include<kernel.h> to quiet a compiler warning having to do with the
DATA_SET (pcidevice_set, ahc_device) macro.  Maybe this will allow
the aic7870 to be probed again.  I don't have a PCI machine here
to test it.
1995-02-03 17:08:17 +00:00
Ugen J.S. Antsilevich a351d38006 Fix to h2ph "undefined function" bug
i reported today earlier..tested and works OK..
( To those who want to experience bug try running aub
with old version of socket.ph and with new one or just any
perl script  "requiring " <sys/socket.ph> or <sys/cdefs.ph> )
1995-02-03 15:16:03 +00:00
Andrey A. Chernov 3bdc031e93 Fix hanging while playing very short notes. 1995-02-03 10:19:38 +00:00
David Greenman efc68ce10f Fixed bmap run-length brokeness.
Use bmap run-length extension when doing clustered paging.

Submitted by:	John Dyson
1995-02-03 06:46:28 +00:00
Bill Paul 2700d33c07 Added ${.CURDIR}s to afterinstall target. 1995-02-03 03:44:41 +00:00
Bill Paul 4efbdedee3 Put ${.CURDIR}s in front of Makefile.yp and mknetid in the required places.
Also took out uneeded BINDIR & BINMODE stuff.
1995-02-03 03:41:38 +00:00
David Greenman ef762baa88 Removed a pile of vfs_unbusy_pages()...both unnecessary and wrong - resulted
in serious system instability. Changed a B_INVAL to a B_NOCACHE so that
buffer data is properly disposed of.

Submitted by:	John Dyson, Rick Macklin, and [email protected]
1995-02-03 03:40:08 +00:00
David Greenman b82c50c4e6 Make B_NOCACHE and B_INVAL buffers work correctly - throw away the data in
the page cache.

Submitted by:	John Dyson
1995-02-03 03:35:56 +00:00
Bill Paul 3e03108763 Removed reference in comments to -o option of yppasswdd: -o option
no longer exists.
1995-02-03 01:11:57 +00:00
Bill Paul a393cc06f5 Fixed a rather serious bug that presents itself when FreeBSD is configured
as an NIS client. The pw_breakout_yp routines that are used to populate the
_pw_passwd structire only do anything if the bits in the pw_fields member
_pw_passwd are cleared. Unfortunately, we can get into a state where
pw_fields has garbage in it right before the YP lookup functions are
called, which causes the breakout functions to screw up in a big way.
Here's how to duplicate the problem:

- Configure FreeBSD as an NIS client
- Log in as a user who's password database records reside only in
  the NIS passwd maps.
- Type ps -aux

Result: your processes appear to be owned by 'root' or 'deamon.'
/bin/ls can exhibit the same problem.

The reason this happens:

- When ps(1) needs to match a username to a UID, it calls getpwuid().

- root is in the local password file, so getpwuid() calls  __hashpw()
  and __hashpw() populates the _pw_passwd struct, including the pw_fields
  member. This happens before NIS lookups take place because, by coincidence,
  ps(1) tends to display processes owned by root before it happens upon
  a proccess owned by you.

- When your UID comes up, __hashpw() fails to find your entry in the
  local password database, so it bails out, BUT THE BITS IN THE pw_fields
  STRUCTURE OF _pw_passwd ARE NEVER CLEARED AND STILL CONTAIN INFORMATION
  FROM THE PREVIOUS CALL TO __hash_pw()!!

- If we have NIS enabled, the NIS lookup functions are called.

- The pw_breakout_yp routines see that the pw_fields bits are set and
  decline to place the data retrieved from the NIS passwd maps into the
  _pw_passwd structure.

- getpwuid() returns the results of the last __hashpw() lookup instead
  of the valid NIS data.

- Hijinxs ensue when user_from_uid() caches this bogus information and
  starts handing out the wrong usernames.

AAAARRRRRRRRRGGGGGGHHHHHHHHHH!!!

*Please* don't tell me I'm the only person to have noticed this.

Fixed by having __hashpw() check the state of pw_fields just before
bailing out on a failed lookup and clearing away any leftover garbage.
What a fun way to spend an afternoon.
1995-02-03 01:09:35 +00:00
Jordan K. Hubbard 0c808a575d Give the user a chance to specify all the network setup parameters again 1995-02-03 00:42:27 +00:00
Jordan K. Hubbard 1787b78f70 Whoops, actually DO the last config! 1995-02-02 23:39:44 +00:00
Jordan K. Hubbard f3c9629d8e Get ready for the XFree86 3.1.1 distribution (next snapshot),
compat1x -> compat1xdist
1995-02-02 23:13:26 +00:00
Jordan K. Hubbard 2c6a122277 Put the release number in the first banner - makes it easier to quickly
tell if I've muffed it.
1995-02-02 23:09:30 +00:00
Stefan Eßer 3f624a0187 Removed misleading copyright note. This file contains just
definitions taken from the PCI specs. Part of them were typed
in by Wolfgang Stanglmeier, the (at that time unneeded) rest
by Charles Hannum (thanks !).
1995-02-02 22:01:40 +00:00
Jordan K. Hubbard 98a72d261a Fix some last boners in the setup script. 1995-02-02 20:46:40 +00:00
Bruce Evans dc3c30d9be Look for files to install first in the object directory, then in the
source directory.

Don't create target directories at install time.  mtree already handles
them correctly.
1995-02-02 17:44:02 +00:00
Bill Paul cf7979fba5 Cleaned up and updated the yppasswdd man page to reflect FreeBSD-specific
changes and new options. (more new man pages and an NIS tutorial to follow)
1995-02-02 17:25:58 +00:00
Stefan Eßer ea6ecb4e52 Disable disconnect after drive timeouts, since these
may be the result of reselect following too fast for
the driver to notice. Not the final solution, but the
problem has been seen only with very few devices.

Reviewed by:	se
Submitted by:	wolf (Wolfgang Stanglmeier)
1995-02-02 15:50:57 +00:00
Jordan K. Hubbard b78f244004 Why not give user a chance to start it, too? 1995-02-02 14:30:36 +00:00
Jordan K. Hubbard 3b138fe08b Make this a bit more aggressive.. :-) 1995-02-02 14:21:46 +00:00
Jordan K. Hubbard f98ec7d321 Here's the _real_ XFree86 3.1.1 installation script. I'm ready.. :-) 1995-02-02 14:18:04 +00:00
David Greenman 6398cf3113 Reapplied all of Stefan's changes. What a mess - the files were modified
and moved at the same time. This made it *very* difficult to fix the
revision log lossage that happend when the files were moved. SIGH.
1995-02-02 13:12:18 +00:00
David Greenman 77e50733d8 Fixed up include paths after copying these in the repository. 1995-02-02 12:36:19 +00:00
Jordan K. Hubbard c6949047a4 A better clean rule. 1995-02-02 12:29:03 +00:00
David Greenman a1f6d91cc2 swap_pager.c:
Fixed long standing bug in freeing swap space during object collapses.
Fixed 'out of space' messages from printing out too often.
Modified to use new kmem_malloc() calling convention.
Implemented an additional stat in the swap pager struct to count the
amount of space allocated to that pager. This may be removed at some
point in the future.
Minimized unnecessary wakeups.

vm_fault.c:
Don't try to collect fault stats on 'swapped' processes - there aren't
any upages to store the stats in.
Changed read-ahead policy (again!).

vm_glue.c:
Be sure to gain a reference to the process's map before swapping.
Be sure to lose it when done.

kern_malloc.c:
Added the ability to specify if allocations are at interrupt time or
are 'safe'; this affects what types of pages can be allocated.

vm_map.c:
Fixed a variety of map lock problems; there's still a lurking bug that
will eventually bite.

vm_object.c:
Explicitly initialize the object fields rather than bzeroing the struct.
Eliminated the 'rcollapse' code and folded it's functionality into the
"real" collapse routine.
Moved an object_unlock() so that the backing_object is protected in
the qcollapse routine.
Make sure nobody fools with the backing_object when we're destroying it.
Added some diagnostic code which can be called from the debugger that
looks through all the internal objects and makes certain that they
all belong to someone.

vm_page.c:
Fixed a rather serious logic bug that would result in random system
crashes. Changed pagedaemon wakeup policy (again!).

vm_pageout.c:
Removed unnecessary page rotations on the inactive queue.
Changed the number of pages to explicitly free to just free_reserved
level.

Submitted by:	John Dyson
1995-02-02 09:09:15 +00:00
David Greenman 8e95996cd7 Calling semantics for kmem_malloc() have been changed...and the third
argument is now more than just a single flag.

Submitted by:	John Dyson
1995-02-02 08:49:45 +00:00
David Greenman 9f518539fd Calling semantics for kmem_malloc() have been changed...and the third
argument is now more than just a single flag. (kern_malloc.c)
Used new M_KERNEL value for socket allocations that previous were
"M_NOWAIT". Note that this will change when we clean up the M_ namespace
mess.

Submitted by:	John Dyson
1995-02-02 08:49:08 +00:00
David Greenman 87bc4e696d Mostly cosmetic changes. Use KERNBASE instead of UPT_MAX_ADDRESS in
some comparisons as it is more correct (we want the kernel page tables
included).
Reorganized some of the expressions for efficiency.
Fixed the new pmap_prefault() routine - it would sometimes pick up the
wrong page if the page in the shadow was present but the page in object
was paged out. The routine remains unused and commented out, however.
Explicitly free zero reference count page tables (rather than waiting
for the pagedaemon to do it).

Submitted by:	John Dyson
1995-02-02 08:45:14 +00:00
Jordan K. Hubbard 097416da01 Bump the date to February 2nd. 1995-02-02 08:32:11 +00:00
Jordan K. Hubbard 24c120144b Clean these up a bunch more - gee I'm glad I do these snapshots, they uncover
*so many problems*.. Too bad the snaps themselves don't get made as a
consequence.. :-)

Bump the date forward Yet Another Day.  David has some changes he wants to
see rolled in, so I guess we're down for Feb 2nd as the snap date!
1995-02-02 08:31:38 +00:00
Andrey A. Chernov d5cf6f6056 Create directory symlinks neccesary for locale because mtree
can't create symlinks.
Suggested by Rod.
1995-02-02 08:03:24 +00:00
Jordan K. Hubbard 59ed2d66e2 Mkdir() now takes two flags. 1995-02-02 05:49:06 +00:00
Jordan K. Hubbard 9e44a9d701 This was misleading - you select OK to continue, not Cancel! ;-) 1995-02-02 05:44:14 +00:00
Jordan K. Hubbard dcca65bed0 Since the pci directory has moved, this required updating. 1995-02-02 05:42:47 +00:00
Poul-Henning Kamp 86abb05569 Make dirs for msdos fs's. 1995-02-02 05:35:36 +00:00
Jordan K. Hubbard a184b0e325 We no longer need a welcome telling us to take a floppy out - it's already
out.
1995-02-02 04:57:05 +00:00
Jordan K. Hubbard 5143382afe Create an obj symlink when necessary.
Submitted by:	"Remy CARD" <[email protected]>
1995-02-02 04:53:30 +00:00
Jordan K. Hubbard 4aed3d5f76 Clean up the documentation in light of a few recent changes. 1995-02-02 04:13:22 +00:00
Jordan K. Hubbard 5134cfac45 We don't need to go back to the first screen again - optimize this. 1995-02-02 04:08:13 +00:00
Jordan K. Hubbard 31c448c24a Argh! I left the setup script off the floppy. Time to re-roll it. 1995-02-02 04:07:51 +00:00
Paul Richards 048aaeebef Fixed problem passing received packets to bpf.
Implemented all the devconf code properly.
1995-02-02 04:07:45 +00:00
Jordan K. Hubbard e9400e0561 Cosmetic fix.
Submitted by:	Christoph Kukulies <[email protected]>
1995-02-02 03:36:51 +00:00
Atsushi Murai bf8a83a027 PPP does not find config files (Wrong path name not a /etc/ppp)
Submitted by:	Michael Reifenberger <[email protected]>
1995-02-02 01:54:27 +00:00
Bill Paul 9e9a89bb1f cleaned up and modified slightly to reflect changes 1995-02-01 23:47:04 +00:00
Bill Paul 87a8966828 Cleaned up Makefile a little, added man page links from ypchsh.1 ypchfn.1
and ypchpass.1 to yppasswd.1. Also fixed a typo: ypshfn != ypchfn.
1995-02-01 23:46:20 +00:00
Bill Paul e0f276ea94 Need to set a umask to avoid security problems (/var/yp/passwd
world-writable).
1995-02-01 23:30:02 +00:00
Bill Paul e26ae5b13a Cleaned up usage() -- removed bogus references to opassfile, which isn't
used anymore (/var/yp/Makefile creates a new /var/yp/passwd file from
/var/yp/master.passwd using awk, so yppasswdd doesn't have to make it
anymore).
1995-02-01 23:27:46 +00:00
Jordan K. Hubbard 770f05c102 Add tun to list of devices.
Submitted by:	mr
1995-02-01 23:15:11 +00:00
Stefan Eßer fe90a500af Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
PCI specific code moved to /sys/pci.
1995-02-01 23:11:38 +00:00
Stefan Eßer ac19f91802 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
New ISA dependend file for PCI bus support.
Replaces sys/i386/pci/pcibios.c.
1995-02-01 23:06:58 +00:00
Bill Paul 7870fc7fdb /var/yp/Makefile doesn't create passwd file from master.passwd file
correctly (specified wrong fields to awk). Note that the files in question
are noe the local /etc/master.passwd and /etc/passwd files: this Makefile
expects there to be a seperate master.passwd file under /var/yp for NIS
database creation.
1995-02-01 23:05:36 +00:00
Stefan Eßer 70008bb125 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
Most PCI specific files moved from sys/i386/pci to sys/pci.
One PC specific file (pcibus.c) new in sys/i386/isa.
1995-02-01 23:02:24 +00:00
Stefan Eßer f3f509de23 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
Obtained from:
Most PCI specific files moved from sys/i386/pci to sys/pci.
One PC specific file (pcibus.c) new in sys/i386/isa.
1995-02-01 23:01:54 +00:00
Stefan Eßer 5e70573817 Reviewed by: se
Submitted by:	wolf (Wolfgang Stanglmeier)
Files moved here from sys/i386/pci, since they are meant to be
architecture independent.
1995-02-01 22:56:55 +00:00
Jordan K. Hubbard cfba24a39b Don't forget to make the gzip'd boot floppy. 1995-02-01 22:53:32 +00:00
Søren Schmidt 786f122175 Syscons bug fix: tab now right (thanks bruce!)
Mouse arrow support almost finished.
1995-02-01 21:56:32 +00:00
Gary Palmer cc715f2bca Start the ball rolling by sticking a
MAINTAINER?= line in here.

Idea by: [email protected]
1995-02-01 21:47:57 +00:00
Bill Paul 320ce7b758 Fix for that last fix... pass the hat. :) 1995-02-01 20:09:00 +00:00
Bill Paul c768efa1a8 Small fix to _getyppass(): sometimes we can construct the wrong mapname
when looking for master.passwd.whatever.
1995-02-01 20:06:33 +00:00
Jordan K. Hubbard f4df96ec7e Take out my previous change to update the src tree first - that was
stupid.. :-)
1995-02-01 11:19:24 +00:00
Jordan K. Hubbard 431d67b60e Do what I think Poul *intended* to do, rather than what he did.. :-) 1995-02-01 11:15:45 +00:00
Jordan K. Hubbard 501d72dd36 Bump snap date. Our current version numbering scheme loses.
How can we get ONE canonical version string into everything?
1995-02-01 11:03:35 +00:00
Jordan K. Hubbard 8dc0757983 Bump the date on the snapshot. The previous one never happened.. :-) 1995-02-01 10:59:37 +00:00
Jordan K. Hubbard 4350346dea Change the way I make the link to /etc/termcap. It worked for install
but not distribute.  Now it works for both.
1995-02-01 08:32:05 +00:00
Bill Paul 7506dfc15e Changed passwd/yppasswd's Makefile to create all symbolic links instead
of hard links: since passwd is installed immutable, an attempt to make
a hard link to it during a 'make install' would fail. I didn't notice
this conflict because my /usr directory is an NFS filesystem mounted from a
SunOS server, so the special file mode flags had no effecti when I tested
everything on my machine. Live and learn.
1995-02-01 05:55:18 +00:00
Paul Richards 671a48a577 Fix calculation of default field heights and a bug in the setting
of form dimensions.
1995-02-01 04:08:19 +00:00
Paul Richards 8c490a36b0 Implemented height field for text fields so they can now be more than
one line long.

Fixed a bug in the input field with cursor positioning at the end of
the field.

Make the print_status function available to apps so they can print
status messages.

Updated the example for the new fib parser.
1995-02-01 04:06:37 +00:00
Paul Richards 463e33c94b Clean up the parser, allow fields to be specified inline and
generally make the forms language much less verbose.

Add height option for fields and calculate sensible defaults.
1995-02-01 03:22:17 +00:00
Bill Paul ba3fbfe69c Added the yppwupdate script. This is a small shell script that yppasswdd
executes after it finishes updating the raw master.passwd file. The script
is just there to invoke /var/yp/Makefile to build new maps and yppush them.
We could have yppasswdd run /var/yp/Makefile directly, but this allws a bit
more flexibility: the user may decide to run some other commands too.
1995-02-01 02:13:15 +00:00
Bill Paul 85e33f94dc Added Makefile.yp and mknetid, which are needed to rebuild NIS maps.
mknetid is a script. Both are installed by an afterinstall which as
been added to the main Makefile.
1995-02-01 02:00:03 +00:00
Bill Paul c70242ae20 Need _PATH_YP for ypserver stuff. 1995-01-31 23:12:53 +00:00
Poul-Henning Kamp 5319d4525a I have taken sysinstall out of the normal SUBDIR rule. There are too
many build problems just now, and it isn't that general after all.
1995-01-31 19:41:08 +00:00
Poul-Henning Kamp e86e7d0e07 CTM email tools.
Reviewed by:	phk
Submitted by:	Stephen McKay <[email protected]>
1995-01-31 19:12:53 +00:00
Bruce Evans e322e6a55a Fix reading of stack addresses from core files. USRSTACK now really is
the (top of the) user stack.
1995-01-31 18:07:36 +00:00
Bruce Evans 68abb9f9db Fix off by one error in calculation of `mday' (months start at 1).
Jan 31 gave Jan 30, often for next year.
1995-01-31 17:54:39 +00:00
Jordan K. Hubbard ce0d1cd5db Add dmenu. 1995-01-31 13:53:44 +00:00
Peter Dufault 8be820d189 Split byte packing functions into signed and unsigned versions.
Left most current invocations as signed, though that could be wrong.
1995-01-31 11:41:47 +00:00
Bill Paul d0ef66889a Some changes for YP password map handling:
- FreeBSD's NIS server can supply a master.passwd map, which has
  more fields in it than a standard passwd map, so we need a
  _master_pw_breakout() fuction.

- When doing passwd map lookups, look for master.passwd.* by attempting
  a _yp_first() on master.passwd.byname. If it exists, we're being served
  by a FreeBSD NIS server and we should use this map.

- If we aren't the superuser, retrieve only the standard passwd maps.
  If we're being served by a FreeBSD system, then the passwd map has
  no passwords in it, and it won't serve us the master.passwd map unless
  we're superuser anyway.

There's a small speed hit for the superuser inherent in the check for
the master.passwd map, but this lets us dynamically decide what to do
rather than rely on a non-standard config file somewhere. Since all
of this is bypassed for normal users, they shouldn't notice the
difference.
1995-01-31 10:04:18 +00:00
Bill Paul e35cfba7f2 Added SUNDIR entry for yppush 1995-01-31 09:48:48 +00:00
Bill Paul 9f6a77c541 Obtained from: The NYS project
This is a ported/modified version of the yppush program from the
yps-0.21 package from the NYS project. This program is used to propagate
updated NIS maps from an NIS master to an NIS slave. It's normally invoked
by /var/yp/Makefile.

This version of yppush has been modified in the following ways:

- Cleared up several Linux/BSD incompatibilities, largely involving
  header files.

- converted from GDBM to DB with extreme predjudice. (well, not really...)

- removed lots of ugly debugging code that really didn't do anyone any good.

- Fixed a couple of inaccurate/badly formatted error messages.

- Renamed some functions to avoid collisions with certain YP routines
  hidden inside libc.

- Small signal handling kludge: Linux has different struct sigaction
  that us.

- Incorporated some functions from the yps-0.21 library that yppush was
  dependent on.

Like ypxfr, this works, but could use come cleaning up.
1995-01-31 09:47:11 +00:00
Bill Paul 2fd1e2091b Added subdir entry for ypxfr 1995-01-31 09:29:38 +00:00
Bill Paul c183a93033 Obtained from: The NYS project
This is a ported/modified version of the ypxfr program from the yps-0.21
package from the NYS project. This program is normally invoked by ypserv
when it receives a yppush command from an NIS master. It can also be
run from the command line to grab copies of maps when initializing a
slave server.

This program has been hacked in the following ways:

- rpcgen'ed new yp_xdr.c, yp_svc.c and yp_clnt.c files. The old ones were
  rather grody.

- Changed certain function names (prefended a _ to them) to avoid conflicts
  with certain functions lurking within libc. One major problem here is
  that ypxfr needs to bind to a YP master in order to work correctly,
  but it can't use the _yp_bind function inside libc because that
  function only lets you bind to a domain, not a specific host. Lots
  of head scratching here.

- Converted from GDBM to DB at gunpoint.

- Removed lots of really nasty looking DEBUG code to try to reduce clutter.

- Incorporated some of the library code supplied with yps-0.21 on which
  ypxfr was dependent.

This program still needs to be cleaned up just as a matter of principle:
I get all icky just looking at it sometimes.
1995-01-31 09:28:47 +00:00
Bill Paul 985124b508 New Makefiles for YP server stuff. 1995-01-31 09:14:03 +00:00
Bill Paul 6c394ac5f9 Obtained from: The NYS project
This is a ported/modified version of yppasswd from the NYS yppasswd-0.5
package. This package has code in it from both Olaf Kirch and Theo
de Raadt. There are GPL references and BSD-style copyright all over the
place... hopefully I won't get flamed into oblivion for commiting this.

This program has been modified from the original in the following ways:

- Changed the ALLOW_CHFN and ALLOW_CHSH compile-time options into
  run-time options.

- Demolished the password update functions and replaced them with
  routines to handle FreeBSD-style passwordd databases. It is expected
  that a seperate master.passwd file will be maintained for use with
  the NIS maps. yppasswd will have to be told where it is:

  % yppasswdd -m /var/yp/master.passwd

  A /var/yp/passwd file will be generated from /var/yp/master.passwd by
  /var/yp/Makefile. When yppasswdd has finished modifying the master.passwd
  file, it will invoke /usr/libexec/yppwupdate, which is a script that
  will run /var/yp/Makefile to generate new maps and push them.

Note that there are copies if pw_util.c and pw_copy.c here. This is
deliberate: they are *not* identical to the originals. Very similar, yes,
but not identical. *sigh*
1995-01-31 09:12:52 +00:00
Bill Paul b4a640674a Obtained from: The NYS project
This is a hacked-up port of the ypserv-0.11 server from the NYS project
written by Peter Eriksson.

The original package included some map creating and dumping tools and
was based on GDBM. This version has been modified in the following
ways:

- GDBM replaced with DB and many weird hacks made to the read_database()
  function because of this.

- implimented the ypxfr service (using ypxfr from the yps-0.21 package,
  aso from the NYS project)

- added code to check the TCP port from which NIS requests originate:
  the server will refuse to serve the master.passwd.{byname|byuid} maps
  if the request doesn't come from a privileged port. Normally, only the
  superuser can issue such a request. Requests for the passwd.{bynam|byuid}
  maps aren't affected. There will be a small change made to getpwent.c
  in libc to complement this.

- added code to do DNS lookups via actual resolver queries instead of
  relying on gethostbyname() and friends. The author noted in the original
  documentation that a loop condition could arise where the server would
  query itself for hostsname lookups. Using direct DNS lookups prevents
  this from happening.

- added code to properly fork() the server into the background unless
  invoked with the -debug flag.

- Added combined syslog/perror function.

- fixed a few bugs (which were probably introduced by all the other
  changes)

- Created a bmake Makefile.

Note that this package can be linked against the tcp_wrapper package
to provide address-based authentication, but this isn't done by default
since the tcp_wrapper package isn't part of FreeBSD.
1995-01-31 08:58:57 +00:00
Bill Paul 0faad4f4e7 Obtained from: The NYS project
This program is used for both generating and dumping NIS maps. It's very
similar to the 'makedbm' command in SunOS. This program was ported from
the yps-0.21 package. It's close to the original except for the GDBM to
DB conversions. This was simple compared to the other YP components.
1995-01-31 08:43:07 +00:00
Bill Paul 9e32e2330f Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.

Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:

- If you simply type 'passwd,' the program checks to see if you exist
  in the local pwd.db database. If not, you get bounced to YP.

- If you try to force local functionality with the -l flag and you
  don't exist locally, you get an error.

The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'

ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
1995-01-31 08:34:16 +00:00
Atsushi Murai ed1eb14104 Adding "ppp" entry for a user process PPP (aka iijppp) 1995-01-31 07:57:09 +00:00
David Greenman 9dc4f38bff Rewrote rlist_free(). The previous code was a good example of how to
write software wrong. rlist_alloc() needs a rewrite, too, but this will
have to wait.
1995-01-31 06:48:53 +00:00
Atsushi Murai 58ca719e76 Add Tunnel devcie for ppp (iijppp) 1995-01-31 06:34:53 +00:00
Atsushi Murai 2d3f9865da Add Tunnel device for ppp (iijppp) 1995-01-31 06:33:58 +00:00
Atsushi Murai c4f2ae4c95 Add tunnel device for ppp(iijppp) 1995-01-31 06:33:02 +00:00
Atsushi Murai af57ed9fdc 1995-01-31 06:29:58 +00:00
Atsushi Murai 4ffc792490 Reviewed by: 1995-01-31 06:24:33 +00:00
Atsushi Murai b74038e18b 1995-01-31 06:15:49 +00:00
Jordan K. Hubbard 053e19c19e Fixed up the text a bit, attribute NetBSD properly. 1995-01-31 04:36:48 +00:00
Poul-Henning Kamp 087b6ad948 $Id: -> $Id$ 1995-01-31 04:33:41 +00:00
Jordan K. Hubbard 62e2043daa Add sweden to list of install sites. 1995-01-30 22:52:50 +00:00
Jordan K. Hubbard 120ca2ec49 Unify the copyright notice. 1995-01-30 22:21:29 +00:00
Jordan K. Hubbard 45a52e5c98 Add our new Swedish mirror site. 1995-01-30 21:58:39 +00:00
Søren Schmidt 1f741c31eb Added 80x30 & 80x60 experimental modes officially. 1995-01-30 21:44:07 +00:00
Søren Schmidt 00e0cb6577 Added h option for setting the historysize.
fixed problem with Both n&C flags.
1995-01-30 21:41:14 +00:00
Søren Schmidt 123222dbd7 Minor fixes to syscons. Blink cursor fixed. History buffer fixed.
kbdtables updated with boot option for CTL+ALT+DEL
1995-01-30 21:39:18 +00:00
Søren Schmidt 6de1193d13 Reviewed by:
Submitted by:
Obtained from:
1995-01-30 21:36:32 +00:00
Doug Rabson 34728d6afb Add support for kerberised NQNFS.
Reviewed by:
Submitted by:
Obtained from:
1995-01-30 19:18:11 +00:00
Doug Rabson 5439cc46c9 Add support for kerberised NQNFS. 1995-01-30 18:56:06 +00:00
Satoshi Asami 106a8c2a7b Cleanup.
Submitted by:	Wolfram Schneider <[email protected]>
1995-01-30 17:49:19 +00:00
Andrey A. Chernov 2c80666172 Fix owner/mode for installed data 1995-01-30 15:34:06 +00:00
Andrey A. Chernov 90892cea75 Remove creating dirs & symlinks, it is done by mtree now 1995-01-30 15:29:47 +00:00
Andrey A. Chernov 1450574879 Create necessary symlinks for locale dirs 1995-01-30 15:20:53 +00:00
Andrey A. Chernov 988862353e Describe default MAXCONS value: 12 1995-01-30 14:40:06 +00:00
Ugen J.S. Antsilevich 89209d358d Add ipfw to /lkm Makefile..uups.. 1995-01-30 14:21:46 +00:00
Andrey A. Chernov 255ec70534 Add more range/argument checking
Submitted by: [email protected]
1995-01-30 14:11:58 +00:00
Doug Rabson 7cb18415b8 Discard any messages which are buffered on the routing socket before using
it otherwise the response to one of our routing messages could be lost due
to buffer overflow.
1995-01-30 11:11:43 +00:00
Jordan K. Hubbard 3f4fff96f9 Make fetch a bit more forgiving of subdirs. 1995-01-30 10:06:56 +00:00
Jordan K. Hubbard 6098353123 Add LN_FLAGS to all the places it makes sense. 1995-01-30 07:22:02 +00:00
Jordan K. Hubbard 45f7d107ac Add new LN_FLAGS variable for making LINKS symbolic and whatnot. 1995-01-30 07:20:01 +00:00
Jordan K. Hubbard ed0770e938 Make a link to /etc for termcap file. /etc/termcap is just too lodged in
folklore to do without! :-)
1995-01-30 07:19:02 +00:00
Jordan K. Hubbard 213f271939 Make jkhdist also update the tree. 1995-01-30 07:01:56 +00:00
Andrey A. Chernov 85cd355ef1 Use double speed read for FX001D, now this drive
becomes two times faster than in old variant.
Get rid of false "media changed" errors during large disk transfers
1995-01-30 06:44:40 +00:00
Bruce Evans c9c9e30a03 Increase the reserved clist space for the raw queue from 512 to TTYHOG.
This might help avoid tty buffer overflows on loaded systems.
1995-01-30 06:16:59 +00:00
Poul-Henning Kamp ba7d3b1476 Warning: vn doesn't work just now. I havn't found out why. This commit
just removes a couple of unused functions.
1995-01-30 05:31:04 +00:00
Poul-Henning Kamp d1544fa9af Fix the include path to scdreg.h. 1995-01-30 05:29:03 +00:00
Poul-Henning Kamp 40613bee3f The new kernel for boot.flp. In general:
BOOTFLP = GENERIC - networking
1995-01-30 03:23:57 +00:00
Poul-Henning Kamp f39c8af4fd 1.44 floppies considered evil now. Real kernel on cpio.flp.
added explicit "OK" file.
Nuked vn support, doesn't work second time around :-(
1995-01-30 03:22:24 +00:00
Poul-Henning Kamp aa033a1d78 Move the real kernel onto the cpio.flp and read this from the boot.flp
make debug handling with serial console obnoxious, but present.
1995-01-30 03:19:58 +00:00
Paul Richards 481114cd82 Update the parser to handle the color specifications and new attr
options.
1995-01-30 02:43:28 +00:00
Paul Richards 0d595e6acd Add all the necessary bits to use color if the terminal allows it.
You can now specify separate attributes for selected/not selected
cases individually for each field and also an attr for the form as
a whole so you can now have colored backgrounds for the form and
different coloured fields etc.

Update the example.

Change the copyright to a BSD style one.
1995-01-30 02:41:29 +00:00
Jordan K. Hubbard 31892b894c Try one theory about why the domain name isn't being default right now. 1995-01-30 02:13:05 +00:00
Poul-Henning Kamp 50bd4cabd3 Pass '-m' to symorder. Kernels without INET will fail otherwise. 1995-01-29 23:42:11 +00:00
Jordan K. Hubbard e9dd2c6798 Second version of this driver.
Submitted by:	Mikael Hybsch <[email protected]>
1995-01-29 22:51:41 +00:00
Jordan K. Hubbard 55e658a8a1 srcbin dist, not bin 1995-01-29 08:38:22 +00:00
Jordan K. Hubbard f3bee8cfe4 Make the default paths a bit more rational for our systems (sheesh!).
Thanks, Sean!
Suggested by:	Sean McDermott <[email protected]>
1995-01-29 08:01:05 +00:00
Gary Palmer 50d97d16d4 Give this a serious dose of reality by adding the last 2-3
months worth of new sup targets!
1995-01-29 06:46:27 +00:00
Bruce Evans 023ebcd440 Fix longstanding benign type mismatch. 1995-01-29 06:37:13 +00:00
Poul-Henning Kamp bb300ac680 Remove the entry about adding "interrupts to pas", done. 1995-01-29 06:35:03 +00:00
Poul-Henning Kamp 207598c3ad Make sure the scripts/* files have 'x' bits. 1995-01-29 06:29:14 +00:00
Bruce Evans 5053292ac8 Define MAXARCS correctly. It has nothing to do with HISTCOUNTER, and
overflowed when I enlarged HISTCOUNTER to u_int.
1995-01-29 06:23:34 +00:00
Bruce Evans e45d35c3f8 Don't waste 1264K for each MB of unused text.
Remove misplaced comment.
1995-01-29 03:03:23 +00:00
Bruce Evans 15e633f0d9 Fix disassembly of `bt[crs] $Ib,E'. 1995-01-29 02:38:15 +00:00
Poul-Henning Kamp d97ce60ae9 Some cleanup done.
Include bteasy, bootsd, sdboot and termcap entries using file2.c

Remove all traces of "termcap.small".

The policy in this program regarding termcap is:

| If $TERM is set
| 	do nothing special, rely on usual termcap.
| else
| 	use compiled in (via file2c) termcap entries
1995-01-29 02:31:38 +00:00
Andreas Schulz 5992978871 Submitted by: Philippe Charnier <[email protected]>
Install the man page, now that we have one.
1995-01-29 02:16:01 +00:00
Poul-Henning Kamp f5747177b2 Change the boot.flp rule to use the "vn" device. Much faster :-)
remove bootsd and sdboot from the boot.flp, the matching change to
sysinstall will arrive later this evening.
1995-01-29 02:12:30 +00:00
Andreas Schulz ec5b52ee79 fix another bug in the MAKEDEV cludge :-). The x-bit permission are not
necessarly copied over. So better call it explicit with a sh ./MAKEDEV .
1995-01-29 01:45:54 +00:00
Jordan K. Hubbard 32b68a745b Take out ?diskfree - it doesn't make any sense now.. 1995-01-29 01:35:24 +00:00
Jordan K. Hubbard e235775271 I blew the date on this. Sigh.. 1995-01-29 01:32:32 +00:00
Andreas Schulz afb7bd3e81 Kill the comment in a comment to shut up the compiler. 1995-01-29 01:27:58 +00:00
Andreas Schulz abb29799dd Correct the relative path for the etc directory in the makedev cludge :-). 1995-01-29 01:25:17 +00:00
Andreas Schulz aa98692ffb Correct a name of one structure member in the sigaltstack structure.
Now it matches the man page and also the only other commercial implementation
i have found so far ( Solaris 2.x).
Changed the name from ss_base to ss_sp.
1995-01-29 01:19:25 +00:00
Jean-Marc Zucconi 2429906c75 Add parentheses around macros! 1995-01-29 01:00:14 +00:00
Poul-Henning Kamp 1408eb8439 add file2c 1995-01-29 00:51:38 +00:00
Poul-Henning Kamp b71255826d This is a small little program used to execute a bad practice a clean way :-)
It will read a file on stdin and write it as decimal integers on stdout,
this is useful for embedding files in c-sources.

There are a few places where this is needed, and this is a better way than
the current practice of hand-editing the sources.

The command:

date | file2c 'const char date[] = {' ',0};'

will produce:

const char date[] = {
83,97,116,32,74,97,110,32,50,56,32,49,54,58,52,55,58,51,51,32,80,83,84,
32,49,57,57,53,10
,0};

The manual page is 2 lines longer than the source :-)
1995-01-29 00:49:57 +00:00
Jordan K. Hubbard 400560267f Copy the src tarballs' script to the right place. 1995-01-28 22:29:27 +00:00
Søren Schmidt a926a37b0a Third round in syscons update.
Display update method changed, now allways write in memory buffer,
  then periodically update physical display.
Speed improvements (now > 5 times faster than the old syscons).
History now circular buffer, with changeable size.
History scroll by up/down line, up/down page, home and end.
Backtab proberly implemented.
Now space for 96 function keys, 63 allocated standard, default now
  SCO/SYSV compat again as in the old days.
New keyboard definition files ~share/syscons/keymaps/*
Misc fixes for old "hacks" that broke SCO/SYSV compat.
More that I forgot before writing this...
1995-01-28 22:18:05 +00:00
Jean-Marc Zucconi 7c5329fd30 Do not recompute TIMER0's maximum count, since it is in timer0_max_count.
Use a simpler formula to convert usecs to ticks.
Output is in microseconds instead of ticks, so that values do not depend
on the timer frequency.
1995-01-28 21:54:37 +00:00
Satoshi Asami 35bff0b976 Add a -s' flag for silent' processing. Make the script return 0 for
success and 1 for failure.  Describe the options in manpage.
1995-01-28 17:35:56 +00:00
Jordan K. Hubbard ebf5d6bd28 Delete a bogus :. 1995-01-28 13:17:38 +00:00
Jordan K. Hubbard e0b77dac9a Less kludge dev. 1995-01-28 09:17:58 +00:00
Jordan K. Hubbard fadd4e9f07 A different kludge for /dev 1995-01-28 09:16:41 +00:00
Jordan K. Hubbard 1bdc047602 Make some of the extract scripts more explicit. 1995-01-28 09:11:39 +00:00
Jordan K. Hubbard ae547a3309 Print message about ignoring stupid warnings in game dist
Don't ask user to press return after every dist.
1995-01-28 09:07:48 +00:00
Jordan K. Hubbard 02c931e63b Syntax errors corrected
Add support for Sony CDROM
1995-01-28 09:04:12 +00:00
Jordan K. Hubbard 8ed9cf223f Nuke out a printf that otherwise spews crap at probe() time. A no-no. 1995-01-28 06:40:23 +00:00
Jordan K. Hubbard 9b568f1654 Put in a much less bogus Makefile on advice from Bruce. 1995-01-28 06:01:18 +00:00
Jordan K. Hubbard 1569d8d643 Make the check for a precompiled kernel correct. 1995-01-28 05:33:52 +00:00
Jordan K. Hubbard f40f848a55 Look for scdreg.h in the right place. Whoops. 1995-01-28 05:32:53 +00:00
Jordan K. Hubbard f1780a6c25 Add soundblaster CD to generic kernel. Hope this doesn't run us out
of space!
1995-01-28 05:01:43 +00:00
Jordan K. Hubbard 8965b9f5e5 Poul lost his copy of K&R again - add a semicolon to the end of the
preceeding statement..
1995-01-28 05:00:50 +00:00
Poul-Henning Kamp c0f92921df Update to BTEASY 1.7
Submitted by:	vak
1995-01-28 04:42:08 +00:00
Poul-Henning Kamp c874ac0293 Make Jordan a little happier by fixing a couple of bogons. 1995-01-28 04:35:05 +00:00
Jordan K. Hubbard 2e97cbe167 Tweak the location of the scd driver. 1995-01-28 04:20:55 +00:00
Jordan K. Hubbard 4265ddc50f Add the soundblaster CDROM driver back in, but this time under the GPL
since the Linux driver was used as the principle reference.
Submitted by:	Mikael Hybsch <[email protected]>
1995-01-28 04:18:42 +00:00
Andrey A. Chernov d8f5f936d9 Fix configurations in which mail route depends of the name
of sender host.
Submitted by: [email protected]
1995-01-28 04:09:05 +00:00
David Greenman 8710a63985 Get rid of extra []'s and otherwise fix-up boot prompt. Reordered
boot flags processing to be alpha-beta.
1995-01-28 03:51:39 +00:00
David Greenman 8f895206ff Completed the fix for attempting to page out pages via the device_pager.
Submitted by:	John Dyson
1995-01-28 02:02:25 +00:00
David Greenman 3bd0d9a279 Fixed coredump when issuing d$ on a blank line. Fixes bin/191. 1995-01-28 01:58:14 +00:00
Jordan K. Hubbard f700afc402 Tweak some of the notes. 1995-01-28 01:20:18 +00:00
Jordan K. Hubbard 2b868793d1 Update everyone's paths to point properly into /stand/scripts. 1995-01-28 01:18:44 +00:00
Jordan K. Hubbard 9c206926ab Bump the date again - the snapshot doesn't look like it's going to happen until
tomorrow.. :-)
1995-01-28 01:14:39 +00:00
Jordan K. Hubbard ea7f178ccb Call the bininst.sh script by its new name. 1995-01-28 01:13:29 +00:00
David Greenman e1babfc54f Kill used "error" variable. 1995-01-27 23:26:53 +00:00
David Greenman 2f21d07aa3 Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
1995-01-27 23:24:33 +00:00
Jordan K. Hubbard bc046396d6 Update these to be a little more business-like in appearance.
Delete obsolete information.
1995-01-27 23:15:31 +00:00
David Greenman cc6f628176 Be sure to properly fail if there are not enough fields. Problem
reported by MARC Giannoni <[email protected]>, this fix is by me.
1995-01-27 22:30:03 +00:00
David Greenman 5d20b0e1a2 from Matt Day <[email protected]>:
> So, the problem is hostnamebyanyaddr() assumes that _res is already
> initialized to proper values, but this is no longer true as of BIND
> 4.9.3.  Here is a patch for sendmail 8.6.9 which changes
> hostnamebyanyaddr() to make sure res_init() has been called before using
> _res.retry.

Submitted by:	Matt Day <[email protected]> via Terry Lambert
1995-01-27 22:14:38 +00:00
Jordan K. Hubbard ae099941e3 Back out my previous change and disable the floppy tape controller again
by default.  It's hosing up my test machine's floppy pretty good.
1995-01-27 20:03:07 +00:00
Jordan K. Hubbard f16651aed0 Tweak SNAP date. 1995-01-27 19:56:56 +00:00
Jordan K. Hubbard e654f62e11 Bump the snap number 1995-01-27 18:21:26 +00:00
Justin T. Gibbs b11c81e076 Set the current transfer parameters directly after a mesg reject for either
Wide or Sync negotiation attempts as we do in all other phases of negotiation.
1995-01-27 17:37:05 +00:00
Doug Rabson 6de86c13d8 Reclaim memory used for telldir cookies on closedir. 1995-01-27 13:51:18 +00:00
Jordan K. Hubbard b0c105c05a Make the gzip commands more rational. 1995-01-27 08:30:35 +00:00
Jordan K. Hubbard 24ae520b47 Make this not fall over screaming if a file isn't found (the user might
not have wanted it).
1995-01-27 08:26:25 +00:00
Jordan K. Hubbard 8bfd187bc2 Get the src rule right. 1995-01-27 08:06:43 +00:00
Poul-Henning Kamp 2e442ca3f4 Man page for the new nca driver. 1995-01-27 07:54:59 +00:00
Jordan K. Hubbard 8d27b7fcda Adjust some of these extract scripts. 1995-01-27 07:49:46 +00:00
Poul-Henning Kamp e05407d84b New and far better NCR5380/NCR53400 scsi-driver.
Handles at least Trantor T130 and ProAudioSpectrum adapters.
The pas driver has consequently been removed.
This driver can be configured without without interrupts.

Manpage to follow when PAS16 has been edited in.

Reviewed by:	phk
Submitted by:	Serge Vakulenko, <[email protected]>
1995-01-27 07:49:19 +00:00
Jordan K. Hubbard f8577f8e51 Adjust names of distributions. 1995-01-27 07:37:55 +00:00
Jordan K. Hubbard 6e645041a9 Don't build src tarball by default. 1995-01-27 07:37:41 +00:00
Jordan K. Hubbard f19a9f767a Change a few more mkdirs to mkdir -p's. 1995-01-27 06:24:35 +00:00
Jordan K. Hubbard 213b5e5976 Edit out some extraneous tabs. 1995-01-27 02:20:42 +00:00
Jordan K. Hubbard dd601a5921 Add a -p to mkdir. 1995-01-27 01:47:32 +00:00
Peter Dufault 672412c27e Clean up handling of unspecified names. Clarify man page. 1995-01-26 23:48:41 +00:00
Peter Dufault daa21be5f0 Fix verbose printout of "" name 1995-01-26 23:40:40 +00:00
Jordan K. Hubbard 9d6b125366 Use the better perl script version of which submitted by Wolfram.
Submitted by:	Wolfram Schneider <[email protected]>
1995-01-26 21:49:54 +00:00
David Greenman 7a642ab589 Fix from Doug Rabson for a panic related to not initializing the kernel's
PTD.

Submitted by:	 John Dyson
1995-01-26 21:06:40 +00:00
Jordan K. Hubbard 7119fe23a7 Disable dset for now - Bruce says it hoses the show. 1995-01-26 19:04:29 +00:00
Garrett Wollman 479bb8da0e Correct long-standing error in the RSVP hooks (would initialize but never
return success).
1995-01-26 18:59:02 +00:00
Andrey A. Chernov 49a5c6fd25 Change overloaded Keypad 5 to fkey65 1995-01-26 11:22:01 +00:00
Andrey A. Chernov e4707252dc Upgrade Back tab & Keypad 5 info 1995-01-26 11:04:52 +00:00
Andrey A. Chernov 89d8fc79de MAXCONS option described 1995-01-26 11:00:12 +00:00
Andrey A. Chernov 735fed15b5 DOn't use hardcode values for L_FN & L_SCR 1995-01-26 10:32:55 +00:00
Ugen J.S. Antsilevich 2b43c8c9db ip_fwdef.c was missing some assignments , and this
caused that bug by which firewall code was not working
if configured into kernel and worked only as lkm.
Now this must be fixed...Sorry guys..
1995-01-26 10:26:15 +00:00
Andrey A. Chernov fd4a3c0b42 Use NUM_FKEYS instead of hardcoded 65 for fkey_tab size 1995-01-26 10:16:51 +00:00
Andrey A. Chernov 2c24a153e0 Increase NUM_FKEYS to 65 1995-01-26 10:13:38 +00:00
Andrey A. Chernov f42e354117 Get rid of overloaded Keypad 5, now F(65) 1995-01-26 10:08:39 +00:00
Andrey A. Chernov b99c427733 Get rid of overloaded Back tab, now F(64) 1995-01-26 10:02:21 +00:00
Andrey A. Chernov 325e89b668 Rewrite fkey_tab to produce unique sequences for all fkeys
Get rid of overloaded fkeys
1995-01-26 09:58:37 +00:00
Andrey A. Chernov e7a1520824 Describe Left window, Right window and Menu keys 1995-01-26 09:24:14 +00:00
Andrey A. Chernov 6b1499efe8 Remove Delete remapping, unneccesary now 1995-01-26 09:10:41 +00:00
Andrey A. Chernov 3f18ada3a6 Describe Delete key 1995-01-26 09:05:22 +00:00
Andrey A. Chernov d2eb078dbe Sync with main termcap 1995-01-26 08:51:52 +00:00
Andrey A. Chernov 771930da08 Correct Delete key description 1995-01-26 08:48:13 +00:00
Andrey A. Chernov 4c03cbeb25 Describe Delete key 1995-01-26 08:45:51 +00:00
Andrey A. Chernov 14ed6a7595 Implement Delete key properly, needed by ncurses 1995-01-26 08:43:24 +00:00
Bruce Evans ceac74879e Install man.local in the correct directory. Apparently everyone is using
the version installed from /usr/share.  It's hard to eliminate old versions
- few Makefiles have `uninstall' targets and sup/ctm tends to blow away
old Makefiles.

This Makefile needs more work.  Stuff is built at install time...
1995-01-26 06:00:40 +00:00
Andrey A. Chernov 379e45984a Add yet one & to kadmin startup to not left second-level shell hanging 1995-01-26 05:25:52 +00:00
Andrey A. Chernov 87fcda4634 Remove FAT_CURSOR, it is already non-existent during several
last syscons versions
1995-01-26 05:04:37 +00:00
Andrey A. Chernov 5ddda58b2e o Restore removed hardware cursor support and make it _default_
case, software cursor now optional case. Driver must provide
  raw things (what hardware do for us, exactly) as default case,
  all driver features must be _optional_. Modern VGAs have internal
  configuration utilities to set cursor shape/blinking which stored
  into cards ROM, and syscons nuke out such features completely
  by forcing software cursor. Moreover, software cursor is hard
  to distinguish on standouted (or near standouted) fields and
  tends to disappearse from the screen.
  Set "flags 0x4" to enable software cursor now.

o Cleanup screen savers.

o Don't draw cursor if saver or blinker is active.

o Duplicated code moved to functons.

o Add more checks for blinker in progress, character lost otherwise
  when blinker restore old contents.

o Reduce blinking counter to 3, too slow in old variant.

o Fix timeout code in scrn_timer(), old variant can reenter iself,
  if action takes too long time.

o Disable visual bell for scroll lock mode, saved screen
  becomes overwritted otherwise.
1995-01-26 04:56:25 +00:00
David Greenman 8eea120788 Kill previous commit as it isn't necessary. 1995-01-26 03:56:20 +00:00
David Greenman 6a1c735df7 Fix problem with freeing busy pages reported by Nick Sayer.
Submitted by:	 John Dyson
1995-01-26 03:34:31 +00:00
Andrey A. Chernov 965d72e637 Use (sleep 20; kadmind ...) & -- wait until kerberos started 1995-01-26 02:58:31 +00:00
David Greenman d3a10e2cad Comment out pmap_prefault for the time being (perhaps until after 2.1).
The object_init_pt routine is still enabled and used, however, and this
is where most of the 'pre-faulting' performance improvement comes from.
1995-01-26 01:45:02 +00:00
David Greenman 1e9122e529 Use the VM_PAGE_BITS_ALL in a place it can be used.
Comment out call to pmap_prefault() until stability problems can be
thoroghly analyzed.
1995-01-26 01:40:04 +00:00
David Greenman 3edf89fe83 Make sure that the pages being 'pre-faulted' are currently on a queue. 1995-01-26 00:55:03 +00:00
Jordan K. Hubbard 1cf5e3a68b Add a reference to ft(8). 1995-01-26 00:34:56 +00:00
Jordan K. Hubbard 681e4fa0cf Add pointer to the `ft' command. 1995-01-26 00:32:58 +00:00
Jordan K. Hubbard 8f5738c194 Finally add a freakin' man page for tar!
Submitted by:	John F. Woods <[email protected]>
Obtained from: NetBSD
1995-01-26 00:14:11 +00:00
David Greenman 6100ed1d12 Be a bit less fast and loose about setting non-cacheablity of pages. 1995-01-25 22:06:23 +00:00
Jean-Marc Zucconi 01ab76f4b8 Add joystick man page 1995-01-25 21:41:09 +00:00
Bruce Evans b5d89ca8ad Load the kernel symbol table in the boot loader and not at compile time.
(Boot with the -D flag if you want symbols.)

Make it easier to extend `struct bootinfo' without losing either forwards
or backwards compatibility.

ddb_aout.c:
Get the symbol table from wherever the loader put it.
Nuke db_symtab[SYMTAB_SPACE].

boot.c:
Enable loading of symbols.  Align them on a page boundary.  Add printfs
about the symbol table sizes.
Pass the memory sizes to the kernel.
Fix initialization of `unit' (it got moved out of the loop).
Fix adding the bss size (it got moved inside an ifdef).
Initialize serial port when RB_SERIAL is toggled on.
Fix comments.
Clean up formatting of recently added code.

io.c:
Clean up formatting of recently added code.

netboot/main.c, machdep.c, wd.c:
Change names of bootinfo fields.

LINT:
Nuke SYMTAB_SPACE.
Fix comment about DODUMP.

Makefile.i386:
Nuke use of dbsym.
Exclude gcc symbols from kernel unless compiling with -g.
Remove unused macro.
Fix comments and formatting.

genassym.c:
Generate defines for some new bootinfo fields.  Change names of old ones.

locore.s:
Copy only the valid part of the `struct bootinfo' passed by the loader.
Reserve space for symbol table, if any.

machdep.c:
Check the memory sizes passed by the loader, if any.  Don't use them yet.

bootinfo.h:
Add a size field so that we can resolve some mismatches between the loader
bootinfo and the kernel boot info.  The version number is not so good for
this because of historical botches and because it's harder to maintain.
Add memory size and symbol table fields.  Change the names of everything.

Hacks to save a few bytes:

asm.S, boot.c, boot2.S:
Replace `ouraddr' by `(BOOTSEG << 4)'.

boot.c:
Don't statically initialize `loadflags' to 0.  Disable the "REDUNDANT"
code that skips the BIOS variables.  Eliminate `total'.  Combine some
more printfs.

boot.h, disk.c, io.c, table.c:
Move all statically initialzed data to table.c.

io.c:
Don't put the A20 gate bits in a variable.
1995-01-25 21:40:47 +00:00
Jean-Marc Zucconi 61b1d15857 Add joystick 1995-01-25 21:21:28 +00:00
Jean-Marc Zucconi 2270d53491 Add entry for the joystick driver 1995-01-25 21:04:15 +00:00
Jean-Marc Zucconi e183640c8b Add entry for joystick 1995-01-25 20:57:32 +00:00
Jean-Marc Zucconi 7e0284a390 ioctls for the joystick driver 1995-01-25 20:41:06 +00:00
David Greenman a465acdaf8 Don't attempt to clean device_pager backed objects at terminate time.
There is similar bogusness in the pageout daemon that will be fixed soon.
This fixes a panic pointed out to me by Bruce Evans that occurs when
/dev/mem is used to map managed memory.
1995-01-25 20:36:29 +00:00
Jean-Marc Zucconi 673f8dc3be Add: device joy0 at isa? port "IO_GAME" (joystick) 1995-01-25 20:35:14 +00:00
Andrey A. Chernov 256b89f8bf LIBFORMS added to DPADD 1995-01-25 20:29:32 +00:00
Andrey A. Chernov 7dc8f3a96e LIBS changed to DPADD & LDADD 1995-01-25 20:28:39 +00:00
Andrey A. Chernov 88b0c79e5b DPADD added 1995-01-25 20:25:57 +00:00
Andrey A. Chernov 316cd0cfdd LIBFORMS & LIBSCSI added 1995-01-25 20:24:01 +00:00
Jean-Marc Zucconi 3bc6bf1734 Changed address of the game controller to 0x201 (was 0x200)
joy.c: joystick driver
1995-01-25 20:11:51 +00:00
Bruce Evans 5ba8561800 Add flag RB_BOOTINFO' that tells if the struct bootinfo' passed by the
boot has a size field.
1995-01-25 20:05:03 +00:00
Andrey A. Chernov ac6802b11c Fix database deletion, we don't have .dir & .pag, use .db instead 1995-01-25 19:57:27 +00:00
Andrey A. Chernov 06b1dd511a Fix database rename, we don't have .dr & .pag, use .db instead 1995-01-25 19:45:25 +00:00
Bruce Evans 03a6bd1d69 Remove stale NOOBJ.
Use standard clean and cleandir targets.
1995-01-25 19:26:31 +00:00
Bruce Evans 4c4b1af8c2 Makefile.tty:
Initialize CLEANFILES.  All tty FONTFILES are objects.
1995-01-25 19:25:20 +00:00
Jordan K. Hubbard f417f4a9bb Add which. 1995-01-25 19:19:06 +00:00
Bruce Evans 49da4dfc8d Makefile.dev:
Don't initialize CLEANFILES here.  Many FONTFILES are sources and required
special clean rules to avoid cleaning.

Makefile.tty:
Initialize CLEANFILES.  All tty FONTFILES are objects.
1995-01-25 19:19:03 +00:00
Jordan K. Hubbard ab8791e05b Bring in Joerg's which command. It's small, it's simple, it will stop
people (like me! :) from whining!
Submitted by:	joerg
1995-01-25 19:18:33 +00:00
David Greenman 9be2a2b045 Add links from mem.4 to kmem.4. 1995-01-25 09:43:20 +00:00
David Greenman 7a4bbce6f2 Added link from utmp.5 to lastlog.5. 1995-01-25 09:35:47 +00:00
David Greenman db35f309d1 Added more missing manual pages from 1.1.5. 1995-01-25 09:18:56 +00:00
David Greenman 798bb3d232 Install bpf manual page. 1995-01-25 08:47:30 +00:00
David Greenman 60d06671c1 Added bpf(4) manual page from 1.1.5. 1995-01-25 08:46:06 +00:00
Paul Richards 942e8a961a Truncate any default inputs to the input width.
Update the example so it works properly.
1995-01-25 08:26:17 +00:00
Paul Richards 4a112dd3f8 More parser fixes. Store attributes properly for each field and
don't emit a second declaration unless it's different to the default.
1995-01-25 07:56:10 +00:00
David Greenman a829865d8e Fix bogus format string; fixes problem reported by Wolfram Schneider. 1995-01-25 07:31:01 +00:00
Paul Richards 0795a3fd8e Quash another bug where if no link alias is specified a
duplicate declaration was emitted.
1995-01-25 07:10:53 +00:00
Justin T. Gibbs 8d4b2d911c Less expensive fix for the freeing of uninitialized fields in the hostdata
struct.  Simply test the "no_host" variable, which if true implies that
the hostdata contains bogus data, and act accordingly.
1995-01-25 06:37:33 +00:00
Paul Richards eef7796c26 Correct default calculation of menu field widths. 1995-01-25 06:32:40 +00:00
Paul Richards d13fe009f3 Fix a serious bug where changes to a field changed all fields
in the forms that used the same field declaration.
1995-01-25 06:04:02 +00:00
Justin T. Gibbs 33ac11112d bzero hostdata in send_to_kdc so that if we immediately jump to the
cleanup routine, we don't look at bogus data to determine wheter or not
to free the fields of the hostdata struct.  This cures the "klogin segfaults
when no kerberos servers are availible" problem.
1995-01-25 05:40:00 +00:00
Andrey A. Chernov 7c5bf497e0 Start kadmind -n (if present) for kerberos server to bring
passwd to life.
1995-01-25 05:06:34 +00:00
Paul Richards 5858e91af1 Fix probe so it now correctly identifies all the different chips
in the PCnet/Lance family.

Fix attach so 32 bit cards don't call isa_dmacascade.

Add a workaround for 32 bit chips which incorrectly truncate the
ring buffer size.

Fix a bug where CRC errors were reported as framming errors.

Change copyright to a BSD style one.
1995-01-25 03:50:33 +00:00
Paul Richards b82ad93964 New example that uses the new forms language. 1995-01-25 03:34:48 +00:00
Paul Richards faf710b023 Update libforms to agree with new fib. 1995-01-25 03:33:43 +00:00
Paul Richards 017d5de87b Improve the forms language quite a bit. Most things now
default to sensible values so you don't have to spell out
every little detail for every field. Also, auto-detect
the field type from the syntax.
1995-01-25 03:27:34 +00:00
Andrey A. Chernov 5ba6fadf2f Add missing newline (or messages concatenated) 1995-01-25 02:27:00 +00:00
Peter Dufault af6b5090b9 Remove "va_start" macro. 1995-01-25 00:33:50 +00:00
Andrey A. Chernov b3e643c17b Add libscsi to includes target 1995-01-24 22:30:37 +00:00
Andrey A. Chernov 84d1a18425 Add libforms to includes target 1995-01-24 22:15:25 +00:00
Andrey A. Chernov 509b7efc3e CFLAGS: = --> += 1995-01-24 22:09:46 +00:00
David Greenman 5d64e24d3e Added Andres Vega Garcia's email address.
Submitted by:	Andres Vega Garcia
1995-01-24 20:53:45 +00:00
Paul Richards 94187a78bf is to lnc changes 1995-01-24 20:38:39 +00:00
Garrett Wollman e853f65e5d Get the right name for the v4 kadmin service. 1995-01-24 18:52:50 +00:00
Bruce Evans fe0ac9ddfd Rewrite based on send-pr/Makefile. The old Makefiles used ${PROG},
which is not supposed to work for shell files, but somehow did with
the old `make'.
1995-01-24 17:58:47 +00:00
Jordan K. Hubbard ad1565eef3 NOOBJS was bogus - use the already extant `NOOBJ'. 1995-01-24 17:50:30 +00:00
Jordan K. Hubbard 227756fca2 NOOBJS -> NOOBJ - it's more consistent. 1995-01-24 17:49:41 +00:00
Jordan K. Hubbard 398eaa8341 No object here. 1995-01-24 17:47:49 +00:00
Jordan K. Hubbard 62ef745576 Add the ability to say `NOOBJS' to indicate that the target has no object
files.
1995-01-24 17:33:22 +00:00
Jordan K. Hubbard 03b41c8f3c Deal with this not having an object file. 1995-01-24 17:32:09 +00:00
Jordan K. Hubbard e64b174386 Add dset call to rc file, right after the databases are rebuilt. 1995-01-24 16:49:14 +00:00
Andrey A. Chernov ea4a8be8c2 Fix stdarg.h for GNU C using builtin_next_arg 1995-01-24 16:22:52 +00:00
Paul Richards 83a8b44d6f Changed the example to use the forms spec file. 1995-01-24 13:29:30 +00:00
Paul Richards 39c631d1b9 Changed the example to use the forms spec file.
Made a couple of variable name changes.
1995-01-24 13:27:46 +00:00
Peter Dufault 10ee7eaff2 added libscsi 1995-01-24 12:10:42 +00:00
Peter Dufault c4c754deba SCSI library layered on SCIOCOMMAND 1995-01-24 12:10:11 +00:00
Peter Dufault d29f6c1ec9 Added "scsi" 1995-01-24 12:08:15 +00:00
Peter Dufault 2208cace06 Submitted by: Julian Elischer and Peter Dufault
Obtained from: 1.1.5

"scsi (8)" from 1.1.5, with added support for any command from
the command line.
1995-01-24 12:07:27 +00:00
Peter Dufault d1b8cd258b 1. Reject obviously broken CDB command lengths
2. Use "uprintf" (instead of printf) to log the "tape not ready" message
1995-01-24 12:04:56 +00:00
David Greenman 6d40c3d394 Added ability to detect sequential faults and DTRT. (swap_pager.c)
Added hook for pmap_prefault() and use symbolic constant for new third
argument to vm_page_alloc() (vm_fault.c, various)
Changed the way that upages and page tables are held. (vm_glue.c)
Fixed architectural flaw in allocating pages at interrupt time that was
introduced with the merged cache changes. (vm_page.c, various)
Adjusted some algorithms to acheive better paging performance and to
accomodate the fix for the architectural flaw mentioned above. (vm_pageout.c)
Fixed pbuf handling problem, changed policy on handling read-behind page.
(vnode_pager.c)

Submitted by:	John Dyson
1995-01-24 10:14:09 +00:00
David Greenman e5501f43a5 Removed some unused/obsolete code.
Submitted by:	John Dyson
1995-01-24 10:02:00 +00:00
David Greenman 9532143ae6 Fixed a variety of deadlock and panic bugs, removed the bypass code, and
implemented the ability to limit bufferspace by memory consumed. (vfs_bio.c)
Fixed recently introduced bugs that caused extra I/O to happen in some
cases. (vfs_cluster.c)

Submitted by:	John Dyson
1995-01-24 10:00:46 +00:00
David Greenman fff3cea1a9 Moved various pmap 'bit' test/set functions back into real functions; gcc
generates better code at the expense of more of it.

Submitted by:	John Dyson
1995-01-24 09:57:39 +00:00
David Greenman fbdfe8ac22 Changed buffer allocation policy (machdep.c)
Moved various pmap 'bit' test/set functions back into real functions; gcc
generates better code at the expense of more of it. (pmap.c)
Fixed a deadlock problem with pv entry allocations (pmap.c)
Added a new, optional function 'pmap_prefault' that does clustered page
table preloading (pmap.c)
Changed the way that page tables are held onto (trap.c).

Submitted by:	John Dyson
1995-01-24 09:56:33 +00:00
Andrey A. Chernov 0a1c0d9ae8 Add missing ${.CURDIR} 1995-01-24 08:30:13 +00:00
David Greenman b99f012ec5 Extended the previous change to cover the non-options case, too. 1995-01-24 08:03:22 +00:00
Bruce Evans bc84e96c42 Use the correct include path if there's an obj directory. 1995-01-24 06:10:48 +00:00
Bruce Evans 6670942f71 Declare `struct mbuf' with the correct scope to avoid lots of warnings
for compiling routed...  Previously a kernel function pointer that is
bogusly visible to applications was incompletely declared to hide the
problem.
1995-01-24 04:47:33 +00:00
Bruce Evans 0a17153035 Remove typedefs that are now in <sys/conf.h>. 1995-01-24 04:22:19 +00:00
Bruce Evans 725ae77af0 Fix path to makeinfo. 1995-01-24 04:13:34 +00:00
Jordan K. Hubbard 825de56725 Fix bogus tab in makesum target. 1995-01-24 02:41:52 +00:00
Jordan K. Hubbard 8f998cf202 Y.A.B.M (Yet Another Bogus Makefile) 1995-01-24 00:41:50 +00:00
Andrey A. Chernov d3c39340bc Merge. 1995-01-24 00:41:11 +00:00
Andrey A. Chernov b3e8cc7812 Upgrade. My recent fix applied by author. 1995-01-24 00:37:11 +00:00
Andrey A. Chernov 86cc4d31d3 This commit was generated by cvs2svn to compensate for changes in r5825,
which included commits to RCS files with non-trunk default branches.
1995-01-24 00:37:11 +00:00
Jordan K. Hubbard e593239fdb Fix this bogus Makefile. 1995-01-24 00:36:27 +00:00
Jordan K. Hubbard 20da3572df Fix more deranged targets. 1995-01-24 00:28:51 +00:00
Jordan K. Hubbard b37499c044 Fix bogus all & clean rules. 1995-01-24 00:23:34 +00:00
Jordan K. Hubbard 4eed8738b3 Fix bogus tab. 1995-01-24 00:22:24 +00:00
Jordan K. Hubbard f932e96d48 Eliminate a bogus tab. 1995-01-24 00:13:56 +00:00
Jordan K. Hubbard 7884c1e534 Fix bogus dummy rule (sigh). 1995-01-23 23:43:35 +00:00
Garrett Wollman 745bdc24b4 Print out error messages from libkadm correctly (i.e., using com_err). 1995-01-23 22:54:08 +00:00
Garrett Wollman d0e917e9b8 Don't call _doprnt, which doesn't exist; use vfprintf. 1995-01-23 22:53:12 +00:00
Jordan K. Hubbard 588a45c651 Fix bogus install rule. 1995-01-23 21:30:18 +00:00
Jordan K. Hubbard aae156b27c Fix the bogus depend rule - boy, NetBSD's make catches a lot of
bogus Makefiles!
1995-01-23 21:19:45 +00:00
Jordan K. Hubbard 9f574f9a90 Bring in a number of changes from NetBSD's make, fixing quite a few
problems in the process:

1. Quoting should work properly now.  In particular, Chet's reported bash
   make problem has gone away.
2. A lot of memory that just wasn't being free'd after use is now freed.
   This should cause make to take up a LOT less memory when dealing with
   archive targets.
3. Give proper credit to Adam de Boor in a number of files.
Obtained from: NetBSD (and Adam de Boor)
1995-01-23 21:03:17 +00:00
Jordan K. Hubbard 8d81c12227 Whomever put the depend rule in screwed it up. Fix it. 1995-01-23 20:53:38 +00:00
Jordan K. Hubbard 1df516f280 Eliminate a bogus stray tab. 1995-01-23 20:50:56 +00:00
Garrett Wollman 51e7d42c56 Don't print protocol-cloned routes by default (enabled by -a flag).
Print non-zero expiration timers.
Use err(3) for error reporting.
1995-01-23 20:19:16 +00:00
Joerg Wunsch e3fa32b485 Implementing the "lp" command.
This command is required to exist in terms of compatibility with the
Posix 1003.2 specification.  It actually invokes the lpr service with
the proper options.
1995-01-23 19:22:43 +00:00
David Greenman fb1322e408 Decrease MCLBYTES from 4k back to 2k. It isn't likely that we'll be doing
page flipping anytime soon and 4k just wastes memory. Performance via the
looback interface will decrease slightly by this change. Idealy, we need
buffers that can have variable sizes, but this requires a rewrite of far
too much code at the moment.
1995-01-23 19:21:49 +00:00
Joerg Wunsch bba63893e5 Add "lp" to list of subdirs. 1995-01-23 19:17:22 +00:00
David Greenman 61be67ba43 Much better fix/support for the 83c795 based cards (the new SMC EtherEZ)
by [email protected] (Steven E. Piette). Minor changes by me.
1995-01-23 19:06:08 +00:00
Garrett Wollman e79b19bc05 Make Jordan happy:
1) Link against object directory version of libcom_err.so.
2) Don't try to install ss_err.h if we haven't made it yet.  It's not
   on the critical path for `make world' at this point.
1995-01-23 18:56:40 +00:00
David Greenman 0a2d61c61c Kill redundant declarations of d_open_t and d_close_t. 1995-01-23 18:46:13 +00:00
Jordan K. Hubbard 7b2bb0fb79 Set PREFIX in the build target. Suggested by John Fieber. 1995-01-23 18:22:36 +00:00
Poul-Henning Kamp b1b8617459 if_ze was not updated when the arp_ifinit stuff was done. now it is. 1995-01-23 18:02:32 +00:00
David Greenman 297a37f334 Applied fix from Andreas Schulz with a different comment by me. Fixes a
bug where TCP connections are closed prematurely.

Submitted by:	Andreas Schulz
1995-01-23 17:58:27 +00:00
David Greenman 3ec66d6c39 Added back the missing last few bytes of the file. 1995-01-23 17:53:21 +00:00
Ugen J.S. Antsilevich e42327af6f Add dset to Makefile. 1995-01-23 15:45:41 +00:00
Ugen J.S. Antsilevich 006baf01ee src/sbin/dset
*blush* this is the commit i meant to do before..
Utility to save device configuration.
1995-01-23 15:42:59 +00:00
Paul Richards 8e6feb0e55 A forms interface builder. Basically, it reads a forms spec file and
spits out a frm.tab.h file with all the definitions needed by the
libforms interface.
1995-01-23 14:43:38 +00:00
Garrett Wollman f35e67894f Make modload more informative about errors encountered while running
`ld' by calling execl() directly rather than using system().
1995-01-23 04:08:00 +00:00
Poul-Henning Kamp 9e2429f597 Moved the typedefs of d_<foo>_t into sys/sys/conf.h and used them in
the definition of struct [cb]devsw.  Guess Bruce never got around to
complete this (?)

Poul-Henning
1995-01-23 02:52:28 +00:00
Jordan K. Hubbard 6b21ba4ff4 Update the Korean admin's address. 1995-01-23 02:37:04 +00:00
Poul-Henning Kamp 2bb96d8923 Nobody seems to need "mem_no" anymore, so I zapped it. 1995-01-23 02:36:22 +00:00
Poul-Henning Kamp 1aaca524e0 Fixed $Id$ 1995-01-23 02:31:53 +00:00
Garrett Wollman bbb7c7109b Change caching strategy somewhat:
1) Don't clone routes to multicast destinations; there is nothing useful
   to be gained in this case.
2) Reduce default expiration timer to one hour.  Busy sites will still
   likely want to reduce this, but for ordinary users this is a reasonable
   value to use.
1995-01-23 02:02:50 +00:00
Garrett Wollman 18e1f1f110 route.c: keep track of where cloned routes come from, and make sure to
delete them when the ``parent'' goes away

route.h: add glue to track this to rtentry structure.  WARNING WILL ROBINSON!
This will be yet another incompatible change in your route-using binaries.
I apologize, but this was the only way to do it.  I took this opportunity
to increase the size of the metrics to what I believe will be the final
length for 2.1, so that when the T/TCP stuff is done, this won't happen
again.
1995-01-23 02:00:35 +00:00
David Greenman 717d9cdd57 First round of changes to clean up the RCSID mess in libc:
1) Changed LIB_SCCS and SYSLIB_SCCS to LIB_RCS and SYSLIB_RCS.
2) Changed sccsid[] variables to rcsid[]
3) Moved all RCSID strings into .text
4) Converted all SCCSID's to RCS $Id$'s
5) Added missing $Id$'s after copyright.
1995-01-23 01:30:24 +00:00
David Greenman b3c361e217 Changed LIB_SCCS and SYSLIB_SCCS #defines to LIB_RCS and SYSLIB_RCS. 1995-01-23 01:22:08 +00:00
Jordan K. Hubbard cc877a0fe1 Add support for Olof Johansson's WD7000 driver.
Submitted by:   Olof Johansson <[email protected]>
1995-01-23 00:25:44 +00:00
Jordan K. Hubbard 3691d2b97c Add support for Olof Johansson's WD7000 driver.
Submitted by:	Olof Johansson <[email protected]>
Obtained from:
1995-01-23 00:25:03 +00:00
Garrett Wollman 93eb556775 Document the requirements of dynamic loading on mounting order. Cross-ref
to vfsload(3).
1995-01-22 22:54:56 +00:00
Andrey A. Chernov bae50898b7 Infopages cleanup 1995-01-22 22:45:07 +00:00
Andrey A. Chernov 75e2b1e589 Cleanup in examples,groff_font,locale directories 1995-01-22 22:37:45 +00:00
David Greenman 1504cd6172 (Very) minor improvement from NetBSD/J.T.Conklin. 1995-01-22 22:03:45 +00:00
Andrey A. Chernov 95f51c5b57 Add doc subdir 1995-01-22 21:56:38 +00:00
Andrey A. Chernov ae46450f21 Add missing infopages 1995-01-22 21:54:49 +00:00
David Greenman 530eb0c1c4 Added leaner and meaner swab() function by J.T. Conklin. 1995-01-22 21:36:15 +00:00
Gary Palmer 74d7962900 Oops. Fix up the checksum routine - my last commit broke it slightly. 1995-01-22 20:40:48 +00:00
Bruce Evans edf1160963 Build ref.bib.i in the object directory. 1995-01-22 16:49:22 +00:00
Justin T. Gibbs bd524f1b07 Initialize SIMODE1, SCSIID, and SXFRCTL1 in ahc_init instead of at each
reconnection/selection with a target.
1995-01-22 00:48:39 +00:00
Justin T. Gibbs d7be8cb6e9 Change the string returned in the aic7870 motherboard probe case. Change
#define to a more appropriate name.
1995-01-22 00:47:50 +00:00
Justin T. Gibbs c135d93bbf aic7xxx.c:
Print out the length of the compiled sequencer program.

aic7xxx.seq:
	More optimizations.  Replace generic bcopy routine with bcopy_3
and bcopy_4 (ie unroll the loops) since these are the only two cases used.
Initialize SIMODE1 and SXFRCTL1 from the kernel in ahc_init instead of
at each selection/reselection since this is expensive and only needs to
be done once.  Condense function returns into previous instruction if possible.
Reorder some sections to kill superflous jumps.  These optimizations kill
the ~150k/s penalty adding support for Twin/Wide cards was costing since
the last place in the commaon path of execution where we had to do ugly,
convoluted testing for the type of card in the sequencer has gone away.
Next stop tagged queuing and target mode.
1995-01-22 00:46:53 +00:00
Garrett Wollman 1253de3840 Fix from Rod so that std_rqs.c can get rebuilt properly when
doing a make world.
1995-01-21 23:30:31 +00:00
Garrett Wollman a6066145ff *** empty log message *** 1995-01-21 23:01:33 +00:00
Garrett Wollman 41be2d70c9 `make world' fixes from Pat Barron, Mark Murray.
Closes PR #156.
1995-01-21 23:01:19 +00:00
Bruce Evans 1a0518966d Don't use mi_switch() to terminate cpu_exit(). Calling it just happened to
work (mi_switch() counted the last timeslice again but this didn't affect
the exiting process' rusage because the rusage has already been finalized).

Remove stale comment.
1995-01-21 15:34:03 +00:00
Bruce Evans cee6d3700d Remove unused definitions of vm statistics counters. Most of the
counting is now done in C.  There are still about 100 unused
definitions for other things.
1995-01-21 15:22:28 +00:00
Bruce Evans e6891db8c5 Don't count context switches here, they are already counted in mi_switch(). 1995-01-21 15:20:23 +00:00
Bruce Evans d7e3a89f1f Don't count the parent's previous timeslice in the child's resource usage
(it was counted twice).

Set the start time more accurately.
1995-01-21 15:08:57 +00:00
Bruce Evans 54c2af254d #Include <sys/types.h> so that <sys/resource.h> can be #included without
explicitly #including <sys/types.h>.  Some gnu software (?gdb) depends on
this and broke when I fixed <stdio.h> to not include <sys/types.h>.

Bruce
1995-01-21 14:58:25 +00:00
Bruce Evans dd3d164f9e Update comments about MISSING and GNU versions. 1995-01-21 14:47:33 +00:00
Bruce Evans 46d8d93500 Don't default to -g in ${CFLAGS}. Developers can still use `make g=-g ...'
for debugging.  The default ${CFLAGS} still clobbers the system default
of -O2 to -O.
1995-01-21 14:41:45 +00:00
Bruce Evans a2562ad917 Keep track of open devices better to avoid closing the console device when
the physical device is closed.  Previously only the reverse case was handled.
Abuse the cdevsw interface instead of the vfs interface to do this.

Remove unnecessary #includes.
1995-01-21 14:12:15 +00:00
Bruce Evans 742c88a03a Use exactly the same checks in excluded() as in inlist(): ignore stabs and
stringless symbols in excluded(); check for too-small (nonzero) string table
offsets in inlist().
1995-01-21 10:24:18 +00:00
Andrey A. Chernov 60efec1dab Restore original fix from ohki, not check m for NULL it is already done
in the code above.
Submitted by: [email protected]
1995-01-21 06:32:26 +00:00
Andrey A. Chernov 2fdd39d28d Better protection against too long pathes and 8bit controls in file
names, locate dumps core instead
1995-01-21 05:50:50 +00:00
Andrey A. Chernov f3b2d1fae4 Not go to interactive mode, if login failed for URLs, just
exit(1). Dedicated to Jordan.
1995-01-21 01:37:22 +00:00
Andrey A. Chernov f76c8e8cc3 Change if (m->valid == 0) to if (m && m->valid == 0) 1995-01-20 23:30:42 +00:00
Garrett Wollman 2ade60ce3c In the non-PARANOID case, make sure to set `notickets' to 0 sothat login.c
doesn't complain.
1995-01-20 23:07:10 +00:00
Garrett Wollman 422c275a72 Add ksrvutil. 1995-01-20 22:40:02 +00:00
Garrett Wollman 8c5c9f2577 Add last piece in fully-functional Kerberos implementation: ksrvutil,
a program to manage /etc/srvtab.
1995-01-20 22:38:30 +00:00
Garrett Wollman 218a5dcf33 Added Kerberized passwd. 1995-01-20 22:16:47 +00:00
Garrett Wollman 788c8e2ea4 Password-changing program with Kerberos support via the `kadmin'
protocol.  Replaces passwd(1) when eBones is installed.  As before, HOW-TO
explains the gory details.
1995-01-20 22:14:14 +00:00
Garrett Wollman 01ae44681d Fix bonehead /usr/lib -> /usr/bin. 1995-01-20 22:08:14 +00:00
Garrett Wollman 925704439a Update for new kpasswd interface. 1995-01-20 22:03:36 +00:00
Garrett Wollman aaa101d222 Added kadmin protocol port 1995-01-20 22:00:26 +00:00
Garrett Wollman 039b79a960 Allow NIS maps, noconn mounts .
Sumbitted by: Boyd Faulkner <[email protected]>
1995-01-20 20:58:54 +00:00
Garrett Wollman 401de747b8 Add libcom_err to `includes' target so CLOBBERing the world works again (we
hope).
1995-01-20 20:28:31 +00:00
Bill Paul fc042b6935 Submitted by: [email protected]
When using cp to copy a file under the following circumstanes:

- original file in on an NFS filesystem
- destination file is on the same NFS filesystem
- the file is less than 8Mbytes in size
- the file is larger than 65536 bytes in size

the cp process can get frozen in device-wait and never wake up (cp uses
mmap() in this case).
A small change to allocbuf() fixes this.
1995-01-20 20:11:31 +00:00
Søren Schmidt 02fb646de1 Second round in syscons update:
Support for pseudo graphic mouse cursor (not complete yet)
Some cheap speed fixes.
More cleanups.
Call ourselves scxxxx finally.
1995-01-20 08:35:32 +00:00
Bill Paul f06a45ddd7 Removed hardcoded definition for RB_SERIAL that I left in my accident
(had it there for testing purposes). RB_SERIAL should be found in
<sys/reboot.h>.
1995-01-20 07:52:42 +00:00
Bill Paul f778c9da00 Submitted by: Bill Paul ([email protected])
Obtained from:
bios boot block changed to allow booting from both the attached graphics
display and from a serial port. (A specially compiled serial boot block
is no longer necessary.) The boot block should detect the presence or
absence of a keyboard: if there is no keyboard, COM1 is turned into the
console. This simulates the behavior of the Sun boot PROMs. Unplug your
keyboard, attach a terminal to COM1 and you should be ready to go. :)
1995-01-20 07:48:27 +00:00
Bill Paul 2b237b4058 Submitted by: Bill Paul ([email protected])
Obtained from:
sio.c and sioreg.c changed to allow autodetecting the RB_SERIAL flag
passed by the boot blocks so that the kernel can switch to 'serial
console' mode automagically. 'options COMCONSOLE' can still be specified
to force the kernel to always use the serial port as a console.
CONUNIT and CONADDR can also be specified in the kernel config file
if the user wants to shift the console to a different port.
1995-01-20 07:34:18 +00:00
Bill Paul c665f1dabd Submitted by: Bill Paul ([email protected])
Obtained from:
Added a new flag (RB_SERIAL) which is passed by the boot block to tell
the kernel that it should use a serial port as a console. (The kernel
can still be forced to boot in serial console mode if 'options COMCONSOLE'
is used.)
1995-01-20 07:28:47 +00:00
Jordan K. Hubbard 609c85875a Add the Packet Capture Library from Michael Reifenberger.
Submitted by:	mr
1995-01-20 04:13:07 +00:00
Garrett Wollman 4ed9828579 Add kadmind. 1995-01-20 03:13:48 +00:00
Garrett Wollman acfdd75a53 Add kadmind. HOW-TO documents how to get here from raw eBones. 1995-01-20 03:13:00 +00:00
Garrett Wollman 703273c507 Add kadmin. 1995-01-20 02:49:47 +00:00
Garrett Wollman 516345750a The user side of the kadmin protocol. HOW-TO describes how to recreate
this based just on the eBones distribution.
1995-01-20 02:47:50 +00:00
Garrett Wollman a15e22a637 Add the library used by kadmin' and kadmind'. Oddly enough, this
little library is actually exportable (we think) even though it's pretty
useless iwithout the (non-exportable) clients.
1995-01-20 02:02:54 +00:00
Garrett Wollman 1c8f305817 Don't install kadm.h from here; it's done by the libkadm directory. 1995-01-20 02:01:11 +00:00
Garrett Wollman 51c716bd1c Do all libraries first. Don't do `include' twice. 1995-01-20 02:00:34 +00:00
Garrett Wollman 35042b3093 Don't break existing users of libkrb.so.2.0 who aren't using libcom_err. 1995-01-20 01:44:47 +00:00
Garrett Wollman bf836b9a51 Kill more bogus man pages. (The correct ones are with their programs.) 1995-01-20 01:26:53 +00:00
Garrett Wollman 3df56e5197 A more correct fix for the new compile_et. Also, add beforeinstall
rule to ensure that krb_err.h gets installed (some other programs need
it).
1995-01-20 01:12:19 +00:00
Garrett Wollman 562e312d13 Added compile_et' and mk_cmds' to lib-tools target, as they are needed
to build `libss'.  Also delete bogus old /usr/sbin/compile_et at this time
(sorry, it was the only way I could think of to make sure it died).
1995-01-19 22:41:25 +00:00
Garrett Wollman 8a256cf77b Add libss. 1995-01-19 22:32:05 +00:00
Garrett Wollman 8b359e3092 Added mk_cmds. 1995-01-19 22:31:17 +00:00
Garrett Wollman 2343225488 Port to FreeBSD. 1995-01-19 22:28:38 +00:00
Garrett Wollman 3665217fb4 Port to FreeBSD. (Sorry there's no man page yet.) 1995-01-19 22:27:58 +00:00
Garrett Wollman 9d9cb31cdb Add /usr/include/ss because libss expects its header files to live there. 1995-01-19 22:23:13 +00:00
Andreas Schulz c82762a9c3 Submitted by: Bruce Evans
Put in the much shorter and cleaner version for the calibrate_cycle_counter
for the Pentium that Bruce suggested. Tested here on my Pentium  and
it works okay.
1995-01-19 22:05:27 +00:00
Garrett Wollman ba20ecf423 Other part of SIPB subsystem library, the program to make command tables. 1995-01-19 21:30:25 +00:00
Garrett Wollman 282244c5b6 MIT SIPB subsystem' library, needed for kadmin' and some other MIT programs. 1995-01-19 21:28:01 +00:00
Garrett Wollman 0cd34073b2 Kill old Kerberos password-changing support:
1) It was export-controlled.
2) It used some ad-hoc protocol invented by Berkeley in ignorance of the
   standard MIT distribution's way of doing it (which makes it useless
   to most people).

This should be fixed once we have `kadmin'/`kadmind'.
1995-01-19 21:03:48 +00:00
Andreas Schulz a4ef0a998a Add the missing forward declaration of chopen. Reported in the
mailinglists some time ago.
1995-01-19 21:02:54 +00:00
Garrett Wollman bb38a730ff Fix unbalanced #endif introduced by yesterday's change. 1995-01-19 19:01:50 +00:00
Andrey A. Chernov 99b9edabe6 Reflect lastest termcap changes 1995-01-19 17:15:54 +00:00
Bruce Evans 3c447b4f44 Don't build kgdb. It should go away soon. 1995-01-19 17:03:28 +00:00
Bruce Evans 9ad5367675 Enable iostat on i386's. 1995-01-19 16:29:30 +00:00
Bruce Evans b34bc5463d Fix installation of the link to tmac.an. $(FOO} doesn't work. 1995-01-19 15:58:34 +00:00
Peter Dufault c3280a6d1a Remove dup biodone and no more SCSIUSER option. 1995-01-19 12:41:36 +00:00
Peter Dufault 8d38e0afd0 Print out exactly what we think the board is, and for the latest
rev Adaptec boards enable data transfer length detection instead
of assuming requested amount of data is transferred.
1995-01-19 12:33:10 +00:00
Doug Rabson 2cc220b6ed Fix handling of 'e' format floating point so that it prints trailing zeros
correctly.
1995-01-19 12:05:53 +00:00
Andrey A. Chernov a5bf27a269 Remove sneaked tabs
Submitted by: Ollivier Robert
1995-01-19 10:39:22 +00:00
Joerg Wunsch 65f2c37b27 Should that last sentence read "...thus a full dump must be done...",
or do I have it all wrong?

Submitted by:	"Shawn M. Carey" <[email protected]>
1995-01-18 19:26:14 +00:00
Andrey A. Chernov 3ece328451 Put brackets around EXTRACT_CMD, can be several commands here 1995-01-17 23:55:53 +00:00
Garrett Wollman c7da24ddb6 Prevent sites from shooting themselves in the foot while enabling/disabling
YP by disallowing `+' entries as logins in all cases.  (This handles the
case of a `+' entry in the password file but YP not running, which should
never happen but is easy enough to check for so we'll apply some
prophylaxis.)
1995-01-17 23:17:38 +00:00
Andrey A. Chernov c5191e580d More koshering [ul]case fix, don't use pre-initialized tables at all,
treat 0xFF as valid character.
1995-01-17 23:04:29 +00:00
Andrey A. Chernov dde07463cf Make conv=[lu]case works with localized ctype (8bit) 1995-01-17 22:55:59 +00:00
Andrey A. Chernov 3a99ffc355 Remove -Wall for ascii formatting, we don't need so many
warnings while formatting standard BSD docs
1995-01-17 22:04:38 +00:00
Andrey A. Chernov 586cc4e455 Install additionly S and L text fonts, needed for BSD docs formatting 1995-01-17 22:02:34 +00:00
Andrey A. Chernov 932c9d1896 Modify prev. change, pass internal args directly to groff,
if PRINTER == ascii, because nroff shell script strip off
some groff flags
1995-01-17 21:36:06 +00:00
Andrey A. Chernov a812882b19 Call nroff, if PRINTER == ascii 1995-01-17 21:27:30 +00:00
Andrey A. Chernov 8af44ad204 Use nroff instead of groff in %nroff% macro, becasue
nroff shell script pass additional internal parameters to groff
1995-01-17 21:12:05 +00:00
Andrey A. Chernov 8cd8abf162 Oops, forget to add \{ \} in prev. commit 1995-01-17 21:08:33 +00:00
Andrey A. Chernov a61b49098a Fix for 8bit clean ctype 1995-01-17 20:36:26 +00:00
Andrey A. Chernov 32bb7861f2 koi8-r added 1995-01-17 20:17:31 +00:00
Andrey A. Chernov 1f1d79eb97 Back out prev change, don't load tty-char directly, it is already done
into nroff shell script
1995-01-17 20:11:04 +00:00
Andrey A. Chernov 3e6c1c6d90 Load russian hyphentation for -Tkoi8-r 1995-01-17 20:08:42 +00:00
Jordan K. Hubbard 131690bf32 Remove the src tarball stuff from this Makefile - all the release
stuff is on its way out of here and into release/Makefile.
1995-01-17 20:00:01 +00:00
Jordan K. Hubbard 172c16b79a Move all the src tarball stuff from etc/Makefile into here. 1995-01-17 19:57:35 +00:00
Andrey A. Chernov a99d423620 Build ngroff instead of groff now 1995-01-17 19:28:56 +00:00
Andrey A. Chernov 93b3f6d096 Nuke BSD tmac 1995-01-17 19:10:35 +00:00
Andrey A. Chernov 309c205212 afterinstall --> beforeinstall to make LINKS work 1995-01-17 19:05:12 +00:00
Andrey A. Chernov a5cf5392ff Remove unnecessary complex renaming after nuking BSD tmacs 1995-01-17 18:49:52 +00:00
Andrey A. Chernov 083ad6c648 Rename tmacs properly (me)
Strip renamed pages before install
1995-01-17 18:31:07 +00:00
Andrey A. Chernov 18156f8e0f Add tmac/mdoc, needed by ngroff 1995-01-17 17:57:52 +00:00
Andrey A. Chernov 055e903386 Add missing file 1995-01-17 17:51:52 +00:00
Andrey A. Chernov bc70277b5b Add missing psroff.sh (for compatibility with old groff) 1995-01-17 17:36:19 +00:00
Jordan K. Hubbard 0b3782714e Enable floppy-tape controller by default again. Flags no longer has any
special meaning.
1995-01-17 17:32:33 +00:00
Jordan K. Hubbard 65cf764910 Make Makefile take a relative path for CFLAGS.
Submitted by:	Remy Card <[email protected]>
1995-01-17 15:07:13 +00:00
Jordan K. Hubbard 5238dbaecc Here's a patch to gdb-4.13 to add dyadic frames, as per J"org Wunsch.
Could somebody apply it?
Submitted by:	gj
1995-01-17 13:52:39 +00:00
Bruce Evans d25a46b215 Add option `-x excludelist'. This will be used for removing variously
spelled g*compiled* symbols from the kernel so that ddb doesn't have to
do it.  The symbols are currently removed by dbsym but dbsym will go
away when symbols are loaded by the boot loader.

Document -m option in usage message.

Check for overrunning some arrays.

Fix some misformatting.
1995-01-17 07:20:26 +00:00
Bruce Evans f746e67c46 Obtained from: looked at the fix in 1.1.5 and rewrote it
Fix entabbing.
1995-01-17 07:02:31 +00:00
Bruce Evans 2d2fb1bf6b The %eflags checking introduced in the previous commit was too zealous.
sigreturn() sometimes failed for ordinary returns from signal handlers.
Failures of ordinary returns "can't happen" and are badly handled.
"Temporary" fix: allow users to corrupt PSL_RF.  This is fairly
harmless.  A correct fix would involve saving the old %eflags (and
perhaps the old segment registers) where the user can't get at them.
1995-01-17 01:15:12 +00:00
Andrey A. Chernov 0293a7a389 Remove troff chars emulation, handled better via tmac.tty-char 1995-01-17 01:08:03 +00:00
Andrey A. Chernov c1328812d5 Back out 1.x changes (additional troff chars), now handled
via tmac.tty
1995-01-17 01:01:56 +00:00
Andrey A. Chernov e9844b337b Define troff chars in more nice way than defining them into
devascii R.proto (will be fixed too)
1995-01-17 00:58:05 +00:00
Andrey A. Chernov aab45466ff Move MANSRC defining rule (fix for obj subdir) to top level
Makefile.cfg, needed not only in man subdir
1995-01-17 00:42:27 +00:00
Andrey A. Chernov f94052d6fc Add russian hyphentation rules 1995-01-17 00:35:51 +00:00
Andrey A. Chernov 9acd98f380 Add koi8-r referred to tmac.tty 1995-01-17 00:21:30 +00:00
Andrey A. Chernov 5b90fb0af3 Add koi8-r as valid -T option 1995-01-17 00:13:15 +00:00
Andrey A. Chernov 7ac7111d42 Add devkoi8-r to SUBDIR 1995-01-17 00:06:29 +00:00
Andrey A. Chernov a7e36b1757 Add koi8-r device (russian charset) 1995-01-17 00:04:14 +00:00
Gary Palmer 2db2081438 Correct a small problem in that when there isn't a checksum for that
particular file, but there is a files/md5, it reports that it failed
the checksum
1995-01-16 23:33:08 +00:00
Andrey A. Chernov 7650ac4508 Fix install target when obj subdir present 1995-01-16 23:17:06 +00:00
Andrey A. Chernov 2875b41727 Don't call $(SHELL) for mdate.sh, call its directly.
Old method don't works, if login shell != sh && != bash
1995-01-16 23:02:07 +00:00
Andreas Schulz eda3ffc7c2 Add the Adaptec 282x Series of controller to the supported controllers.
They seem to be detected and working ok from the aic driver.
1995-01-16 19:19:14 +00:00
Doug Rabson c48edefb3c Change to use RTM_CHANGE when an arp entry already exists. This closes
problem bin/57 which was caused when an incomplete entry was present for the
host which was booting.
1995-01-16 18:57:45 +00:00
Andrey A. Chernov 23a4e9ded7 Add doc to SUBDIR 1995-01-16 17:56:20 +00:00
Andrey A. Chernov 98f978a585 Remove */doc 1995-01-16 17:53:43 +00:00
Andrey A. Chernov 9953d9b05d Add doc to SUBDIR 1995-01-16 17:49:20 +00:00
Andrey A. Chernov 8ab90258e8 Add doc to SUBDIR list 1995-01-16 17:40:57 +00:00
Andrey A. Chernov eaa36bec77 Back out bkgd changes, now acts per braindamaged sysv standard 1995-01-16 17:33:33 +00:00
Joerg Wunsch 9088576b20 Could someone please add the following patch to
/usr/src/share/termcap/termcap.src? It defines the sequences emitted
by the PageUp, PageDown and Keypad-[79513] keys.

Submitted by:	Thomas Gellekum <[email protected]>
1995-01-16 17:29:29 +00:00
Andrey A. Chernov 1d8834adda Back out bkgd() function usage, it acts not from
common sense but from sysv standard
1995-01-16 17:22:35 +00:00
Andrey A. Chernov 603ef010b6 Back out my ascii->latin1 change, too many special chars
appearse after it (f.e. hyphentate and such) which looks
very different in different code pages
1995-01-16 17:18:03 +00:00
Joerg Wunsch 5c2c5abe6d Removed the comment about missing support for the original "High
Sierra" format from the bugs section.
1995-01-16 17:05:44 +00:00
Joerg Wunsch 988fa8efe3 Roll in my changes to make the cd9660 code understand the older
(original "High Sierra") CD format.  I've already implemented this for
1.1.5.1 (and posted to -hackers), but didn't get any response to it.
Perhaps i'm the only one who has such an old CD lying around...

Everything is done empirically, but i had three of them around (from
different vendors), so there's a high probability that i've got it
right. :)
1995-01-16 17:03:29 +00:00
Justin T. Gibbs 87cf6d44c7 Add $Ids. Use DMA for downloading SCBs to the sequencer. Implement SDTR,
WDTR, and message reject handlers so they don't need to exist in the
sequencer.  All three of these cases are not on the critical path, so it
makes little sense to use up precious sequencer ram for them.
1995-01-16 16:33:47 +00:00
Justin T. Gibbs 344e176820 Add $Id. Recognize motherboard aic7870 based controllers. 1995-01-16 16:31:57 +00:00
Justin T. Gibbs f61afda9a4 Add $Id 1995-01-16 16:31:34 +00:00
Justin T. Gibbs 0d56403998 At $Ids to all files. Have the sequencer use DMA to tranfer its SCB
(SCSI control block) instead of having the host PIO it down.  Also
reimplement WDTR and SDTR optimization to remove code in the sequencer
and place the responsibility of knowing when to initiate SDTR or WDTR
on the kernel driver.  This vastly shortens the sequencer program yet
yeilds the same performance.
1995-01-16 16:31:21 +00:00
Jordan K. Hubbard 03b38adc65 Catch the one I missed. 1995-01-15 11:21:47 +00:00
David Greenman 761dd66739 Attempt to close a hole using splhigh/splx. There still appears to be a
serious one in the same area that I don't have time to fix.
1995-01-15 09:35:58 +00:00
Paul Traina 4f6d30a46a One last one... 1995-01-15 09:12:29 +00:00
Paul Traina b5e6cd375f Last of the FreeBSD changes 1995-01-15 09:06:50 +00:00
David Greenman 7082ec8aa5 Fixed some page table reference count problems; these changes may not be
complete, but should be closer to correct than before.
1995-01-15 09:06:23 +00:00
Paul Traina d94fc6a011 Layer in FreeBSD changes 1995-01-15 08:36:35 +00:00
Paul Traina 26444f9367 Layer in all FreeBSD patches 1995-01-15 08:30:25 +00:00
Paul Traina f84f13d3d0 groff-1.09 1995-01-15 08:10:00 +00:00
David Greenman edfab85b1a Moved some splx's down a few lines in vm_page_insert and vm_page_remove
to make the locking a bit more clear - this change is currently a NOP
as the calls to those routines are already at splhigh().
1995-01-15 07:31:34 +00:00
Jordan K. Hubbard a3de1367e9 Submit srcdist changes 1995-01-15 06:31:50 +00:00
Andrey A. Chernov 9bc89504b8 Remove duplicated ec capability 1995-01-15 06:31:14 +00:00
Andrey A. Chernov 6451258bef Sync with base termcap.src 1995-01-15 06:29:22 +00:00
Andrey A. Chernov bf8a2c7b91 Fix cv & ch to increment pos by one 1995-01-15 06:26:58 +00:00
Jordan K. Hubbard 42e77edcaf The Makefile contained in usr.bin/tconv contains a bogus
reference to the absolute path /usr/src/lib/libmytinfo.  The enclosed
patch fixes this.

Submitted by:	Remy Card <[email protected]>
1995-01-15 06:19:01 +00:00
Jordan K. Hubbard 973e94c5d5 Make one last stab at making this work before I go. 1995-01-15 06:13:46 +00:00
Garrett Wollman b60e6e6e9f Some fixes to device configuration, now that I've had a chance to do it
properly from the beginning:

	1) The `kern_devconf' struct should be a part of the driver's
	   `softc' structure (now it is).
	2) The `description' should say what the device actually is,
	   rather than just giving a model number (now it does).
	3) The device should be registered even if the probe fails, so
	   that it can be reconfigured later.
	4) For netifs, the device state should follow the IFF_UP flag.

Other network interfaces should follow this example.  (Please?)  Eventually
there should be a rundown routine doing the equivalent of setting IFF_UP
off, and perhaps more if warranted.
1995-01-15 00:18:17 +00:00
Garrett Wollman 0e10ef2ea0 Add a `-p' option, allowing the super-user to directly set a user's
encrypted password.  Kerberized `login' might use this, if I get around
to implementing the complete Allspice System behavior.
1995-01-14 23:14:25 +00:00
Garrett Wollman 758f3a64bd Modify klogin to:
1) Don't spit out an error message if Kerberos is installed but not yet
   set up.

2) Don't attempt to verify the ticket you got back, as workstations
   are not intended to have srvtab files of their own.

Both behaviors can be re-enabled with KLOGIN_PARANOID.
1995-01-14 22:57:41 +00:00
Garrett Wollman da626a6f54 Remove obsolete `-n' flag from compile_et command line. 1995-01-14 22:32:48 +00:00
Garrett Wollman d8baa34b91 Fix include directive bobble. 1995-01-14 22:30:32 +00:00
Garrett Wollman 5e914d3b8d Upgrade to latest released SIPB version I can find. (Unfortunately, the
original releases were not numbered.)
1995-01-14 22:29:34 +00:00
Garrett Wollman af4d8ead38 The Common Error Description Library, developed by MIT SIPB and used by
a number of (ex-)Athena programs.  Breaking my own rules for importing
somewhat, as this code does not appear to be actively maintained by anyone
(not that it really needs it).
1995-01-14 22:23:41 +00:00
Garrett Wollman e7f8d55240 Slightly more complete implementation of SUBDIR for libraries. 1995-01-14 22:18:15 +00:00
Garrett Wollman 83fc2a702a Add SUBDIR facility to bsd.lib.mk like in bsd.prog.mk. 1995-01-14 22:14:54 +00:00
Jordan K. Hubbard 5c6d20f99b Add some helpful text about send-pr. 1995-01-14 21:08:05 +00:00
Garrett Wollman f4282c92cd Added compile_et. 1995-01-14 20:58:58 +00:00
Garrett Wollman 3c71319647 Slight makefile cleanup. 1995-01-14 20:58:00 +00:00
Garrett Wollman f6e8b72cb5 Reflect the fact that compile_et is now a `system' utility. 1995-01-14 20:51:05 +00:00
Garrett Wollman 0d003156dd Reflect the fact that compile_et has been moved and is now a `system'
utility.
1995-01-14 20:50:37 +00:00
Garrett Wollman cde665121e Fix Sharnoff complain bin/136 (-e flag doesn't work). 1995-01-14 20:36:22 +00:00
Garrett Wollman 5ddd6b6a1a Fix Sharnoff complaint #121 (cross-reference to config.new which does not
exist on the i386 platform).
1995-01-14 20:25:02 +00:00
Jordan K. Hubbard c549fa6625 Add my own custom target for now. 1995-01-14 20:15:38 +00:00
Garrett Wollman c81d9b5121 Turn off incredibly obnoxious forced -c' option to more'. 1995-01-14 20:09:47 +00:00
Jordan K. Hubbard b6cc3bfac6 The enclosed patch fixes the Makefile contained in
share/doc/usd/{30.rogue,31.trek}: make fails if the games source
tree is not present (see the mail that I have sent yesterday).

        This patch makes the Makefiles test if the games source
tree is present.  If it is not present, the Makefiles default to
no operation.
1995-01-14 19:56:16 +00:00
Jordan K. Hubbard 7f272b53a0 The enclosed patch fixes the Makefile contained in
share/doc/usd/{30.rogue,31.trek}: make fails if the games source
tree is not present (see the mail that I have sent yesterday).

        This patch makes the Makefiles test if the games source
tree is present.  If it is not present, the Makefiles default to
no operation.

[Note:  I'm not sure if the Makefile changes might not be collapsable into
a shorter format, but I'll just leave it this way for now and be safe -jkh]

Submitted by:	Remy Card <[email protected]>
1995-01-14 19:55:40 +00:00
Jordan K. Hubbard 314bc6245e The enclosed patch makes bsd.doc.mk consistent with bsd.prog.mk
when creating the obj link.  While bsd.prog.mk inconditionnaly creates
a link in /usr/obj, bsd.doc.mk tests if the source tree is contained in
/usr/src.  If so, it creates a link to /usr/obj.  If the source tree
is contained in another directory, bsd.doc.mk creates an obj subdirectory.
Submitted by:	Remy Card <[email protected]>
1995-01-14 19:49:54 +00:00
Jordan K. Hubbard af8dd62b9a The enclosed patch is a cosmetic change to bsd.prog.mk. When
a program directory has subdirectories, make now prints "===> dir/subdir"
instead of "===> subdir".  This is modeled after the rules contained in
bsd.subdir.mk.

Submitted by:	Remy Card <[email protected]>
1995-01-14 19:48:49 +00:00
Andreas Schulz ed3cec3fcb Submitted by: David Muir Sharnoff
domainame has referenced getdomainname(2) instead of getdomainname(3).
bug report docs/137.
1995-01-14 17:02:33 +00:00
Jordan K. Hubbard 269f4a2ef1 Add very crude beginnings of the setup script. 1995-01-14 13:34:37 +00:00
Andreas Schulz ccca965b89 Fix a bug, that someone has introduced into /etc/security. It has no longer
found SUID files, only SGID files. The find has missed some parantheses.
1995-01-14 13:23:50 +00:00
Bruce Evans 20415301cd Fix security holes in sigreturn(), ptrace() and procfs. sigreturn()
attempted to check for insecure and fatal eflags and segment
selectors, but missed many cases and got the IOPL check back to
front.  The other syscalls didn't check at all.

sys_process.c, machdep.c:
Only allow PT_WRITE_U to write to the registers (ordinary and FP).

psl.h, locore.s, machdep.c:
Eliminate PSL_MBZ, PSL_MBO and PSL_USERCLR.  We are not supposed
to assume anything about the reserved bits.  Use PSL_USERCHANGE
and PSL_KERNEL instead.  Rename PSL_USERSET to PSL_USER.

exception.s:
Define a private label for use by doreti when returning to user
mode fails.

machdep.c:
In syscalls, allow changing only the eflags that can be changed on
486's in user mode (no longer attempt to allow benign IOPL changes;
allow changing the nasty PSL_NT; don't allow changing the i586
bits).

Don't attempt to check all the cases involving invalid selectors
and %eip's.  Just check for privilege violations and let the invalid
things cause a trap.

procfs_machdep.c:
Call the ptrace register functions to do all the work for reading
and writing ordinary registers and for single stepping.

trap.c:
Ignore traps caused by PSL_NT being set.  Previously, users could
cause a fatal trap in user mode by setting PSL_NT and executing an
iret, and a fatal trap in kernel mode by setting PSL_NT and making
a syscall.  PSL_NT was cleared too late and not in enough modes to
fix the problem.

Make all traps in user mode (except T_NMI) nonfatal.

Recover from traps caused by attempting to load invalid user
registers in doreti by restarting the traps so that they appear to
occur in user mode.
---

Fix bogons that I noticed while fixing the above:

psl.h:
Fix some comments.

Uniformize idempotency ifdef.

exception.s, machdep.c:
Remove rsvd[0-14].  rsvd0 hasn't been reserved since the 486 came
out.  Replace rsvd0 by `align'.  rsvd[0-11] used wrong (magic
non-unique) trap numbers.  Replace rsvd[1-14] by rsvd.

locore.s:
Enable alignment check flag on 486's and 586's.

machdep.c:
Use a better type for kstack[].

Use TFREGP() to find the registers.

Reformat ptrace functions from SEF to something closer to KNF.

procfs_machdep.c:
The wrong pointer to the registers got fixed as a side effect.

Implement reading and writing of FP registers.

/proc/*/*regs now work (only) for processes that are in memory.

Clean up comments.

trap.c, trap.h:
Remove unused trap types.
1995-01-14 13:20:26 +00:00
Jordan K. Hubbard f854ef5dd2 Try out my new idea for making the srcdist.. 1995-01-14 12:51:40 +00:00
Jordan K. Hubbard abf7720722 Actually, there's a better way to do this whole srcdist tarball business.
Take first steps toward implementing it.
1995-01-14 12:48:39 +00:00
Jordan K. Hubbard f14786dd11 Change the way the srcdist is generated. 1995-01-14 12:44:23 +00:00
Jordan K. Hubbard 2a27df60e3 Clean up src-tarball definition. 1995-01-14 12:29:38 +00:00
Andrew Moore c723083073 fixed `s' to set dot to last line affected, not the last line in
a substitution range.
1995-01-14 11:47:16 +00:00
Jordan K. Hubbard 002feff1d6 Change name of secrdist to secure. 1995-01-14 11:32:41 +00:00
Bruce Evans 3831ab07f8 Define some public labels for use by trap(). 1995-01-14 11:00:27 +00:00
Jordan K. Hubbard 9949564470 Remove bogus scd0 driver - I should have looked at LINT first, anyway. 1995-01-14 10:48:56 +00:00
Bruce Evans 3117fbd98e Enable define of CR0_AM to prepare for implementing alignment checking.
Uniformize idempotency ifdef.
1995-01-14 10:44:55 +00:00
Bruce Evans c277f99332 Declare a real `struct fpreg' to prepare for implementing reading and
writing of FP regs for procfs.

Uniformize idempotency ifdef.
1995-01-14 10:41:41 +00:00
Bruce Evans 1e1a3d012d Remove reference to impossible trap type T_KDBTRAP. We don't support
watchpoints.

Uniformize idempotency ifdef.
1995-01-14 10:34:52 +00:00
Jordan K. Hubbard b9ecc1ed61 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
Jordan K. Hubbard 709f4fb343 Initial revision 1995-01-14 10:28:20 +00:00
Jordan K. Hubbard f19709746b Be neat - put bininst in scripts directory too. 1995-01-14 10:28:11 +00:00
Bruce Evans 9bf308efab Eliminate T_KDBTRAP, which will soon go away. It was only used for an
unreachable case label in kdb_trap().

Use the correct case labels in kdb_trap() so that normal ddb entry doesn't
print a message.

Change all printf's to db_printf's.  Now you can put a breakpoint at printf,
and ddb entry messages don't spam the syslog output.

Cosmetic:

Use ISPL() instead of magic numbers.

Don't compile the unused function kdb_kbd_trap().

Improve some asms.

Print the arg to Debugger().
1995-01-14 10:24:48 +00:00
Bruce Evans 4d12ebe42c Silence `make -ss'. 1995-01-14 09:48:14 +00:00
Jordan K. Hubbard 84df4daf5b Further review for scripts/ dir renaming. 1995-01-14 08:02:49 +00:00
Jordan K. Hubbard d9584d768f Change DISTRIBUTION names. Also make bsd.doc.mk go to doc distribution,
not bin.  Hmmm.
1995-01-14 07:51:10 +00:00
Jordan K. Hubbard 09d86669dd Make the whole *dist naming structure halfway orthogonal. 1995-01-14 07:48:09 +00:00
Jordan K. Hubbard 30d561922b Do the right thing with init for secrdist. 1995-01-14 07:44:23 +00:00
Jordan K. Hubbard 4dcddd0cca Initial revision 1995-01-14 07:41:52 +00:00
Jordan K. Hubbard 2062c2dbe3 Correct positioning of text, update version. 1995-01-14 07:30:30 +00:00
David Greenman 92c385361b Add missing object_lock/unlock. 1995-01-14 04:58:53 +00:00
Jordan K. Hubbard d15b7357a8 Install suidperl suid root.
Submitted by:	Jean-Marc Zucconi <[email protected]>
1995-01-14 03:31:27 +00:00
Jordan K. Hubbard c19abbbbd7 Close PR#108 - man page 4 tty lies - needs updated info
Submitted by:	[email protected]
1995-01-14 02:48:13 +00:00
Jordan K. Hubbard 0dd1eea105 Put UCONSOLE back - I was wrong, it's still used in one last place.
Submitted by:	ollivier
1995-01-14 02:39:22 +00:00
Jordan K. Hubbard 49f7c177f3 Recognise Linux filesystems.
Submitted by:	remy
1995-01-14 02:26:07 +00:00
Jordan K. Hubbard 0301b28935 Correctly recognise Linux partitions.
Submitted by:	remy
1995-01-14 02:25:36 +00:00
Jordan K. Hubbard f146e52ddb Patch from Remy Card for bogus path in Makefile. 1995-01-14 02:20:42 +00:00
Garrett Wollman b0625a3d46 Delete obsolete references to kerberosIV. 1995-01-13 21:00:05 +00:00
Søren Schmidt 2a13b58b61 Oops, forgot one change when DDB is defined. 1995-01-13 17:13:13 +00:00
David Greenman b9921222a2 Protect a qcollapse call with an object lock before calling. The locks
need to be moved into the qcollapse and rcollapse routines, but I don't
have time at the moment to make all the required changes...this will do
for now.
1995-01-13 13:30:24 +00:00
Justin T. Gibbs d8ef68098b Remove extra leading tabs that made this thing blow up. 1995-01-13 08:06:55 +00:00
Jordan K. Hubbard 9711e78d94 I must be hallucinating. Back out the previous change. Um. Drat,
how to do this?
1995-01-13 06:44:23 +00:00
Jordan K. Hubbard 38862b2dcf Add conv=osync to the boot flop. You know, this might explain those
mysterious rawrite problems! :-)
1995-01-13 05:43:03 +00:00
Andrey A. Chernov b9937fcc84 Use (n - 1) in ESC [ xxx d and ESC [ xxx ` 1995-01-13 03:19:22 +00:00
Justin T. Gibbs b6b99cabea Point dependancy to i386/scsi 1995-01-13 02:29:14 +00:00
Justin T. Gibbs 01ce9c8620 Point include to i386/scsi 1995-01-13 02:27:08 +00:00
Justin T. Gibbs deefdf55f5 Generic support for the entire aic7x70 line of adaptors. No one else
came up with a directory place ment more me, so now we have i386/scsi.
1995-01-13 02:24:31 +00:00
Justin T. Gibbs 451ab98ff3 Add in aic7770.c (EISA/VL Adaptors) and aic7870.c (PCI adaptor) dependancies
for the ahc driver.
1995-01-13 02:23:27 +00:00
Justin T. Gibbs 20c5e65572 Full support for 294x and Wide devices. Fixed month old bug in the SCSI
sense retrieval code that messed up CDROM devices.  This code will also
responde correctly to SDTR and WDTR messages from devices that start a
negotiation sequence.
1995-01-13 02:22:11 +00:00
Andrey A. Chernov 985649bb94 Add more funkeys, correct existen ones 1995-01-13 00:51:48 +00:00
Andrey A. Chernov 21984e24b4 Use -Tlatin1 instead -Tascii to pass character from
S0ren name without warnings.
1995-01-13 00:42:04 +00:00
Andrey A. Chernov 6821668363 Sync with base termcap 1995-01-13 00:19:50 +00:00
Andrey A. Chernov dd5527fa91 Add nw & ec capabilities from new syscons 1995-01-13 00:16:52 +00:00
Andrey A. Chernov c58a405f43 Add more termcap capabilities, correct one escape 1995-01-13 00:14:52 +00:00
Jeffrey Hsu add65270a0 Fix bug that created new files even when running in -C check mode.
Reviewed by: phk
1995-01-12 22:09:40 +00:00
Garrett Wollman 7ba7177c6e Other part of Makefile spam fix. 1995-01-12 20:58:10 +00:00
Garrett Wollman 65dd2ce99f Correctly fix spam with usd/psd Makefile mix-up. 1995-01-12 20:57:11 +00:00
Andrey A. Chernov 9db2473d62 Back out cursor wrap (restore original thing)
Submitted by: Bill Paul
1995-01-12 20:14:28 +00:00
Joerg Wunsch dac0f2dbc1 Argl!, finally found this bummer. The code testing for a write-
protected drive at open() time has been *totally bogus*!  The guy who
submitted it didn't understand all the implications of calling
set_motor(), and the `who' who included the patch into the tree did it
blindly...  Pleeeeze, don't commit code to this driver unless you are
really going to understand what it does!  This one caused me to pull
out even more hears, and those who know me do know that i ain't got
too many o'them. :-)
1995-01-12 19:20:28 +00:00
Joerg Wunsch d5453ba5c4 Make ldconfig and ld.so not hashing the shared lib minor number. This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.
1995-01-12 19:12:29 +00:00
Guido van Rooij 7fc5551693 Install the ipfw.samp.* files
Reviewed by:
Submitted by:
Obtained from:
1995-01-12 18:40:10 +00:00
Jordan K. Hubbard 42941e8055 Remove 05.sysman until I can figure out why the ascii generation
runs amuck.
1995-01-12 17:32:12 +00:00
Jordan K. Hubbard c270d29802 Make this agree with reality - it was actually a Makefile for ../usd! 1995-01-12 16:25:51 +00:00
Jordan K. Hubbard 1ce5c9dc5c A slicker way of eliminating bogus quotes.
Ask less questions about the temporary directory if instructed to.
1995-01-12 16:18:18 +00:00
Jordan K. Hubbard 09c42f85eb 1. Remove UCONSOLE. This appears to be well and truly dead (unless it's
hiding someplace in /sys I can't find).
2. Remove NCONS.  Soren's latest changes make it a no-op.
1995-01-12 15:37:16 +00:00
Stefan Eßer cde24835d3 Submitted by: Mikael Hybsch <[email protected]>
Add support for NCR 53c815 PCI SCSI chip.
1995-01-12 14:01:13 +00:00
Ugen J.S. Antsilevich 564fbfe5c2 Checking new lkm structure.. 1995-01-12 13:57:51 +00:00
Ugen J.S. Antsilevich 4dd1662b4c Actual firewall change.
1) Firewall is not subdivided on forwarding / blocking chains
   anymore.Actually only one chain left-it was the blocking one.
2) LKM support.ip_fwdef.c is function pointers definition and
goes into kernel along with all INET stuff.
1995-01-12 13:06:32 +00:00
Ugen J.S. Antsilevich c5d5269fa6 here ip_fw.c lived once..correct me if i am wrong but
i think it shopuld be in conf/files
1995-01-12 13:05:00 +00:00
Ugen J.S. Antsilevich bd41022924 Firewall files & accounting added here.
ip_fwdef.c is support for ipfw lkm module
and should be compoiled always with 'options inet'.
1995-01-12 13:04:23 +00:00
Ugen J.S. Antsilevich ad6e6b7d58 Firewall can be used as lkm module.To use it
firewall should *NOT* be compiled into kernel.
Then it can  be loaded.This is misc module but i'v
got no problemms with it,so shouldn't you i suppose..
BTW this is very stupid to have one module in CVS
for ALL lkm's...
1995-01-12 13:03:02 +00:00
Ugen J.S. Antsilevich 98bee36695 Utility changes following the facility.
We have only one firewall chain and one accounting chain now.
   No blocking/forwarding so commands changed.
Man pages are somewhat out of date and will be updated ASAP.
1995-01-12 13:01:21 +00:00
Jordan K. Hubbard 4d190d48d6 Efficiency tweaks to Makefile,
add missing regexp lib for grep (cpio floppy).
1995-01-12 12:30:07 +00:00
Jordan K. Hubbard 3506b124bf Correct some bogus instructions, flesh out some of the other doc. 1995-01-12 12:13:58 +00:00
Søren Schmidt 6378775666 First round in syscons update. Several new features has been added:
No kernel config options anymore besides keyboard language layout.
Virtual consoles are now dynamically allocated, no NCONS anymore.
Software cursor blinking/nonblinking.
Visual bell for laptops (don't beep at meetings :-).
Cursor/bell default type setable via config "flags" instead of as defines.
Cursor/bell type setable via ioctl's.
New video modes 80x30 80x60 for some laptops, and those with multisync monitors.
Scroll-lock history (length currently fixed at 100 lines).
Lots of cleanups, some only commented out for now (will goaway soon).
Support for new features in vidcontrol/kbdcontrol.
Updated manpages.
1995-01-12 11:47:05 +00:00
Jordan K. Hubbard 9d68e93aaf Good grammar and good taste, from Gary Jennejohn.
Submitted by:	gj
1995-01-12 11:47:02 +00:00
David Greenman aedcdea1de Fixed mbuf lossage when level != IPPROTO_IP. Problem reported by Robert
Dobbs, hint from Charles Hannum, fix by me.
1995-01-12 10:53:25 +00:00
Jordan K. Hubbard c8a5d5e0b0 Prepare for next snapshot. 1995-01-12 10:34:37 +00:00
Jordan K. Hubbard 533c1db8da Whoops! Correct cut-and-paste gaffe. 1995-01-12 08:21:31 +00:00
Jordan K. Hubbard 161e6a3e83 Add an ID line at the top (this thing still needs some sort of
copyright, Andrew).
Add support for the distribute target.
1995-01-12 08:20:25 +00:00
David Greenman ec2bb6ade1 Increase maxfiles to NPROC*2. This makes the per-process open file limit
highly bogus, however, and this needs to be fixed.
1995-01-12 03:38:12 +00:00
Andrey A. Chernov 4d7b8c9269 dc/doc added 1995-01-12 02:56:15 +00:00
Andrey A. Chernov bfb9b93ee9 Infopage installation 1995-01-12 02:54:14 +00:00
Andrey A. Chernov cd54e1437f as/doc added 1995-01-12 02:50:50 +00:00
Andrey A. Chernov 81d5811672 Infopage installation 1995-01-12 02:48:42 +00:00
Andrey A. Chernov 41c4bc57c7 Use absolute path for install passed to configure
to disallow prepending ../ in second level Makefiles
1995-01-12 02:29:42 +00:00
Andrey A. Chernov eb0dc9c294 ptx/doc added 1995-01-12 01:35:31 +00:00
Andrey A. Chernov 72faa78f5b Use -lgnuregex properly
Install infopages
1995-01-12 01:30:34 +00:00
Garrett Wollman 1df8e837d0 Delete VFS example since it doesn't apply and there are ten perfectly
good examples elsewhere in the tree.  (The MISC example should probably
go, too, but it should still compile so I'm leaving it for now.)
1995-01-11 21:44:23 +00:00
Garrett Wollman 204da1b6b7 Fix these up as much as I'm able; see the README file for more info. 1995-01-11 21:33:54 +00:00
David Greenman 8b4dd3c473 Improve my previous change to use the same tests as are used in qcollapse. 1995-01-11 20:19:20 +00:00
David Greenman a748978457 Fixed a panic that Garrett reported to me...the OBJ_INTERNAL flag wasn't
being cleared in some cases for vnode backed objects; we now do this in
vnode_pager_alloc proper to guarantee it. Also be more careful in the
rcollapse code about messing with busy/bmapped pages.
1995-01-11 20:00:10 +00:00
Garrett Wollman 9e681ba3da Always delete ${DOC}.ps and ${DOC}.ascii in the clean target, no matter what
${PRINTER} is set to.
1995-01-11 19:58:03 +00:00
Garrett Wollman 4b77ba7f2c Add back in the -me papers now that they all work. 1995-01-11 19:51:47 +00:00
Jordan K. Hubbard 6722294de8 Change GENERIC to SWAP_GENERIC for now. I need the GENERIC kernel to
build by default again!  When the furor subsides, maybe something better
can be done, but..
1995-01-11 17:51:26 +00:00
Andrey A. Chernov fe80b9dc28 doc added 1995-01-11 16:40:08 +00:00
Andrey A. Chernov ad04b53da0 Add annotate target 1995-01-11 16:38:10 +00:00
Andrey A. Chernov eb9747a649 Install infopages 1995-01-11 16:29:45 +00:00
Joerg Wunsch dc16046f96 Finally implement support for the `lsdev' program. The controller is
now marked busy as long as it's being in non-reset state, and the
drives are busy as long as at least one instance is open.

Also reformat everything to fit into 80 columns again.

Changed my mind wrt. error reporting for a write-protected drive and
an open() with write intent; ENXIO has been too weird, now return EIO.
Some portions of the code need to be rewritten to use tprintf()
instead of simple printf()'s, so the messages will also appear on the
session terminal, however.
1995-01-11 16:13:01 +00:00
Jordan K. Hubbard 0351215ee6 Ack! Mk must go before cleandist in the world rule now. Otherwise
cleandist will fall over at gnu/lib/libreadline/doc when bsd.info.mk
is not found.
1995-01-11 11:52:50 +00:00
Joerg Wunsch 056dfea8f8 argl, better unzip the perl script before installing. :-/ 1995-01-11 09:21:29 +00:00
Satoshi Asami fb097df2ce Typo! 1995-01-11 08:53:28 +00:00
Satoshi Asami 1deaf2e347 Add missing ! in front of pipeline for extract commands---otherwise
it would exit on *successful* extraction.
1995-01-11 08:50:48 +00:00
Paul Richards 1e95454e10 What I think is a more correct fix for the handling of backslashes
inside backquotes. Reversed my previous fix.
1995-01-11 07:07:00 +00:00
Andrey A. Chernov 514c347b58 awk/doc added 1995-01-11 06:56:12 +00:00
Andrey A. Chernov 09122d010b Infopage install 1995-01-11 06:53:40 +00:00
Andrey A. Chernov 4efe110a6d Use -lgnuregex 1995-01-11 06:42:25 +00:00
Andrey A. Chernov e82aeeb5ef Use -lgnuregex
Tune for 8bit ctype
1995-01-11 06:14:14 +00:00
Andrey A. Chernov 712624913e Upgrade to code which should satisfy all things which we have 1995-01-11 06:12:04 +00:00
Paul Richards f4ae9090f4 Added emacs ^A,^E,^B & ^F keybindings to field editor.
Changed a constant to a sizeof in test.c
1995-01-11 06:08:45 +00:00
Andrey A. Chernov 49b95be03e Use -lgnuregex 1995-01-11 05:45:48 +00:00
Andrey A. Chernov dc92878b84 Upgrade regex code to most recent that I found
Version number still not changed
1995-01-11 05:39:08 +00:00
Andrey A. Chernov e88843d3cf Use -lgnuregex
Tune for 8bit ctype
1995-01-11 05:07:00 +00:00
Andrey A. Chernov 35a3303073 Changes for 8-bit ctype 1995-01-11 04:56:51 +00:00
Andrey A. Chernov ea822ebc88 libregex/doc added 1995-01-11 04:34:23 +00:00
Garrett Wollman 7a41acfd08 Now that `doc' works, do it. 1995-01-11 04:33:00 +00:00
Andrey A. Chernov 68206ccc06 Add infopage installation 1995-01-11 04:32:41 +00:00
Garrett Wollman 056721988a Always make the papers. Automatically make both PostScript and ASCII versions
of each document, and install both on request.
1995-01-11 04:29:38 +00:00
Garrett Wollman debba9d5a3 Disable 05.sysman, it sends nroff into an infinite loop. 1995-01-11 04:24:41 +00:00
Andrey A. Chernov 2e0ad30144 Remove regex code, use -lgnuregex instead 1995-01-11 04:18:38 +00:00
Garrett Wollman a316b26e50 Make all these format under the new scheme. I haven't had a chance to
test the -me stuff, so it's still disabled for now.
1995-01-11 04:10:10 +00:00
Andrey A. Chernov cd4e4d36de Fix path in FILES section 1995-01-11 03:58:32 +00:00
Garrett Wollman 417ed37975 Get the USD to format under the new structure. 1995-01-11 03:24:33 +00:00
Garrett Wollman be3dff6e36 Add .MAIN: all so that extraneous targets don't confuse `make'. 1995-01-11 02:41:09 +00:00
Garrett Wollman d448c6a94f Add standard before/real/afterinstall support like in bsd.prog.mk. 1995-01-11 02:27:01 +00:00
Garrett Wollman 83a924ecc9 Fix last .endif. 1995-01-11 02:06:58 +00:00
David Greenman c3d05da5e3 MFS doesn't bother to associate a struct mount with the vnode...so work
around this by not trying to cluster this type of I/O.

Submitted by:	John Dyson
1995-01-11 01:53:18 +00:00
Garrett Wollman b7a1a0a5ff Make these documents build if possible. 1995-01-11 01:53:04 +00:00
Paul Richards 369cf5afc3 Change size of example form from 80x25 to 80x24 so it works
in a standard xterm.
1995-01-11 01:29:38 +00:00
Garrett Wollman 26b8cb48b1 Add Id keyword. 1995-01-11 00:16:04 +00:00
Garrett Wollman f8f8058e6f Make everything work with new bsd.doc.mk and without symlinks in the
source tree.  Eliminate papers which require -me macros, 'cos they
currently don't work with groff.
1995-01-11 00:15:23 +00:00
Garrett Wollman 25514a1236 Changes to make /usr/share/doc work somewhat right. (SMM commits
to follow soon.)
1995-01-11 00:00:11 +00:00
Andrey A. Chernov 81ab7fb2a7 Add better argument handling
Submitted by: jmz
1995-01-10 21:19:57 +00:00
Andrey A. Chernov b7091db2a5 send-pr/doc added 1995-01-10 20:04:35 +00:00
Andrey A. Chernov 0a172cf4d9 Add info installation 1995-01-10 20:02:15 +00:00
Poul-Henning Kamp bb04461ba0 Speed kvm_mkdb up by a factor 5 or thereabout. Rewrote all the fseek/fread
nonsense to use a mmap'ed file instead and told the DB/hash what we are up to.

dev_mkdb could maybe benefit from the same treatment.
1995-01-10 18:37:12 +00:00
Andrey A. Chernov 80ac129270 Updates from jmz and me 1995-01-10 18:35:23 +00:00
Joerg Wunsch 43c1db28c7 From our favorite Perl script writer: a new makewhatis, about
15 times faster than the existing sh script.

Submitted by:   Wolfram Schneider <[email protected]>
1995-01-10 18:12:50 +00:00
David Greenman f295740e4d Fix conversion to/from nfs v2 time in handling microseconds.
Submitted by:	[email protected]
1995-01-10 13:11:42 +00:00
David Greenman 740c65cfec Added two missing brelse() calls.
Submitted by:	[email protected]
1995-01-10 13:06:51 +00:00
Jordan K. Hubbard 4c0b41ec3b As long as I can't figure out why this doesn't work, I might as well
add some error checking to it and clean this up a bit.
1995-01-10 12:36:44 +00:00
Jordan K. Hubbard 8b9d60735d Catch case where extraction fails. Thanks! 1995-01-10 12:23:44 +00:00
Jordan K. Hubbard 8bc0985035 Latest changes from vak.
Submitted by:	vak
1995-01-10 11:44:30 +00:00
Jordan K. Hubbard ed4a82f717 Latest update from Serge Vakulenko <[email protected]>
Submitted by:	vak
1995-01-10 11:41:28 +00:00
David Greenman 5943df8331 PG_FAKE is no longer used - so don't bother to clear it. 1995-01-10 09:20:34 +00:00
David Greenman a776a317e9 Kill VM_PAGE_INIT macro as it is only used once and makes the code more
difficult to understand. Got rid of unused vm_page flags.
1995-01-10 09:19:52 +00:00
David Greenman 480dff540b Fixed some formatting weirdness that I overlooked in the previous commit. 1995-01-10 07:32:52 +00:00
David Greenman 39b3568a26 Added 'pages in VM cache' statistic. 1995-01-10 05:52:59 +00:00
Paul Richards ba1efeeea4 Place the cursor better on buttons.
Stop field display attributes getting clobbered.
1995-01-10 04:10:55 +00:00
Paul Richards 7f8bb70cff New forms library. This provides some basic functions for writing
input forms. It has the following simple fields:

Text fields: Just titles, labels etc.

Input fields: An editable text field that may or may not have an
initial default value.

Labelled input field: This is an input field that has an initial
informative entry in it but it vanishes when you start editing the
field.

Toggle fields: These are fields with a pre-defined list of options
which you cycle through using the space bar.

Action fields: These are button type fields that call functions when
they are selected.

A simple demo is included in examples.
1995-01-10 04:00:37 +00:00
Bruce Evans fa724216f5 Always build libkern_p.a. `NOPROFILE' should only control user libraries. 1995-01-10 01:57:56 +00:00
Bruce Evans 12981249c8 Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
1995-01-10 01:42:24 +00:00
Paul Richards f5c4a27846 Fix a bug with handling backslash escapes inside some quotes.
Should solve our problems with edit-pr.
1995-01-09 20:00:54 +00:00
Joerg Wunsch b324392f6b fix for: kern/97: wt DELAY patch
Wangtek PC-02 QIC-02 controller with Cipher 150MB tape drive

        Any attemp to open /dev/rwt0 hangs.

        The following patch to /sys/i386/isa/wt.c is derived from Mikael
Hybsch's wt driver.

Submitted by:	Terry Lee <[email protected]>
1995-01-09 17:55:10 +00:00
Joerg Wunsch 2563fac568 I think someone has already talk about it but I just got bitten again :
perl setuid scripts don't work in 2.1-current for the same reason they were
not working in 1.1.5.1.

Perl 5 has the same "problem" of course.

We have almost POSIX saved uids but  we must undefine the following symbols
in order to get setuid perl scripts :

Submitted by:	[email protected] (Ollivier Robert)
1995-01-09 17:52:25 +00:00
David Greenman 0d94caffca These changes embody the support of the fully coherent merged VM buffer cache,
much higher filesystem I/O performance, and much better paging performance. It
represents the culmination of over 6 months of R&D.

The majority of the merged VM/cache work is by John Dyson.

The following highlights the most significant changes. Additionally, there are
(mostly minor) changes to the various filesystem modules (nfs, msdosfs, etc) to
support the new VM/buffer scheme.

vfs_bio.c:
Significant rewrite of most of vfs_bio to support the merged VM buffer cache
scheme.  The scheme is almost fully compatible with the old filesystem
interface.  Significant improvement in the number of opportunities for write
clustering.

vfs_cluster.c, vfs_subr.c
Upgrade and performance enhancements in vfs layer code to support merged
VM/buffer cache.  Fixup of vfs_cluster to eliminate the bogus pagemove stuff.

vm_object.c:
Yet more improvements in the collapse code.  Elimination of some windows that
can cause list corruption.

vm_pageout.c:
Fixed it, it really works better now.  Somehow in 2.0, some "enhancements"
broke the code.  This code has been reworked from the ground-up.

vm_fault.c, vm_page.c, pmap.c, vm_object.c
Support for small-block filesystems with merged VM/buffer cache scheme.

pmap.c vm_map.c
Dynamic kernel VM size, now we dont have to pre-allocate excessive numbers of
kernel PTs.

vm_glue.c
Much simpler and more effective swapping code.  No more gratuitous swapping.

proc.h
Fixed the problem that the p_lock flag was not being cleared on a fork.

swap_pager.c, vnode_pager.c
Removal of old vfs_bio cruft to support the past pseudo-coherency.  Now the
code doesn't need it anymore.

machdep.c
Changes to better support the parameter values for the merged VM/buffer cache
scheme.

machdep.c, kern_exec.c, vm_glue.c
Implemented a seperate submap for temporary exec string space and another one
to contain process upages. This eliminates all map fragmentation problems
that previously existed.

ffs_inode.c, ufs_inode.c, ufs_readwrite.c
Changes for merged VM/buffer cache.  Add "bypass" support for sneaking in on
busy buffers.

Submitted by:	John Dyson and David Greenman
1995-01-09 16:06:02 +00:00
Jordan K. Hubbard bf8af43789 Fix botched URL for Thailand. 1995-01-09 14:41:13 +00:00
Jordan K. Hubbard 5e65101c41 Fix a messed-up URL. 1995-01-09 14:30:42 +00:00
Jordan K. Hubbard 716831f5f4 Add a MIN macro. 1995-01-09 11:38:40 +00:00
Jordan K. Hubbard 0817ade904 Correct some of the english. 1995-01-09 11:32:01 +00:00
Jordan K. Hubbard 8f1133e6ec Wolfram Schneider <[email protected]>:
o manpage
	o save configuration in /etc/adduser.conf
	o send message file (/etc/adduser.message)
Submitted by:	woschcs.tu-berlin.de
1995-01-09 11:26:31 +00:00
Poul-Henning Kamp 5b568d88bb cdev #50 -> pcmcia 1995-01-09 09:36:48 +00:00
David Greenman 96bccfd8b2 Fixed two bugs: some malloced space wasn't freed after it was no longer
needed and the file wasn't closed when the -t option was used.
Originally by [email protected], but were incomplete.

Submitted by:	[email protected] and myself
1995-01-09 05:59:04 +00:00
David Greenman cfc22f9026 Old fix from Robert Crowe <[email protected]> that has been sitting in
my mailbox since early last year. Fixes a problem with running out of
fds (by hitting the limit or whatever) when ar is given a long list of
objects. The fix was to add a missing close().

Submitted by:	Robert Crowe <[email protected]>
1995-01-09 04:50:30 +00:00
Paul Richards 10824ac8f3 Added a ports category to the list. 1995-01-08 21:38:12 +00:00
Joerg Wunsch 931e501097 Use the "-F" option to /bin/pr now that we have it (thanks to Posix).
This helps for printers that tend to get out of sync.  (For the
cautious folks: we used to have it in 1.1.5, too.  But GNU pr used
"-f" for it.)
1995-01-08 18:01:11 +00:00
Peter Dufault 04bcc6f58b Ensured all files have copyright and RCS ID variable. 1995-01-08 15:56:10 +00:00
Andreas Schulz c9082578fa Submitted by: Gerd Truschinski
Removed one semicolon, two are one to much :-). Found by the hc860 compiler
and Gerd Truschinski 8-).
1995-01-08 15:13:40 +00:00
Peter Dufault f948427e16 Added ssc device 1995-01-08 13:42:19 +00:00
Peter Dufault 081964045f Added residual length for 1542C only 1995-01-08 13:41:28 +00:00
Peter Dufault e8831d3712 added ssc device 1995-01-08 13:40:31 +00:00
Peter Dufault 832ac3cac7 Added "change address" ioctl for ssc device. 1995-01-08 13:39:46 +00:00
Peter Dufault 7562b0d606 Reviewed by: [email protected]
Reenabled "SCIOCOMAND" ioctl.
Restructured so low level drivers can easily request retries.
Added preliminary fixed SCSI devices (should be revisited before 2.1)
Added "ssc" device that can have its' (HBA, ID, LUN) set via ioctl.
1995-01-08 13:38:38 +00:00
Jordan K. Hubbard 9b37088687 Add ftp.dataplex.net to USA mirrors. 1995-01-08 12:18:50 +00:00
David Greenman f7c9e2441f Restored Herb's current copyright. The one in the file appeared to have
been run through indent and additionally doesn't contain clauses 3 and 4
that were apparantly added sometime after the driver was put into FreeBSD.
1995-01-08 10:47:23 +00:00
Andreas Schulz ddfdef1374 Submitted by: Steve Gerakines
Delete some parts of the ultra 24F tests for the controller, so that
it now accepts a broader range.
1995-01-07 23:23:40 +00:00
Jordan K. Hubbard f677a957bf Fix indenting of gsc entry, reserve 48 for cyclades. 1995-01-07 23:20:08 +00:00
Jordan K. Hubbard 647186bcc7 Add Korea mirror 1995-01-07 22:55:12 +00:00
Jordan K. Hubbard 3e533186fc Add Korean site to mirror lists. 1995-01-07 22:53:41 +00:00
Andreas Schulz a9700525d8 Work around a compiler bug in gcc2.6.3 in handling (long long) variables and
shifting. Also correct the original code as Garrett noticed it in mail.
Leave the mishandled code in to use it later if future versions of gcc
are correct. The code was part of the calibrate_cyclecounter routine to
get the speed of the pentium chip.
1995-01-07 17:26:35 +00:00
Andrey A. Chernov 82c1981ce5 Back out prev fix, now fixed in bsd.info.mk 1995-01-07 16:42:39 +00:00
Andrey A. Chernov e9474ecf20 Use .MAIN: all 1995-01-07 16:39:38 +00:00
Jordan K. Hubbard 2f6df2645b Gunther Schadow <[email protected]>'s
driver for the Genius GS-4500 hand scanner.
Submitted by:	[email protected]
1995-01-07 14:52:08 +00:00
Jordan K. Hubbard 349257ffa6 sgsc - utility to control the Genius GS-4500 scanner.
Submitted by:	[email protected]
1995-01-07 14:17:22 +00:00
Jordan K. Hubbard 4ca969939b 1. Add bump release number nag to start of release rule. Thx to Philippe
for suggestion!
2. Add Thailand to list of mirrors.
1995-01-07 11:09:50 +00:00
David Greenman d8e5ab9731 Got rid of unused nclist declaration. 1995-01-07 06:08:15 +00:00
Jordan K. Hubbard deaa72ee2f Fix name of uni-duisberg site. 1995-01-07 03:58:22 +00:00
Andrey A. Chernov ca6887fcae Fix "make" vs "make all" 1995-01-07 01:08:54 +00:00
Andrey A. Chernov 10d65ca957 Move pre-extract target inside COOKIE
Add checksum check for extract, if checksum file present
1995-01-06 22:14:12 +00:00
Andrey A. Chernov 8458a20f14 Remove regex code, use -lgnuregex instead 1995-01-06 21:26:39 +00:00
Gary Palmer a20eb78506 Add information about the checksumming system in ports
Reviewed by:	jkh
1995-01-06 19:24:13 +00:00
Joerg Wunsch dc5df763e4 Peter's work to work around one of the most annoying bugs in the
floppy driver (or in the hardware?).  It turned out to be caused by
spurious interrupts, right after an FDC reset.

Also major cleanup in the low-level structure, there are now functions
performing error-checks for the FDC I/O.

Submitted by:	(mostly) Peter Dufault <[email protected]>
1995-01-06 15:20:00 +00:00
Bruce Evans 123bcf5fda Fix scaling for TIOCM[SG]DTRWAIT to work when hz != 100.
Bruce
1995-01-06 15:03:41 +00:00
Bruce Evans 4c5e4b09a7 Fix error handling for new TIOCSDRAINWAIT ioctl. 1995-01-06 14:56:42 +00:00
Bruce Evans e15532385d Handle segment registers (except %fs and %gs). 1995-01-06 14:52:06 +00:00
Stefan Eßer 623976474c Submitted by: Wolfgang Stanglmeier <[email protected]>
Reviewed by: <wollman>
First hooks and defines for the ISDN driver,
that soon will see the light ...
1995-01-05 19:51:51 +00:00
Justin T. Gibbs ff2e6a8b6f Add VNINACT flag. LFS has a habbit of skipping the ufs_inactive procedure.
It used to do this by setting a global <Yuck>.  Now we set th VNINACT
flag in the vnode to force a skip of ufs_inactive.

Sorry for missing this file in my last commit folks.

Index: vnode.h
===================================================================
RCS file: /usr/cvs/src/sys/sys/vnode.h,v
retrieving revision 1.14
diff -c -r1.14 vnode.h
*** 1.14	1994/11/14 13:51:53
--- vnode.h	1994/12/03 01:06:27
***************
*** 116,121 ****
--- 116,122 ----
  #define	VALIASED	0x0800	/* vnode has an alias */
  #define	VDIROP		0x1000	/* LFS: vnode is involved in a directory op */
  #define VVMIO		0x2000	/* VMIO flag */
+ #define VNINACT		0x4000  /* LFS: skip ufs_inactive() in lfs_vunref */

  /*
   * Vnode attributes.  A field value of VNOVAL represents a field whose value
1995-01-05 16:22:17 +00:00
Søren Schmidt ac2c528771 Added fr.sio.kbd. 1995-01-05 14:09:00 +00:00
Jordan K. Hubbard c090e04591 Whoops! How embarassing. Just now noticed that I forget to update the .Os
lines.  Done.
1995-01-05 10:37:13 +00:00
Jordan K. Hubbard 3852eb465e Fix a bad formatting directive. 1995-01-05 10:31:42 +00:00
Jordan K. Hubbard 8b47e5f5f6 Fix misleading typo in description of @unexec. 1995-01-05 10:22:51 +00:00
David Greenman 5b1ae1f88e Removed daily rm'ing of files in /tmp, /var/tmp, and /scratch. There is no
safe way to do this, and envites very unpleasant results. Removed fsck'ing
of all the disks on the system as it provides output that is almost always
meaningless and only envites bug reports.

Reviewed by:	Jordan Hubbard
1995-01-05 10:15:53 +00:00
Satoshi Asami d5ca901589 Sort out dependencies. Now they look like:
patch: extract
configure: depends patch
build: configure
install: build

Does this look ok?
1995-01-05 08:15:53 +00:00
Gary Clark II 52b3b3087b Convert PORTS.FAQ to ports.FAQ.
All "FAQ" items should be lowercase prefix and upcase FAQ suffix.
1995-01-05 07:27:00 +00:00
David Greenman 010cf3b9e3 Make sure that the object being collapsed doesn't go away on us...by
gaining extra references to it.

Submitted by:	John Dyson
Obtained from:
1995-01-05 04:30:40 +00:00
David Greenman f81dd52383 Initialize map start hint to vm_map_find()...not doing so will cause it
to fail if the random thing on the stack happens to be too large.

Submitted by:	David Jones <[email protected]>
1995-01-05 03:59:38 +00:00
Steven Wallace e86257e166 Change to
#define STANDARD_SEARCH_DIRS    "/usr/lib", "/usr/X11R6/lib", "/usr/local/lib"
Like in 2.0R, except without /usr/X386.
1995-01-05 02:36:29 +00:00
Jordan K. Hubbard edf9e79525 Typo fix from Ollivier Robert.
Submitted by:	ollivier
1995-01-05 02:15:05 +00:00
Jordan K. Hubbard 333881d516 Rename check-md5 target to checksum.
Submitted by:	gpalmer
1995-01-05 01:46:05 +00:00
Steven Wallace 022402f2be Added new function show_index() which does a 'smart' display of the index file.
Index descriptions are limited to MAXINDEXSIZE (60) chars.  Any description
beyond that is truncated.  Also, only the first line is displayed as well.
This allows pkg_info -a -I to be formated in two columns with one line
per package for easy reading.

Reviewed by:	jkh
1995-01-05 01:10:13 +00:00
Andrey A. Chernov b49d97b636 Add drainwait option examples 1995-01-05 00:11:52 +00:00
Andrey A. Chernov b0e399e3c4 Fight agaist hanging modems: add new drainwait option.
Reviewed by: Bruce
1995-01-05 00:03:06 +00:00
Andrey A. Chernov 33c38bd574 Fight against hanging modems: add timeout to ttywait.
Reviewed by: Bruce
1995-01-05 00:01:07 +00:00
Justin T. Gibbs b77430dcb0 Remove -DDIAGNOSTIC in makefile. The DIAGNOSTIC code is severly broken and
will change if I have more time to look at it.  Keep at least 5 segments
cleaned if possible (instead of 2 which is a bare minimum for FS operation).
1995-01-04 23:54:06 +00:00
Justin T. Gibbs 7c49ab48fa Honor the values for bsize, fsize and bps from the disklabel. 1995-01-04 23:50:30 +00:00
Justin T. Gibbs ca4693ed4b Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
1995-01-04 23:49:51 +00:00
Justin T. Gibbs 61acca9f2f Change panic messges that are ffs_blah functions to say they are ffs not
ufs functions.
1995-01-04 23:48:04 +00:00
Justin T. Gibbs 1a451e33ef LFS stability patches. There is still a problem with directory update
ordering that can prove fatal during large batches of deletes, but this
is much better than it was.  I probably won't be putting much more time
into this until Seltzer releases her new version of LFS which has
fragment support.  This should be availible just before USENIX.
1995-01-04 23:46:34 +00:00
Jordan K. Hubbard e5d85be85c Gary Palmer's patches for checksumming and description.
Submitted by:	gpalmer
1995-01-04 23:06:38 +00:00
Andreas Schulz 86c7d89044 Submitted by: Ollivier ROBERT
Wrong description where the printer socket lives. Changed from /dev/printer
to /var/run/printer. Bug report submitted by Ollivier ROBERT.
1995-01-04 22:55:00 +00:00
Andrey A. Chernov 8558dc3f69 Fix BINMODE to override sys.mk defaults 1995-01-04 22:43:52 +00:00
Andrey A. Chernov 00e87e70d1 Add readline/doc to SUBDIR 1995-01-04 22:38:51 +00:00
Andrey A. Chernov b4289364f2 Remove INSTALL, now into sys.mk 1995-01-04 22:32:40 +00:00
Andrey A. Chernov 9c596ee78f Fix format error 1995-01-04 22:21:06 +00:00
Andrey A. Chernov 687af2f4b8 Add dependances 1995-01-04 22:19:34 +00:00
Andrey A. Chernov 6f2b954ba5 Install infopages 1995-01-04 22:16:14 +00:00
Andrey A. Chernov 4b99b57547 Fix building of target with multiply sources 1995-01-04 22:01:58 +00:00
Andrey A. Chernov 69234255f2 Fix error in clean target 1995-01-04 21:34:13 +00:00
Andrey A. Chernov 0133d0c591 Much improved variant 1995-01-04 21:29:32 +00:00
David Greenman 53cdbe34f1 Made a few cosmetic changes, and fixed a bug in handling the case of the
remote DMA not completing correctly (the packet was still queued for xmit).
1995-01-04 21:10:17 +00:00
David Greenman b5ba45f6f3 Corrected the list of volatile registers for outsb, outsw, and outsl.
This bug caused my ethernet driver to break, among other things no doubt.
1995-01-04 20:42:25 +00:00
Paul Traina e228c81074 Fix the GUS driver so that it will initialize properly from power-on...
no more DOS boots to start it up.

Simply did a localized nuke of the OUTB macro in this file.  This is
a kludge, since it seems it may actually be necessary in other GUS
files (tbd).

Thanks to: Amancio Hasty & Ken Hornstein
1995-01-04 20:07:27 +00:00
Andrey A. Chernov bf9b664faa Add missing "noflush" option from standard rogue 1995-01-04 17:49:28 +00:00
Jordan K. Hubbard 2511bc4a15 Put depends before configure. No reason that I can see for putting it after,
and it breaks mule the way it is now.
1995-01-04 09:58:39 +00:00
Jordan K. Hubbard bb3c97bf74 Some of the doc here was less than adequately fleshed-out. Make some
feeble attempt to do so.
1995-01-04 08:30:33 +00:00
Jordan K. Hubbard 46911034c3 Add section 11 detailing new `describe' target. 1995-01-04 07:38:40 +00:00
Jordan K. Hubbard ad2a7583d6 Document describe target. 1995-01-04 07:35:46 +00:00
Jordan K. Hubbard 4e26ad2e2c 1. Add Thailand mirror.
2. Orthogonalize this thing to just use the basename.  It was a mixture of
   2.0-RELEASE and -current before, and it was just confusing.
1995-01-04 07:23:47 +00:00
Andrey A. Chernov 4c1a09c6d5 More info about UUCP 1995-01-04 01:53:38 +00:00
Jordan K. Hubbard 8829c73eb6 Add Sean Eric Fagan's support for a ~/.nofinger file for user who prefer
their privacy.
Submitted by:	sef
1995-01-04 01:02:43 +00:00
Jordan K. Hubbard 7c81f71c9c The ports collection FAQ.
Submitted by:	gpalmer & jkh
1995-01-04 00:43:35 +00:00
Jordan K. Hubbard f8c034f997 Updates from Peter da Silva to match the recent syslogd changes.
Submitted by:	pds
1995-01-04 00:40:38 +00:00
Nate Williams 65b94a0d72 Added new lib-tools target used in make world which rebuilds and
installs 'ar', 'nm', and 'ranlib' to avoid bootstrapping problems from
the old utils which don't support the long archive names.
1995-01-03 22:03:25 +00:00
Andrey A. Chernov de2b08724b Add 'news' user, present in group, but missed in master.passwd 1995-01-03 21:02:01 +00:00
Andrey A. Chernov 09b61a7a70 Upgrade 1995-01-03 17:25:13 +00:00
Andrey A. Chernov 8384611bea Merge 1995-01-03 17:22:35 +00:00
Andrey A. Chernov 69bee0e6f2 Upgrade 1995-01-03 17:18:21 +00:00
Andrey A. Chernov 07f055ac21 This commit was generated by cvs2svn to compensate for changes in r5360,
which included commits to RCS files with non-trunk default branches.
1995-01-03 17:18:21 +00:00
Bruce Evans f73f117cf0 Don't allow negative console numbers for the VT_WAITACTIVE ioctl. Use the
correct console number for the VT_WAITACTIVE ioctl.  Invalid console numbers
caused waiting on an invalid pointer.

Use bcopyw() instead of move_up() and move_down().  bcopyw() handles
overlapped copies and should be faster.  Actually use bcopy().  bcopy()
is slightly faster if video memory is 16-bit and about twice as fast if
it is 32-bit.  bcopy() is said to fail on someGA's, but syscons already
depends on it working for other accesses to video memory.
1995-01-03 16:56:05 +00:00
Gary Clark II 94b35ceafb Add Id tags to all FAQs. 1995-01-03 15:54:08 +00:00
Gary Clark II 0772155343 Begin reorg of FAQ directory. 1995-01-03 15:48:52 +00:00
Andrey A. Chernov 091611b3ab Remove adduser.conf & userids, not needed with new adduser 1995-01-03 12:02:05 +00:00
Jordan K. Hubbard c723fc3fc8 Add describe target support. 1995-01-03 11:52:01 +00:00
Jordan K. Hubbard 5cc75e1e12 Update adduser to version by Wolfram Schneider. Sorry, Gary, but his
adduser is a Cadillac to your Volkswagen.. :-)
Submitted by:	[email protected]
1995-01-03 09:46:14 +00:00
Jordan K. Hubbard c4cab716b9 From Gene Stark:
If nd->swap_nblks is zero in nfs_mountroot(), then the system
       comes up without initializing swapdev_vp to an actual vnode pointer.
       The swap pager assumes a non-NULL value for swapdev_vp.

       The fix is to try initializing local swap if no NFS swap space
       is specified.
1995-01-03 07:44:10 +00:00
Bruce Evans b57826604c Install bsd.info.mk. 1995-01-03 06:32:10 +00:00
Bruce Evans 37e52b59cc Use sufficient parentheses in macros.
Remove bogus input operands for fnsave(), fnstcw() and fnstsw().

Change all fwait's to fnop's.  This might help avoid hardware bugs.
Wait after fninit with an fnop.  This should be safer now.

Fix some spelling and formatting errors.

Use natural sizes for control and status words (u_short, promotes to int).

Don't clobber the SWI_CLOCK_MASK bits in npx0_imask when using IRQ13.

Set the devconf state correctly (always busy, if configured).  Improve
code for npx_registerdev() a little (gcc can't keep id->id_unit in a
register for some reason).  Don't register a nonexistent npx device.

Print a useful message in npxattach() again (delete references to errors
and not the whole message).  Don't print "387 emulator" if there is no
emulator in the kernel.

Use %p for pointers in error messages.

Don't clobber the FPU state when there is an FPU exception.  Just clear
the exception flags (after saving the flags as before).  This allows
debuggers and SIGFPE handlers to look at the full exception state.
SIGFPE handlers should normally return via longjmp(), which restores a
good FPU state (as before).  Returning from a SIGFPE handler may leave
the FPU in the wrong state (as before).

Clear the busy latch _after_ clearing the exception flags so that there
is less chance of getting a bogus h/w interrupt for a control operation.

Clear the saved exception status word when the next FPU instruction is
excuted so that it doesn't stick around until the next exception.

Clear the busy latch after fnsave() in npxsave() in case it was set when
npxsave() was called.
1995-01-03 04:00:06 +00:00
Bruce Evans d5ebbddc5e Replace sv_ex_tw by padding (it is no longer used; the tag word in sv_env
is valid).

Expand comment about bogus padding for emulators.

Update prototpe for npxinit().
1995-01-03 03:57:46 +00:00
Rodney W. Grimes 8546c86b55 Add usr/share/perl/sys to mtree file, remove private mkdir from Makefile. 1995-01-03 02:57:53 +00:00
Andreas Schulz 832f3afd12 Submitted by: Ben Jackson
just a missing newline in a kernel printf added.
1995-01-02 22:56:00 +00:00
Søren Schmidt 0e12ebca48 Syscons keymap file for french keyborad layout.
Submitted by:	Ollivier Robert
1995-01-02 13:09:36 +00:00
Bruce Evans 0a51c0612a Use new bsd.info.mk to avoid local rules and fix bugs in all' and depend'
targets.
1995-01-02 12:28:56 +00:00
Bruce Evans 71e8daee66 A generalized version of revision 1.1 of gnu/libnexex/uucp/doc/Makefile.
Fixes bugs in the latter: the `all' target was never up to date; there
was no `depend' target.  Doesn't work for multiple info files because
it leverages bsd.doc.mk and that is broken.  Info should be installed
more like man pages...
1995-01-02 12:12:00 +00:00
Joerg Wunsch 08e9e0741b The -N option takes one argument, hence the getopt control string
needs to have a colon for it.  Looks like nobody has tested this
so far.
1995-01-02 12:08:06 +00:00
Joerg Wunsch e02a6ccb4e Heavily re-worked.
Updated to 2.0 .

Included sections about how to use DDB, post-mortem analysis of
a kernel crash where you didn't anticipate it and therefore
didn't config -g it.  Added a real-world example of a kgdb session.
1995-01-02 12:01:59 +00:00
Andreas Schulz 5cf1ec501a Correct the usage of the maxmaxcode so that compress -b 12 works again.
Thanks to Dave Rivers for reporting that problem.
1995-01-02 10:04:02 +00:00
Andrey A. Chernov 8abfb51a90 Add doc to subdirs 1995-01-01 21:58:01 +00:00
Andrey A. Chernov c987ec8ecd Install info pages now 1995-01-01 21:55:23 +00:00
Bruce Evans 85ae1cf1dc Remove `MKDEP= -p'. Now I know why lkm compiled so fast after headers
are changed.
1995-01-01 21:11:55 +00:00
Rodney W. Grimes 1f2cdfec28 Add missing ${DESTDIR} so that the library ends up in a release.
Remove mkdir -p, this is handled by make hierarchy.
Add NOOBJ= to override obj: target, and remove local obj: target.
1995-01-01 20:30:56 +00:00
Andrey A. Chernov c9c9b4072b Preset ac_cv_path_CC="${CC}" before running ./configure,
needed for Autoconf 2
1995-01-01 20:06:20 +00:00
Bruce Evans 9fb166971e Change adduser to adding_user in Makefile too.
I hate cvs's (nonexistent) handling of name changes
`cvs log adding_user.8' fails to show any relation to adduser.8...
1995-01-01 17:31:01 +00:00
Bruce Evans 47bcf800c3 Fix previous commit. Installing links to manpages without installing
manpages is not completely trivial.

Please don't commit untested changes.
1995-01-01 17:21:09 +00:00
Bruce Evans 2e8e965294 Fix previous commit. 1995-01-01 17:14:45 +00:00
David Greenman 84bcd8659a Possible fix for NE2000 problems...the remote byte count wasn't word
aligned even though the transfers are 16bit.
1995-01-01 06:38:14 +00:00
David Greenman c38c2f7f9b Get rid of unused variable. 1995-01-01 03:54:34 +00:00
Andrey A. Chernov 8c57ee9a12 Move BSD adduser manpage (procedure description) to adding_user.8
to not confuse with adduser.8 command
1994-12-31 22:53:41 +00:00
Gary Clark II b6490eb503 Add mlinks for man page
Reviewed by:
Submitted by:
Obtained from:
1994-12-31 21:10:46 +00:00
Andreas Schulz d3287e7c11 Change the errors in the XT_KEYBOARD patch. red in the face. Thanks Bruce. 1994-12-31 20:34:19 +00:00
Justin T. Gibbs 53a69701bc Handle both channels of Twin channeled devices. Respect the configuration
values for syncronous negotiation.  The 284x series adaptors can now be
supported without the Bios being enabled.  If you disable the Bios on the
274x series adaptors, all configuration parameters revert to the default
since there is no way to retrieve them.
1994-12-31 19:31:56 +00:00
Justin T. Gibbs 58e4304e3d Handle the aic7770 driver's dependancies correctly.
YOU MUST REBUILD CONFIG.
1994-12-31 19:27:29 +00:00
Justin T. Gibbs 8ff1d93efb Update the sequencer code to handle both channels of Twin channel devices.
You can now sling 14 devices off of a 274xT.  In the process of adding
twin channel support, I removed all evident restrictions on supporting
Wide channeled devices, but I do not have a Wide controller to test them
on.

aic7770_seq.h, the pre-compiled header, is no longer needed since config
handles this dependancy.
1994-12-31 19:26:54 +00:00
Justin T. Gibbs 528486881b Allow config to fully handle the aic7770 driver dependancies. 1994-12-31 19:23:10 +00:00
Andreas Schulz 02cb5cc4bf Add the sys/types.h include to the necessary documented includes for the
getrusage call.
1994-12-31 18:50:57 +00:00
Jordan K. Hubbard 00ed485bc4 Really provide support for 3COM cards now.
Submitted by:	wpaul
1994-12-31 17:16:50 +00:00
Jordan K. Hubbard 95da7f140e Another part of Bill Paul's fix to swapgeneric to properly use the -a flag.
Submitted by:	wpaul
1994-12-31 17:15:16 +00:00
Jordan K. Hubbard dd4a485085 From Bill Paul:
- /sys/i386/i386/swapgeneric.c is just plain broke. But fear not, for I
  have unbroken it. One thing that swapgeneric.c does is walk through the
  list of configured devices searching for a boot device. The only easy
  way to accomplish this in 2.0 is to use Garret Wollman's kern_devconf
  stuff. *BUT*, the head of the kern_devconf linked list (dc_list) is declared
  static in /sys/kern/kern_devconf.c. This means that swapgeneric.c can't
  see it at link time. I had to remove the 'static' keyword to get around
  this little problem. I hope this doesn't break anything anywhere.

  *Furthermore,* there's a small matter of making the call to setconf()
  in swapgeneric.c disappear when 'config kernel swap generic' isn't used.
  You could change /sbin/config to create a dummy setconf() function in
  swapkernel.c, but that seems messy somehow. (It's also someting of an
  'it isn't broken, why are you fixing it' situation.) My solution was to
  do what the NetBSD people did and put an #ifdef GENERIC around the call
  to setconf(). If your kernel is called GENERIC or you define 'options
  GENERIC,' then you can use 'config kernel swap generic' and it'll work.

  That aside, the upshot is that: a) swapgeneric.c actually works, and
  and b) the -a boot flag now works as well. If you boot with -a, as in
  "Boot: wd(0,a)/kernel -a" you will be presented with a 'root device?'
  prompt after the autoconfig phase, at which point you can specify what
  device you want mounted as root. Regrettably, you can't specify an NFS
  filesystem. Yet. Three files are affected: /sys/i386/i386/swapgeneric.c,
  /sys/i386/i386/autoconf.c and /sys/kern/kern_devconf.c.

Submitted by:	wpaul
1994-12-31 17:11:59 +00:00
Jordan K. Hubbard 63c5d14d1b Miscellaneous changes from Bill Paul:
- /sys/i386/isa/if_ed.c doesn't quite know how to deal with SMC EtherEZ
  ethernet cards. The EtherEZ looks just like the Elite Ultra, except it
  has only 8K of shared memory. The only way to have it properly detected
  is to zero and test a few bytes of memory just about the first 8K region.
  If it clears properly, it's an Elite Ultra, otherwise it's an EtherEZ.

  I've also got an EtherEZ patch for netboot (Makefile, ether.c and ether.h).

- /sys/i386/isa/syscons.c wraps at the next to the last column rather than
  the last column, like it should. You don't really notice this unless you
  use certain programs that write all the way out to, say, the 80th column,
  like VMSmail. Along with a one-line fix for this are some changes to
  implement a non-blinking cursor. Put 'options "NOBLINK_CURSOR"' in your
  config file and give it a try. :)

Submitted by:	wpaul
1994-12-31 17:09:58 +00:00
Bruce Evans 19bc776351 Add more segment registers to list of registers (fake for %fs and %gs).
This might be useful for debugging applications that use a special LDT.
However, printing of all segment registers is currently broken.

Don't print "last exception: " before the FPU opcode and pc, etc.  The
opcode and pc, etc., are for the last FPU _instruction_.

Pass the saved exception status word to print_387_status() so that the
exception(s) that caused or will cause a trap can be seen.  The kernel
has supported this since 1.1 or before.  The kernel still clobbers the
tag word if a trap occurs.

Remove unused null function clear_regs().
1994-12-31 17:00:09 +00:00
Bruce Evans ccd05d4df4 Fix declaration of i386_float_info(). 1994-12-31 16:56:43 +00:00
Bruce Evans 9d1e3dc7d8 Restore our local changes which were clobbered by the previous commit.
cvs is not being used effectively for gdb.  Our old changes get clobbered
and our new changes are mixed with "vendor" changes in the same updates
so they will be difficult to untangle for the next release of gdb.  The
revision logs get spammed for each release of gdb.
1994-12-31 16:34:59 +00:00
Bruce Evans fcb54b3ee0 Hide yet another redefinition of PAGE_SIZE. Cosmetic. 1994-12-31 16:16:27 +00:00
Bruce Evans bdeaa9bbc3 Restore our (cosmetic) local changes which were clobbered by the previous
commit (do them slightly differently).
1994-12-31 16:14:13 +00:00
Jordan K. Hubbard 86dccd9394 From: Luigi Rizzo <[email protected]>
Would you please commit this two-line patch to /sys/i386/isa/b004.c
(the Transputer driver) so that it at least compiles under 2.x
Haven't tried if the driver is working properly, but a kernel with
compiled-in driver has been running for two days now with no apparent
problems.
Submitted by:	luigi
1994-12-31 12:32:59 +00:00
Andrey A. Chernov 3006712148 Reflects $HOME dir handling 1994-12-31 12:32:01 +00:00
Andrey A. Chernov 16e544e7a1 Fix problem when attached process detached
Submitted by: Gary Jennejohn
1994-12-31 12:26:50 +00:00
Andrey A. Chernov 31e98e3f62 Fix for two problems:
Calendar not cd $HOME when running by user
Calendar calls cpp with # lines allowed
1994-12-31 12:15:27 +00:00
Andrey A. Chernov eaa803797b Remove direct keypad 5 to \E[E remapping, unnecessary now 1994-12-31 11:52:50 +00:00
Andrey A. Chernov 48897b90ef Changes to allow keypad 5 produce \E[E like SCO/ANSI term does 1994-12-31 11:49:12 +00:00
Andrey A. Chernov 1af33e5a7a Changes to allow keypad 5 produce \E[E like SCO/ANSI term does 1994-12-31 11:38:39 +00:00
Andrey A. Chernov f4221a73c3 Change ${COPY} to -c, always needed here 1994-12-31 11:13:52 +00:00
Andrey A. Chernov 71d5664cdc Change ${COPY} to -c, always needed here
Remove manpage reference to BSD adduser, add pwd_mkdb reference
1994-12-31 11:12:35 +00:00
Jordan K. Hubbard 31455121d5 Fix:
>Number:         86
>Category:       misc
>Synopsis:       fixit.conf missing srcdir
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    core (FreeBSD core team)

From John Capo.
Submitted by:	jcapo
1994-12-31 05:36:40 +00:00
Jordan K. Hubbard 669fbfeff8 Add seagate driver manpage from Serge Vakulenko ([email protected]) .
Submitted by:	serge
1994-12-31 05:33:56 +00:00
Jordan K. Hubbard 10bfdf2bae From: "Serge V.Vakulenko" <[email protected]>
This is new version of Seagate ST01/02, Future Domain TMC-885, TMC-950
SCSI driver for FreeBSD.  I started from the 2.0R version and mostly
rewrote it.  New features are:

1) New probe algorithm.  Old driver read the BIOS region of the adapter
   memory and find the copyright string.  The problem was in the BIOS itself:
   it conflicted with IDE disks.  The solution was to unplug it and
   make the probe algorithm to work without it.
2) Proper timeout handling in numerous places where the driver
   polls waiting for some event.
3) Assembler flagments added in critical places, mostly for data transfer
   to of from the target.  It was possible to make it faster,
   but at the price of decreasing reliability.
4) Target-dependent delays when waiting for REQ deassert event.
   Some devices seem to be slower (CD-ROMS, some tape drives),
   and some seem to be too fast (disks).  The driver tests the REQ
   deassert timeout for each target and then uses it for polling.
5) Device flags added for SCSI parity control and sense request
   priority control.
6) Generic cleanup, after which the driver became much more readable
   (at least by me:).
7) Target data parity error logging is limited to avoid log file overflow.
8) Manual page added.

Submitted by:	serge
1994-12-31 05:31:48 +00:00
Jordan K. Hubbard 556751c1e8 Add David River's patch fix to use the passed in number of bits (-b <n>)
properly.
Submitted by:	rivers
1994-12-31 04:40:52 +00:00
Jordan K. Hubbard 3c8ea7601e Bring in the files added by Gary Jennejohn's gdb update.
Submitted by:	gj
1994-12-30 23:33:10 +00:00
Jordan K. Hubbard 01db5e69c1 Hurrah! Let the champagne flow, the olive oil barrel be opened and
the wild, slippery orgy commence!

Gary Jennejohn, too studly for his own good, has finally come through with
the new, improved gdb 4.13.  This gdb features:

o	kgdb support - if this works (and I urge folks to test it), we can
	finally purge the old and hateful version of kgdb from our source
	tree.

o	attach/detach support.  See comments in README.FreeBSD for more
	details.

o	Well, it's newer.  Our previous version was 4.11.

Comments and flames to gj, of course! :-)

Thanks, Gary.  Much appreciated.  The previous state of gdb/kgdb has been a
thorn in all of our sides for some time..
Submitted by:	gj
1994-12-30 23:27:33 +00:00
Jordan K. Hubbard 2558753d2e Tweak the man page too. 1994-12-30 22:51:33 +00:00
Jordan K. Hubbard a309172130 From: Wankle Rotary Engine <[email protected]>
- The -a flag now works just as it does in SunOS: '-a' is actually
  handled like a wildcard for all interfaces. 'ifconfig -a' displays
  the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets
  the netmask of all interfaces, and so forth. I don't know if many
  people really need to be able to set the netmasks of all interfaces
  at once, but the SunOS ifconfig seems to allow this, so there you
  have it.

- An 'ether_status' function has been added to display the ethernet
  address of all ethernet interfaces. Again, as in SunOS, you must
  be root in order for this to work. The ethernet address is read
  from /dev/kmem using kvm_open() and kvm_read(), much in the same
  was as it's done with netstat. If you choose to install ifconfig
  set-gid kmem then normal users will be able to see the ethernet
  address as well, though this may not be desireable. This feature
  requires a small change to the ifconfig Makefile: you need to link
  with -lkvm in order to use the kvm_*() functions.

Submitted by:	wpaul
1994-12-30 22:42:41 +00:00
Andrey A. Chernov f3392428da Add check for writeable terminal
Submitted by: [email protected] (and slightly modified)
1994-12-30 16:09:31 +00:00
Andrey A. Chernov 54b77925ee Remove unneded kbdcontrol from SUBDIRS
Submitted by: [email protected]
1994-12-30 15:44:32 +00:00
Andrey A. Chernov 80aea1ca5e Cleanup. 1994-12-30 15:40:11 +00:00
Andrey A. Chernov 99e4807ade Remove extra targets per Bruce suggestion.
Use more macros instead of hardcoded things
1994-12-30 15:38:04 +00:00
Andrey A. Chernov 7ccdf7da4c Upgrade from new bash 1994-12-30 14:39:39 +00:00
Bruce Evans 7658fd20d7 Don't strip off the last slash in the pathname "/". cp used to
stat the pathname "" in order to decide that the pathname "/" is
a directory.  This caused `cp kernel /' to fail if the kernel has
the POSIX behaviour of not allowing the pathname "" to be an alias
for ".".  It presumably also caused `cp /etc/motd /' to fail in
the unlikely event that "." is not stat'able.

Be more careful about concatenating pathnames: don't check that
the pathname fits until prefixes have been discarded (the check
was too strict).  Print the final pathname in error messages.
Terminate the target directory name properly for error messages.
Don't add a slash between components if there is already a slash.
1994-12-30 13:12:12 +00:00
Bruce Evans 43469be308 icu.s:
Move definition of `stat_imask' to clock.c.

clock.c:
Rename `rtcmask' to `stat_imask' and export it.  Rename `clkmask' to
`clk_imask' for consistency.

Only calculate TIMER_DIV(hz) once.

Merge debugging and "garbage" code to produce debugging code and format the
output better.

Make writertc() static inline and use it everywhere.  Now all accesses to
the clock registers go through rtcin() and writertc().

Move rtc initialization to cpu_initclocks().

Merge enablertclock() with cpu_initclocks() and remove enablertclock().
The extra entry point was just a leftover from 1.1.5.
1994-12-30 12:43:35 +00:00
Bruce Evans 06ea59471c spl.h:
Don't calculate imask for splstatclock() every call.

Remove declaration of nonexistent variable `high_imask'.

Sort declarations of imasks and spl's.
1994-12-30 12:42:15 +00:00
Bruce Evans 62f603b64d Change an 0 to WHOLE_DISK_SLICE. 1994-12-30 12:19:11 +00:00
Bruce Evans 2336b9d7d7 Print "(null)" instead of "<null>" for NULL string args for consistency
with the libc and ddb printf's.

Print "(fmt null)\n" for NULL formats.
1994-12-30 12:17:42 +00:00
Andrey A. Chernov 33148aa5e7 Change man section 1994-12-30 12:15:39 +00:00
Andrey A. Chernov e3763702e6 Oops, rename adduser.sh to adduser.perl
Add empty clean and obj targets.
1994-12-30 12:13:08 +00:00
Andrey A. Chernov 4298bedc38 Yet one cleanup 1994-12-30 12:03:48 +00:00
Bruce Evans cac3ff6bba Avoid compiler warnings for overflow in ~(__LDPGSZ - 1). 1994-12-30 08:06:19 +00:00
Bruce Evans 1365ed99fb Clean up previous commits (format for 80 columns...). 1994-12-30 08:02:16 +00:00
Bruce Evans 7010a8abed Save 16 bytes of data by not explicitly initializing to 0. 1994-12-30 07:48:07 +00:00
Bruce Evans b367f6bf5f Fix everything. 1994-12-30 07:18:23 +00:00
David Greenman 73c2ab4621 Moved declaration of ifnet pointer out of the header file and into the
.c file where it belongs. Bezeroed some uninitialized malloc data.
1994-12-30 06:46:21 +00:00
David Greenman 5197faa894 Fix specification of octal constants.
Submitted by:	John Beukema <[email protected]>
1994-12-30 05:38:14 +00:00
Garrett Wollman d9dc765848 Extend syslogd to allow selection of log destinations by program.
Use getbootfile() to determine the kernel name.

Submitted by: Peter da Silva
1994-12-29 22:02:25 +00:00
Jordan K. Hubbard 71f82b4c91 Nuke out gratutious newlines. 1994-12-29 20:09:59 +00:00
Jordan K. Hubbard 21e19d0143 More changes to the FAQ, just to annoy Ollivier.. :-) 1994-12-29 16:42:10 +00:00
Gary Clark II c6fc9f62f9 Changed my copyright back. Too many problems with new one. 1994-12-28 17:27:21 +00:00
Andrey A. Chernov 19f1105992 Fix compiler warnings about tputs argument 1994-12-28 14:30:19 +00:00
Andrey A. Chernov f4c05c7fcb Fix bug with printing out short archive entries,
incorrect padding
1994-12-28 14:11:21 +00:00
Andrey A. Chernov b2c473eaec adduser added 1994-12-28 14:00:11 +00:00
Andrey A. Chernov 6e06f9d01b Add adduser.conf & userids 1994-12-28 13:54:06 +00:00
Andrey A. Chernov 7a9bf0aeb8 Fix configfile path 1994-12-28 13:49:55 +00:00
Andrey A. Chernov 36e94efd67 Move conf files to src/etc 1994-12-28 13:47:31 +00:00
Andrey A. Chernov 59f2357c5c Move adduser configuration files here 1994-12-28 13:45:47 +00:00
Andrey A. Chernov 0cd388e6aa Additional longname fix
Submitted by: [email protected]
1994-12-28 13:19:39 +00:00
Gary Clark II 0b102aed10 Add makefile for adduser.
Would a makefile guru please look this over to make sure I did this right?
1994-12-28 07:35:09 +00:00
Gary Clark II 4baf40c2ef Add Id strings 1994-12-28 07:11:29 +00:00
Gary Clark II 6f91ec858d Adding my adduser command. I only have to add a makefile for it to
be compleate.
1994-12-28 06:55:42 +00:00
David Greenman 8f5067ba28 Make printf() a bit more robust and allow NULL strings (print them as
"<null>"). It bad to have diagnostic printfs cause panics when they are
trying to tell you about another problem.
1994-12-28 06:28:34 +00:00
David Greenman be6a1d148e Fixed multiple bugs that cause null pointers to be followed or FREEed data
to be accessed if a process blocks when it is being run down.
1994-12-28 06:15:08 +00:00
Andrey A. Chernov 1974136822 Oops, forget "" for ${CC} and ${CFLAGS}... 1994-12-28 04:17:54 +00:00
Andrey A. Chernov 95f1b49e83 Set proper INSTALL* variables before running ./configure 1994-12-28 04:14:19 +00:00
Andrey A. Chernov c74995075b Move INSTALL?=install line duplicated into each .mk to sys.mk
instead
1994-12-28 03:51:03 +00:00
Andrey A. Chernov af87f3630b Use CFLAGS=${CFLAGS} ./configure to avoid picking dumb GNU -g default 1994-12-28 03:30:21 +00:00
Andrey A. Chernov e887886391 Use "CC=${CC} ./configure" to avoid usage of debugging 'gcc' 1994-12-28 03:21:16 +00:00
Jordan K. Hubbard 57d7186a4c Sigh.. Finally add a 6.0 section on what you need to do to actually
configure a new kernel.
1994-12-28 02:39:29 +00:00
Andrey A. Chernov 0cd1222834 Remove -T from ar, nm fixed now 1994-12-28 00:49:58 +00:00
Andrey A. Chernov 8ddd408a2e Fix for handling long archive names
Submitted by: [email protected]
1994-12-28 00:47:24 +00:00
Andreas Schulz 5c0ca64ca0 Submitted by: John Capo
Bogus pstat usage message from pstat:
usage: pstat -Tfnstv [system] [-M core] [-N system]

[system] is not mentioned in the man page and I don't
see where it is used in the code either.
Added also a [] around the first options to show them as optional, ATS.
1994-12-28 00:47:03 +00:00
Jordan K. Hubbard b4314abf31 Bring the 2.0 RELEASE version back into -current. Now I just need
to resurrect my changes for the last snapshot, which were unfortunately
lost in a forest fire on time.
1994-12-27 23:26:59 +00:00
Bruce Evans 62a1ce7ac9 Document the arch flag. It has always worked in 2.0.
Document aliases for the flags.

The formatting of the section describing the flags is poor.
1994-12-27 16:49:08 +00:00
Bruce Evans 59f08b8ba7 Use the same current time throughout ffs_update().
Update some macro names in comments.

Don't use MNT_WAIT for something not related to mounting.
1994-12-27 14:44:42 +00:00
Bruce Evans e4bebee03e Use the same current time throughout ITIMES(). I want all current
timestamps for an atomic operation such as rename() on a local file
system to be identical.

Uniformize yet another idempotency ifdef.  The comment nesting was
bogus.
1994-12-27 13:59:14 +00:00
Bruce Evans 75b6d64b84 fixunsdfsi.S:
Embalm.  Rewrite to do things much the same as gcc-2: use fistpq for speed
and elegance, and mishandle overflow consistently.  __fixunsdfsi() is no
longer called by gcc.
1994-12-27 13:37:38 +00:00
Bruce Evans 08747772a2 sigsetjmp.S:
Remove unnecessary .text statement.
1994-12-27 13:34:04 +00:00
Bruce Evans 1fe9751525 Remove unnecessary .align statement. 1994-12-27 13:33:03 +00:00
Bruce Evans be0264b945 Fix a spelling error and add a comment about possible improvements. 1994-12-27 13:12:34 +00:00
Bruce Evans 0c4fe20e8a Keep track of the devconf state. 1994-12-27 13:07:07 +00:00
Bruce Evans a176f73d19 Fix panic for `cp -p' by root to an msdos file system. Improve handling
of attributes so that `cp -p' to an msdos file system can succeed under
favourable circumstances (no uid or gid changes and no nonzero flags
except SF_ARCHIVED).

msdosfs_vnops.c:
The in-core inode flags were confused with the on-disk inode flags, so
chflags() clobbered the lock flag and caused a panic.

denode.h, msdosfs_denode.c, msdosfs_vnops.c:
Support the msdosfs archive attibute (ATTR_ARCHIVE) by mapping it to
the complement of the SF_ARCHIVED flag and setting the ATTR_ARCHIVE
bit when a file's modification time is set (but not when a file's
permissions are set; this is the standard wrong DOS behaviour).

denode.h, msdosfs_denode.c:
Remove the DE_UPDAT() macro.  It was only used once, and the corresponding
macro in ufs has already been removed.

denode.h:
Don't change the timestamp for directories in DE_TIMES() (be consistent
with deupdat()).

msdosfs_vnops.c:
Handle chown() better: return EPERM instead of EINVAL if there are
insufficient permissions; otherwise, allow null changes.
1994-12-27 12:37:36 +00:00
David Greenman 2048dd682c Fixed two security holes in the pcmmap() function.
Submitted by:	Bruce Evans
1994-12-27 08:43:06 +00:00
Andreas Schulz 04dc4fc21c My prevoius commit missed some things. The out_line didn't need
to be padded to 8 chars. Simply make sure that never more than 8 chars
are printed ( %-.8s ). The former commit otherwise hosed the width
calculation and landed on different positions for the time output.
Also the strlen(xx_out_line) hoses the wide
calculation, so that it sometimes make it much larger than necessary.
Simply use always 8 chars for the out_line calculation now. Looks good
this way.
1994-12-27 00:53:14 +00:00
Andreas Schulz d5a22d48c4 Install also a gcc.1 manual page as a link from cc.1, as long as
we have the link cc to gcc.
1994-12-26 19:15:19 +00:00
Andreas Schulz 3c8f8257cd Add a patch that someone on the net has used to run on his IBM Thinkpad.
Sorry, lost the name and mail of the original author. The whole patch
is ifdefed, so it should not disturb someone else in the moment.
1994-12-26 17:50:18 +00:00
Andreas Schulz 2d85986466 Add examples for the sony and the panasonic drivers. 1994-12-26 17:33:52 +00:00
Andreas Schulz 9066320224 The out_line doesn't need to be zero terminated, so print it not with %s
but with a %-8.8s instead. this prevents funny output, if the out_line
contains a long hostname that is larger than 8 chars.
1994-12-26 17:29:03 +00:00
Bruce Evans 61233bdc2e Obtained from: partly from 1.1.5
Convert "" to "." for "cd" and "cd ''".  chdir("") is required to fail
on POSIX systems.
1994-12-26 13:02:05 +00:00
Bruce Evans abdf111953 Obtained from: partly from 386BSD-0.1.2.4
Fix several bugs involving the obsolescent -d and -t options:
-d 0 and -t 0 were ignored
-t -600 was a usage error
-d 'atoi is not suitable for parsing args' and -t duh were not usage errors

Change some error messages to say which call to settimeofday failed.

Restore casts of NULL in function calls.

Finish conversion to using err() instead of perror().
1994-12-26 12:59:28 +00:00
Andrey A. Chernov 937b5aaa3b Use timelocal() instead of mktime() hack 1994-12-26 10:43:48 +00:00
Andrey A. Chernov 8c2f5ad758 Declare useful functions (timelocal() and timegm()) 1994-12-26 10:19:41 +00:00
Andreas Schulz 8c2f8d0653 Correct the devices.i386 for the major numbers. 8 was already used now
by the lkm driver, so put scd and pcd to the numbers they have now
in i386/conf.c.
Add the pcd.c file for the panasonic driver in files.i386.
1994-12-26 01:06:41 +00:00
Andreas Schulz 60ecea7924 Add entries for the sony and panasonic drives and drivers. 1994-12-25 23:25:54 +00:00
Bruce Evans 6424ff77c2 Fix the bug reported by Torbjorn Granlund <[email protected]>:
The documentation for mrand48 and lrand48 is mixed up.
mrand48 returns a full 32 bit number, while lrand48 only returns
31 bits.
1994-12-25 15:33:39 +00:00
Andreas Schulz c8ac34903c Add entries for the sony and panasonic drives. The not SCSI and not EIDE
drives :-).
1994-12-25 15:08:29 +00:00
Andrey A. Chernov beae072bc9 Merge several probe diagnostics into one.
Adjust for newer model for all non-LUxxx too.
FLAGS status register names cleanup
1994-12-24 13:24:02 +00:00
Bruce Evans 82189b149e Fix comments on dk_wds and dk_wpms to match code. Improve comment on
dk_time.
1994-12-24 10:11:18 +00:00
Andrey A. Chernov 53df92ac8d Add T option back to ar until nm will be fixed. Sorry, nate. 1994-12-24 10:07:51 +00:00
Bruce Evans 9834a1b204 Fix the "wds" count stat. 1994-12-24 09:48:32 +00:00
Bruce Evans 11fa0751bc Fix the "wd" count stat. The seek and xfer stats are still very bogus
for wd (they both count the number of sectors).  The wpms stat is still
moderately bogus for all drivers.  Even the count stat could be handled
better (partial blocks should be counted as full blocks; should errors
and retries be counted?).
1994-12-24 09:43:12 +00:00
Bruce Evans 026c9b2ce6 Really fix the "byte" count stat. `wd's are actually blocks of 32 16-bit
words in dkstat-speak.  `ms's are seconds in dkstat-speak...
1994-12-24 09:19:00 +00:00
Bruce Evans 13d7c724ca Obtained from: 1.1.5
Fix single-stepping of emulated FPU instructions.

Don't panic if an FPU instruction is attempted but there is no FPU
and no FPU emulator is configured.
1994-12-24 07:22:58 +00:00
Andrey A. Chernov bf2d4aa003 Merging.
v1.9.0 - December 22, 1994.  The program won't exit from the interactive shell
  if it's working from a tty.  For example, it won't exit if you do an mget
  on a pattern that won't match anything.  Added padding around jmp_buf's
  for SunOS.  SunOS needs sigjmp_buf's, but plenty of OS's don't support
  sigjmp_buf's yet.  Fixed the tips to reflect the new archive site.

v1.8.9 - December 20, 1994.  Can now set "passive" user variable, or use
  passive command to toggle PASV/PORT ftp.  Debug mode now prints remote
  responses.  Can now get around buggy FTP servers like boombox.micro.umn.edu,
  that give back invalid port numbers to PASV.

v1.8.8 - December 19, 1994.  Now falls back to port FTP if passive FTP fails.
1994-12-24 01:15:19 +00:00
Andrey A. Chernov 9b786fc227 Update 1994-12-24 01:01:48 +00:00
Andrey A. Chernov 8476490bd2 This commit was generated by cvs2svn to compensate for changes in r5216,
which included commits to RCS files with non-trunk default branches.
1994-12-24 01:01:48 +00:00
David Greenman 55c4727190 Revert last patch - it's wrong. 1994-12-23 23:03:32 +00:00
Nate Williams 7edb8c9b99 New file from pk to aid new in developing the shlib code for new
architectures.

Obtained from: NetBSD
1994-12-23 22:56:08 +00:00
Nate Williams 637cb583c9 Subject: ranlib fix for odd length long final file names (PR #82)
Submitted by:	Peter Dufault <[email protected]>
1994-12-23 22:55:00 +00:00
Nate Williams 45f4664c72 Strip out unused local symbols from shared objects, and no longer
truncate archive members to 15 characters since it's no longer
necessary.
1994-12-23 22:50:45 +00:00
David Greenman be7b04cd7e Fixed byte count stat.
Submitted by:	John Dyson
1994-12-23 22:44:55 +00:00
Nate Williams b35481d443 Added link.5 man page and updated a.out.5 manpage to reflect the new
code.

Obtained from: NetBSD
1994-12-23 22:41:46 +00:00
Nate Williams 1603af0d3b Warning and weak reference macros which are used to generate link-time
messages.

Obtained from: NetBSD
1994-12-23 22:38:54 +00:00
Nate Williams de761939cf Updated version of gas which allows for link-time error reporting if
used in conjustion with the new shlib 'ld' source.  Note, if you use
the new features both gas and ld must be updated.

Obtained from: NetBSD
1994-12-23 22:37:45 +00:00
Nate Williams d27e9722db Document some of the fields used by the new shlib code.
Obtained from: NetBSD
1994-12-23 22:32:48 +00:00
Nate Williams 61f9ce8d32 Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD
1994-12-23 22:31:35 +00:00
Jordan K. Hubbard 3ed375cb27 Miscellaneous fixes for the snapshot. 1994-12-23 05:11:18 +00:00
David Greenman 45cbbb298d Do vm_page_rename more conservatively in rcollapse and qcollapse, and
change list walk so that it doesn't get stuck in an infinite loop.

Submitted by:	 John Dyson
1994-12-23 05:00:19 +00:00
David Greenman 7609ab12e4 Initialize b_vnbuf.le_next before returning a new buffer in getpbuf and
trypbuf. Move a couple of splbio's to be slightly less conservative.
1994-12-23 04:56:51 +00:00
David Greenman 602d2b481a Protect vnode buffer chain manipulation with splbio to prevent list
corruption..
1994-12-23 04:52:55 +00:00
Jordan K. Hubbard 66a5b326e1 Whoops! I buggered up the tape dialog. Fixed. These changes allow
you to specify your tape drive device for the cases when the user
has more than one.
1994-12-23 03:30:02 +00:00
Jordan K. Hubbard 927a6f682e Fix a typo that crept in with the last update. 1994-12-23 02:55:07 +00:00
Jordan K. Hubbard f1df762392 Even more bogons eradicated. My, there are a lot of them in here! :-) 1994-12-23 02:25:32 +00:00
David Greenman edd5a4af47 Restore my changes in rev 1.11 that Garrett killed in his commit. 1994-12-22 23:42:25 +00:00
Garrett Wollman b2774d00ad Make arp_rtrequest() static since nobody needs to referene it any more. 1994-12-22 22:00:30 +00:00
Garrett Wollman dd2e410221 Move ARP interface initialization into if_ether.c:arp_ifinit(). 1994-12-22 21:56:22 +00:00
Jordan K. Hubbard 186c582fdf Whoops, another lurking bogon! 1994-12-22 21:34:36 +00:00
Stefan Eßer 9a3c07de07 Add support for -v option passed to boot loader (bootverbose).
Reviewed by:
Submitted by:
Obtained from:
1994-12-22 21:20:39 +00:00
Stefan Eßer 68d2fa1f21 Added SCSI_DATA_OUT to flags passed to the device driver in sd_dump()
since device drivers may decide not to accept a data out phase without
this flag present.
Submitted by:	Wolfgang Stanglmeier <[email protected]>
1994-12-22 21:18:48 +00:00
Garrett Wollman 59d8d13f60 Added `ds', a black-hole network interface. 1994-12-22 21:00:05 +00:00
Garrett Wollman d87bdc80f2 Added much-needed new options -[lL], to suppress printing of either the
call-graph or the flat profile, since often you only want one of them.
1994-12-22 20:52:15 +00:00
Jordan K. Hubbard 5af8c64327 Fix a slight bogon with a directory not being made before it was used. 1994-12-22 20:38:23 +00:00
Bruce Evans 14c28f38a8 Don't use `MKDEP= -p' even for the case of a single source file since we
always make an intermediate object file.
1994-12-22 17:20:52 +00:00
David Greenman 511cdd1649 Removed bogus semicolon at end of a #define line. 1994-12-22 07:20:03 +00:00
David Greenman 6f7bc393bb Fixed a benign off by one error. 1994-12-22 05:18:12 +00:00
Bruce Evans 222d875bec Print `slicename' and not a bogus pointer in diskerr() 1994-12-22 04:42:31 +00:00
Garrett Wollman 074c4a4e2e Add generic part of generic multiple-physical-interface support (the
successor of IFF_ALTPHYS).
1994-12-21 22:57:05 +00:00
Garrett Wollman b67268cfbc Disable UDP echo, chargen, date, and daytime services. 1994-12-21 20:32:44 +00:00
Garrett Wollman 71704f34b1 Disable UDP service looping attack. 1994-12-21 19:08:45 +00:00
Garrett Wollman b30cbe4a6b Add a #define for if_rawoutput(), which isn't used now, but eventually will
be.
1994-12-21 18:03:41 +00:00
Garrett Wollman f811ab0233 Avoid a serious race by blocking netisrs while walking the route tree.
(IWBRNI we could just block IP netisrs...)
1994-12-21 17:25:52 +00:00
Garrett Wollman 3c896bda76 Correct sysctl info so that net.inet.ip.rtexpire is actually accessible. 1994-12-21 17:23:59 +00:00
Andrey A. Chernov f8c32a9711 Remove get status from probe, confuse LU002
Add check stbytes[1] != stbytes[2] for presence real Mitsumi
controller
1994-12-21 15:17:59 +00:00
Andrey A. Chernov 0bda4f122a stbytes miss by one for new model 1994-12-21 15:12:41 +00:00
Andrey A. Chernov 8dac9202c0 Now crontab works not only for vi editor, i.e. refers to
file name not to file fd
1994-12-21 11:06:08 +00:00
Jordan K. Hubbard 4998acd354 Tweaks for the upcoming 2.1 installation. 1994-12-21 04:57:07 +00:00
Andrey A. Chernov 9502ca4baf Use proper serial device names 1994-12-19 02:02:47 +00:00
Andrey A. Chernov 11c5d06117 Use ASCII lock instead of BINARY one. 1994-12-19 01:57:17 +00:00
Andrey A. Chernov 338bca2c5e Use proper device names.
Remove fix-cua script, does nothing good.
1994-12-19 01:22:21 +00:00
Andrey A. Chernov 4fcbc726d9 Use proper dialout device name 1994-12-19 01:14:58 +00:00
Andrey A. Chernov dcb4550cb2 Uncomment uucpd by default, it is working and secure now 1994-12-19 01:11:19 +00:00
Andrey A. Chernov 67e5e9bc63 Use proper LOCKDIR name 1994-12-19 01:07:59 +00:00
Andrey A. Chernov 322c962402 Use proper lock dir name 1994-12-19 01:02:11 +00:00
Andrey A. Chernov b63b4cdb92 Skip nulls in putback to don't confuse with EOFs 1994-12-19 00:26:20 +00:00
David Greenman 6185408336 Don't ever clear B_BUSY on a pbuf (or any other flag for that matter).
This appears to be the cause of some buffer confusion that leads to
a panic during heavy paging.

Submitted by:	 John Dyson
1994-12-19 00:02:56 +00:00
Andrey A. Chernov 7c5eeb390e Make m4 more 8bit clean.
Don't use is*(EOF)
This fix core dump when LANG setted to 8bit wide charset
and ENABLE_STARTUP_LOCALE
1994-12-18 23:58:25 +00:00
Joerg Wunsch e72e8750d3 Insert a hook to initialize the serial port at the beginning of
boot().  This is needed so the "serialboot" stuff can share this file,
too.

Everything is #ifdef'ed so it evaluates to nothing when actually been
built in the "biosboot" directory.
1994-12-18 20:30:10 +00:00
Joerg Wunsch 2c681fc102 This became a frequently requested item now.
The files in this directory are modified version of "biosboot".  The
only difference is in that they perform their I/O via a serial port,
so their preferrable usage is to form bootblocks for systems where the
kernel happens to have an "options COMCONSOLE".  Most of the code is
actually shared with "biosboot", and make will not (and should not)
descend into this directory by default.  It is in the responsibility
of the user to build these bootblocks instead of the original ones.
1994-12-18 20:12:10 +00:00
Joerg Wunsch 0246a9d813 Initialize syscons also in cases where it ain't the system's console
(i.e., there's a comconsole).
1994-12-18 19:45:53 +00:00
Joerg Wunsch 91c38cb885 Ooops, i forgot one NVT > 0 in a previous commit. Now pcvt will also
work as the system's console.
1994-12-18 19:42:41 +00:00
Joerg Wunsch 00e82d39d7 Move the code providing the equivalent of ICRNL for console input from
the device driver(s) to cons.c.
1994-12-18 19:35:59 +00:00
Bruce Evans bf67b544a2 Pass the slice number of the boot device to the kernel in the previously
unused bitfields for the adaptor and the controller.  It should go in
the bitfield for the partition but that would not be backwards compatible.
1994-12-18 19:14:19 +00:00
Joerg Wunsch 34994fcd8e Make ls recognize the COLUMNS environmental variable, even
in cases where it does not run on a terminal.  This is important
e.g. for commands like

	env COLUMNS=132 ls -CR | lpr -Psome-wide-printer
1994-12-18 19:00:01 +00:00
Poul-Henning Kamp d9a2713bb5 Make sure we allocate at least 8 scbus if we allocate any at all. 1994-12-18 18:48:39 +00:00
Poul-Henning Kamp 40a97f50d4 > ../../i386/isa/if_le.c still has a mountain of warnings.. Anyone keen
> to fix?

Sure. How's this? -

Reviewed by:	phk
Submitted by:	Mark Murray <[email protected]>
1994-12-18 18:42:03 +00:00
Jordan K. Hubbard ffdd6a7267 src/bin/ed will never build DES encumbered ed again. That is the job
for secure/bin/ed ...
1994-12-18 15:15:10 +00:00
David Greenman 2b4e0927f6 Unbogify the size being passed to bzero when clearing struct softc. 1994-12-18 14:40:26 +00:00
David Greenman 94101b5208 Move page_unhold's in pmap_object_init_pt down one line to gard against
a potential race condition.
1994-12-18 14:16:22 +00:00
Guido van Rooij 4e32be0fb7 Add missing getdomainname manual page.
Reviewed by:
Submitted by:
Obtained from: 1.1.5.1 with a few modifictaions.
1994-12-18 14:06:39 +00:00
David Greenman 66ecebed58 Fixed multiple bogons with the map entry handling. 1994-12-18 13:58:41 +00:00
Guido van Rooij f81fcd410f Fix bug in sysctl_string so that when a string has a length that is to
short, it gets filled uop to its length. This matches the getdomainname
and gethostname manual pages.
(getbootfile also uses this function and I think it should have the same
behaviour)

This also fixes a bug with keyinit where the seed was not saved in
/etc/skeykeys. So S/Key should be fully functional again.

Reviewed by:
Submitted by:
Obtained from:
1994-12-18 13:56:50 +00:00
Jordan K. Hubbard 0a06ac68fe Move some obnoxious files: airport, birthtoken, flowers, na.phone & zipcodes
to the "dict" dist.
This is belived to reduce the risk of heart attacks in some european countries.
phk ristede runen.
1994-12-18 12:15:13 +00:00
Jordan K. Hubbard 76fe9b2793 Add a 'vn' to GENERIC 1994-12-18 12:01:40 +00:00
Jordan K. Hubbard 59d7c860ca Nuke bogus duplicate decls. 1994-12-18 11:59:37 +00:00
David Greenman 053bbc788c Fixed bug where statically allocated map entries might be freed to the
malloc pool...causing a panic.

Submitted by:	John Dyson
1994-12-18 10:28:40 +00:00
David Greenman dd0bd066e0 Change swapping policy to be a bit more aggressive about finding a
candidate for swapout. Increased default RSS limit to a minimum of 2MB.
1994-12-18 06:31:31 +00:00
David Greenman 931bde7f72 Check for PG_FAKE too in pmap_object_init_pt. 1994-12-18 03:36:27 +00:00
David Greenman d9b026fcbd Add two more page table pages to keep 64MB machines happy. 1994-12-18 03:11:46 +00:00
David Greenman 8a8d90d871 Fix possible off by one in b_save allocation size. 1994-12-18 03:05:49 +00:00
Andrey A. Chernov 2ef751df5e timedflags quoted
Submitted by: [email protected]
1994-12-18 01:21:51 +00:00
Andrey A. Chernov 8a081b7353 strip not close files on error
Submitted by: [email protected]
1994-12-18 01:18:17 +00:00
Gary Palmer 6d97ec5daa Put dummy targets for make-md5 & check-md5 inside a
NO_EXTRACT ifdef so that tcpblast doesn't muck
things up
1994-12-17 21:29:38 +00:00
Gary Palmer cf6be75886 bsd.port.mk: missing semicolon added
bsd.port.subdir.mk: added check-md5 as target
1994-12-17 20:50:44 +00:00
Jordan K. Hubbard e37a9fea8e Add a sanity-check for those building their own releases. 1994-12-17 12:38:09 +00:00
Jordan K. Hubbard fc0a941a94 Bump LINT's symtab space. 1994-12-17 08:37:22 +00:00
Jordan K. Hubbard faa84d7f2c Fix a few nasties in the conversion. 1994-12-17 08:36:50 +00:00
Jordan K. Hubbard cdf25f3740 Add Fred Cawthorne's GPIB driver.
Submitted by:	[email protected]
1994-12-17 08:07:03 +00:00
Jordan K. Hubbard df26e9b0b2 First cut at making multiple distributions loadable in a single pass. 1994-12-17 06:57:45 +00:00
Andrey A. Chernov 632a24451c Fix odd length long names
Submitted by: [email protected]
also Obtained from: 1.1.5.1
1994-12-17 05:59:33 +00:00
David Greenman 763424fcf0 Changed splimp to splhigh to close a potential hole that could lead
to corrupted malloc data structures caused by frees occurring at other
than splimp.
1994-12-17 04:04:42 +00:00
Andrey A. Chernov 50da78da7c Automatically add gmake to DEPENDS, if USE_GMAKE 1994-12-17 02:37:26 +00:00
Andrey A. Chernov a7e957efb2 Don't use build: ... pre-build, move pre-build inside
BUILD_COOKIE instead
1994-12-17 01:58:11 +00:00
Bruce Evans 8c664261f7 Uncomment DISKSLICE; it should work now (for drivers that support it). 1994-12-16 16:58:08 +00:00
Bruce Evans 9a0f1b5bd5 Continue implementing disk slices and labels for the vn driver. Everything
is supposed to work except "media removal" (shutting down the vn driver)
while some partitions are open.

Fix some errnos: return ENOTTY, not ENXIO for unknown ioctls; return
ENODEV, not ENXIO for the unsupported dump operation.
1994-12-16 16:50:15 +00:00
Bruce Evans fb72042b5c Duplicate readdisklabel() and writedisklabel() and remove DOS stuff from
from the copies to create correct_readdisklabel() and
correct_writedisklabel().

Print the slice number in diskerr() if it is nonzero.
1994-12-16 16:31:23 +00:00
Bruce Evans 9af6068321 Separate go-away code from dsinit() to produce dsgone().
Call correct_writedisklabel() instead of writedisklabel() (temporary
compatibility hack).

Remove kludge for allowing a label on slice 0.
1994-12-16 16:14:39 +00:00
Bruce Evans d92b67e7f0 Add prototype for dsgone. Remove prototype for nonexistent dswlabel. 1994-12-16 16:05:11 +00:00
Bruce Evans 6216a129da Add support for sliced disk devices ssd*, svn*, swd*. The `s' at the start
of these names is so that they can be distinguished in MAKEDEV until the
non-sliced devices go away.
1994-12-16 15:59:44 +00:00
Poul-Henning Kamp d71494d323 Don't push/pop the return-val register. (DUH!) 1994-12-16 07:31:47 +00:00
Poul-Henning Kamp d90b957315 Grumble, try to remember what assembler syntax is used :-/
Increase polling frequency a fraction to just above 1 Hz.
1994-12-16 07:09:22 +00:00
Poul-Henning Kamp 2decd76771 Be much more carefull about what we leave in unused registers when we call
the APM-bios.
This stabilizes a couple of APM bioses quite a bit.
They all make the mistake of going into 16-bit mode, without clearing the
top half of the 32bit registers.
Later they do a
|	movw %si,$0x7331
|	movw %ax,0x6(%si)
or something along those lines and crash and burn, because their segment
is already relocated, so adding 0xf0171ce9 to the base of it is bad news.

At least SystemSoft is guilty of this bummer.
1994-12-16 06:16:30 +00:00
Poul-Henning Kamp 784cf072d8 Remove sd1-sd3 & st1, now that we can autoallocate them.
fix the vn driver in LINT.  It autoallocates too.

Reviewed by:	phk
Submitted by:	rgrimes
1994-12-16 06:04:16 +00:00
Poul-Henning Kamp a31f80dc67 Allocate all scsi-devices on the fly, not just CDs.
Reviewed by:	phk
Submitted by:	rgrimes
1994-12-16 06:03:28 +00:00
Paul Traina 75a128283a Rudimentry bsd-audio emulator for VAT support using FreeBSD's voxware package.
Voxware hackers should feel free to work on this some more,  it's by no means
a perfect product.

(I have patches for GUS users running 2.x to run their GUS with bidirectional
 DMA (talk while listening.  All other soundboards must use push-to-talk until
 people learn to build real hardware).

Submitted by:	amancio hasty & paul traina
1994-12-16 04:59:18 +00:00
Gary Clark II 4915b106ed Changed line so commit would take 1994-12-16 04:01:16 +00:00
Poul-Henning Kamp 22529dad0f An inconsequential #ifdef Bruce forgot. 1994-12-16 01:13:09 +00:00
David Greenman 8d6e8ede62 Protect kmem_map modifications with splhigh() to work around a problem with
the map being locked at interrupt time.
1994-12-15 22:47:11 +00:00
Garrett Wollman e0e878ae9e Document EAFNOSUPPORT error return for TCP bind and connect operations. 1994-12-15 20:54:28 +00:00
Garrett Wollman 9ee39fc64d Fix PR 59: don't allow TCP connections withmulticast addresses at either
end.
1994-12-15 20:39:34 +00:00
Andrey A. Chernov 58328669a3 Fix hostnames >32 chars
Submitted by: [email protected]
1994-12-15 01:21:06 +00:00
Søren Schmidt 45d04cf11f Fix bug around VOP_READDIR, now takes 6 parameters not 4.
The MAXBSIZE has changed, so use DEFAULT_PAGE_SIZE instead.
1994-12-14 22:03:48 +00:00
Garrett Wollman 5be2baf843 Make rtq_reallyold user-configurable via sysctl. 1994-12-14 19:06:37 +00:00
Garrett Wollman c70b84bd3c Document new route flags. 1994-12-14 18:55:01 +00:00
Garrett Wollman 23f6ed01aa Actually enable NTP kernel PLL. (Oops!)
Noticed by Pete Carah.
1994-12-14 17:57:47 +00:00
Andrey A. Chernov f9ff1b665d patch: pre-patch ... is wrong, move pre-patch
inside PATCH_COOKIE
1994-12-14 05:53:09 +00:00
Garrett Wollman 2c17fe9339 Call rtalloc_ign() so that protocol cloning will not occur at the IP layer. 1994-12-13 23:08:12 +00:00
Garrett Wollman 652082e6ac Implemented rtalloc_ign(). 1994-12-13 23:07:03 +00:00
Garrett Wollman a7c7761f65 Make it possible to correctly print out new route flags, and do so. 1994-12-13 22:34:34 +00:00
Garrett Wollman 93587737d7 Update calls to rtalloc1(). 1994-12-13 22:33:05 +00:00
Garrett Wollman 31246bc25f Update calls to rtalloc1(). Also merge rt_prflags with rt_flags. 1994-12-13 22:32:45 +00:00
Garrett Wollman 2c4615f0aa Update calls to rtalloc1() to match. 1994-12-13 22:32:17 +00:00
Garrett Wollman 995add1a12 Add support for two separate cloning flags, one set by the lower layers,
and one set by the protocol family.  Also add another parameter to
rtalloc1() to allow for any interface flags to be ignored; currently
this is only useful for RTF_PRCLONING.  Get rid of rt_prflags and re-unite
with rt_flags.  Add T/TCP ``route metrics''.

NB: YOU MUST RECOMPILE `route' AND OTHER RELATED PROGRAMS AS A RESULT OF
THIS CHANGE.

This also adds a new interface parameter, `ifi_physical', which will
eventually replace IFF_ALTPHYS as the mechanism for specifying the
particular physical connection desired on a multiple-connection card.

NB: YOU MUST RECOMPILE `ifconfig' AND OTHER RELATED PROGRAMS AS A RESULT OF
THIS CHANGE.
1994-12-13 22:31:49 +00:00
Garrett Wollman 0d2d94f67b Add ahc driver, more symtab space. 1994-12-13 22:01:35 +00:00
Andrey A. Chernov 699204c2a5 Merge... 1994-12-13 21:03:46 +00:00
Garrett Wollman 3aa0699930 Delete `HZ' option; it's only of use to Bruce and screws up the NTP PLL
(among other things).  Correctly specify `vn' as a pseudo.  Make sure
things are in the right places.
1994-12-13 20:56:30 +00:00
Andrey A. Chernov 5d9b1b20cb Upgrade... 1994-12-13 20:43:57 +00:00
Andrey A. Chernov f545af68fd This commit was generated by cvs2svn to compensate for changes in r5093,
which included commits to RCS files with non-trunk default branches.
1994-12-13 20:43:57 +00:00
Andrey A. Chernov 62dcb67cdc Point that we use GNU version of uucp 1994-12-13 19:48:51 +00:00
Guido van Rooij a7e6a0941a lsdev paniced the machine when 2 (or more) ide controllers are installed.
Beware for cut and paste!

Reviewed by:
Submitted by:
Obtained from:
1994-12-13 18:20:08 +00:00
Gary Clark II 663abed6d2 Add slip_server FAQ from Guy Helmer
Submitted by: Guy Helmer
1994-12-13 17:48:46 +00:00
Ugen J.S. Antsilevich 3107b31b8d Add clear one accounting entry control.
Structure fields changed to seem more standart.
1994-12-13 15:57:34 +00:00
Ugen J.S. Antsilevich 611367b40f Add interface to clear accounting entry option.
Reflect ip_fw structure changes.
1994-12-13 15:56:51 +00:00
Jean-Marc Zucconi e40adb1bbd Added '${GMAKE} install.man' when installing with Imake and gmake 1994-12-12 22:32:30 +00:00
Ugen J.S. Antsilevich f3caf95e23 Late patch for delete control.. 1994-12-12 18:10:41 +00:00
Ugen J.S. Antsilevich 10a642bb05 Add match by interface from which packet arrived (via)
Handle right fragmented packets. Remove checking option
from kernel..
1994-12-12 17:20:55 +00:00
Ugen J.S. Antsilevich fab9e6db0e Add via option,minor changes to interface to reflect
internal firewall changes.Check option disabled temporary.
1994-12-12 17:19:33 +00:00
Bruce Evans 63e4f22a2a Fix numerous timestamp bugs.
DE_UPDATE was confused with DE_MODIFIED in some places (they do have
confusing names).  Handle them exactly the same as IN_UPDATE and
IN_MODIFIED.  This fixes chmod() and chown() clobbering the mtime
and other bugs.

DE_MODIFIED was set but not used.

Parenthesize macro args.

DE_TIMES() now takes a timeval arg instead of a timespec arg.  It was
stupid to use a macro for speed and do unused conversions to prepare
for the macro.

Restore the left shifting of the DOS seconds count by 1.  It got
lost among the shifts for the bitfields, so DOS seconds counts
appeared to range from 0 to 29 seconds (step 1) instead of 0 to 58
seconds (step 2).

Actually use the passed-in mtime in deupdat() as documented so that
utimes() works.

Change `extern __inline's to `static inline's so that msdosfs_fat.o
can be linked when it is compiled without -O.

Remove faking of directory mtimes to always be the current time.  It's
more surprising for directory mtimes to change when you read the
directories than for them not to change when you write the directories.
This should be controlled by a mount-time option if at all.
1994-12-12 12:35:50 +00:00
Bruce Evans 20989d2d64 Obtained from: my fix for 1.1.5
Remove compatibility hack so that dup(fd) isn't interpreted as
dup2(fd & 0x3f, random_junk_on_stack_fd) when (fd & 0x3f) != 0.
1994-12-12 12:27:39 +00:00
Bruce Evans 6976af69e8 Obtained from: my old fix for 1.1.5
Improve hzto():

Round up instead of down and then add 1 tick.  This fixes sleep(1)
sometimes sleeping for < 1 second and usleep(10000) sometimes sleeping
for as little as 1 usec + syscall time.

Don't do all the calculations at splhigh().

Don't depend on `tick' being a multiple of 1000.

Don't lose accuracy for `sec' between 0x7fffffff / 1000 - 1000 and
0x7fffffff / hz.

Don't assume that longs are 32 bits or that ints have the same size as
longs.
1994-12-12 11:58:46 +00:00
Andrey A. Chernov d2ee1a1856 Fix includes, tputs argument, ospeed setting, printing
attributes started with 'l'
1994-12-12 06:14:42 +00:00
David Greenman e8cdac9bfd Don't mess with already freed structures when a process is being run
down.
1994-12-12 06:04:27 +00:00
Andrey A. Chernov 882588f86c Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
1994-12-12 05:48:45 +00:00
Andrey A. Chernov 408399029a Optimize setting of DISRTCSET 1994-12-12 05:43:28 +00:00
Andrey A. Chernov 62be897817 Clean internal logic, helps for some unusual cases 1994-12-12 05:20:44 +00:00
Andrey A. Chernov 18704338bb add mcd.4 1994-12-12 04:08:58 +00:00
Andrey A. Chernov 7bc3f9e3f4 Mitsumi manpage
Submitted by:  Keith E. Walker with small modifications from me
1994-12-12 04:06:17 +00:00
Andrey A. Chernov f6f38b4bc9 Upgrade to readline from bash 1.14.3 1994-12-12 03:23:04 +00:00
Bruce Evans b01f0b7d76 Obtained from: 1.1.5
getcwd() has two off-by-one bugs in FreeBSD-2.0:

1. getcwd(buf, size) fails when the size is just large enough.
2. getcwd(buf + 1, 1) incorrectly succeeds when the current directory
   is "/".  buf[0] and buf[2] are clobbered.

(I modified Bruce's original patch to return the proper error code
[ERANGE] in the case of #2, but otherwise... -DG)

This program demonstrates the bug:

---
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

int main(void)
{
    char buf[5];
    int errors;

    errors = 0;
    if (chdir("/tmp") != 0) {
        perror("chdir");
        abort();
    }
    if (getcwd(buf, 5) == NULL) {
        perror("oops, getcwd failed for buffer size = size required");
        ++errors;
    }
    if (chdir("/") != 0) {
        perror("chdir");
        abort();
    }
    buf[0] = 0;
    buf[2] = 1;
    if (getcwd(buf + 1, 1) != NULL) {
        fprintf(stderr,
                "oops, getcwd succeeded for buffer size = one too small\n");
        ++errors;
    }
    if (buf[0] != 0) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory before start of buffer\n");
        ++errors;
    }
    if (buf[2] != 1) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory after end of buffer\n");
        ++errors;
    }
    exit(errors == 0 ? 0 : 1);
}
1994-12-12 01:29:13 +00:00
Bruce Evans a0d0470f49 Obtained from: 386BSD-0.1 patchkit; also fixed in 1.1.5
Compare unsigned chars.
Return the place after where the character was found and not the start
of the string.
1994-12-12 01:23:33 +00:00
Bruce Evans a2c0622293 Fix execl[e]. Multiple execle's failed because of bogus caching of the
pointer returned by realloc().  All callers free the pointer if the
execve fails.  Nuke the caching.  This essentially restores buildargv()
to the 1.1.5 version.  Also fix a memory leak if realloc() fails.  Also
nuke similar but non-broken caching in execvp().  malloc() should be
efficient enough.
1994-12-12 01:15:01 +00:00
Andreas Schulz 4ecd9d4bfa Changed two occurrences of tcpdump(l) to tcpdump(1). 1994-12-12 00:41:04 +00:00
Andreas Schulz 9689f8ef27 Change a SLSTAT 1 to SLSTAT 8 . 1994-12-12 00:38:01 +00:00
Andreas Schulz a78eb8ba84 Changed a PPSTATS 1 to PPPSTATS 8 . 1994-12-12 00:36:41 +00:00
Andreas Schulz 13c29e789d Changed an LSDEV 1 to LSDEV 8 . 1994-12-12 00:35:01 +00:00
Andreas Schulz 2f1aa0f1bf Changed a ACCTON 1 to a ACCTON 8 . 1994-12-12 00:32:36 +00:00
Andreas Schulz ab51dae938 change a .TH VMSTAT 1 to a .TH VMSTAT 8 . 1994-12-12 00:26:08 +00:00
Andreas Schulz 0ebe002b2d Changed a nslookup(1) to nslookup(8). 1994-12-12 00:24:31 +00:00
Bruce Evans a4a59c2b52 Implement disk slices and labels for the vn driver. This is intended mainly
for testing and is only enabled if TEST_LABELLING is defined.  It won't
actually work until DOS goop is removed from ufs_disksubr.c.
1994-12-12 00:23:11 +00:00
Andreas Schulz 73d3aff9ac Changed the usage of the new not existant manpage macros CMD_EXT, INDOT
and SYS_OPS_EXT to the normal numbers. Garrett, don't kill me :-).
1994-12-12 00:23:00 +00:00
Bruce Evans 0300a965c8 diskslice_machdep.c implements reading and checking of DOS slice tables.
It will eventually replace readMBR.c.
1994-12-12 00:22:30 +00:00
Bruce Evans d1f35d579f subr_diskslice.c implements everything related to slices and labels except
reading and writing the slice tables and labels.

subr_dkbad.c implements everything related to bad sector remapping using
the bad144 format.
1994-12-12 00:20:34 +00:00
Andreas Schulz e82f07e12e Changed one uucico(1) to uucico(8). 1994-12-12 00:19:19 +00:00
Bruce Evans 9ba0e7c355 Add old options HZ, VN, ALLOW_CONFLICT_DRQ, ALLOW_CONFLICT_MEMADDR,
AUTO_EOI_1, AUTO_EOI_2, COMCONSOLE, COM_MULTIPORT.

Add new option DISKSLICE.

Change comments about DUMMY_NOPS.
1994-12-11 23:52:18 +00:00
Bruce Evans d98a0992b6 Add i386/isa/diskslice_machdep.c. This will eventually replace readMBR.c.
Sort.
1994-12-11 23:39:01 +00:00
Bruce Evans e03e30f85b Add kern/subr_diskslice.c, kern/subr_dkbad.c.
Sort.
1994-12-11 23:34:42 +00:00
Andreas Schulz a8fcd7af26 Changed a sum(1) to a cksum(1). 1994-12-11 23:29:20 +00:00
Andreas Schulz 2a7abc9144 Changed a reboot(1) to a reboot(8). 1994-12-11 23:27:59 +00:00
Bruce Evans 63856251d2 disklabel.h:
Prepare for disk slices - more macros for handling disk device numbers,
version of readdisklabel() without DOS goop.
Clean up prototypes.
Uniformize idempotency ifdef.

diskslice.h:
New file.

dkbad.h:
Define more magic numbers.
Declare internalized version of dkbad struct and functions to operate on it.
Uniformize idempotency ifdef.
1994-12-11 23:20:50 +00:00
Bruce Evans 51cd3c9666 Declare d_strategy_t here and use it to declare strategy functions.
Sort prototypes.
Uniformize idempotency ifdef.
1994-12-11 23:05:53 +00:00
Bruce Evans 9d93bf70ea Move declaration of d_strategy_t to <sys/conf.h>. 1994-12-11 23:05:18 +00:00
Andreas Schulz 3cefada244 Comment out the man page of rstat.1 from Makefile.inc. There is no rstat
command available yet.
Changed an entry in getprcent.3 from rpcinfo(8C) to rpcinfo(8).
Changed an entry in getrpcport.3 from 3R to 3.
Changed two entries in rpc.3 from 3N to 3.
1994-12-11 22:08:10 +00:00
Andreas Schulz 75f0ecb284 Added the mpool.3 manpage to the installed manpages. It is referred from the
other manpages and there is no conflict.
1994-12-11 22:03:05 +00:00
Andreas Schulz a4bc78d9f1 Changed a SORT 1L to a SORT 1. 1994-12-11 21:41:28 +00:00
Andreas Schulz 3b92fb1ec6 Changed one occurrence of LD 8 to LD 1 and the OS FreeBSD 1.1 to FreeBSD 2.0. 1994-12-11 21:39:31 +00:00
Garrett Wollman 1db18e0fc4 Advanced route cache management is now an official part of IP support. 1994-12-11 21:36:10 +00:00
Andreas Schulz dc59b9fd8d Changed one occurence of rmail(1) to rmail(8). 1994-12-11 21:35:17 +00:00
Garrett Wollman ac9ed61cad install command was missing a ${DESTDIR}. 1994-12-11 21:27:14 +00:00
Sean Eric Fagan 940ff2c0a9 Added "cpuid" opcode. 1994-12-11 20:46:55 +00:00
Gary Palmer ad19367c21 Early md5-checksumming code. This seems to work fine on my machine
but needs more testing on more ports than I have on my box.
1994-12-11 20:36:12 +00:00
Gary Palmer b3ac125106 Last gremlin-killer of the day. Typo fixed and missing .endif replaced. 1994-12-11 15:31:22 +00:00
Gary Palmer d628b1f606 <Sigh> Got the placing of a .if wrong. Fix it. 1994-12-11 14:50:40 +00:00
Gary Palmer 8a7c3fffc6 Erk. Damn. A hash perfixing a comment was lost somewhere.
Fixed.
1994-12-11 14:12:30 +00:00
David Greenman c8a62b4bc5 Removed inappropriate comment. 1994-12-11 03:33:58 +00:00
David Greenman d83ea8bcbd Add additional comment. 1994-12-11 03:11:23 +00:00
David Greenman 32b88083a9 Fix bogus comment. 1994-12-11 02:28:36 +00:00
David Greenman d33095d2b2 The physical memory allocated for input DMA must be contiguous. The driver
worked in the past only because of good fortune. Anyway, use the contig alloc
routine I wrote awhile ago (vm_page_alloc_contig) for the sound code to do
this allocation. Also, specify read+write on the permissions to pmap_enter().
Specifying just read can have unexpected consquences.
1994-12-11 01:45:41 +00:00
David Greenman 7b18a71899 Don't put objects that have no parent on the reverse_shadow_list. Problem
identified and explained by Gene Stark (thanks Gene!).

Submitted by:	John Dyson
1994-12-11 01:36:53 +00:00
Andreas Schulz 3339606d9a Document the options DUMMY_NOPS and TUNE_1542. 1994-12-11 00:09:34 +00:00
Andreas Schulz ea7f90817d Fixed a typo: /usr/sbin/lpd* to /usr/sbin/lpd as the name of the daemon. 1994-12-11 00:02:22 +00:00
Andrey A. Chernov 1223285da7 tputs prototypes... 1994-12-10 23:10:41 +00:00
Andrey A. Chernov d76f7c0fec tputs: (char) -> (int) 1994-12-10 23:02:33 +00:00
Andrey A. Chernov 9945b53297 Prototypes... 1994-12-10 22:56:53 +00:00
Andreas Schulz f2fe51f460 Correct a type in an ifndef EXCLUDE_3812 from 8312 -> 3812. Obtained
from the net or the mailinglist. Sorry, lost the original author.
1994-12-10 22:55:50 +00:00
Andreas Schulz 196c5f3921 Change the example in the printcap file for the spooling dir from
/var/spool/lpd to /var/spool/output/lpd. This is the new location
where the lpd-system now searches for files.
1994-12-10 22:46:25 +00:00
Andrey A. Chernov 6d1385d8be tputs: (char) -> (int) 1994-12-10 22:01:25 +00:00
Gary Palmer e0e109abe7 1) Small tidyup
2) Change INSTALL_MANPAGES to NO_INSTALL_MANPAGES and document it

3) Add a PKGNAME variable to allow the package name
   not to be dictated by stupid DISTNAMEs

4) Add a PATCH_DEBUG option and a slight change to the default
   patch system - add --forward to help ensure correct patching
1994-12-10 18:07:38 +00:00
Andrey A. Chernov b3c5d3e955 Fix tputs/tparm declarations 1994-12-09 22:02:19 +00:00
Andrey A. Chernov f13e0e1455 Fix tputs declaration 1994-12-09 21:59:06 +00:00
Andrey A. Chernov aa31b7471d Fix tputs/tparm declarations 1994-12-09 21:52:47 +00:00
Andrey A. Chernov c7d2093e06 Change all 'regoff_t' occurances to 'int'. GNU typedefed it as 'int',
but BSD 4.4 typedefed it as 'off_t'. Make _RX_C_ hook for sucessful
rx.c compilation
1994-12-09 02:26:23 +00:00
Andrey A. Chernov de0c026bbb Change #include order to not redifine __P 1994-12-09 01:51:16 +00:00
Andrey A. Chernov 9b39c00d7d Regcomp, re_comp eliminating 1994-12-09 01:08:56 +00:00
Andrey A. Chernov 97f0be939c More kosher regexp eliminating, based on BSD date now 1994-12-09 01:08:01 +00:00
Andrey A. Chernov 3f3f840110 Eliminate buggy regcomp and re_comp implementations,
we already have them in another place.
1994-12-09 00:46:42 +00:00
Andrey A. Chernov c9477304b6 Remove links before creating them 1994-12-08 22:27:49 +00:00
Poul-Henning Kamp 3ef61f7ea3 Update to current reality. 1994-12-08 21:46:04 +00:00
Poul-Henning Kamp d8290e4901 Would you please correct nfs/nfs_vfsops.c so that the ip address of the
root filesystem is printed out correctly?
It's line 299 in nfs/nfs_vfsops.c.

Reviewed by:	phk
Submitted by:	Luigi Rizzo [email protected]
1994-12-08 20:59:33 +00:00
Bruce Evans e5cb923fab Fix __CONCAT() for the ANSI case to work with #define'd args, in
particular, when one of the args is another __CONCAT().
1994-12-08 15:42:17 +00:00
Andrey A. Chernov 1fc232a389 Fix wrong regexps 1994-12-08 00:44:55 +00:00
Andrey A. Chernov 634225d12e Fix wrong unit=expr for tty? cua? 1994-12-06 23:06:10 +00:00
Bruce Evans a81b757af0 Don't allow negative limits at all. Convert them to RLIM_INFINITY instead
of returning EINVAL since something may depend on them being broken.
Allowing negative limits caused bugs almost everywhere.  The recent
fixes for MAXSSIZ checked the limits too late to stop anyone defeating
limits set by root...
1994-12-06 22:53:37 +00:00
Bruce Evans a2a65bbb14 Finish removing `#ifdef STATCLOCK'. Not removing it properly here
probably broke (only) the association of interrupts with strings
in vmstat output.
1994-12-06 22:01:16 +00:00
Bruce Evans 300d02be0c Don't refer to "hardwired" ports. 1994-12-06 20:14:30 +00:00
Bruce Evans 600caea8b2 Rename tty0* -> ttyd*. Comment about "serial" terminals instead of
"hardwired" or "dialin" terminals.
1994-12-06 19:59:24 +00:00
Bruce Evans 8a1068b371 Name the serial ports tty* and cua* in comments. ttyd* and cuaa* don't
match all the port names.

Start using shell functions to avoid duplication.

Make tty* independent of cua*.  Restore support for old names (tty0 ==
ttyd0, cua0 = cuaa0...).

Restore making of lpt1 and lpt2 by default.

Keep umask 077 for making vty*.  World-ioctable vtys are huge security holes
because of bugs in syscons.

Make vga if a vty is made.  It may still be required for X.  It got nuked
with pc*.

Start using umask consistently to avoid using chmod.
1994-12-06 19:50:17 +00:00
Gary Palmer 6ac234951f Add kryten.atinc.com 1994-12-06 19:48:07 +00:00
Søren Schmidt 05d7c5e73e Changed the behavior of KDMKTONE to comply with svr4, default to
old behavior if no argument present.
1994-12-06 19:32:00 +00:00
Bruce Evans 9195f40982 Use lstat() instead of stat() for checking if the final source file exists,
so that `ln -fs' works when the source is a symlink pointing to a non-
existent file.
1994-12-06 18:50:44 +00:00
Scott Mace b22bafcacc Add ftp.neosoft.com mirror. 1994-12-06 16:07:16 +00:00
Poul-Henning Kamp e419848b2c Avoid a panic if vn is configured as swapdev. Seems to work fine. 1994-12-06 06:47:32 +00:00
Andrey A. Chernov 62c83be30c 8bit locale ajustment fix 1994-12-06 04:23:42 +00:00
Andrey A. Chernov 1d4039c723 Upgrade to version 2.0 1994-12-06 03:16:45 +00:00
Jordan K. Hubbard ad12efc944 More changes from John T. Kohl. Man pages, mostly.
Submitted by:	jtkohl
1994-12-06 01:04:17 +00:00
Jordan K. Hubbard 8f396ebfb6 Many of John T. Kohl's patches from NetBSD. Thanks, John!
Submitted by:	jkohl
1994-12-06 00:51:50 +00:00
Andrey A. Chernov f62ac99484 rc.local -> rc.serial
cua0? -> cuaa?
1994-12-05 19:52:29 +00:00
Andrey A. Chernov eb1759f18c Add yet one locale example, this time ISO8859-1 as most common example.
Add reference where find full locales list
1994-12-05 19:46:35 +00:00
Andrey A. Chernov b32baf3440 gdc -> grdc 1994-12-05 19:30:00 +00:00
Paul Traina 247c65ea84 Fix spelling/grammar errors 1994-12-05 10:08:35 +00:00
Paul Traina a5af661e23 Remove extra newline introduced in 44lite (oops) 1994-12-05 10:01:39 +00:00
Paul Traina 2e8df940be Remove extra newline introduced in Net/2 1994-12-05 10:01:23 +00:00
Gary Clark II f2311444d3 Added entry to Systems.FAQ
Added note about lp TCP/IP driver
Added notes about b004, cx, ctx and pcaudio
Updated perl entry to point to ftp site that has it

NOTE:  If you have a system running 2.0 please email me ([email protected])
       tell what you have so I can include it!
1994-12-05 08:02:15 +00:00
Jordan K. Hubbard 41a8249b08 Remove pppd. 1994-12-05 01:37:50 +00:00
Jordan K. Hubbard 7520c44dde chrtoblk() returns dev_t, not int. 1994-12-05 01:34:54 +00:00
Jordan K. Hubbard ea13c2c9b5 1. Remove ppp options. There's no room in the generic kernel.
2. Fix some extra `:'s in some of the ftp site names.
1994-12-05 00:40:25 +00:00
Jordan K. Hubbard 9e950df280 Adjust source paths broken by the i386/ renaming. 1994-12-05 00:21:27 +00:00
Andrey A. Chernov e241d366eb change serial interface name 1994-12-05 00:13:11 +00:00
Andrey A. Chernov ee3a2d6021 Reflect lastest serial names change 1994-12-05 00:02:38 +00:00
Andrey A. Chernov fc306b1c16 cua*0? --> cua*a? 1994-12-04 23:54:39 +00:00
Andrey A. Chernov 6a3a94427d Remove yet one pccons-related comment 1994-12-04 23:50:40 +00:00
Andrey A. Chernov ab9ea4a725 New serial naming convention, remove tty0?, change cua0? --> cuaa?
Remove pccons stuff, we don't have it.
1994-12-04 23:48:38 +00:00
Poul-Henning Kamp d6b112dd35 Added vn as a possible swapdev. 1994-12-04 22:36:50 +00:00
Andrey A. Chernov 6d414f9844 Don't install as 'cu', it breaks Taylor 'cu' installed in the same
directory. Taylor 'cu' is much more powerful than this cheap 'tip'
1994-12-04 22:20:42 +00:00
Andrey A. Chernov 9dbcbbcf0d gdc -> grdc 1994-12-04 21:55:23 +00:00
Andrey A. Chernov 20c778875d Re-import with new name, old name conflicts with gated 1994-12-04 21:51:19 +00:00
Gary Palmer c4e294accb Add ftp://ftp.demon.co.uk/pub/BSD/FreeBSD/2.0-RELEASE 1994-12-04 21:15:59 +00:00
Andrey A. Chernov 1d56c96ced Remove iso8859-1 to proper name 1994-12-04 21:13:56 +00:00
Andrey A. Chernov 35daa0b773 Dig out full locale names set for ISO8859-1 (great success!) 1994-12-04 21:11:29 +00:00
Andrey A. Chernov aca02e247c Found at least one proper name for ISO8859-1 locale,
still need more names
1994-12-04 20:46:33 +00:00
Andrey A. Chernov 622d64cf1d Comment out iso88591 installation until proper name set will be found
(see README.locale_name). Please, anybody tell me language set
and countries set described in iso88591 to produce proper name set.
1994-12-04 20:27:31 +00:00
Joerg Wunsch 290dd077ef Here is a minor patch for FreeBSD 2.0R to allow it to recognize
2.88MB floppy drives.  All it does is set the type to 1.44MB if
it finds the 2.88MB drive.

Submitted by:	Andrew Gillham <[email protected]>
1994-12-04 20:22:20 +00:00
Poul-Henning Kamp d71771e8e3 Added vn*, doing the same thing as sd* and wd*. (Disklabel support will
be added to the vn driver).
1994-12-04 20:15:15 +00:00
Poul-Henning Kamp 4da31dbbaa The vnconfig program. 1994-12-04 20:12:26 +00:00
Andrey A. Chernov 5bf433c36e Add quick description of rules how to build locale name,
f.e. iso_8859_1 name is completely incorrect
1994-12-04 20:12:10 +00:00
Poul-Henning Kamp d6bfd0e8f6 Added the vnconfig program. 1994-12-04 20:11:50 +00:00
Poul-Henning Kamp 6f6b3f76c5 ioctl definitions for the vn driver. 1994-12-04 20:09:16 +00:00
Poul-Henning Kamp ae063c2896 Entries for the vn driver completed. 1994-12-04 20:08:57 +00:00
Poul-Henning Kamp 9020e0737c The vn driver from 4.4_lite 1994-12-04 20:08:35 +00:00
Poul-Henning Kamp afa59fd4f7 Added dev/vn/vn.c optional vn 1994-12-04 20:08:18 +00:00
Poul-Henning Kamp 54213fd84a Implemented a "TEXT_SET" called 'cleanup_set' which will be called before
the reboot takes place (if not RB_NOSYNC that is).  The vn driver needs this.
Other places might benefit too.
1994-12-04 19:58:43 +00:00
Andrey A. Chernov c0fc067043 Fix encoding scheme UTF2 --> None 1994-12-04 19:54:19 +00:00
Andrey A. Chernov 7177204106 Reorganize data to not mess with sources 1994-12-04 19:52:31 +00:00
Andrey A. Chernov 69c238f94d Fix wrong encoding scheme UTF2 --> NONE 1994-12-04 19:41:35 +00:00
Jordan K. Hubbard 81db698e3a Joe Greco <[email protected]>'s enhancements to startslip.
Submitted by:	jgreco
1994-12-04 12:26:01 +00:00
Jordan K. Hubbard 6a2af57e44 Install Kaleb's iso_8859_1 by default. 1994-12-04 12:22:45 +00:00
Jordan K. Hubbard f16fb8e0f7 From: Kaleb Keithley <[email protected]>
Here's something that should be a big selling point for European users.
Note that Linux still doesn't support anything other than the POSIX locale.
This is a superset of the POSIX locale with support for all the accented
characters. You need this to do compose processing in XFree86 3.x. I'm
using this on my 1.1.5.1 system. Don't know whether it works on 2.0, but
can't think of any reason why it wouldn't.

Submitted by:	kaleb
1994-12-04 12:19:25 +00:00
Bruce Evans b48a498871 Fix bogus include paths:
<systm.h> is <sys/systm.h>.
<kernel.h> is <sys/kernel.h>.
1994-12-04 08:52:51 +00:00
Bruce Evans 21e880de5d Fix bogus and broken include paths:
<string.h> isn't supposed to be used by the kernel.

cronix.h is <machine/cronix.h>, not "cronyx.h" (ambiguous) or
<sys/cronyx.h> (nonexistent; caused compile to fail).

cxreg.h is <i386/isa/cxreg.h>, not "cxreg.h".

<i386/isa/cpufunc.h> shouldn't be included directly; it is always
included by <sys/systm.h>.

<i386/include/*.h> is <machine/*.h>

<systm.h> is <sys/systm.h>.
<kernel.h> is <sys/kernel.h>.

<bpfilter.h> is "bpfilter.h".  It really is in the current directory.
1994-12-04 08:51:58 +00:00
Bruce Evans 9cdd2c1f8c Add cx.4 to MLINKS.
Someone should fix `man' so that man pages in machine-dependent
subdirectories are handled automagically at least for the
current machine.
1994-12-04 08:07:47 +00:00
Bruce Evans 7e1a4c5c36 Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
Poul-Henning Kamp bd1322b660 Allocated chardev#43 and blkdev#15 to the vn-driver. The rest of the stuff
will come as a latter date, I just wanted to lay claim on some numbers.
1994-12-04 07:14:16 +00:00
Poul-Henning Kamp bd1f210f7e Cannot use rmdir() for 'FR' because mkCTM doesn't sort the directories
in -depth order for us.  cvs-cur.0018.gz is a good example.
1994-12-04 04:47:31 +00:00
Jordan K. Hubbard e27a543a57 Fixes from Jim Babb. Should finally fix tape installations. Thanks, Jim!
Submitted by:	babb
1994-12-04 03:41:18 +00:00
Andrey A. Chernov f38f7e1a33 Describe tparm 1994-12-04 03:15:30 +00:00
Jordan K. Hubbard 9077e6d34c >Originator: Gene Stark
>Description:

       If a process attempts to open a floppy tape device when the
device has been configured in the kernel, but did not probe and attach
on bootup, then a panic will occur.

[Review:  The current ft situation is a crock, and this only bandaids
 an earlier wound inflicted by making the attach conditional.  This urgently
 requires a review]
Submitted by:	gene
1994-12-04 03:10:09 +00:00
Andrey A. Chernov d6761eb4f8 Add $Id$ 1994-12-04 02:49:24 +00:00
Andrey A. Chernov 5426275f52 Add libtermcap to includes target 1994-12-04 02:46:28 +00:00
Andrey A. Chernov 43f9c02773 termcap.h now belongs to system 1994-12-04 02:43:41 +00:00
Andrey A. Chernov fc98213f95 Add termcap.h & tparm 1994-12-04 02:41:41 +00:00
Andrey A. Chernov cdbbd9cfaf don't allow ctty to be set to ctty - infinite kernel recursion
Obtained from: 1.1.5.1
1994-12-04 01:46:13 +00:00
Gary Palmer 903448b1da Add two sites in the UK - src.doc.ic.ac.uk and unix.hensa.ac.uk 1994-12-04 01:10:47 +00:00
Andrey A. Chernov 73a361245d Call d_stop in ttyflush not only for WRITE but for READ too
Obtained from: 1.1.5.1
1994-12-04 01:01:45 +00:00
Poul-Henning Kamp ada6f1dd56 Fix this to work under 2.0 also. 1994-12-03 22:54:04 +00:00
Poul-Henning Kamp 0c290b8b2d added a missing '\n' in both files. 1994-12-03 22:52:57 +00:00
Scott Mace 663afbc34f Make CHILD_MAX and OPEN_MAX a tunable parameter. 1994-12-03 17:36:37 +00:00
Andreas Schulz d025cfd6c5 Throw out the abort call, the reasoning seems to be false :-).
Change a round to a truncate. Problem reported from Christoph Kukulies:
9.8 2 / p did an IOT trap.
There is one remaining problem.: 9.8 2 % p shows on other machines 1.8
but does here in the moment 1.
1994-12-03 16:32:02 +00:00
Jordan K. Hubbard e28b57d51b Add back the Croynx stuff I nuked accidently. I'm not touching this
file anymore after this.  My link makes it too painful to make
interactive mods, and I don't have the CVS tree here so making changes
for "previous history" have to get done on freefall, with the corresponding
degree of pain.
1994-12-03 14:01:01 +00:00
Bruce Evans 91290462f6 Disable CLKF_BASEPRI() again. I forgot to edit an unwanted change out of
the diffs for the previous commit.
1994-12-03 10:18:24 +00:00
Bruce Evans 3544ae54e2 extern.h, iostat.c, main.c, vmstat.c:
Use the correct value of hz (stathz if it is nonzero) for
	interpretion of dk_time[] and cp_time[] in iostat.c.  Avoid
	multiple conversions of this value in iostat.c and vmstat.c

iostat.c:
	Implement the display of cp_time[CP_INTR].  Fix the display
	of cp_time[CP_IDLE] (the display was always null because
	cp_time[CP_INTR] == 0 was displayed instead).

systat.1:
	Document the display of cp_time[CP_INTR].

vmstat.c:
	Implement the display of cp_time[CP_INTR].
1994-12-03 10:06:40 +00:00
Bruce Evans b39b673d37 i386/exception.s,
Keep track of interrupt nesting level.  It is normally 0
	for syscalls and traps, but is fudged to 1 for their exit
	processing in case they metamorphose into an interrupt
	handler.

i386/genassym.c;
	Remove support for the obsolete pcb_iml and pcb_cmap2.

	Add support for pcb_inl.

i386/swtch.s:
	Fudge the interrupt nesting level across context switches and in
	the idle loop so that the work for preemptive context switches
	gets counted as interrupt time, the work for voluntary context
	switches gets counted mostly as system time (the part when
	curproc == 0 gets counted as interrupt time), and only truly idle
	time gets counted as idle time.

	Remove obsolete support (commented out and otherwise) for pcb_iml.

	Load curpcb just before curproc instead of just after so that
	curpcb is always valid if curproc is.  A few more changes like
	this may fix tracing through context switches.

	Remove obsolete function swtch_to_inactive().

include/cpu.h:
	Use the new interrupt nesting level variable to implement a
	non-fake CLF_INTR() so that accounting for the interrupt state
	works.

	You can use top, iostat or (best) an up to date systat to see
	interrupt overheads.  I see the expected huge interrupt overheads
	for ISA devices (on a 486DX/33, about 55% for an IDE drive
	transferring 1250K/sec and the same for a WD8013EBT network card
	transferring 1100K/sec).  The huge interrupt overheads for serial
	devices are unfortunately normally invisible.

include/pcb.h:
	Remove the obsolete pcb_iml and pcb_cmap2.  Replace them by
	padding to preserve binary compatibility.

	Use part of the new padding for pcb_inl.

isa/icu.s:
isa/vector.s:
	Keep track of interrupt nesting level.
1994-12-03 10:03:19 +00:00
Jordan K. Hubbard 46953c1291 Back out previous commit until we work this out. Sigh. 1994-12-03 04:46:09 +00:00
Andrey A. Chernov 6a24938756 Move gdc/bs to games 1994-12-03 04:42:49 +00:00
Andrey A. Chernov 64cfe457df Add bs/gdc 1994-12-03 04:40:26 +00:00
Andrey A. Chernov fcd9a52b79 Move ncurses test here (also nice game) 1994-12-03 04:34:46 +00:00
Andrey A. Chernov 268e74f211 exit_standout don't turn most attributes off, fixed 1994-12-03 04:27:08 +00:00
Andrey A. Chernov 5e7d2146bb #ifdef out check for pending input, cause problems with
output-only pgms
1994-12-03 03:35:30 +00:00
Andrey A. Chernov 62046959a1 Prevent core dump for root
Obtained from: partially from 1.1.5.1
1994-12-03 02:27:40 +00:00
Garrett Wollman 39c28aded9 Add Cronyx/Sigma cdevsw[] entry. 1994-12-03 00:18:15 +00:00
Garrett Wollman 83401efa16 Add Cronyx/Sigma files and config information; delete outdated config files. 1994-12-03 00:17:55 +00:00
Garrett Wollman 7f41568cfb Add generic sync PPP file. 1994-12-03 00:17:19 +00:00
Garrett Wollman ce257f0e68 Add cronyx driver entries. 1994-12-03 00:07:49 +00:00
Garrett Wollman 15d5589942 Add cx(4) to the Makefile. 1994-12-03 00:03:56 +00:00
Garrett Wollman 1fa33d23b5 Move i386-specific programs into i386 subdirectory. 1994-12-02 23:53:23 +00:00
Garrett Wollman 6014635361 Cronyx/Sigma sync/async serial driver with PPP support
from Serge Vakulenko
1994-12-02 23:23:01 +00:00
Garrett Wollman 114a506d1a Delete old, confusing comment. 1994-12-02 23:10:32 +00:00
Andreas Schulz 06935b59e5 Add one forgotten u_quad_t typecast in dosetrlimit. 1994-12-02 23:00:40 +00:00
Jordan K. Hubbard 6fe5a28afa Add Israel site. 1994-12-02 21:15:19 +00:00
Jordan K. Hubbard 4e5a373b00 IFCONFIG->IFCONFIG_CMD in dialog box prompt. 1994-12-02 21:05:27 +00:00
Jordan K. Hubbard a268c1cec5 More comments on tape installs. 1994-12-02 20:27:11 +00:00
Andrey A. Chernov 9b50f2c60a Use new bkgd() function to produce background 1994-12-02 19:49:17 +00:00
Andrey A. Chernov 303f46f591 bkgd() family fixes 1994-12-02 19:43:34 +00:00
Jordan K. Hubbard 4274bc80ca |From: Keith Walker <[email protected]>
|Message-Id: <[email protected]>
|To: [email protected]
|Subject: A little problem with MAKEDEV
|
|For a while now, MAKEDEV's been kinda neat: you create the cua* files,
|and it deletes the tty* files; you create the tty* files and it
|deletes the corresponding cua* files. K00l! :-)

[Ed Note - I think this behavior was wrong, and this fix better].
1994-12-02 16:08:53 +00:00
Jordan K. Hubbard 6413d9a335 Josh Littlefield's fixes for my extreme boneheadedness. 1994-12-02 15:52:55 +00:00
Jordan K. Hubbard 7184c6cea1 Fix dialog width for "Please enter the next diskette..." stuff.
Mount DOS floppies read-only.
1994-12-02 15:36:45 +00:00
Andrey A. Chernov aea7c17415 Implement chage_scroll_region properly 1994-12-02 07:35:48 +00:00
Andrey A. Chernov 795172f7a5 Upgrade to version 1.8.6 1994-12-02 06:40:24 +00:00
Nate Williams 766ee5695e Kernel name is now kernel and not 386bsd. 1994-12-02 06:19:37 +00:00
Garrett Wollman 73579c400f Add a check to make sure that we don't fiddle with the NFS routing tables
as well (bleah!).  Also, increase the interval to the real-life value and
eliminate debugging printfs.  This will be standard once tested by others.
1994-12-02 03:32:24 +00:00
Garrett Wollman 3980ac4f63 Change obnoxious ``Not root dir'' error message into one which actually
tells you what's wrong.
1994-12-02 02:58:56 +00:00
Andrey A. Chernov 92915f5044 Change wakeup to endtsleep, because wakeup don't produce timeout
state, cause infinite wakeups loop in ttywait
1994-12-01 23:48:09 +00:00
Garrett Wollman fa1f0e90fb Add latest version of ``advanced route metric management'' :-)
As before, this is currently conditionalized on options IN_RMX until
I'm sure it's working.
1994-12-01 23:19:48 +00:00
Garrett Wollman 40569757cc In _gethostbydnsaddr(), force RES_RECURSE into _res.options. This is
incredibly obnoxious, but also makes inverse mappings work when the local
resolver is in a cache-only configuration.  (Maybe this is actually
a bug in BIND?)
1994-12-01 22:25:38 +00:00
Andreas Schulz 53daef245b Submitted by: Philippe Charnier
Fixed a little typo: lable -> label.
1994-12-01 22:19:02 +00:00
Poul-Henning Kamp 1c3a258d79 Fixed a typo. Poited out by Bruce & Phillipe. 1994-12-01 21:05:28 +00:00
Andreas Schulz a7d72265c4 The values for setrlimit in the data size and stack size case are
used as an address value. Then all comparisons should be done unsigned
and not signed. Fix it with a typecast of u_quad_t.
Error can be demonstrated with the current bash in port, do a
ulimit -s unlimited and the machine hangs. bash delivers through
an internal error a large negative value for the stacksize, the
comparison saw this smaller than MAXSSIZ and then tried to expand
the stack to this size.
1994-12-01 20:20:21 +00:00
Jordan K. Hubbard bb7cc11ad5 1. the prgboxes aren't working at all. Stop using them for tape
extraction.
2.  If what's extracted from the tape is a subdir, cd into it before attempting
    to extract it.
1994-12-01 20:11:52 +00:00
Jordan K. Hubbard 8591ae7177 Add gzips for the real floppy images. 1994-12-01 20:02:44 +00:00
Jordan K. Hubbard 7f434bbba0 Remove gratuitous gzip of boot.flp 1994-12-01 20:01:37 +00:00
Jordan K. Hubbard c0113a6673 Fix another unfortunate little buglet intruduced during the Great Renaming.. 1994-12-01 20:00:32 +00:00
David Greenman a466088c6b Install rc.serial. 1994-12-01 13:55:49 +00:00
Jordan K. Hubbard 290f426469 More fixes from Keith Walker. Thanks, Keith! 1994-12-01 13:46:13 +00:00
Jordan K. Hubbard 64499a1b6c Fix some long-standing english wonkiness. 1994-12-01 13:24:20 +00:00
Ugen J.S. Antsilevich 57476d2f22 Sorry..forgot something for yesterdays login patch..
(Umm..i hope nobody "make world" this time:)
1994-12-01 12:35:54 +00:00
Jordan K. Hubbard 125cb52f95 Argh. I hate my life. I broke NFS *again* by leaving this line
inadvertantly in place.  I guess I have it in for NFS installs or
something! :-(
1994-11-30 22:15:48 +00:00
Jordan K. Hubbard 62728441d8 Build both 1.2MB and 1.44MB floppies now. this all needs a good re-think,
but this at least works for now.
Reviewed by:
Submitted by:
Obtained from:
1994-11-30 15:54:39 +00:00
Ugen J.S. Antsilevich 6dc4937281 Patch of password expired bug.
Now password changed for right user and
no longer possible to skip password change.
I hope it will be ok....
1994-11-30 15:40:09 +00:00
David Greenman e63424631a Changed the TIOCSTAT ioctl to a no argument type so that tcsh and friends
don't have to pass in the address of a bogus variable just to make ioctl
happy.
1994-11-30 15:02:43 +00:00
Jordan K. Hubbard e54a328608 Document how to re-enable the floppy-tape drive. 1994-11-30 13:17:50 +00:00
David Greenman 89384ace85 Fix bug I introduced that broke BPF support. Caused by a byte order problem
in an if () expression. Problem fixed by removing the test for ETHERTYPE_*
before passing packet to higher layers.
1994-11-30 12:08:23 +00:00
Jordan K. Hubbard 1ca6f46d56 Reverse the meaning of previous change.
Now floppy tape support is *disabled* unless you specifically
request otherwise.  Poul wanted it this way, and I guess I'm not going to argue
though it may seem counter-intuitive.  We can always change it back, later.
1994-11-30 12:04:28 +00:00
Jordan K. Hubbard f8de047922 Keith Walker's "howto" notes on preparing floppy or tape distribtution
fodder.  Thanks, Keith!  Much needed!
1994-11-30 11:59:53 +00:00
Jordan K. Hubbard a45ccac929 Merge in more creature-confort changes, plus some spelling and general
badness fixes from Keith.
1994-11-30 11:58:29 +00:00
Jordan K. Hubbard 4c0c58d87c Change `-o resvport' to a much simpler -P. 1994-11-29 23:55:52 +00:00
Jordan K. Hubbard 371b1a9213 Make the suggested NFS options actually work now. Neither Garrett nor I were
actually correct.  mount_nfs takes *different* options than mount -t nfs does.
1994-11-29 23:54:07 +00:00
Jordan K. Hubbard 3a7ab8e060 Add entry for Australia. 1994-11-29 23:44:07 +00:00
Andrey A. Chernov 5bddf43a12 Restore mv check, cause panic without it
Submitted by: Ade Barkah
1994-11-29 23:39:15 +00:00
Justin T. Gibbs c21818c866 Put the sequencer into FASTMODE during initialization. I can now
get up to 8m/sec write performance out of a pd2100 with this driver.
1994-11-29 23:06:54 +00:00
Justin T. Gibbs cb0d548bf4 Merge in latest Linux sequencer code release with my changes. This should
make the sequencer code fully compatible with the aic7870 (ie 294x adaptors).
I've also added to my local mods putting the sequencer into "FASTMODE" clock.
This gives upwards of 2M/sec write preformance improvement in some scenarios.
There haven't been any reports of this causing problems, and I have been
reaping the benifits of it for more than a week now.

This also includes a new version of the pre-generated file <ugh>

Obtained from: John Aycock ([email protected]) and myself
1994-11-29 23:04:23 +00:00
Jordan K. Hubbard 74c8239d6a Add additional sites from ftp list. Put germany in proper
alphabetical order.
1994-11-29 22:43:15 +00:00
Jordan K. Hubbard d6da96e176 Add uni-duisburg Germany site. 1994-11-29 22:31:03 +00:00
Guido van Rooij f89cc4ce98 Add ftp.nl.net to MIRROR.SITES. 1994-11-29 18:23:21 +00:00
David Greenman 6e1173dc29 In past releases of FreeBSD, I have used the exit status of "ping" to
determine whether a connection to a given machine is up or not.

In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping
is always zero, even if no packets were received.

I would like to propose the following change to /usr/src/sbin/ping/ping.c
to restore this useful behaviour:

Submitted by:	Denis Fortin
1994-11-29 16:09:56 +00:00
Jordan K. Hubbard 8580379053 Experimental change to floppy driver to NOT probe the floppy tape if
flags & 0x1.  Somebody should build a kernel with this and see if
the floppy-tape damaged people can turn it off properly with userconfig.
I can't reproduce the original problem here.
1994-11-29 15:46:20 +00:00
Andrey A. Chernov 1f36118a96 wscrl: implement partial scrolling via al/dl
winsdel: implemented via wscrl
winsertln/deleteln: implemented as macros via winsdel
1994-11-29 02:48:20 +00:00
Andrey A. Chernov f3be64932f Get rid of gets
Submitted by: Ollivier Robert
1994-11-29 01:11:43 +00:00
Andrey A. Chernov 3d9528063c BSD 4.4 compatibility fix
Submitted by: Ollivier Robert
1994-11-29 01:05:37 +00:00
Jordan K. Hubbard f37da39bb9 Do some last evil things when extracting the bindist to work around problems
reported so far with /tmp and /sys.  This should just drop into a current
bindist without problems.
1994-11-29 00:56:30 +00:00
Stefan Eßer 99e7cabca3 Really deactivated the code that puts scsi stats into dk0.
This should have been disabled for some time, but I had screwed up ...
This made spurious values appear for fd0 in systat, when there was
NCR SCSI activity.
1994-11-28 23:18:46 +00:00
Jordan K. Hubbard 50d89503a4 First shot at fixing all the various bugs reported so far in the
installation.
1994-11-28 22:13:07 +00:00
Justin T. Gibbs aef8c83d89 Add fbtab.5 to the Makefile so that it will be installed.
Garrett mentioned the /etc/fbtab feature and I was wondering why
I hadn't heard of it...
1994-11-28 21:52:45 +00:00
Andreas Schulz 1a61bcff48 Add the 3C501 to the supported hardware list. 1994-11-28 21:52:15 +00:00
Andreas Schulz 86b41cccd2 Add the NCR 53C825 and the 3com 3C507 and 3C579 to the supported
hardware list.
1994-11-28 19:23:19 +00:00
Andreas Schulz a7f24f529c Add the files y.tab.h and a2p.c that get automatically generated to
the CLEANFILES target. Remove the file a2p.c from the source tree, this get
generated anew from a2p.y.
1994-11-28 18:30:44 +00:00
Andreas Schulz eafe5e1c1c Add the automatically generated files: y.tab.h c-exp.tab.c ch-exp.tab.c and
m2-exp.tab.c to the CLEANFILES target.
1994-11-28 17:19:52 +00:00
Ugen J.S. Antsilevich c334f8666a Added: ICMP reply,TCP SYN check,logging.. 1994-11-28 12:35:14 +00:00
Ugen J.S. Antsilevich 7985370449 Interface changes to support additions to firewall. 1994-11-28 12:34:37 +00:00
Andreas Schulz 6313f15402 Add the automatically generated crunched_skel.c file to the CLEANFILES. 1994-11-28 11:46:37 +00:00
Andreas Schulz 588cf4250c Add the files: characs, gold, lastdead, mess, monsters, motd, scoreboard, void
that are created from a setup program to the CLEANFILES list.
1994-11-28 11:12:29 +00:00
Satoshi Asami 9a96872aa3 Add a site in Northern Japan. 1994-11-28 06:46:49 +00:00
Andreas Schulz 7dd4667fed Submitted by: M.C. Wong
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
1994-11-27 23:52:13 +00:00
Andreas Schulz d3378ee165 Include "scbus.h" in scsiconfig.c to get the number NSCBUS from the
config file.
1994-11-27 23:30:48 +00:00
Andreas Schulz f345c4ea15 Comment out an illegal define (E_CLNL_???). 1994-11-27 20:58:30 +00:00
Bruce Evans fb5960efc4 Remove ifdef for STATCLOCK. STATCLOCK is standard. 1994-11-27 16:16:35 +00:00
Bruce Evans e89bcdb80f Apply an even number of ntohl's to icmp_otime. This fixes
`timedc clockdiff ...'.
1994-11-27 16:06:31 +00:00
Bruce Evans 8a3c1b369a Fix syntax errors (0 = foo()). 1994-11-27 16:01:29 +00:00
Bruce Evans 7b9754ed1f Fix previous change: don't attempt to reserve cblocks if the tty is null. 1994-11-27 15:29:57 +00:00
Andreas Schulz 0e01a1ca15 Expand again the SYMTAB_SPACE for LINT. 1994-11-27 14:59:54 +00:00
David Greenman 150f9c68d5 Go back to -O optimization...Bruce's arguments against -O2 are convincing
enough for me.
1994-11-27 14:26:16 +00:00
Joerg Wunsch d439025208 Temporary kludge: treat \r same as \n in input, so working on a
comconsole will behave as expected.  The true problem should be fixed
instead, Bruce' comment for this:

>Anyway, i found the reason for my problems: somehow, ICRNL isn't in
>effect at `userconfig' time (but only for comconsole?), hence only

ICRNL doesn't apply to cngetc().  cnputc() unconditionally does the
equivalent of ONLCR; perhaps cngetc() should unconditionally do the
equivalent of ICRNL.  Ddb must be checking for CR.  Userconfig only
checks for NL.  Userconfig works with syscons because pccngetc()
does the conversion.  This is probably the wrong place to do it.
1994-11-27 13:43:37 +00:00
Andreas Schulz 66f2024ac6 Correct a typo in my mailing address and also use the new alias for my
machine. I should better rename it soon from g386bsd to freebsd to
avoid confusion with the new 386BSD release :-).
1994-11-27 13:06:18 +00:00
Andreas Schulz 0517d73d9a Submitted by: Philippe Charnier
Corrected two typos in the specification of the french freebsd site.
freeBSD -> FreeBSD.
1994-11-27 13:03:00 +00:00
Andrey A. Chernov 79f2f48ea8 Fix many duplicated attribute sets 1994-11-27 05:23:52 +00:00
Andrey A. Chernov 3d3c746818 Add wrefresh before doing putp when idlok 1994-11-27 03:08:12 +00:00
Andrey A. Chernov 06fc741b2a Make idlok works properly with back color erase. 1994-11-27 02:22:09 +00:00
Poul-Henning Kamp 6128633879 I made a syntax error yesterday.
Submitted by:	John Capo
1994-11-27 01:49:39 +00:00
Andreas Schulz 5aff5aea84 Expand the EISA MAX_SLOTS from 8 to 16. 1994-11-26 23:10:03 +00:00
Bruce Evans 3339943545 Submitted by: Kirk McKusick
Allow chown() to return success if the gid isn't changed even if
the gid is not the caller's.  Such gids are normal for files created
in world-writable directories sucj as /tmp.  This "fixes" annoying
error messages for mv'ing files created in /tmp to another file
system.  mv still preserves the foreign gid of /tmp, but now does
it silently.
1994-11-26 19:38:30 +00:00
Andrey A. Chernov 23826a9d2a Call rc.local with . instead of sh to pass variables
Submitted by: John Capo
1994-11-26 19:25:14 +00:00
Bruce Evans d1a795a280 Fix cblock starvation bugs by reserving enough cblocks for minimal
operation of each clist.  Limit the growth of each clist.  Clists
can only grow larger than the reserved minimum if there are free
cblocks in a shared pool.  The size of this pool is now fixed
(this could be improved).  The reserved and maximum sizes are more
carefully allocated for slip and ppp, depending on the mtu.  A maximum
MTU of 16384 is now enforced for ppp.
1994-11-26 19:24:13 +00:00
Bruce Evans ba77d4e47b Don't block for output in non-blocking mode if clists run out.
Remove an unnecessary test (if the output queue is above high water
then it is nonempty).
1994-11-26 18:54:25 +00:00
Andreas Schulz 5dd2c633c9 Add a -fwritable-strings to the CFLAGS. hack need it :-). 1994-11-26 16:15:44 +00:00
Andreas Schulz 0013dd1dc4 Correct a litle typo in an error message: PRC -> RPC. 1994-11-26 13:57:46 +00:00
Satoshi Asami d58baccfd1 Typo. 1994-11-26 12:10:37 +00:00
David Greenman fdfb68ba09 Always put received packets in an mbuf cluster. This simplifies the code
considerably and is measurably faster. Various comment fixes.
1994-11-26 10:51:49 +00:00
Poul-Henning Kamp 4ca88be6e9 Set the bootverbose if so desired.
if (bootverbose)
    Print the geometries the bios passes to us (through the bootblocks).
1994-11-26 09:37:57 +00:00
Poul-Henning Kamp 0a6a925d04 Declare "extern int bootverbose", so that device-drivers and others
easily can find it.
1994-11-26 09:27:58 +00:00
Poul-Henning Kamp 424183f2a4 Implement RB_VERBOSE. This is intended to mean: Print all information which
could be of any use for trouble-shooting problems with boot/devices/drivers.
1994-11-26 09:08:48 +00:00
Poul-Henning Kamp 94fc076f56 Stefan Esser proved that I couldn't program, and Ollivier Robert that I
couldn't spell :-)
Submitted by:	Stefan Esser, Ollivier Robert
1994-11-26 08:57:42 +00:00
Satoshi Asami 94c13683b4 Added some Japanese sites that carry 2.0-RELEASE. 1994-11-25 23:13:26 +00:00
Andreas Schulz e4c5063e0b Changed the MAX_SLOTS constant from 8 to 16. The EISA bus can have up
to 16 slots.
1994-11-25 22:25:15 +00:00
Gary Clark II 156cca51f5 Add entry about missing perl libs. Would someone please add a tar file of
these to freefall.cdrom.com:~/pub/perl/libs.tar.gz.
1994-11-25 19:40:25 +00:00
Andrey A. Chernov 5ddddc4827 Change wrong comment: NCFTP_ARGS --> NCFTPFLAGS 1994-11-25 17:04:02 +00:00
David Greenman 7e20f2848c Go back to Bruce's fix with a minor change that will allow a NULL string
pointer if len is 0. I should have looked at the revision history - I would
have found that Bruce already fixed the bug with len=0 over a month ago.
Whoever said that the bug was in 2.0 was wrong.
1994-11-25 08:58:53 +00:00
David Greenman eadf9e27cd These changes fix a couple of lingering VM problems:
1.	The pageout daemon used to block under certain
	circumstances, and we needed to add new functionality
	that would cause the pageout daemon to block more often.
	Now, the pageout daemon mostly just gets rid of pages
	and kills processes when the system is out of swap.
	The swapping, rss limiting and object cache trimming
	have been folded into a new daemon called "vmdaemon".
	This new daemon does things that need to be done for
	the VM system, but can block.  For example, if the
	vmdaemon blocks for memory, the pageout daemon
	can take care of it.  If the pageout daemon had
	blocked for memory, it was difficult to handle
	the situation correctly (and in some cases, was
	impossible).

2.	The collapse problem has now been entirely fixed.
	It now appears to be impossible to accumulate unnecessary
	vm objects.  The object collapsing now occurs when ref counts
	drop to one (where it is more likely to be more simple anyway
	because less pages would be out on disk.)  The original
	fixes were incomplete in that pathological circumstances
	could still be contrived to cause uncontrolled growth
	of swap.  Also, the old code still, under steady state
	conditions, used more swap space than necessary.  When
	using the new code, users will generally notice a
	significant decrease in swap space usage, and theoretically,
	the system should be leaving fewer unused pages around
	competing for memory.

Submitted by:	John Dyson
1994-11-25 07:58:29 +00:00
David Greenman 40598ff428 Fixed bugs related to returning NULL if length is zero. 1994-11-25 04:11:19 +00:00
David Greenman 293df9d65a Moved "VMSTAT" column up by one row so that it displays properly on 24
row displays.
1994-11-25 03:48:04 +00:00
Andrey A. Chernov 879732b84c Remove -u argument, does nothing for non-priviliged user.
Write LOGNAME in addition to USER as sun uucpd does.
1994-11-25 02:27:08 +00:00
Poul-Henning Kamp 2ef260d35c Fix secrdist sharedlib bug. 1994-11-24 22:34:18 +00:00
Poul-Henning Kamp f9e9c0eceb Finally commit the tzsetup thing :-)
Delete old cksum stuff before remaking it.
1994-11-24 22:30:03 +00:00
Andrey A. Chernov 0f4d42e2c4 Sectors field too narow (6 digits only), increase it to 7 1994-11-24 21:56:03 +00:00
Andrey A. Chernov 3a9d53eaf3 Fix draw_box dims 1994-11-24 21:50:26 +00:00
Andrey A. Chernov 3cab153245 Add -lcompat to LDADD for insque/remque (they treated as part of library) 1994-11-24 21:02:00 +00:00
Jordan K. Hubbard d3be45ac2d Make the UFS stuff try to be a little less clever. 1994-11-24 20:52:16 +00:00
Jordan K. Hubbard 191e03f508 Only get CD/NFS/UFS/... subdirs if they're really necessary. 1994-11-24 20:49:58 +00:00
Stefan Eßer 9ec2a4b3e3 Added #define PROBE_VERBOSE and description (PCI chip set boot messages)
Reviewed by:
Submitted by:
Obtained from:
1994-11-24 20:35:21 +00:00
Andrey A. Chernov 733e641beb Forget to exit alt charset mode, critical for non-cons25r
terminals wits as/ae
1994-11-24 15:09:30 +00:00
David Greenman 4abc71c008 Don't try to page to a vnode that had it's filesystem unmounted. 1994-11-24 14:43:22 +00:00
David Greenman 307d80be7a Moved conversion of ether_type to host byte order out of ethernet drivers
and into ether_input(). It was silly to have bpf want this one way and
ether_input want it another way. Ripped out trailer support from the few
remaining drivers that still had it.
1994-11-24 14:29:38 +00:00
David Greenman 63281ad752 Changed optimization level to -O2. 1994-11-24 14:26:11 +00:00
David Greenman 42f9504181 Re-apply an old patchkit days fix of mine for mempages:
* PATCHES MAGIC                LEVEL   PATCH THAT GOT US HERE
 * --------------------         -----   ----------------------
 * CURRENT PATCH LEVEL:         1       00051
 * --------------------         -----   ----------------------
 *
 * 14 Aug 92    David Greenman          Fixed NEWVM mempages calculation
1994-11-24 13:13:55 +00:00
Andrey A. Chernov 97b8db5f63 For unknown reason _G_HAVE_SYS_RESOURCE was defined to 0 instead
of 1. (we have it). Please check gnu2bmake script
1994-11-23 21:11:20 +00:00
Andrey A. Chernov 284cd8b7b9 Add missing osfcn.h 1994-11-23 21:00:24 +00:00
Garrett Wollman 8a7c811a5b Don't core on ``root on qq0 and fx0 and yy0'' specifications; just
take the first one and ignore all the rest, giving a warning message.
Fixes PR #3.
1994-11-23 20:36:08 +00:00
Andrey A. Chernov 1573231708 mass fixes from 1.1.5.1 + better log erros and incorrect logins 1994-11-23 19:33:17 +00:00
Andrey A. Chernov 768c5595a8 Fix uucico path
Submitted by:  Gene Stark
1994-11-23 17:48:31 +00:00
Doug Rabson e59e6a8322 Update the RenderMorphics entry.
Reviewed by:
Submitted by:
Obtained from:
1994-11-23 13:13:12 +00:00
Jordan K. Hubbard 372f8992f9 More completely integrate Garrett's doc changes. I didn't read them
closely enough the first time.
1994-11-23 11:04:00 +00:00
Jordan K. Hubbard 84b30f9ab5 Fix stupid NFS bug reported by David Rivers
Fix doc bug reported by Garrett Wollman.
A new cpio floppy should probably be rolled from these changes.
1994-11-23 11:01:41 +00:00
Jordan K. Hubbard 820055b04b Correct a really stupid bug that broke NFS installs. SIGH!!!!! 1994-11-23 10:52:30 +00:00
Gary Clark II 8af9982ad9 Add entry about problems with BT-946c's and some Intel MB's.
Obtained from: Paul Richards
1994-11-23 10:21:59 +00:00
Ugen J.S. Antsilevich 033f71c8e2 The long-time-waited-for patch for PPP.
See Gene's mail for explanation..
Submitted by: Gene Stark
1994-11-23 08:29:44 +00:00
Andrey A. Chernov d117a622c6 Make edquota works with other then vi editors,
i.e.check file by name, not by fd
1994-11-22 18:52:58 +00:00
Paul Richards 13b2012a78 Added
CLEANFILES += makedevs.c
1994-11-22 13:34:43 +00:00
Jordan K. Hubbard b68ce711aa Point people at the troubleshooting guide in advance. 1994-11-22 10:57:36 +00:00
Jordan K. Hubbard 9168526dbf Document the "old boot blocks" problem. 1994-11-22 10:55:55 +00:00
Jordan K. Hubbard 5c52037561 Remove /usr/gnu from mandatory manpath. 1994-11-22 09:57:42 +00:00
Jordan K. Hubbard 403d1a0fc2 A few tweaks. 1994-11-22 09:54:19 +00:00
David Greenman b83f4f55d8 Bunch of fixes from Matt Thomas:
1) make #includes correct
2) fix bugs in address check macros
3) fixed bugs in, and enabled, recopy if heavily fragmented code
4) moved call to bpf tap to be before enqueing packet (probably gratuitous)
5) fixed bug that caused "abnormal interrupt" at boot time/first use
6) added support for reading Zynx address ROM
7) fixed bug that caused broadcasts to not work shortly after booting (only
	manifested if not using multicast - e.g. not in FreeBSD 2.0)
8) fixed spelling errors in comments

Submitted by:	Matt Thomas
1994-11-22 09:47:31 +00:00
Poul-Henning Kamp 6b9833ef2e Thanks guys. 1994-11-22 09:16:46 +00:00
Jordan K. Hubbard 5ac7aadff8 Changes for 2.0R. 1994-11-22 09:02:46 +00:00
Jordan K. Hubbard 48ae41e5f9 Changes to README for release. 1994-11-22 08:58:42 +00:00
David Greenman d49456add7 Preallocate the first swap block to work around a failure with swap starting
at physical block 0. Note that this will show up in pstat -s and swapinfo
as space "in use". In reality, the space is simply never made available.
1994-11-22 08:47:20 +00:00
Poul-Henning Kamp c3cd331e8e des DISTRIBUTION became secrdist. 1994-11-22 08:03:26 +00:00
Jordan K. Hubbard a822466469 Update the X Inside, Inc text to include some stuff Jeremy just sent me. 1994-11-22 06:58:09 +00:00
Jordan K. Hubbard 9160b19d04 Make serial interface have a default value, and indicate that it has
to start with /dev.  Thanks, Chris.
1994-11-22 06:50:13 +00:00
Jordan K. Hubbard dfbabf6ea2 1. Add instructions for installing onto a second disk.
2.  Clean up the FAQ just a bit.
1994-11-22 06:48:39 +00:00
Poul-Henning Kamp f20024c410 Various hackeries. 1994-11-22 05:21:06 +00:00
Andrey A. Chernov 106d493a69 add missing tconv 1994-11-22 00:47:14 +00:00
Andrey A. Chernov 47d3b798a6 Make this file more BSD-like 1994-11-21 23:03:23 +00:00
Andrey A. Chernov 326d35c650 Fix wrong size check for scroll forward/backward ('S'/'T') 1994-11-21 17:59:29 +00:00
Andrey A. Chernov 22651317ac Attempt to fix scroll forward/ scroll backward bug bringed by vi,
'S' and 'T' use count 1 in fillw() instead of count == n.
1994-11-21 14:36:02 +00:00
Andrey A. Chernov fafeaee340 Fix scroll bug bringed by 'vi <several_small_files>'
and :n command then. :prev bug still exists because it syscons
bug itself, I work on it.
1994-11-21 14:16:31 +00:00
Jordan K. Hubbard af3583a4e9 Fix an obscure message that went off the right hand side. 1994-11-21 11:18:48 +00:00
Andreas Schulz 0512285fe2 Don't use a rm -rf WORKDIR if NO_WRKDIR is defined. You have a good chance
to blow away your current dir, because WRKDIR == CURDIR. This should
help tcpblast to not blow away itself in the clean target :-).
1994-11-21 10:30:37 +00:00
Jordan K. Hubbard c3a9ff65c8 Allow users to specify both a timezone AND add users. Whoops!
We're all pretty nuked at this point..
1994-11-21 09:50:02 +00:00
Andreas Schulz f8f6d0dc4a Reviewed by: Bruce Evans
Add prototypes for the *rand48 family here in the moment to get them
running again.
1994-11-21 09:25:58 +00:00
Søren Schmidt e152817e20 Fixed ' & ` keys .
Submitted by:	Andreas Klemm
1994-11-21 08:50:18 +00:00
Jordan K. Hubbard 67b7b75534 Make sure new machines always have a host name. 1994-11-21 08:33:56 +00:00
Poul-Henning Kamp a8c663f641 syntax error 1994-11-21 08:15:25 +00:00
Jordan K. Hubbard 13eb85741f ALPHA -> BETA 1994-11-21 07:38:48 +00:00
Jordan K. Hubbard 9d093e920c Make abort just abort, not ask. Dialog's internal state is hosed at that
point anyway by re-entrancy.
1994-11-21 07:33:21 +00:00
Jordan K. Hubbard 604d60cdc0 Delete packages from list of options - we don't handle it properly
anyway.  Clip the XFree86 prompt down to size.
1994-11-21 07:25:27 +00:00
Jordan K. Hubbard 2f6a5f5422 Add XFree86 distribution to list of possibles. 1994-11-21 06:45:01 +00:00
Jordan K. Hubbard 9f3ecf33fd Redirect cd errors properly to /dev/ttyv1 1994-11-21 06:18:30 +00:00
Jordan K. Hubbard f136b559c2 Make David happy. 1994-11-21 06:15:30 +00:00
Jordan K. Hubbard d119e9a337 Wasn't unmounting media in-between extractions. Fixed. 1994-11-21 05:36:01 +00:00
Jordan K. Hubbard de9d098f83 More last minute midnight formatting. 1994-11-21 04:47:28 +00:00
Jordan K. Hubbard 832341b4c0 Remove extra-space braindamage. 1994-11-21 04:35:26 +00:00
Poul-Henning Kamp b258325a0e More hacks from the last 20 hours... 1994-11-21 04:14:33 +00:00
Jordan K. Hubbard bbc9e5fc7e More Helpful Hints from Heloise. 1994-11-21 04:11:28 +00:00
Poul-Henning Kamp 7b0a9474f1 fix libdescrypt reference. 1994-11-21 02:58:43 +00:00
Poul-Henning Kamp 7560c41839 abs path to /sys 1994-11-21 02:21:07 +00:00
Jordan K. Hubbard c9cc84f0a0 Invoke tzsetup properly, since we have no /bin/sh at this stage. 1994-11-21 02:17:06 +00:00
Poul-Henning Kamp 179c34054c once more 1994-11-21 01:54:55 +00:00
Poul-Henning Kamp b8faa34ddb More abs paths nuked 1994-11-21 01:52:36 +00:00
Jordan K. Hubbard 5821901779 Changes for BETA 1994-11-21 01:32:51 +00:00
Jordan K. Hubbard 96d4a2b4e1 (M)ountpoint -> (A)ssign 1994-11-21 01:30:03 +00:00
Poul-Henning Kamp f6936e4b00 Another absolute path... 1994-11-21 01:07:02 +00:00
Poul-Henning Kamp 122e125592 -I${.CURDIR}/../.. 1994-11-21 00:54:28 +00:00
Poul-Henning Kamp 55229b5643 Absolute path to /sys again... 1994-11-21 00:53:32 +00:00
Poul-Henning Kamp d8b4e0d7f5 More absolute paths 1994-11-21 00:17:10 +00:00
Garrett Wollman d477883788 Don't install bogus tftp, tftpd, tcom manual pages from the MIT Kerberos
distribution.  They don't apply here.
1994-11-20 23:41:23 +00:00
Garrett Wollman 1b6e011b0d Add a help-distribute' target which does a distribute' in our subdirs,
then goes into all the directories a `make kprog' would have and
does it there, too.  This should complete the krbdist, except that P-HK
has to figure out where in his build process he wants to build and install
this stuff.
1994-11-20 23:39:44 +00:00
Andreas Schulz fb851cf86c Submitted by: Julian H. Stacey
Changed the echo to match correctly the intended code.
1994-11-20 23:34:51 +00:00
Garrett Wollman b406571dee Add krb (Kerberos) to EXTRADISTRIBUTIONS. 1994-11-20 23:31:36 +00:00
Garrett Wollman a38c3127e1 Add distribution=krb for P-HK 1994-11-20 23:23:28 +00:00
Garrett Wollman 18f3b9a144 Add DISTRIBUTION=krb for Kerberos case. 1994-11-20 23:18:15 +00:00
Garrett Wollman 36e95c3186 Add DISTRIBUTION=krb for P-HK. 1994-11-20 23:16:51 +00:00
Poul-Henning Kamp 3d68884c5b No point, what so ever, in installing /etc/myname 1994-11-20 23:11:00 +00:00
Poul-Henning Kamp 5b4be47e28 Another absolute path... Two actually. 1994-11-20 23:01:27 +00:00
Poul-Henning Kamp 75f6922290 add extract.sh to dists 1994-11-20 22:56:27 +00:00
Poul-Henning Kamp 181d4e73b5 bin_tgz.aa -> bindist_tgz.aa 1994-11-20 22:55:24 +00:00
Poul-Henning Kamp 3eeb0c9e5b Guess what 1994-11-20 22:47:52 +00:00
Poul-Henning Kamp e007d7c51f Whoops. 1994-11-20 22:46:14 +00:00
Poul-Henning Kamp 342fe62299 I might soon stop to keep count of these... 1994-11-20 22:45:14 +00:00
Poul-Henning Kamp c4bff2faf4 And another absolute path -I :-< 1994-11-20 22:42:16 +00:00
Poul-Henning Kamp b53839540d This time: an absolute -I :-< 1994-11-20 22:41:03 +00:00
Poul-Henning Kamp 7a621ea796 fix another BLODDY ABSOLUTE .PATH !!!! :-< 1994-11-20 22:28:09 +00:00
Andreas Schulz 794cdf17ef Add parameters "compress", "normal" and "noicmp" for the slip usage.
These names are used in the slip.hosts file as examples, but ifconfig
have formerly only accepted link0, -link0 and link1 for this.
1994-11-20 19:45:58 +00:00
Jordan K. Hubbard e6c9671c34 Add ref.tfs.com to mirrors now that wcarchive is temporarily down and
we'd like to do the BETA.
1994-11-20 15:18:56 +00:00
Jordan K. Hubbard 8151a277cf o Add Michael Reifenberger's mini-adduser script.
o	Optionally invoke tzsetup or adduser from the last stage.
o	Add tzsetup and friends to cpio floppy.
1994-11-20 14:49:48 +00:00
Jordan K. Hubbard 0a50d08da1 Add getopt. 1.x used to have it, it's gone from 2.0, I need it, end
of story.
1994-11-20 14:21:25 +00:00
Andreas Schulz dc0b56513d Put a simple algorithmus in there that checks the last generated prototype
for ioconf.c with the current and suppress the generation if they are
equal. This now prevents all the warnings from the c-compiler about
sio or snd or two adaptecs. This works only if the sio lines are grouped
together in the config files, but it is better than nothing.
1994-11-20 13:39:07 +00:00
Jordan K. Hubbard 07c2d0802d Eliminate a couple of the last remaining bogons. 1994-11-20 12:16:48 +00:00
Ugen J.S. Antsilevich 1050b242d8 G-d help me to do it right first time....
Minor patch to man page,test.
1994-11-20 11:53:06 +00:00
Jordan K. Hubbard 5b83f1d7bb Add Russian mirror site to list. 1994-11-20 05:44:16 +00:00
Poul-Henning Kamp 5f497e07ff Make "games" dist by moving everything relevant out of bindist. 1994-11-20 01:54:13 +00:00
Poul-Henning Kamp 3204ec6602 Make the "games" dist the hard way. 1994-11-20 01:53:09 +00:00
Poul-Henning Kamp 62b2140150 /usr/share/games belong in "games dist" 1994-11-20 01:19:33 +00:00
Poul-Henning Kamp ff93920c50 Make the tarballs target work. 1994-11-20 01:01:28 +00:00
Poul-Henning Kamp 93ea8d147a A couple of changes more. Now Paul & Jordan can play again... :-) 1994-11-20 00:49:21 +00:00
Andrey A. Chernov ef849892d9 Add ^X,^B,^F,^E,^A
Implement KEY_DC/^D
Fix some displaying errors
Add more beeps on reaching edges
1994-11-20 00:21:02 +00:00
Poul-Henning Kamp 309543ede7 Changes to match Pauls code. Had to "globalize" the variables for the
mountpoints.
1994-11-19 23:59:03 +00:00
Andrey A. Chernov a6a32c7ae0 Now use "btab" keyword in all keymaps 1994-11-19 23:27:03 +00:00
Andrey A. Chernov 1afec25476 More intelligent BackTab fix using BTAB special key (unused before) 1994-11-19 23:17:48 +00:00
Andrey A. Chernov db69647720 Fix all keymaps to bring BackTab to life. 1994-11-19 22:58:56 +00:00
Poul-Henning Kamp f143db1a98 I just learned that isa.h is included in assembler files too... 1994-11-19 18:59:04 +00:00
Poul-Henning Kamp f194376568 add
extern u_int atdevbase;       /* offset in virtual memory of ISA io mem */
here for a moment, to get it into BETA
1994-11-19 18:47:57 +00:00
Paul Richards e4124e3192 Changed the MBR partition type field from being a string to
a decimal value.

I don't have the time to deal with users typing in partition names
such as "FreeBSD" at the moment so just allow the numerical id to be
specified for the moment.
1994-11-19 18:23:08 +00:00
Nate Williams 54d17bb8f1 NetBSD -> FreeBSD
(Bring to 2.0 please)
1994-11-19 18:19:27 +00:00
Nate Williams 6764337197 NetBSD -> FreeBSD
(Please bring into 2.0)
1994-11-19 18:13:59 +00:00
Nate Williams 750870d48f NetBSD -> FreeBSD
(Poul, bring this into 2.0 please)
1994-11-19 17:55:35 +00:00
Andreas Schulz ef1520b343 Add the missing subdirs cdplay and spkrtest into the clean/cleandir targets. 1994-11-19 17:34:12 +00:00
Paul Richards 6dd3a38fff Implemented buttons for all the screens.
Could do with some cosmetic tuning regarding placement and things.

Fixed some dialog code (from Andrew).
Pass mountpoints onto stage2 in a struct fstab *mounts[]
Fix all the field connections to conform to the new L&F document.
1994-11-19 17:29:19 +00:00
Andreas Schulz d85050deb1 Ooops, change back the LIBDIR macro to the SHLIBDIR macro for the shared
libs as told by Bruce. Now it works.
1994-11-19 14:01:58 +00:00
Jordan K. Hubbard db85ed15df Some miscellaneous bug fixes inspired by Adam Glass's work. Adam's
work is actually more comprehensive, but I just took what was needed
for now given our compressed time schedules.  Thanks, Adam!
Submitted by:	glass
1994-11-19 13:57:21 +00:00
Andreas Schulz ee2b9e6b02 More updates to the manual pages. Used also the unknown macro.
Also install the named-xfer manual page, when we have it in the source.
1994-11-19 13:42:06 +00:00
Andreas Schulz 85c08d3263 More updates to the manual pages. Used also the unknown macro. 1994-11-19 13:41:26 +00:00
Andreas Schulz 3ea78182f0 Correct the nslookup manpage that has some macros in it, that our man system
doesn't understand.
1994-11-19 13:16:52 +00:00
Andreas Schulz 1957afa609 Correct the named manpage that has some macros in it, that our man system
doesn't understand.
1994-11-19 13:14:54 +00:00
Andreas Schulz 6ace5496e9 Correct the dig manpage that has some macros in it, that our man system
doesn't understand.
1994-11-19 13:12:37 +00:00
Andrey A. Chernov 2c154e8124 Automatically turn off insert mode when end of field reached
in line_edit().
1994-11-19 10:22:12 +00:00
Andrey A. Chernov 5fa4b99ccf Highlight only flen sized part while editing in line_edit() 1994-11-19 09:58:34 +00:00
Paul Richards d35f2e963a I hope this gets my changes merged back into the current branch.
Removed a layer of menus.
Auto select partition to install into -- first FreeBSD partition
in MBR table. Abort if no FreeBSD partition.
Added a F_BUTTON type.
Fixed up label editor to show free space properly.
Fixed a few bugs.
1994-11-19 05:20:13 +00:00
Andrey A. Chernov 3fa6f2210c Highlight only space available for editing 1994-11-19 00:45:02 +00:00
Andrey A. Chernov 1479d21fc1 Insert newline into too long line 1994-11-19 00:17:55 +00:00
Andrey A. Chernov f3dc909d25 Fix more dialog bugs and core dumps introduced by previous commiter 1994-11-19 00:09:00 +00:00
Andreas Schulz bc9c7467df Make two variables static so that the compiler warnings are
vanishing. As far as i know rpc.rusersd is single_threaded, so
this shouldn't be a problem.
1994-11-18 23:36:18 +00:00
Andrey A. Chernov c2cd62a46d Fix dialog things broken by previous commiter 1994-11-18 23:34:05 +00:00
Andreas Schulz 7c760cfd4f Reviewed by: Roger Holst [email protected]
Add an initialization of the len parameter for the getsockname call.
Now rpc.rwalld can run under inetd.
1994-11-18 22:50:22 +00:00
Andrey A. Chernov 852ffa1977 silently restrict all boxes to LINES, COLS 1994-11-18 22:49:09 +00:00
Andreas Schulz 053efb2d12 Reviewed by: Roger Holst [email protected]
Add an initialization of the len parameter for the getsockname call.
Now rpc.rusersd can run under inetd.
1994-11-18 22:40:11 +00:00
Andreas Schulz dc2e984f57 Reviewed by: Roger Holst [email protected]
Add an initialization of the len parameter for the getsockname call.
Now rpc.rstatd can run under inetd.
1994-11-18 22:31:05 +00:00
Andrey A. Chernov 8fbd0636ed Nuke edit_line crawled in again. Change all occurances to line_edit. 1994-11-18 22:21:57 +00:00
Andreas Schulz 193ef50ab2 Fixed a typo. Seems this manual page has stemmed from the rwall
man page :-).
1994-11-18 21:37:40 +00:00
Justin T. Gibbs 88d9617c20 Register with devconfg so we show up in lsdev. 1994-11-18 20:34:30 +00:00
Andreas Schulz 85e5776f0a Change the example line for popper to point to /usr/local/libexec/popper
instead of /usr/local/etc/popper. The 2.0 installation installs it there.
1994-11-18 20:01:21 +00:00
Paul Richards 48dd1a4713 Update the in-core disklabel when we change the on-disk version.
Fix up the editor links for the disklabel editor.
Correct the display of fields when they're longer than the
viewable length.
1994-11-18 19:29:01 +00:00
Jordan K. Hubbard 26b39132e4 Put ie0 above ep0. Otherwise, the ie0 probe clobbers it.
Submitted by:	gibbs
1994-11-18 19:10:25 +00:00
Jordan K. Hubbard 918254f37d Some fields overflowed. Fix 'em up. 1994-11-18 19:09:33 +00:00
Justin T. Gibbs 8c1294dcf2 IO_EISASIZE should be 1 slot, not 2. 1994-11-18 19:01:25 +00:00
Jordan K. Hubbard 80d20e763f Minor reformatting changes. Trying to also figure our why *some* links
are made and not others! :-(  My cu link, for example.  Or restore->rrestore!
1994-11-18 18:42:08 +00:00
Paul Richards 111054f0ba New files that the last commit missed. 1994-11-18 18:24:00 +00:00
Paul Richards 9e3f27547d Merge in my new mbr and disklabel code. 1994-11-18 18:13:13 +00:00
Jordan K. Hubbard ade521b8fd Whoops! Missed a quote. 1994-11-18 17:36:11 +00:00
Jordan K. Hubbard 0d7b509f9c Don't set NFS options unless there really ARE some. 1994-11-18 16:48:57 +00:00
Jordan K. Hubbard 9b1096e759 From: [email protected] (Bill Paul)
Subject: Mea culpa -- small fix for netboot fixes

In accordance with the unavoidable principle sof Murphy's Law, I discovered
that the fixes I recently contributed for the netboot code had some small
flaws in them. Two of them were just typos and had no effect on how the
program functioned. The other one was a missing line from the rootopts and
swapopts functions I created in bootmenu.c, which was supposed to initialize
the NFS sotype flag. It defaults to UDP, and you can change it to TCP with
the rootopts or swapopts commands, but then you can't change it back again.
I originally had a line at the top of each function to reinitialize this
flag, but somehow it got lost in the shuffle, probably because I don't
actually have a need for that flag yet.

Submitted by:	wpaul
1994-11-18 16:29:50 +00:00
Jordan K. Hubbard dca5391032 Grrrr! Dialog menus just bail out without saying anything when the
menu items aren't unique enough.  After half an hour of head-scratching,
here are the disgusting convolutions required to work around the problem.
Sigh..
1994-11-18 16:27:54 +00:00
Jordan K. Hubbard 9ade4053f5 If there's no title for input dialog, select one. 1994-11-18 15:13:37 +00:00
Jordan K. Hubbard 1545cdf5ab More miscellaneous fixes.
Sigh.  It's hard to test something that screws up a running system when
it works, so I have to do most of this through the rather laborious process
of making boot floppies! ;-(
1994-11-18 14:55:12 +00:00
Jordan K. Hubbard 89da5fd2de Document the AHA-274x and 284x driver as a new feature. 1994-11-18 14:26:07 +00:00
Jordan K. Hubbard 4021c574e7 Tell user to remove floppy from the drive before rebooting, too. 1994-11-18 13:59:49 +00:00
Jordan K. Hubbard 0edfee1ddc Tell silly users to remove the cpio floppy from the drive now. 1994-11-18 13:58:25 +00:00
Jordan K. Hubbard cab5cb1fee Some of my menus were hosed by late-night tired braincells. Do it
right now.
1994-11-18 13:56:57 +00:00
Jordan K. Hubbard 8c05edbc74 Boy, was THIS buggered up! Calm the compiler by fixing the obvious
syntax errors.
1994-11-18 13:40:19 +00:00
Jordan K. Hubbard e9a380faf6 Talk a little more about boot roms. 1994-11-18 13:02:23 +00:00
Jordan K. Hubbard c70ce47ad6 1. Unify my coding style.
2. Fix a couple of errors that kept media_install_set from working.
3. Fix another error that disabled media_select_distribution
1994-11-18 12:54:45 +00:00
Andreas Schulz 1e0b142e29 Makefile:
Change the reference for the libtermcap libtermlib link from SHLIBDIR
to LIBDIR. SHLIBDIR is undefined in the standard case.
termcap.c:
Initialize a local variable to zero. Otherwise an erroneous free call
can happen and clobber the calling program.
Seen with vi and gdb. If you have TERMCAP set with a terminal entry and
set TERM with something like huhu, vi and gdb core dumps.
1994-11-18 12:38:43 +00:00
Jordan K. Hubbard 10c3815c46 Add these files. They're referenced in the release notes. 1994-11-18 12:03:29 +00:00
Poul-Henning Kamp 68964a5619 Put bad144 on the boot.flp. It wont do too much good, but maybe somebody
will be able to use it somehow...
1994-11-18 11:31:29 +00:00
Poul-Henning Kamp f1dd848016 Add a "write Bootcode" option to the Fdisk editor.
unzip sysinstall on the way to the hd.
1994-11-18 11:30:04 +00:00
Poul-Henning Kamp e0985944c1 Improve the case for ST506 disks a bit: Pick up Bios-geometry.
That was the good news.  The bad news is that bad144 is a proper mess,
and I don't have time to fix it now, so you will probably not be able to
use it anyway.
Sorry guys, go out and buy a 100Mb IDE drive and a paddleboard :-(
If somebody wants to pick up on this:  bad144 needs to learn how to
stay inside our slice of the disk.  That's the trick.
1994-11-18 11:27:41 +00:00
Jordan K. Hubbard dcfd4857b6 1. Use dynamic sizing code throughout.
2. Add support for *dist menu to have an up-to-date idea of how big each
   distribution is going to be.
1994-11-18 11:01:33 +00:00
Jordan K. Hubbard 30ddff9dfb Document "(P)rocede" - (Q)uit was still being billed as the method
for continuing the installation! :-)
1994-11-18 10:32:43 +00:00
Jordan K. Hubbard 9757986c55 Make sure that homicidal bindist doesn't clobber my /etc/defaultrouter
file, either.
1994-11-18 10:22:39 +00:00
Poul-Henning Kamp 66706b4367 Change the message a little bit... 1994-11-18 10:21:31 +00:00
Jordan K. Hubbard f91148273a Write the /etc/defaultrouter file. I didn't even know it existed.
Thanks, Christoph..
1994-11-18 10:19:04 +00:00
Poul-Henning Kamp 04b734cf24 Extended the SEEKWAIT and RECALWAIT somewhat to avoid annoying messages. 1994-11-18 10:18:36 +00:00
Jordan K. Hubbard 3902fd08ed Give the user a chance to retry the cpio floppy. 1994-11-18 10:12:56 +00:00
Jordan K. Hubbard f25f4d7271 1. Use cpio instead of tar again. Bruce's comments made me paranoid.
2. Invoke sub-scripts using absolute paths.
1994-11-18 10:05:47 +00:00
Justin T. Gibbs 771c42f405 Change the include for the sequencer program to point back to the
right place:

include "../../sys/gnu/misc/aic7770/aic7770_seq.h"
1994-11-18 09:14:14 +00:00
Justin T. Gibbs 8d244f9e3b Previous changes to the sequencer compiler backed out. We go back to
generating the .h file, and a pregenerated file is included.
1994-11-18 09:11:35 +00:00
Justin T. Gibbs b0c8ba6fea Never but never have a bad hair day and go to the movies.
Go to a single dependancy in files.i386.  Using a .c file for the
sequencer code won't work since I need to know the size of the program,
so we just include the generated .h file as:
	"../../sys/gnu/misc/aic7770/aic7770_seq.h"
Reviewed by:
Submitted by:
Obtained from:
1994-11-18 09:08:01 +00:00
Jordan K. Hubbard 1bb8699814 Whoops - this one's my fault. Put back my changes for seqprog[]. 1994-11-18 09:03:09 +00:00
Jordan K. Hubbard d6e867f326 Get IO_EISASIZE properly defined now.
Reviewed by:
Submitted by:
Obtained from:
1994-11-18 08:22:04 +00:00
Jordan K. Hubbard a32a00c32c aha2742.c was bogus - use aic7770.c instead.
Submitted by:	gibbs
1994-11-18 08:20:56 +00:00
Jordan K. Hubbard 9f91f5760a Get the updated version of this file from Justin. 1994-11-18 08:19:21 +00:00
Jordan K. Hubbard 9cc6cb724f Make the compiler spit out a .c file instead of a .h file. 1994-11-18 08:17:20 +00:00
Jordan K. Hubbard 1885873c70 Make this a precompiled script - don't bother autogenerating it.
It makes me crazy.
1994-11-18 08:16:59 +00:00
Jordan K. Hubbard 347abd2ee2 Make the sequencer code a .c file instead of a .h file. 1994-11-18 08:14:16 +00:00
Jordan K. Hubbard 6328676293 Totally gut this thing and just use a precompiled gnu/misc/aha274x_seq.c
instead.  The entire scheme just doesn't work as envisioned (hint: think
about make depend as well as all).  Those extremely rare individuals who
actually hack on the sequencer code will know how to keep stuff in sync,
I *do* get the feeling!
1994-11-18 08:06:37 +00:00
Jordan K. Hubbard fc3891cfb4 Define IO_EISASIZE to something I think it *might* be!
Justin's star is sinking rapidly below the horizon here.. :-)
1994-11-18 07:25:02 +00:00
Jordan K. Hubbard 997dad8b39 Adjust the name of the included file to match reality.
Somehow, I don't think this stuff was tested at all! :-(
I really hope that it actually works, though my hopes are steadily diminishing.
Anyone with 27xx/28xx boards in -current is *strongly encouraged* to give this
stuff a shot!  Otherwise, I suspect that we'll be punting this out of
2.0.  I haven't found a single part of Justin's commit that wasn't broken
in some way.
1994-11-18 07:07:28 +00:00
Poul-Henning Kamp b3c99fe3f3 one ) less. 1994-11-18 06:22:11 +00:00
Jordan K. Hubbard 3363722633 Another file Justin missed. Hope this is the right one! :-(
I found it by hunting around in his home directory..
1994-11-18 05:40:07 +00:00
Poul-Henning Kamp 048773d8d9 Grap the bootinfo structure the bootblock passes us. 1994-11-18 05:27:34 +00:00
Poul-Henning Kamp e0abbebf36 Declare the bootinfo structure in the kernel. 1994-11-18 05:26:52 +00:00
Poul-Henning Kamp fbc5b3073e Add space for the bios-geometry in the bootinfo struct. 1994-11-18 05:02:43 +00:00
Poul-Henning Kamp efcdc34fe3 Ask the BIOS about the geometry, and tell the kernel about it. 1994-11-18 05:02:14 +00:00
Jordan K. Hubbard 5d75485098 I think Justin sort of forgot to commit this! :-) 1994-11-18 05:01:06 +00:00
Jordan K. Hubbard d2e60eeb05 Add some notes about AIX-6x60 based cards. Important to note that
you CAN'T boot from many of these puppies!
1994-11-18 03:10:32 +00:00
Jordan K. Hubbard 40851014d5 From: "Jonathan M. Bresler" <[email protected]>
in getting mirror-2.3 to work with FreeBSD, i found that timelocal.pl has
a bug.  a patch is included below.  this needs to be applied to both
src/gnu/usr.bin/perl/lib/timelocal.pl and
src/usr.sbin/xntpd/scripts/monitoring/timelocal.pl

Reviewed by:
Submitted by:
Obtained from:
1994-11-18 02:55:21 +00:00
Poul-Henning Kamp 32b4794aff Relativized a ".PATH:" directive. 1994-11-18 02:26:15 +00:00
Jordan K. Hubbard d76158cc6e From: "Jonathan M. Bresler" <[email protected]>
in getting mirror-2.3 to work with FreeBSD, i found that timelocal.pl has
a bug.  a patch is included below.  this needs to be applied to both
src/gnu/usr.bin/perl/lib/timelocal.pl and
src/usr.sbin/xntpd/scripts/monitoring/timelocal.pl

Submitted by:	jmb
1994-11-18 02:24:06 +00:00
Andrey A. Chernov df5add3f69 Draw passed line with passed attrs on enter of line_edit()
and redraw it with default attrs on exit.
1994-11-18 01:46:32 +00:00
Andrey A. Chernov d31ec8c65b Remove edit_line(), use line_edit() libdialog function instead in all places 1994-11-18 01:16:58 +00:00
Jordan K. Hubbard e5525d9d0d Adjust the docs to note that the AHA-2742/2842 series is now supported.
Hurrah for Justin!
1994-11-18 01:12:13 +00:00
Poul-Henning Kamp 7b4b6096f4 dd conv=osync. More distributions. 1994-11-18 01:05:05 +00:00
Andrey A. Chernov a9e8a652cb Add new parameter to line_edit: field length (-1 means unlimited) 1994-11-18 01:02:42 +00:00
Poul-Henning Kamp cb19812e97 Remove ${DESTDIR} from link-macros. Already applied behind the scenes. 1994-11-18 00:59:33 +00:00
Andrey A. Chernov f9c9c70b70 Save/restore attrs in line_edit now 1994-11-18 00:30:06 +00:00
Andrey A. Chernov 45cb79a377 Use newscr instead of curscr in shadows code 1994-11-17 23:54:24 +00:00
Andrey A. Chernov 1f6f0b64cc Make newscr publicly available 1994-11-17 23:53:25 +00:00
Andrey A. Chernov 4195601de8 Use dialog_clear_norefresh() if possible 1994-11-17 23:36:49 +00:00
Andreas Schulz 80aee6ac1f Submitted by: Lawrence J. King [email protected]
Check the firmware revision for non-printing characters and replace them
question-marks if necessary. Problem is known with old Seagate ST296N
drives.
1994-11-17 23:22:22 +00:00
Andrey A. Chernov 934a5f3e30 Use wnoutrefresh() in clear_norefresh 1994-11-17 23:08:57 +00:00
Andrey A. Chernov 1a796bb52a Add dialog_clear_norefresh() function 1994-11-17 22:52:05 +00:00
Søren Schmidt 5e146a0129 Added support for the MicroSoft Natural keyboard
Add support for ws_xpixel & ws_ypixel in winsize.
Submitted by:	Natural support suggested by Kaleb Keithley ([email protected])
1994-11-17 22:03:18 +00:00
Andrey A. Chernov 5c19f0147a Remove regex.h, it conflicts with our POSIX regex.h and we already
have it under different name: gnuregex.h (from libregex)
Change all references of <regex.h> to <gnuregex.h>
1994-11-17 21:44:49 +00:00
Justin T. Gibbs 80785c507b Add new keywords to config. The options availible in file.i386 are now:
/*
         * filename     [ standard | optional ] [ config-dependent ]
         *      [ dev* | profiling-routine ] [ device-driver] [ no-obj ]
         *      [ compile-with "compile rule" [no-implicit-rule] ]
         *                     [ dependancy "dependancy-list"]
         */

I added

no-obj -  This entry does not create anything linkable to the kernel.
dependancy - Add additional dependancy rules to a target.
no-implicit-rule - Don't assume .c -> .o type rules.  Config is really
             dumb in this area and assumes that everything is a .c file
	     irregarless of extention.  This was the best choice really
	     since there may even be .c file that you don't want to follow
	     the standard rules.

This was all done so that the building to the aic7770 assembler and using
the aic7770 assembler in the building of the aic7770 driver could be config
dependant.  I can now have an entry like this for the driver:

aic7770                         optional        ahc     device-driver   \
        compile-with    "${CC} $> -o $@"                                \
        dependancy      "$S/gnu/misc/aic7770/aic7770.c"                 \
        no-obj no-implicit-rule
aic7770_seq.h                   optional        ahc     device-driver          \
        compile-with "${.CURDIR}/aic7770 -o $@ $S/gnu/misc/aic7770/aic7770.seq"\
        dependancy "$S/gnu/misc/aic7770/aic7770.seq aic7770"                   \
        no-obj no-implicit-rule
i386/isa/aic7770.c              optional        ahc     device-driver   \
        dependancy "aic7770_seq.h"

I also added '\' escaping to newlines so that this doesn't look as gross as
it could have.

Reviewed by: jkh
1994-11-17 20:30:01 +00:00
Justin T. Gibbs 09faa0cc64 My port of Julian's 1742 driver to work with the Linux aic7770 sequencer
code.
1994-11-17 20:22:31 +00:00
Justin T. Gibbs cbb8b164f0 New device-driver entries for the aic7770 driver. These use new features
of config so YOU MUST RECOMPILE CONFIG.  Modifying config was the cleanest
solution to integrating this driver into the tree which will become more
obvious in the next commit.
1994-11-17 20:20:54 +00:00
Justin T. Gibbs 0ef8c3017a John Aycock's aic7770 sequencer code and assembler. There is currently
a discussion going on about removing this code from the burden of the
GPL, but it won't happen before Beta, and this code should be tested
before release.

Supports 27/2842 class adaptec cards and is almost capable of supporting
aic7870 based adapters (294X series cards).  It does not support Wide
controllers or the second channel on Twin boards although I have work in
progress on getting both channels and running.

I have also added a few performance improvements to this version that give
us approximately a 25% boost over the original driver.  These patches have
been submitted to the author.

Obtained from: Linux aic7770 driver (John Aycock - [email protected])
1994-11-17 20:19:10 +00:00
Andrey A. Chernov 5007f4061c Use -1, -1 where is possible 1994-11-17 19:44:55 +00:00
Andrey A. Chernov 04339572bc Fix original bug with wrong calculated dims for items list.
Add args check for functions when autosizing impossible.
1994-11-17 19:21:51 +00:00
Andrey A. Chernov 0cb06fc009 Add yet one russian keymap, widely used by some russians 1994-11-17 18:03:18 +00:00
Andreas Schulz 0b293ea528 Fixed the PATH and cleanenv setting in su. This was totally broken in the
4.4BSD Lite source.
1994-11-17 16:56:58 +00:00
Jordan K. Hubbard 886f34fde6 Add another mirror site and adjust the menu to note that not all
sites are created equal.
1994-11-17 16:18:35 +00:00
Jordan K. Hubbard 30229c536a Add reinstall. 1994-11-17 16:02:56 +00:00
Jordan K. Hubbard 4b75ea3568 There seems to be some trouble with install.man working right everywhere.
Conditionalize it off of INSTALL_MANPAGES until I can figure out just
why some X ports seem to like it and others not.
1994-11-17 15:46:27 +00:00
Jordan K. Hubbard 6914768e93 Yow! Ok, distributions should now be fully auto-checksumming, provided
that Poul builds the rest of the dists properly.  I'll run this over the
XFree86 dist, but the rest will be up to him.  Check bindist rule for
the single line to add - it's trivial.
1994-11-17 15:20:04 +00:00
David Greenman 41ec615889 Fixed rather serious bug where the interface wasn't started after it was
stopped in ed_setrcr(). I'm amazed that the driver worked at all. Thanks to
John Hay for pointing this out.
1994-11-17 14:42:27 +00:00
Jordan K. Hubbard 540bb26ac5 Rethink the cpio floppy verify a little. Don't use a magic cookie,
check for bininst instead (see comments in release/Makefile).
1994-11-17 14:18:43 +00:00
Jordan K. Hubbard 1cdab3d432 Add extra scripts to the Makefile. Add another mirror site to
instdist.sh
1994-11-17 14:18:02 +00:00
Jordan K. Hubbard c1b05c7986 1. Add check to see if CPIO floppy extracted properly.
2. See if swapon() failed and at least print a diagnostic.
3. Use -1 instead of strheight()/strwidth() everywhere.

Reviewed by:
Submitted by:
Obtained from:
1994-11-17 14:12:38 +00:00
Jordan K. Hubbard ccac3799a7 Steven G Kargl <[email protected]>
Finds many spelling errors.  Thanks, Steven!
Submitted by:	steven
1994-11-17 12:35:24 +00:00
Jordan K. Hubbard 68cbb04819 Many fixes from Bill Paul:
Smack the netboot program around so that it will allow the user to
  specify mount options.  [So that you can boot from a privileged port]

  Change the default boot image name in netboot to /kernel, then strip
  the leading slash when actually going out to get the NFS file handle.

  Added support for 3Com 3c503 cards. Also added another command to
  the (trans) that allows you to switch the 3Com's on-board transceiver
  on and off. (ether.c, ether.h, bootmenu.c)

  Modified the Makefile to support new compile-time options for 3c503
  cards:

  -DINCLUDE_3COM                Include support for 3c503
  -D_3COM_BASE=0x300            Define 3c503 base i/o address (if not
                                specified, 0x300 is the default)
  -D_3COM_USE_AUI               Disable the 3c503's transceiver by
                                default (without this flag the transceiver
                                is on by default)
1994-11-17 12:16:07 +00:00
Jordan K. Hubbard 8f00e74801 Eliminate the use of cpio in extraction. The stupid thing whines too much,
and it doesn't support --unlink.  I think it's time to nuke cpio completely
out of the installation process, unless someone can think of a really good
reason to keep it (and don't say multiple volume extraction since we a) don't
use it anywhere anyway, and b) tar supports that too, now).
1994-11-17 11:53:14 +00:00
Andrey A. Chernov 4857d86d34 Put #warning "this file is obsoleted ... etc." 1994-11-17 11:20:44 +00:00
Andrey A. Chernov 4c268ef31a By Bruce and Joerg suggestions and by looking into June version
of NetBSD simple #include <stdlib.h> into malloc.h
Put #warning that this file is obsoleted ( by Joerg suggestion)
1994-11-17 11:04:49 +00:00
Jordan K. Hubbard 07b5b56eba Don't create packages with bogus @name lines. 1994-11-17 10:54:11 +00:00
Jordan K. Hubbard 3e78200fd8 Protect against old packages with bogus @name fields. Use basename_of()
on the name before recording it in /var/db/pkg.  Sorry, Kaleb, you
were right after all!  It was my fault! :)
1994-11-17 10:53:21 +00:00
Jordan K. Hubbard d08bdbd3d1 Add a new basename_of() function. 1994-11-17 10:51:51 +00:00
Doug Rabson 72012b54d0 Added sysarch system call which is used my i386_get/set_ltd.c and is needed
for Wine support.  The current snapshot of wine works fine with this.

This should go into the beta as the code which it calls in the kernel is
already there, and works fine.
1994-11-17 10:50:55 +00:00
Jordan K. Hubbard eead05e797 Remove the QUERY_* functions. I don't think they're as good an
idea as I apparently once did.
1994-11-17 10:35:04 +00:00
Jordan K. Hubbard ee5b1a1e22 Whoops! Typo. Correct. 1994-11-17 10:07:45 +00:00
Jordan K. Hubbard 07f6028ea8 I found today that making packages for X11 ports wasn't working.
Further investigation showed that prefix was erroneously set to /usr/local
for X11 based ports as well, when the assumption was that they'd really go
into ${X11BASE} (an /etc/make.conf variable that the user's free to set).

Set X11BASE to /usr/X11R6 if the user hasn't already, and assume that
the user really wants prefix to point there when the port is XMKMF based.
1994-11-17 10:06:03 +00:00
Jordan K. Hubbard c9a156d596 New man pages from Ugen. Delete my old, first attempt. I only hope
that the english in Ugen's two replacement pages is not too impenetrable! :-)
[Note:  Poul - please pull these into the BETA branch along with the
other firewall changes]

Submitted by:	ugen
1994-11-17 09:50:30 +00:00
Scott Mace 4f64b36cda fix if test for rwhod. 1994-11-17 08:28:02 +00:00
Jordan K. Hubbard d9a5a8b8c2 Add a line to automatically generate CKSUMS file for the bindist. 1994-11-17 07:11:30 +00:00
Jordan K. Hubbard 075b19c88f Add cksum to the cpio floppy - automated checksumming of the *dist
tarballs is just one step away.
1994-11-17 07:09:22 +00:00
David Greenman 792216316f Don't ever try to kill off process 1 - even if we are out of swap space
and it's the candidate pig.
1994-11-17 06:24:25 +00:00
Justin T. Gibbs 7a695db9fa Make newlfs work by adding the MAXSYMLINKLEN and a byte padding to
struct lfs.

[email protected]:
The pad2 field in struct lfs is a kludge. You
need it because the raw devices has to be written in DEV_BSIZE. The
lfs_maxsymlinklen is needed because the tells the UFS code that we
want to use 4.4BSD directory layout insted of FreeBSD 1.1.5.

Reviewed by: Justin Gibbs
Submitted by: [email protected]
1994-11-17 01:38:30 +00:00
Justin T. Gibbs 471e5fa096 John Dyson's patches (and a few from me too) to LFS to use a different
buffering scheme and make it more in tune with FreeBSD's vfs_bio
implementation.  The filesystem seems fairly stable, but I wouldn't recommend
it to anyone not willing to experience problems.  This is very green code and
has the limitation that YOU CAN ONLY HAVE ONE LFS PARTITION MOUNTED AT A TIME.

What LFS is good for:

	Non fsynced writes	FASTER THAN FFS
	Large deletions		Increadibly fast

Reads are a little bit slower than FFS right now, but that is a factor of
how under optimized this code is.  LFS should in theory perform at least as
well as FFS under fsync (iozone) type loads, and this is what I'm currently
working on.

Reviewed by:	Justin Gibbs
Submitted by:	John Dyson
Obtained from:
1994-11-17 01:30:53 +00:00
Justin T. Gibbs bf556a1617 Remove a peice of commented out code that was left over from the early
stages of debugging LFS:

         * if we can't bmap, use old VOP code
         */
!       if (/* (vp->v_mount && vp->v_mount->mnt_stat.f_type == MOUNT_LFS) || */
!               VOP_BMAP(vp, foff, &dp, 0, 0)) {
                for (i = 0; i < count; i++) {
                        if (i != reqpage) {
                                vnode_pager_freepage(m[i]);
--- 804,810 ----
        /*
         * if we can't bmap, use old VOP code
         */
!       if (VOP_BMAP(vp, foff, &dp, 0, 0)) {

Reviewed by: gibbs
Submitted by: John Dyson
1994-11-17 01:22:45 +00:00
Jordan K. Hubbard fcd2dde4e0 Add support for NO_WRKDIR. 1994-11-17 00:25:16 +00:00
Jordan K. Hubbard f877e878c9 2 new concepts that just occurred to me:
MASTER_SITE_OVERRIDE - 	If set in the environment, will override everyone's
	MASTER_SITES settings.  Useful if you'd prefer to point to a
	distfiles repository somewhere closer.

MASTER_SITE_FREEBSD  -  Sets OVERRIDE to be FreeBSD's own master repository.
1994-11-17 00:18:28 +00:00
Jean-Marc Zucconi 1876ac94a7 If USE_GMAKE is defined, use ${GMAKE} in ${XMKMF} && ${MAKE} Makefiles 1994-11-16 23:14:22 +00:00
Martin Renters f832250eb5 Instructions for setting up diskless clients 1994-11-16 15:33:42 +00:00
Andrey A. Chernov dc092b5e4c Update with new autosizing code, use -1 -1 now 1994-11-16 14:47:17 +00:00
Andrey A. Chernov 8b6840ff55 Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes
will follow.
1994-11-16 14:42:22 +00:00
Andrey A. Chernov 5f5d7caab1 Full autosizing support, now you can pass -1, -1 for any
string
1994-11-16 14:37:37 +00:00
L Jonas Olsson 0066ef2281 Added NO_IMPLICIT_C as our header files in standard locations are either
already C++ safe, or C++ header files.
This fixes the problem with parse errors in header files when compiling C++
files.
Recompiling libg++ also solves the undefined synbols problem.
1994-11-16 14:02:42 +00:00
Andrey A. Chernov 915554d454 Change rules to not generate term.h on second make depend 1994-11-16 11:54:09 +00:00
Jordan K. Hubbard 33ccd78725 Latest from Ugen J.S.Antsilevich" <[email protected]>. Poul, please
take this into BETA.
Submitted by:	ugen
1994-11-16 10:18:18 +00:00
Jordan K. Hubbard 63f8d699ac Ugen J.S.Antsilevich's latest, happiest, IP firewall code.
Poul:  Please take this into BETA.  It's non-intrusive, and a rather
substantial improvement over what was there before.
1994-11-16 10:17:11 +00:00
Jordan K. Hubbard f3ac09ee9a 1. Split these scripts into smaller distinct functional units that will
be callable _after_ installation in 2.1's system admin tools.  This is
   almost totally revamped now.

2. Support installation from DOS partition or floppy.

3. Many stray bogons eliminated.  Perhaps a few introduced.  One more
   rev should fix this up, once I've spammed my test machine a couple of
   times.

4. Installation from CD now *really* possible.

5. Allow user to specify arbitary subdirectories for NFS mountpoints -
   UFS, NFS and CD distributions now share many common elements.
1994-11-16 07:51:45 +00:00
Poul-Henning Kamp ff24bee616 Fix a panic I might have seen, or at least could see some day if I havn't
already.
1994-11-16 06:09:29 +00:00
Bruce Evans e5b58b781b The previous revision forgot to define fatal_if_no_DDB() when there is DDB. 1994-11-16 02:45:36 +00:00
Poul-Henning Kamp 6c4b1b79b1 #include <socket.h> -> <sys/socket.h> 1994-11-16 02:16:18 +00:00
David Greenman 288c2640aa Allow MAXMEM to be larger than the detected physical memory. This change
was supposed to have already been made, but got botched somewhere.
Don't clobber the last page of memory (where the message buffer is). Some
BIOS don't gratuitously wipe it out on reboot.
1994-11-16 00:41:06 +00:00
Jordan K. Hubbard 7c85e00e1c From: Michael Reifenberger <[email protected]>
I added a bootfile entry to /kern so every program could examine the
Path and name of the kernel.
Submitted by:	mr
1994-11-15 20:30:56 +00:00
Andrey A. Chernov 81301998fc Make shadow more 'real': now shadowed letters appearse as dim ones. 1994-11-15 17:32:05 +00:00
Bruce Evans ff030ea17d Add prototype for Debugger(). 1994-11-15 14:55:25 +00:00
Bruce Evans 441799e34f Fix it to compile without a leftover ddb.h.
Remove bogus declaration of Debugger().  Call Debugger() even if DDB is
not defined, but still call panic() after Debugger() returns, although
most other SCSI drivers just call Debugger().
1994-11-15 14:54:13 +00:00
Bruce Evans b1234dc0cd Remove bogus declaration of Debugger(). Call Debugger() even if DDB is
not defined, but still call panic() after Debugger() returns, although
most other SCSI drivers just call Debugger().
1994-11-15 14:53:09 +00:00
Bruce Evans baffceaddc Remove bogus and unused declaration and definition of Debugger(). 1994-11-15 14:49:56 +00:00
Bruce Evans f8d920b2db Remove unused definition of Debugger(). 1994-11-15 14:49:12 +00:00
Bruce Evans 16bb31e361 Remove bogus declaration of Debugger(). Change the macro for Debugger()
to call the function instead of doing nothing.
1994-11-15 14:47:49 +00:00
Bruce Evans d0c8f50566 Don't define KERNEL for compiling genassym. The prototype for the system
printf() is inconsistent with the prototype for the library printf() and
gets declared if DIAGNOSTIC is defined because <vm/vm_page.h> includes
<sys/systm.h>.
1994-11-15 14:43:45 +00:00
Bruce Evans df708ff192 Include <sys/socket.h> for declaration of struct sockaddr. This helps
genassym compile when KERNEL is not defined.

Uniformize idempotency ifdef.
1994-11-15 14:41:38 +00:00
Bruce Evans 67f517330d Include <sys/time.h> so that we compile again provided <sys/param.h> is
included first (rtprio stuff broke this).

Add missing __dead2's.
1994-11-15 14:37:39 +00:00
Bruce Evans 84fac47641 Include <sys/disklabel.h> to prepare for slices. Don't include the
unused <sys/dkbad.h>.
1994-11-15 14:34:42 +00:00
Bruce Evans 5783a8ffe5 The SYMTAB_SPACE bloatometer was 40% out of date. 1994-11-15 14:28:46 +00:00
Bruce Evans 962cb277f0 Include <sys/systm.h> to get inlines for spl*() so that LINT kernel links. 1994-11-15 14:26:31 +00:00
Bruce Evans e44e6415cf Disable prototypes that conflict with ones in <netinet/in_pcb.h>. The
conflicts stopped the LINT kernel from being buildable.
1994-11-15 14:23:06 +00:00
Bruce Evans b0d1e6de04 Make gdt_segs[] public again for APM.
Make ldt[] public again and restore currentldt and _default_ldt for
USER_LDT.
1994-11-15 14:12:55 +00:00
Bruce Evans dc4de4ca23 Fix type mismatches exposed by a recently added prototype. 1994-11-15 14:09:18 +00:00
Andrey A. Chernov 89247e2d78 Add malloc.h for better SYSV/Linux compatibility like most
providers (like SUN f.e.) does.
malloc.h have comment about its SYSVism
1994-11-15 13:42:20 +00:00
Jordan K. Hubbard ef3e2ecfbd Change CD devices to the correct ones. 1994-11-15 13:40:00 +00:00
Andrey A. Chernov a17f442eba Add comment about SYSV-ism 1994-11-15 13:32:35 +00:00
Andrey A. Chernov fb05aa973e Fix bug: only one second-level shadow drawed 1994-11-15 12:42:14 +00:00
Andrey A. Chernov ebd8696266 Use autodetected dimensions in Sorry! window 1994-11-15 12:17:42 +00:00
Andrey A. Chernov f7b5cb4380 Use TellEm instead of dialog_msgbox 1994-11-15 12:15:51 +00:00
Jordan K. Hubbard 041c2641f1 Make depends a separate target. Now you can select when the dependency
list is traversed.
1994-11-15 10:16:56 +00:00
Jordan K. Hubbard 5dab37e2b3 Add back tar - I'm not sure where it went again! I know that
cpio reads tar files, but this gives you "tar" in its old familar
way, which is important for those trying to read the old extract.sh'd
bindist.
1994-11-15 08:10:35 +00:00
Poul-Henning Kamp 8ab1d79d16 Integrated GCC-2.6.1 -> GCC-2.6.2 changes.
Notice that the libgcc DOESN'T change number, because there are no
changes.

Also now the gnu2bmake stuff is synchronized again.

I commit this so that others can test too.

You might want to postpone any "make worlds" until tomorrow, to
avoid any problems I didn't see in the first pass.

Thanks to Bruce for rounding up our changes to gcc.
1994-11-15 04:52:19 +00:00
Jordan K. Hubbard 4ef84c6a4e sendbug -> send_pr 1994-11-14 23:52:42 +00:00
Andreas Schulz e9bc745de3 scsiconf.h:
Change the sc_link structure from 8 targets with 8 lun's to
16 targets with 8 lun's. Wide scsi and the ncr 825 does support 16 targets.
scsiconf.c:
move the addition of the trailing NUL's out of a then clause, they are also
needed in the else clause for an unknown device.
1994-11-14 23:39:33 +00:00
Poul-Henning Kamp 7a82d2eb91 A little fix for "make distribute". 1994-11-14 21:28:46 +00:00
Poul-Henning Kamp 48327bc9af Final changes. Now "make distribute" should work as advertised. 1994-11-14 20:56:17 +00:00
Poul-Henning Kamp 750f81de87 More changes for the "distribute" target. 1994-11-14 20:52:54 +00:00
Poul-Henning Kamp f079582484 Make the "distribute" target build the "des" distribution. Make des'ed
init and ed, by pointing to real sources.
1994-11-14 20:45:35 +00:00
Andrey A. Chernov 3f6dabb23b strncmp use wrong utmp name size
Submitted by: [email protected]
1994-11-14 20:26:52 +00:00
Andrey A. Chernov ea69190efb Check exit code of the dialer, from [email protected]
Set HUPCL as default modem flag, idea from [email protected]
but different implementation.
1994-11-14 20:17:36 +00:00
Poul-Henning Kamp d28db85ed5 "distribute" games into their own distribution.
Reviewed by:
Submitted by:
Obtained from:
1994-11-14 20:10:49 +00:00
Andrey A. Chernov 775fca0065 Remove unused variable from previous commit 1994-11-14 19:32:11 +00:00
Andrey A. Chernov c26acd6574 Add model autodetection code, idea from [email protected]
This change affects probe printout, disklabel, devconf stuff
1994-11-14 19:25:43 +00:00
Bruce Evans 004bedeb68 Rewrite almost everything.
Alphabetize.

Write all i/o functions in sleep so that we don't use anything from
NetBSD.

Restore the correct type of u_int for ports.  This saves a whole cycle
per i/o on 486's.

Change `inline' back to __inline to avoid compiler warnings with
-Wreally-all.

Don't implement bdb() unless BDE_DEBUGGER is defined.  Declare bdb_exists
outside the function to avoid hundreds of compiler warnings.

Let the compiler pick the register in asms if possible.

Implement ffs() using inline asm().  gcc provides a slightly different
one.  It was broken in gcc-2.4.5 but works now.  Declaring a correct
version inline ensures getting a correct version.  FreeBSD-1.1.5 has
an slow inline version but FreeBSD-2.0 has a library version (which
probably never gets used).

Do inb() and outb() without using %edx for constant ports below 0x100.

Remove casts to the same type in queue functions.

Declare prototypes for everything implemented i386/*.s and also for
everything that is normally implemented as an inline here (I don't
like the current complete dependency on gcc).  Ifdef out the prototypes
that are declared elsewhere.  THere should be a separate header to
declare things implemented in i386/*.s, but then it would be harder
to override declarations with inlines.

${UII}
1994-11-14 15:04:06 +00:00
Bruce Evans 663f148514 Log processes that exit with an masked npx exception that would trap
with the current default exception (un)mask.  There should be no such
processes unless you change the mask.  Someday the mask should be
changed to the IEEE default of everything masked.  The npx state
gets saved so that it can be checked and this may have the side effect
of fixing a bug that was reported for 1.1.5.  (npx exceptions may
sometimes leak across exits and clobber another process.  I can't see
how this can happen.)

Get some missing/wrong declarations from headers now that the headers
have them.
1994-11-14 14:59:06 +00:00
Bruce Evans 1b099e1e02 Hide the declaration of ffs() if an inline ffs() is implemented.
I couldn't find a better way to avoid compiler warnings about
redundant and/or inconsistent declaration of ffs().  I'd like to
be able to declare prototypes in general headers without committing
to implementing them as `static inline' or `extern', but there
seems to be no way to do this with gcc-2.6.1.  E.g.,

	int foo(void);
	static __inline int foo(void) { return 1; }

causes a warning about the linkage mismatch, while the opposite
order causes a warning about the redundant declaration.
1994-11-14 14:56:46 +00:00
Bruce Evans e77e2e6ca1 Oops, the previous commit got the diff for the log message instead of
the following.

Move declarations to and from <machine/segments.h>.  Make segment stuff
static if possible.

Remove unused (although initialized) global variables _default_ldt,
currentldt, _gsel_tss (rename the latter to the auto variable
gtel_tss).

Use "correct" and consistent types for interrupt handlers.

Remove a mailing address from the code.

Fix type mismatches found by adding prototypes.
1994-11-14 14:23:54 +00:00
Bruce Evans 30008dda2d (Bogus several hundred line diff for a log message deleted. See rev 1.91
for the intended log message. -DG)
1994-11-14 14:19:54 +00:00
Bruce Evans 095b0028db Move declarations of atdevbase and rtcin() to cpufunc.h (a less wrong
place).

Fix spelling error.

Uniformize idempotency ifdef.
1994-11-14 14:19:10 +00:00
Bruce Evans 040f100044 Remove 1.5+K of bloat for unused idt entries.
Partly support BDE_DEBUGGER.  Still broken by conflict with APM.  Does
nothing if BDE_DEBUGGER is not defined.

Clean up prototypes and data declarations.  Declare most of the segment
functions that are implemented in support.s.  Make data private in
machdep.c if possible.

Parenthesize expressions in macros properly!

${Uniformize idempotency ifdef}.
1994-11-14 14:18:15 +00:00
Bruce Evans e00dc32993 Remove extra idempotency ifdef and uniformize the other one.
Comment about support for 4 different spellings of KERNEL.
1994-11-14 14:13:13 +00:00
Bruce Evans 3bbb00e1a3 Declare inline functions as __inline and with new-style parameter lists
to avoid compiler warnings.

Clean up prototypes: alphabetize; don't use redundant `extern' or
meaningless `extern inline'.

Uniformize idempotency ifdef.
1994-11-14 14:12:24 +00:00
Bruce Evans 080e34f38b Declare fuswintr() and suswintr() the same as fusword() and susword().
(These functions are implemented in assembler so the compiler can't
check the declarations.)

Clean up prototypes: restore CSRG's alphabetical order, arg names in
prototypes, formatting to fit in 80 columns
1994-11-14 14:09:38 +00:00
Bruce Evans 67df6ed30c if.h:
Declare a complete prototype for the function pointer *ifa_rtrequest.

radix.h:
Declare a complete prototype for the function pointer *rnh_walktree
and for the function rn_walktree.

Uniformize idempotency ifdef.
1994-11-14 14:06:06 +00:00
Bruce Evans dedb3ba62d Update stupid declaration in comment to match code.
Declare all public syscntlfn's here.
1994-11-14 13:59:09 +00:00
Bruce Evans 6124ac44aa Move declarations of public functions to <sys/sysctl.h>.
Make some private data static.

Comment about MAXPATHLEN bytes of bloat for the kernel name.
1994-11-14 13:58:30 +00:00
Bruce Evans bf40299d44 Declare a complete prototype for the function pointer *ext_free and the
function m_devget.

Uniformize idempotency ifdef.
1994-11-14 13:54:20 +00:00
Bruce Evans 80d08a820d Add prototype for vfinddev(). 1994-11-14 13:51:53 +00:00
Bruce Evans ad7dee4d66 Remove unused `struct disklabel' (the declarations that used it went away).
Uniformize idempotency ifdef.
1994-11-14 13:50:15 +00:00
Bruce Evans 36633bf49d Undo a previous change. <sys/disklabel.h> was broken, not these files. 1994-11-14 13:22:52 +00:00
Bruce Evans 3d06c6b3f5 Declare `struct dkbad' with the correct scope so that everything including
<sys/disklabel.h> doesn't have to include <sys/dkbad.h> to avoid compiler
warnings.
1994-11-14 13:08:44 +00:00
Bruce Evans 4f21005bdd pmap.h:
Disable the bogus declaration of pmap_bootstrap().  Since its arg list
is machine-dependent, it must be declared in a machine-dependent header.

vm_page.h:
Change `inline' to `__inline' and old-style function parameter lists for
inlined functions to new-style.

`inline' and old-style function parameter lists should never be used in
system headers, even in very machine-dependent ones, because they cause
warnings from gcc -Wreally-all.
1994-11-14 08:19:08 +00:00
Bruce Evans ba9c09688c Add missing define of DPADD. Remove uneccessary define SRCS. Reorder
defines.
1994-11-14 08:02:40 +00:00
Bruce Evans 99fb10656e Don't follow a null pointer for the reporting error if kvm_openfiles() fails.
Don't ever pretend that the program is named "." and has no args.
1994-11-14 07:54:06 +00:00
Bruce Evans 2f1d65aabc Don't build an unused array of kernel names when HAVE_GETBOOTFILE is
defined.

Don't use the newfangled C features to waste time building the array
at runtime when HAVE_GETBOOTFILE is not defined.
1994-11-14 07:51:11 +00:00
Bruce Evans d6238d7915 Fix logic in previous commit. 1994-11-14 07:13:12 +00:00
Bruce Evans f0f78037fe Remove the bogus include of <sys/dkbad.h>. 1994-11-14 07:01:58 +00:00
Bruce Evans ff8189b3f8 Install shared libraries in ${SHLIBDIR} instead of in ${LIBDIR}.
Add missing ${DESTDIR}'s.
1994-11-14 06:45:23 +00:00
Bruce Evans 643c00317e Install shared libraries in ${DESTDIR}${SHLIBDIR} instead of in
$(DESTDIR)/$(LIBDIR) (I need SHLIBDIR.  The / was a bug and the
$(...) style was inconsistent.)

Install ordinary libraries in ${DESTDIR}${LIBDIR} instead of in
$(DESTDIR)/$(LIBDIR).

Change remaining $(...) to ${...}.
1994-11-14 06:44:45 +00:00
Bruce Evans baa5e01a32 This change was actually made in the previous revision:
Define SHLIBDIR?= ${LIBDIR} and install shared libraries in
${DESTDIR}${SHLIBDIR} instead of in ${DESTDIR}${LIBDIR}.
SHLIBDIR may be defined in /etc/make.conf to override the
default of /usr/lib (I use /lib).  Other changes are required
for non-default shared library directories to actually work
(ld* and crtso have too many hard-coded paths).

Bruce
1994-11-14 06:28:20 +00:00
Bruce Evans 069fcad2d9 Clean up some foreign makefiles a bit, attempting to handle .sh files
more like binaries.  This is hard to do using a general rules because
the natural `.sh:' rule has a null suffix and null suffixes are broken.
(With 1.1.5's make they sometimes work and sometimes cause core dumps.
2.0's make has a botched fixed and they never work.)
1994-11-14 05:57:36 +00:00
Bruce Evans a3a5ddcb52 Include <sys/types.h> early. This will be required when <stdio.h> and/or
<signal.h> are fixed to not include it.

Bruce
1994-11-14 05:16:46 +00:00
Bruce Evans 2175e44a77 Define `RANTOUCH?= ${RANLIB} -t' and use it instead of ${RANLIB} -t.
RANTOUCH may be defined in /etc/make.conf as
`${ECHO} skipping ${RANLIB} -t' to help stop `make install' from
changing the timestamps on unchanged libraries, thus making the
uninstalled binaries appear to be out of date...  Other changes
are required to stop install from clobbering the timestamps.
1994-11-14 04:55:39 +00:00
Bruce Evans 3ecb436950 Define LIBEDIT, LIBGCC, LIBKVM, LIBSCRYPT and LIBY.
Comment about missing libraries for LIBDES, LIBKDB, LIBKRB, LIBMP, LIBPC
and LIBPLOT.

Don't define LIBDBM since it was replaced by db in libc.

Remove duplication.  ${DESTDIR}/usr/lib/... gives /usr/lib/... even when
DESTDIR is not defined.
1994-11-14 04:28:44 +00:00
Bruce Evans 2c02e8a20a Replace strtol() by strtoul() so that "negative" addresses and masks don't
get truncated to LONG_MAX.  Don't lobotomize the merged library source.

Make all private data static.

Use int_parms for the i/o "address" since the "address" is really a number
and is represented as an int.

Add command `flags' to allow changing device flags.

Fix scrolling of device listing.  Only scrolling of the current devtab
was controlled.  Reprint the header after scrolling.

Rename commands and change strings to match their config(8) keywords:

	io -> port
	IOaddr -> port
	mem -> iomem (abbreviation is io :-()
	MemAddr -> iomem
	case changes

Don't use NULL for ASCII NUL.

Call strtoul() with base 0 for both numbers and addresses so that input
is consistent and hex and octal can be used for numbers.

Fix entry of irq number.  Check the range at no extra cost.  It wasn't
possible to enter irq -1.

Format device listing better.  Large numbers (such as 0xffffffff for the
GENERIC lpt0 port) messed up the formatting.

Show the unit number in the device listing.  Comment about the fields
that aren't shown.
1994-11-14 03:22:28 +00:00
David Greenman b0150bfc4b Set laundry flag when transitioning an inactive page from clean to dirty.
This fixes a performance bug where pages would sometimes not be paged
out when they could be.

Submitted by:	John Dyson
1994-11-14 02:57:40 +00:00
David Greenman 317205ca28 Fixed bug where a read-behind to a negative offset would occur if the
fault was at offset 0 in the object. This resulted in more overhead but
was othewise benign. Added incore() check in vnode_pager_has_page()
to work around a problem with LFS...other than slightly higher overhead,
this change has no affect on UFS.
1994-11-13 22:48:55 +00:00
Nate Williams 0dc02ef480 Fixed a mis-spelling. 1994-11-13 21:19:18 +00:00
Nate Williams 0f1f11ef34 Added the DEC ethernet cards to the list of supported ethernet drivers. 1994-11-13 21:17:38 +00:00
Nate Williams 7145a92269 Changed output message in interrupt-driven lp device from
'TCP/IP interface' to 'TCP/IP capable interface' to avoid confusion.
1994-11-13 21:14:30 +00:00
Poul-Henning Kamp 55ff8fb132 Add a new "distribute" target. This is a variant of install, which will
put the stuff into the right "distribution".  As default things end up
in "bindist".

Normal (ie: most) makefiles know naught of this.

More commits will follow, which will direct various parts of the tree
into the distribution we want them in.

Some of the grief of being release-engineer is supposed to go away with this.
1994-11-13 21:05:28 +00:00
Poul-Henning Kamp 2a7b3781fc Added routines to read the canonical UNIX configuration file. This will
later be applied to a number of programs (inetd for instance) to clean
out the bogus code doing the same thing, modulus all the bugs.

If you need to read a '#'-is-a-comment-file, please use these routines.

I realize that the shlib# should be bumped (for the non-US world:
increased by something), but will defer this until something significant
happens.
1994-11-13 20:47:44 +00:00
David Greenman 24ea4a9671 Fixed bugs in accounting of swap space that resulted in the pager thinking
it was out of space when it really wasn't.

Submitted by:	John Dyson
1994-11-13 15:36:48 +00:00
David Greenman bfbfac11c9 Implemented swap locking via P_SWAPPING flag. It was possible for a process
to be chosen for swap-in while it was being swapped-out. This was BAD.

Submitted by:	John Dyson
1994-11-13 12:47:07 +00:00
David Greenman 0d15e0ac1e Added P_SWAPPING flag to implement a lock for swap in. It was possible for
a process to be chosen for swap-in while it was being swapped-out. This was
BAD.

Submitted by:	John Dyson
1994-11-13 12:46:08 +00:00
David Greenman 07d0d0fc9c Added support for SIOCSIFMTU ioctl. Fixed bug that caused panic at boot time
related to interrupts being enabled before the device attach. The interrupt
should be mapped *after* the device attach.
1994-11-13 12:39:38 +00:00
Justin T. Gibbs e424e8bfac Add ep0 line to kernel config files. 1994-11-13 10:17:07 +00:00
Justin T. Gibbs 72f30c2bd3 Andres Vega Garcia's improvements to the ep driver. This driver is a merging
of the 1.1.5 driver, a recent version of the NetBSD driver, Andres'
transmission start threshold code, and all other relavent changes to the driver
since it was brought into 2.0.  The multicast support from NetBSD has not be
folded in yet.  I've tested it under high loads for two weeks and it is now
robust enough to be included in the GENERIC kernel.
Reviewed by: gibbs
Submitted by:	[email protected] (Andres Vega Garcia)
1994-11-13 10:12:37 +00:00
Nate Williams 412ac969ed Add Matt Thomas' le0 DEPCA driver to the GENERIC kernel. This works
but I can't test to see if it walks on other ethernet drivers.  Can the
install folks add this driver to the install script?
1994-11-13 09:42:07 +00:00
Nate Williams e369a78c55 Added VLB to the list of PC busses supported since this question comes up
often on USENET.

Added comments regarding the new 'extended IDE' controllers, which work with
FreeBSD but do not use the extended features.

Minor formatting changes.
1994-11-13 09:19:04 +00:00
Paul Richards 1ab772898b Fix some bugs with forms that have only text fields.
Add an extern form to forms.h for apps to pick up.
1994-11-13 07:43:43 +00:00
Jordan K. Hubbard c4115cc446 There were some bogons with redirection to /dev/ttyv1 lurking here.
Fix them.
1994-11-13 07:27:36 +00:00
David Greenman ef53d2f8b6 Nuked ed2 - it was added for the common 16bit card case where the
irq is 10. This is auto-sensed/configured now in the 'ed' driver.
1994-11-13 07:20:03 +00:00
David Greenman fed69e2fd2 In cases where it is possible, use the card's configured irq rather than
the one compiled into the kernel. Left in some commented-out shared memory
performance test code.
1994-11-13 07:17:46 +00:00
Paul Richards 0d18307afc The start of a forms editor library. Currently implements text and
input fields. It reads a template file passed to init_forms(char *)
and creates a curses based form editor. See the examples directory
for a basic demo.
1994-11-13 06:45:44 +00:00
Jordan K. Hubbard e2855afcca Adjust the size of the input box. It looks a bit funkier now,
but at least the code is smaller!
1994-11-13 06:32:40 +00:00
Jordan K. Hubbard c9902b6aaa Fix merge conflicts. 1994-11-13 06:11:02 +00:00
Jordan K. Hubbard be25b01844 Michael Reifenberger's libg++ port
Submitted by:	mr
1994-11-13 05:57:35 +00:00
Jordan K. Hubbard b3f6f5fbb3 Michael Reifenberger's libg++ 2.6.1 port.
Submitted by:	mr
1994-11-13 05:54:27 +00:00
Jordan K. Hubbard b8565ceeb3 I buggered the last commit. Make sysinstall work again (^$&*!! missing
comma!).
1994-11-13 04:20:23 +00:00
Jordan K. Hubbard 1d9dacf401 Support ufs installations. 1994-11-13 03:48:55 +00:00
Jordan K. Hubbard 5ece1e4625 Whoops! Update the size of the main menu to 7 items. I'm sleepy. 1994-11-13 02:06:50 +00:00
Jordan K. Hubbard 501cc59d80 I *almost* had it right. Skip over the rest of the command if it's
abbreviated.
1994-11-13 01:55:33 +00:00
Jordan K. Hubbard 0429030d68 Disable the building of the evil floppy images. We blew through the
1.2MB barrier again.  I tell ya, Poul, it's a losing game!  You shave
50 bytes off, the next change takes 100 back, and this is just ALPHA!
The 1.2MB weenies will _just have to buy new drives_!
1994-11-13 01:46:22 +00:00
Jordan K. Hubbard a47758ac19 Add my first-cut at a very short troubleshooting document. We can add
more stuff here as people report it.
1994-11-13 01:21:11 +00:00
Jordan K. Hubbard 89dcf33514 Change the name of the TROUBLE-2.0 file to TROUBLESHOOTING; it just makes
more sense.
1994-11-13 01:20:37 +00:00
Jordan K. Hubbard 65890857c5 Now I know what this message is really supposed to say.. :-) 1994-11-13 01:14:38 +00:00
Jordan K. Hubbard 95ea0c1390 Make the command set actually work the way I'd intended - you can abbrevate
commands now, as long as whatever you abbreviate them to remains unique.
1994-11-13 00:57:06 +00:00
Jordan K. Hubbard 7bb4591ed9 Whoops, make the comment match the new reality while we're at it. 1994-11-13 00:43:29 +00:00
Jordan K. Hubbard b5cd0f92f4 mem's 2nd arg was incorrectly defined as an integer, not address parameter.
I found this out the hard way when I went to do:

	mem ed0 0xe8000

And found out that I had to enter the second parameter in decimal.. :-)
1994-11-13 00:42:01 +00:00
Lars Fredriksen 5d07694903 Delete duplicate pppd entry. Also move pppstats in the right spot lexically. 1994-11-12 22:24:17 +00:00
Jordan K. Hubbard 4cdfb89cfd Install the soon-to-be-written troubleshooting file. 1994-11-12 20:40:14 +00:00
Jordan K. Hubbard 21c3b39552 Erm, on second thought, if it's named `mkextract.sh' then everyone
will think that it builds the extract.sh in THIS directory, which it
most certainly doesn't.  Rename it to be a bit longer, but more explanatory.
1994-11-12 20:39:15 +00:00
Jordan K. Hubbard 2da486aa70 Add the mkextract.sh script I use for the XFree86 distribution, just so
I have a master copy someplace.
1994-11-12 20:37:41 +00:00
Jordan K. Hubbard ed9a3c50d8 Add dmesg. 1994-11-12 20:36:28 +00:00
Jordan K. Hubbard c6c612c2c6 Add hooks for a short trouble shooting document. 1994-11-12 20:34:18 +00:00
Jordan K. Hubbard 5231231d03 Add back ed2. Harrumph.. 1994-11-12 20:27:24 +00:00
Lars Fredriksen ab0f6b123c Obtained from: ppp-2.1.2
More correct use of __FreeBSD__ and BSD4_4 ifdefs. Fixed kvm_openfile()
call based upon suggestion from Bruce Evans.
1994-11-12 19:33:41 +00:00
Lars Fredriksen 665583d21a pppd was missing from the SUBDIRS. 1994-11-12 19:15:01 +00:00
Andrey A. Chernov 8e3327c9e3 Use CDIOCALLOW before CDIOCEJECT 1994-11-12 18:25:03 +00:00
Andrey A. Chernov f1c0b3ad97 Implement CDIOCALLOW as dummy function (for xcdplayer) 1994-11-12 18:18:20 +00:00
Andreas Schulz 9055754b40 Delete a bogus check that the SCSI_DELAY only works for the first
scsi adapter. Let it work on every adapter. Someone want to rewrite
this to be coupled with the adapter specification in the config file,
so that you can say which adapters need it ?
1994-11-12 17:13:23 +00:00
Andrey A. Chernov b27a526947 Revision 1.6 fix was lost: don't write 0 to RTC_DIAG 1994-11-12 16:24:54 +00:00
Andrey A. Chernov a4d451dbae cdplay added 1994-11-12 16:05:43 +00:00
Andrey A. Chernov cc35e837fa Very simple non-X CD player for testing purposes,
better than nothing
1994-11-12 16:03:14 +00:00
Andrey A. Chernov 0e60e64d95 Wrong raw device was created for cd/mcd: d instead of c 1994-11-12 15:48:54 +00:00
Andrey A. Chernov 9c971e7df2 Changes from [email protected] NOT installed (expect one
cosmetique) because we already have right things there or his changes
are incorrect.
Fix mcd_subchan to return position, inspired by idea from
[email protected], but different implementation.
1994-11-12 14:19:11 +00:00
Andrey A. Chernov 866c34f93a Add and reorganize new MCD commands from [email protected]
No functionality changes yet, will be next step
1994-11-12 13:26:13 +00:00
Jordan K. Hubbard 263f1796af When this is run manually, the myname protection stuff probably isn't
needed in all cases.  Guard against this.
1994-11-12 09:55:29 +00:00
Jordan K. Hubbard d86019dd9b Drat! For CDROM, we need to mount_cd9660 not just mount (slap!). 1994-11-12 06:22:25 +00:00
Jordan K. Hubbard 46cf4f38ae Remove ed2. 1994-11-12 06:12:27 +00:00
Jordan K. Hubbard 794a798905 ed2 was actually an impossible entry to reach! 1994-11-12 06:12:01 +00:00
Lars Fredriksen f147a7b270 This commit was generated by cvs2svn to compensate for changes in r4381,
which included commits to RCS files with non-trunk default branches.
1994-11-12 06:07:15 +00:00
Lars Fredriksen 1b4d00dd27 pppstats from ppp-2.1.2 1994-11-12 06:07:15 +00:00
Poul-Henning Kamp 32b9d0746e Try to align to floppy image to a number of sectors to avoid people
making bad floppies.
1994-11-12 05:47:28 +00:00
Poul-Henning Kamp e8411f60b0 Don't continue if we don't get a /, swap and a /usr or 80Mb in /. 1994-11-12 05:40:28 +00:00
Lars Fredriksen 4ecbaff289 Added chat 1994-11-12 05:32:46 +00:00
Lars Fredriksen 9b1aec4804 chat for ppp, from ppp 2.1.2 1994-11-12 05:25:32 +00:00
Lars Fredriksen 0f0f80bfbf This commit was generated by cvs2svn to compensate for changes in r4374,
which included commits to RCS files with non-trunk default branches.
1994-11-12 05:25:32 +00:00
Jordan K. Hubbard c0141fe81f I blew the redirects on the slip stuff. 1994-11-12 05:04:21 +00:00
Jordan K. Hubbard dfd2c8103a Point to new README file location. 1994-11-12 02:25:04 +00:00
Jordan K. Hubbard 8a03984548 Move the README here, with a few updates. 1994-11-12 02:24:28 +00:00
Poul-Henning Kamp e113d7633d Make a kernel sans FFS possible. 1994-11-12 01:47:43 +00:00
Jordan K. Hubbard 3aa40eb0ac Add pppd to the Makefile. It seems to work.. 1994-11-11 23:47:32 +00:00
Jordan K. Hubbard 3695f7d1ae ncftp can't interact with us. Redirect its input from /dev/null. 1994-11-11 23:29:26 +00:00
Jordan K. Hubbard aa638b7a35 Make this use cpio, not tar. Poul-H is going to get his weenie whacked
for this.
1994-11-11 23:27:05 +00:00
Jordan K. Hubbard 7c6f13dc4b Make sysinstall deal with user interrupts properly. 1994-11-11 23:22:56 +00:00
Jordan K. Hubbard d9b4b736b0 Add basename to to the cpio floppy. Thanks, Lars! 1994-11-11 22:27:12 +00:00
L Jonas Olsson 0a599256ea Remove z_abs. It is already in libm.a 1994-11-11 12:58:12 +00:00
L Jonas Olsson dc400d8541 Add missing z_abs. In BSD tradition this is in libm.a. 1994-11-11 12:56:27 +00:00
Jordan K. Hubbard a3f2401e48 Try and make this just a little bit more self-explanatory. Still
a LONG way to go..
1994-11-11 10:55:02 +00:00
Jordan K. Hubbard ff47faa890 Add patch cookies. This should prevent gratuitous patch re-application
attempts.
1994-11-11 09:45:33 +00:00
Jordan K. Hubbard 0ec708c963 Whoops! cu == tip. 1994-11-11 08:47:34 +00:00
Jordan K. Hubbard 99a164544a Make sure /var/log exists so that cu doesn't complain. 1994-11-11 08:34:03 +00:00
Jordan K. Hubbard 97fa4b4e3c Add cu (and cu slip dialog) so that poor SLIP users can dial their modems
before initiating a slip transfer.
1994-11-11 08:33:04 +00:00
Jordan K. Hubbard dcaed5228b 1. Ask the user one final time before newfs'ing his disk into oblivion.
This means that even "proceed" can be chosen now without going
   irrevokably down that path.
2. Clean up the stage5 text.
1994-11-11 07:58:09 +00:00
Jordan K. Hubbard f10ad5791f Typos fixed by Michael E. and Gary J. Thanks, guys!
Submitted by:	me,gj
1994-11-11 07:39:40 +00:00
Jordan K. Hubbard 61c0812173 Add de0 to list of ethernet drivers. This list will be dynamic shortly..
Add an interrupt handler for trigger-happy users.
Add domain to resolv.conf
More general cleanup in preparation for this script being split into
several scripts.
1994-11-11 07:33:50 +00:00
Jordan K. Hubbard 71694402b9 From: Michael Reifenberger <[email protected]>
z_abs is missing in libf2c.
Could someone please commit the following patch?

Submitted by:	mr
1994-11-11 07:27:04 +00:00
David Greenman e50e132aa8 Added 'de' ethernet driver. 1994-11-11 05:48:49 +00:00
David Greenman 027f8c4e0f Convert irq to a bitmask before putting in id_irq.
Fixed bugs related to the 'more' code.
1994-11-11 05:28:59 +00:00
Andreas Schulz 94e6bbfc64 pick up the changes from a makesyscall.sh run. The multiple lkmnosys
declarations should now be gone.
1994-11-10 23:59:47 +00:00
Jordan K. Hubbard 49445644f1 Enable floppy-tape support. 1994-11-10 23:46:31 +00:00
Jordan K. Hubbard e903ac3586 Add ft. 1994-11-10 23:44:35 +00:00
Jordan K. Hubbard eaad9ab057 Experimental floppy-tape suport. 1994-11-10 23:43:25 +00:00
Andreas Schulz fa49dc9cf0 Fix an error to prevent some core dumps from ps.
You can get ps easily to core dump, if you are running a "make depend"
on a kernel in one window and a "ps -auxww" in another. The ww will
try to give you the full argument list of the command that can
now be 64Kb large, but ps expected only 4Kb large arg arrays and
doesn't check for overflows.
1994-11-10 23:25:12 +00:00
Andreas Schulz 1113f91681 Shut up a compiler warning about a missing cast. 1994-11-10 23:14:55 +00:00
Guido van Rooij b0dd7a6b99 Remove redundant stuff. Amazing that they actually solved a bug found in
1.1.5.1, and oversaw this thang.
1994-11-10 18:49:23 +00:00
Andrey A. Chernov af39413d8c Additionly use erase char from termios
Implement kill line by ^U or kill char from termios
1994-11-10 15:16:46 +00:00
Andrey A. Chernov 936d754a6c Fix printout bug
Submitted by: [email protected]
1994-11-10 13:39:01 +00:00
Andrey A. Chernov 6e96c3814b Add 57600, 115200 ro baudrate() 1994-11-10 13:10:21 +00:00
Andrey A. Chernov 3b8f1cfc05 Use adjkerntz into inittodr too (for APM stuff) 1994-11-10 12:53:13 +00:00
Jordan K. Hubbard eb1452c54a Enable support for Lucifer's floppies.
More stylistic drick-drack in bininst.
1994-11-10 05:27:57 +00:00
Jordan K. Hubbard a1f26907b3 Small tweak - I said that ESC-ESC aborted the install. It actually only
suspends it.  Whoops!
1994-11-10 04:28:15 +00:00
Jordan K. Hubbard af75c6de49 Whoops! I wrapped. Try again. 1994-11-10 04:11:58 +00:00
Jordan K. Hubbard 0d4cd18b56 Add some more information on FreeBSD's default security.
Make this a little more readable and fix some typos.
1994-11-10 03:51:18 +00:00
Poul-Henning Kamp d67fe71073 Added des to the food for this. 1994-11-10 03:22:27 +00:00
David Greenman 6e876d0d60 Added missing call to bpf on the transmit side. Nuked revision log. 1994-11-10 02:56:48 +00:00
Jordan K. Hubbard 1690fb01f0 Small stylistic change - don't spawn a subshell, just use the -C flag to tar. 1994-11-10 02:50:42 +00:00
Jordan K. Hubbard 830d93f8fd Move the echo to the right place in case the bindist has already extracted. 1994-11-10 02:47:06 +00:00
Poul-Henning Kamp ffc232881f address @freefall.cdrom.com -> @freebsd.org 1994-11-10 02:34:54 +00:00
Poul-Henning Kamp feba6ddfd8 /dev/apm should be /dev/apm0 1994-11-10 02:32:29 +00:00
Poul-Henning Kamp 9a4deb1b4a Now that the default for the shared gcc-internal lib changed, make this match. 1994-11-10 02:29:41 +00:00
Poul-Henning Kamp e3245077f6 Make it extract anything it finds... 1994-11-10 02:24:47 +00:00
Jordan K. Hubbard 8ac098442c Document that we support 1522 controllers now. 1994-11-09 23:26:57 +00:00
Poul-Henning Kamp 7bb7781dd6 Really build bindist... 1994-11-09 23:07:04 +00:00
Jordan K. Hubbard 0b25c3665d [Changes are now for BETA]
This attempts to make the installion a little less grating by not
clearing the screen every time a like-sized dialog is going to splat
on top of another one.  If you don't want the screen to clear, set
clear="", otherwise leave it set to (or set it back to) "--clear".

It can't be set to "" all the time since then small dialogs appearing
on top of big dialogs look funky.
1994-11-09 23:02:11 +00:00
Poul-Henning Kamp 00063f88d5 some things Jordan forgot... 1994-11-09 20:27:32 +00:00
Jordan K. Hubbard 6eca28c059 One last formatting change. Done. 1994-11-09 20:16:09 +00:00
David Greenman e754e0f30f Fixed bug that somehow made it into here: the ifp must be stored in the
mbuf header for received packets. Minor performance optimizations. Removed
#ifdef MULTICAST's as this isn't optional in our kernel.
1994-11-09 15:12:44 +00:00
Jordan K. Hubbard af34aca310 Changes from Gary Palmer to make all this stuff fit on the screen!
Submitted by:	gpalmer
1994-11-09 02:51:21 +00:00
Jordan K. Hubbard 414f020212 Remove ppp from the list of options - we don't even have ppp in the default
kernel, and ppp people can generally use SLIP.

A few more formatting changes.

Make slip installation work.
1994-11-09 02:49:04 +00:00
Bruce Evans 86a8bb8a33 Don't declare DELAY() here. Callers should include <machine/clock.h>. 1994-11-09 00:51:38 +00:00
Jordan K. Hubbard ba4175f496 Sigh. I'm sleepy, and I just read this again. Have it make sense this time. 1994-11-09 00:10:04 +00:00
Jordan K. Hubbard eefaaf356d Add a long-needed comment about logging in as root. 1994-11-09 00:05:42 +00:00
Jordan K. Hubbard aac9a41cfc Just some last tweaks to make NFS install more friendly. 1994-11-08 23:59:04 +00:00
Poul-Henning Kamp cf268280d3 And the tree is 2.1.0-Development, have fun guys... Who breaks it first ? 1994-11-08 21:28:34 +00:00
Jordan K. Hubbard 55cfde8297 Damn!! I left Soren's name off the core team roster by mistake! :-( :-(
I'm going to re-roll the boot floppies to have this in, and hopefully
Poul will update it into his world tree before making the bin tarballs.
Be a real shame to leave this incorrect!  Very sorry, Soren!  It was
simply an updating oversight! :-(
1994-11-08 20:17:45 +00:00
Garrett Wollman 0b06d15f3a Initial import of pppd from ppp2.1.2 package. Will follow with port commit. 1994-09-25 02:11:29 +00:00
Garrett Wollman 511288a31c Secondf of three commits: add distributed slcompress.[ch] as pppcompress.[ch].
I want to keep these separate as it facilitates LKMs and obviates the need
to merge the two diverging versions of this code.
1994-09-23 00:10:36 +00:00
Garrett Wollman 3ea8854e61 Initial import of the latest version of the PPP stuff. This doesn't
even compile (yet).  You will see three commit messages on this, of which
this is the first.
1994-09-23 00:10:35 +00:00
cvs2svn 67144da169 This commit was manufactured by cvs2svn to create branch 'MACKERRAS'. 1994-09-23 00:10:34 +00:00
7916 changed files with 666392 additions and 761520 deletions

No files matched your search

-49
View File
@@ -1,49 +0,0 @@
$Id$
This file lists hardware, which doesn't do what it should do.
Due to the nature of FreeBSD, we do not have the resources to test all
possible kinds of hardware. We do however every now and then find, buy
or hear about hardware which doesn't work with FreeBSD or in general.
This is that list.
To be added to this list, a piece of hardware has to:
A: not do what it claims.
or
B: not do what common sense would expect it to.
Only if performance claims are wildly of the mark will it be listed here.
All entries must have a date and a mail-address associated with them, to
reflect when and by whom they were added.
For multifunctional devices, please indicate if other parts of the device
work OK, or are untested.
For mutual incompabilities, list both devices.
For SCSI and IDE-devices, list the string seen on boot of FreeBSD, if
possible, and trade name.
Infer format from other entries, Keep sorted by first line.
Thankyou.
---
Controller, Data Technology DTC2280, "PC/AT Super I/O Card"
IDE interface can be set to secondary address, but doesn't work there. Suspect
Interrupt isn't moved along. Works fine on primary address. Other parts of
card not tested.
19940828 [email protected]
---
IDE-disk, <Maxtor 7345 AT>, "Maxtor 7345"
Cannot coexist on the same IDE-controller with a <WDC AC2540H>, "Western
Digital Caviar 2540" disk. Jumpers not exhaustively experimented with, as
neither of the companies make sufficient information available. Disk works
fine when alone on IDE-controller.
19940828 [email protected]
---
IDE-disk, <WDC AC2540H>, "Western Digital Caviar 2540"
Cannot coexist on the same IDE-controller with a <Maxtor 7345 AT>, "Maxtor
7345" disk. Jumpers not exhaustively experimented with, as neither of the
companies make sufficient information available. Disk works fine when alone
on IDE-controller.
19940828 [email protected]
---
+72 -43
View File
@@ -1,11 +1,10 @@
#
# $Id: Makefile,v 1.28 1994/11/01 19:52:38 pst Exp $
# $Id: Makefile,v 1.56 1995/05/13 03:34:23 rgrimes Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include and MOST of /usr/lib
# -DCLOBBER will remove /usr/include and MOST of /usr/lib
# -DMAKE_LOCAL to add ./local to the SUBDIR list
# -DMAKE_PORTS to add ./ports to the SUBDIR list
# XXX1 -DMAKE_KERBEROS to build KerberosIV
# -DMAKE_EBONES to build eBones (KerberosIV)
#
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
@@ -14,40 +13,31 @@
# -DNOOBJDIR do not run ``${MAKE} obj''
# -DNOPROFILE do not build profiled libraries
# -DNOSECURE do not go into secure subdir
#
#
# XXX1 The kerberos IV off the 4.4-Lite tape (src/kerberosIV)
# will not build successfully yet. MAKE_KERBEROS should not be
# defined.
# Put initial settings here.
SUBDIR=
# We must do include and lib first so that the perl *.ph generation
# works correctly as it uses the header files installed by this.
.if exists(include)
SUBDIR+= include
.endif
.if exists(lib)
SUBDIR+= lib
.endif
.if exists(bin)
SUBDIR+= bin
.endif
.if exists(contrib)
SUBDIR+= contrib
.endif
.if exists(etc)
# XXX until etc vs release conversion is done
# SUBDIR+= etc
.endif
.if exists(games)
SUBDIR+= games
.endif
.if exists(gnu)
SUBDIR+= gnu
.endif
.if exists(include)
SUBDIR+= include
.endif
.if exists(lib)
SUBDIR+= lib
.endif
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS)
SUBDIR+= kerberosIV
.endif
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
SUBDIR+= eBones
.endif
@@ -76,6 +66,11 @@ SUBDIR+= secure
SUBDIR+= lkm
.endif
# etc must be last for "distribute" to work
.if exists(etc) && make(distribute)
SUBDIR+= etc
.endif
# These are last, since it is nice to at least get the base system
# rebuilt before you do them.
.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
@@ -93,11 +88,11 @@ OBJDIR= obj
.endif
.if defined(NOCLEANDIR)
CLEANDIR= clean
.else
.else
CLEANDIR= cleandir
.endif
world: hierarchy cleandist mk includes libraries tools
world: hierarchy mk cleandist includes lib-tools libraries tools
@echo "--------------------------------------------------------------"
@echo " Rebuilding ${DESTDIR} The whole thing"
@echo "--------------------------------------------------------------"
@@ -105,12 +100,11 @@ world: hierarchy cleandist mk includes libraries tools
${MAKE} depend all install
cd ${.CURDIR}/share/man && ${MAKE} makedb
hierarchy:
@echo "--------------------------------------------------------------"
@echo " Making hierarchy"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}/release && ${MAKE} hierarchy
cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
update:
.if defined(SUP_UPDATE)
@@ -163,6 +157,7 @@ installmost:
cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost
#.endif
@@ -181,6 +176,7 @@ most:
cd ${.CURDIR}/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most
#.endif
@@ -200,19 +196,16 @@ includes:
@echo "--------------------------------------------------------------"
@echo
.if defined(CLOBBER)
rm -rf ${DESTDIR}/usr/include
mkdir ${DESTDIR}/usr/include
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include
chmod 755 ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/include/*
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
-p ${DESTDIR}/usr/include
.endif
cd ${.CURDIR}/include && ${MAKE} install
cd ${.CURDIR}/gnu/include && ${MAKE} install
cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS)
cd ${.CURDIR}/kerberosIV/include && ${MAKE} install
.endif
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall
.endif
@@ -222,11 +215,39 @@ includes:
cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
.if defined(WANT_MSUN)
.if !defined(WANT_CSRG_LIBM)
cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
.endif
cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libforms && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
cd ${.CURDIR}/lib/libftp && ${MAKE} beforeinstall
lib-tools:
@echo "--------------------------------------------------------------"
@echo " Rebuilding tools needed to build the libraries"
@echo "--------------------------------------------------------------"
@echo
cd ${.CURDIR}/gnu/usr.bin/ld && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/ar && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/ranlib && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/nm && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/lex/lib && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/usr.bin/compile_et && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR} && \
rm -f /usr/sbin/compile_et
cd ${.CURDIR}/usr.bin/mk_cmds && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
libraries:
@echo "--------------------------------------------------------------"
@@ -237,10 +258,24 @@ libraries:
find ${DESTDIR}/usr/lib \! -name '*.s[ao].*' -a \! -type d | \
xargs rm -rf
.endif
.if exists(lib/libcompat)
cd ${.CURDIR}/lib/libcompat && \
${MAKE} depend all install
.endif
.if exists(lib/libncurses)
cd ${.CURDIR}/lib/libncurses && \
${MAKE} depend all install
.endif
.if exists(lib/libtermcap)
cd ${.CURDIR}/lib/libtermcap && \
${MAKE} depend all install
.endif
.if exists(gnu)
cd ${.CURDIR}/gnu/lib && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/gnu/usr.bin/cc/libgcc && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
cd ${.CURDIR}/secure/lib && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
@@ -253,16 +288,6 @@ libraries:
.endif
cd ${.CURDIR}/usr.bin/lex/lib && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS)
cd ${.CURDIR}/kerberosIV/acl && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/kerberosIV/des && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/kerberosIV/kdb && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
cd ${.CURDIR}/kerberosIV/krb && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
cd ${.CURDIR}/eBones/des && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
@@ -273,6 +298,10 @@ libraries:
cd ${.CURDIR}/eBones/krb && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(usr.sbin/pcvt/keycap)
cd ${.CURDIR}/usr.sbin/pcvt/keycap && \
${MAKE} depend all install ${CLEANDIR} ${OBJDIR}
.endif
tools:
@echo "--------------------------------------------------------------"
+1 -1
View File
@@ -30,7 +30,7 @@ your bug report, so please be sure to take note of it when reporting
any failures in the installation! Thanks!
Menus and scrolling output windows may be traversed with the arrow
and Page Up/Page Down keys. To abort the installation at any point,
and Page Up/Page Down keys. To suspend the installation at any point,
hit ESC twice. Hitting TAB will move the focus to different controls.
If you've ever dealt with a DOS installation, you'll know how to deal
with this.
+36 -38
View File
@@ -1,9 +1,9 @@
; $Id: TODO,v 1.4 1994/09/11 20:01:03 phk Exp $
; $Id: TODO,v 1.11 1995/04/05 13:16:30 jkh Exp $
** To skip this preamble, search forward for the pattern `**'.
This file contains a list of ideas that people have come up for "good
things to do" in FreeBSD 2.0. These aren't necessarily things on the
things to do" in FreeBSD. These aren't necessarily things on the
fast-track, and in fact consist mostly of things that the core team is
never going to find the time to do so, if most things here are going
to happen at all, they'll happen when someone reading this list steps
@@ -13,7 +13,7 @@ That said, a lot of these ideas would be very nice to have and would
add substantially to the perceived value of FreeBSD. Some items on
this list would add a LOT of value, for that matter, and are by no
means trivial. Take and fix an item with a (*) next to it and WC will
even send you a free 2.0 CD for your troubles! It's the least they
even send you a free CD for your troubles! It's the least they
can do for all notable contributors.
This is a also good place to look if you're keen for a little
@@ -40,8 +40,8 @@ If you start working on something from this list, we also suggest that
you contact the email-address listed for more information and to
provide some central coordination for your effort. If the email
address given is simply <foo> then the email address can be presumed
to be <foo@freefall.cdrom.com>. If no email address is listed, then
simply send to <freebsd-hackers@freefall.cdrom.com>.
to be <foo@FreeBSD.ORG>. If no email address is listed, then
simply send to <freebsd-hackers@FreeBSD.org>.
Thanks!
@@ -49,19 +49,10 @@ Thanks!
** --- cut here ---
TASKID: 940820001
TASK: Add interupts to pas.c
DETAIL: { You'll need a manual for the ncr-5380 chip and possibly some
doc on the PAS16. Linux/NetBSD also have existing drivers to study. }
EMAIL: <phk>
CATS: kernel scsi
GRADE: ADVANCED
STATUS: OPEN
TASKID: 940820002
TASK: Add Linux/Crynwr compatible plip mode to lpt.c
DETAIL: { Use IF_LLC0 as mode-flag. Look at the crynwr packet-driver
plip.asm (ftp::ftp.ftp.com) and the linux driver for reference. }
DETAIL: { Look at the crynwr packet-driver plip.asm (ftp::ftp.ftp.com)
and the linux driver for reference. }
EMAIL: <phk>
CATS: kernel networking
GRADE: ADVANCED
@@ -85,19 +76,10 @@ also requires some modification of existing drivers to support being used
by PCMCIA cards. This task is both really hard and comparatively easy;
hard because it's a big job, easy because others have already gone much of
the way and you have their work for reference. }
EMAIL: <jkh>
EMAIL: <phk>
CATS: kernel laptop
GRADE: ADVANCED
STATUS: OPEN (*)
TASKID: 940820005
TASK: Salvage seagate.c driver from 1.1.5.1
DETAIL: { We've got a seagate driver that could use a little cleanup and
migration effort }
EMAIL: <jkh>
CATS: kernel scsi
GRADE: BEGINNER
STATUS: OPEN
STATUS: IN PROGRESS
TASKID: 940820006
TASK: Add bootp/DHCP to the generic ethernet code.
@@ -118,16 +100,6 @@ CATS: kernel networking
GRADE: ADVANCED
STATUS: OPEN (*)
TASKID: 940820009
TASK: Make a freebsd.com MS-DOS boot program
DETAIL: { This program should be able to boot like the boot-blocks, that is
find a FreeBSD-partition and load the kernel from there, but it should
also be able to load the kernel from an optional MS-DOS file. }
EMAIL: <phk>
CATS: kernel DOS
GRADE: ADVANCED
STATUS: OPEN (*)
TASKID: 940820010
TASK: Make iostat find the disks
DETAIL: { This is actually mostly a change to the device-drivers to collect
@@ -156,7 +128,7 @@ best accomplish the task. }
EMAIL: <jkh>
CATS: user
GRADE: INTERMEDIATE
STATUS: OPEN
STATUS: CLOSED - PENDING DOC
TASKID: 940911001
TASK: Make PAS16 a controller.
@@ -166,3 +138,29 @@ EMAIL: <phk>
CATS: kernel
GRADE: INTERMEDIATE
STATUS: OPEN
TASKID: 950222001
TASK: Make find smarter about -fstype local
DETAIL: { Currently when doing a find blah -fstype local the find traverses
through all nfs mounted file systems looking for locally mounted filesystems,
this could be short circuited by using getmntinfo/statfs. Note that you
can not do this when following symlinks. }
EMAIL: <rgrimes, phk>
CATS: user
GRADE: INTERMEDIATE
STATUS: OPEN
TASKID: 95031701
TASK: Implement a file system debugger (fsdb)
DETAIL: { Traditionally, there has been a fsdb(8) program in Unix.
This program is not part of 4.4BSD, but the current system lacks
some utility to low-level step through the file system and repair
(or damage:) something in case fsck tells about problems, but the
administrator is unlucky with the suggested actions of fsck.
The original fsdb had a terrible syntax, something more rationale
should be built instead. }
EMAIL: <joerg>
CATS: user
GRADE: ADVANCED
STATUS: OPEN
-7
View File
@@ -1,7 +0,0 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= chflags
SRCS= chflags.c stat_flags.c
.PATH: ${.CURDIR}/../../bin/ls
.include <bsd.prog.mk>
-123
View File
@@ -1,123 +0,0 @@
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)chflags.1 8.2 (Berkeley) 3/31/94
.\"
.Dd March 31, 1994
.Dt CHFLAGS 1
.Os
.Sh NAME
.Nm chflags
.Nd change file flags
.Sh SYNOPSIS
.Nm chflags
.Oo
.Fl R
.Op Fl H | Fl L | Fl P
.Oc
.Ar flags
.Ar file ...
.Sh DESCRIPTION
The
.Nm chflags
utility modifies the file flags of the listed files
as specified by the
.Ar flags
operand.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl H
If the
.Fl R
option is specified, symbolic links on the command line are followed.
(Symbolic links encountered in the tree traversal are not followed.)
.It Fl L
If the
.Fl R
option is specified, all symbolic links are followed.
.It Fl P
If the
.Fl R
option is specified, no symbolic links are followed.
.It Fl R
Change the file flags for the file hierarchies rooted
in the files instead of just the files themselves.
.El
.Pp
Flags are a comma separated list of keywords.
The following keywords are currently defined:
.Bd -literal -offset indent compact
.\"arch nothing yet.
dump set the dump flag
sappnd set the system append-only flag (super-user only)
schg set the system immutable flag (super-user only)
uappnd set the user append-only flag (owner or super-user only)
uchg set the user immutable flag (owner or super-user only)
.Ed
.Pp
Putting the letters
.Dq no
before an option causes the flag to be turned off.
For example:
.Bd -literal -offset indent compact
nodump the file should never be dumped
.Ed
.Pp
Symbolic links do not have flags, so unless the
.Fl H
or
.Fl L
option is set,
.Nm chflags
on a symbolic link always succeeds and has no effect.
The
.Fl H ,
.Fl L
and
.Fl P
options are ignored unless the
.Fl R
option is specified.
In addition, these options override each other and the
command's actions are determined by the last one specified.
.Pp
The
.Nm chflags
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr chflags 2 ,
.Xr stat 2 ,
.Xr fts 3 ,
.Xr symlink 7
-180
View File
@@ -1,180 +0,0 @@
/*
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef lint
static char copyright[] =
"@(#) Copyright (c) 1992, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
static char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94";
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
#include <err.h>
#include <errno.h>
#include <fts.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
u_long string_to_flags __P((char **, u_long *, u_long *));
void usage __P((void));
int
main(argc, argv)
int argc;
char *argv[];
{
FTS *ftsp;
FTSENT *p;
u_long clear, set;
long val;
int Hflag, Lflag, Pflag, Rflag, ch, fts_options, oct, rval;
char *flags, *ep;
Hflag = Lflag = Pflag = Rflag = 0;
while ((ch = getopt(argc, argv, "HLPR")) != EOF)
switch (ch) {
case 'H':
Hflag = 1;
Lflag = Pflag = 0;
break;
case 'L':
Lflag = 1;
Hflag = Pflag = 0;
break;
case 'P':
Pflag = 1;
Hflag = Lflag = 0;
break;
case 'R':
Rflag = 1;
break;
case '?':
default:
usage();
}
argv += optind;
argc -= optind;
if (argc < 2)
usage();
fts_options = FTS_PHYSICAL;
if (Rflag) {
if (Hflag)
fts_options |= FTS_COMFOLLOW;
if (Lflag) {
fts_options &= ~FTS_PHYSICAL;
fts_options |= FTS_LOGICAL;
}
}
flags = *argv;
if (*flags >= '0' && *flags <= '7') {
errno = 0;
val = strtol(flags, &ep, 8);
if (val < 0)
errno = ERANGE;
if (errno)
err(1, "invalid flags: %s", flags);
if (*ep)
errx(1, "invalid flags: %s", flags);
set = val;
oct = 1;
} else {
if (string_to_flags(&flags, &set, &clear))
errx(1, "invalid flag: %s", flags);
clear = ~clear;
oct = 0;
}
if ((ftsp = fts_open(++argv, fts_options , 0)) == NULL)
err(1, NULL);
for (rval = 0; (p = fts_read(ftsp)) != NULL;) {
switch (p->fts_info) {
case FTS_D:
if (Rflag) /* Change it at FTS_DP. */
continue;
fts_set(ftsp, p, FTS_SKIP);
break;
case FTS_DNR: /* Warn, chflag, continue. */
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));
rval = 1;
break;
case FTS_ERR: /* Warn, continue. */
case FTS_NS:
warnx("%s: %s", p->fts_path, strerror(p->fts_errno));
rval = 1;
continue;
case FTS_SL: /* Ignore. */
case FTS_SLNONE:
/*
* The only symlinks that end up here are ones that
* don't point to anything and ones that we found
* doing a physical walk.
*/
continue;
default:
break;
}
if (oct) {
if (!chflags(p->fts_accpath, set))
continue;
} else {
p->fts_statp->st_flags |= set;
p->fts_statp->st_flags &= clear;
if (!chflags(p->fts_accpath, p->fts_statp->st_flags))
continue;
}
warn("%s", p->fts_path);
rval = 1;
}
if (errno)
err(1, "fts_read");
exit(rval);
}
void
usage()
{
(void)fprintf(stderr,
"usage: chflags [-R [-H | -L | -P]] flags file ...\n");
exit(1);
}
+4 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: chmod.c,v 1.3 1995/02/03 22:21:09 bde Exp $
*/
#ifndef lint
@@ -49,6 +49,7 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
#include <err.h>
#include <errno.h>
#include <fts.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -69,6 +70,8 @@ main(argc, argv)
int Hflag, Lflag, Pflag, Rflag, ch, fflag, fts_options, hflag, rval;
char *ep, *mode;
set = NULL;
omode = 0;
Hflag = Lflag = Pflag = Rflag = fflag = hflag = 0;
while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != EOF)
switch (ch) {
+36 -37
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: cp.c,v 1.5 1995/04/02 00:49:16 bde Exp $
*/
#ifndef lint
@@ -48,11 +48,11 @@ static char sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94";
/*
* Cp copies source files to target files.
*
*
* The global PATH_T structure "to" always contains the path to the
* current target file. Since fts(3) does not change directories,
* this path can be either absolute or dot-realative.
*
*
* The basic algorithm is to initialize "to" and use fts(3) to traverse
* the file hierarchy rooted in the argument list. A trivial case is the
* case of 'cp file1 file2'. The more interesting case is the case of
@@ -79,7 +79,7 @@ static char sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94";
#include "extern.h"
#define STRIP_TRAILING_SLASH(p) { \
while ((p).p_end > (p).p_path && (p).p_end[-1] == '/') \
while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \
*--(p).p_end = 0; \
}
@@ -105,7 +105,7 @@ main(argc, argv)
char *target;
Hflag = Lflag = Pflag = Rflag = 0;
while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
switch (ch) {
case 'H':
Hflag = 1;
@@ -188,8 +188,8 @@ main(argc, argv)
to.target_end = to.p_end;
/* Set end of argument list for fts(3). */
argv[argc] = NULL;
argv[argc] = NULL;
/*
* Cp has two distinct cases:
*
@@ -210,7 +210,7 @@ main(argc, argv)
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
/*
* Case (1). Target is not a directory.
*/
*/
if (argc > 1) {
usage();
exit(1);
@@ -227,7 +227,7 @@ main(argc, argv)
stat(*argv, &tmp_stat);
else
lstat(*argv, &tmp_stat);
if (S_ISDIR(tmp_stat.st_mode) && (Rflag || rflag))
type = DIR_TO_DNE;
else
@@ -253,7 +253,7 @@ copy(argv, type, fts_options)
FTS *ftsp;
FTSENT *curr;
int base, dne, nlen, rval;
char *p;
char *p, *target_mid;
if ((ftsp = fts_open(argv, fts_options, mastercmp)) == NULL)
err(1, NULL);
@@ -274,18 +274,10 @@ copy(argv, type, fts_options)
}
/*
* If we are in case (2) or (3) above, we need to append the
* source name to the target name.
* If we are in case (2) or (3) above, we need to append the
* source name to the target name.
*/
if (type != FILE_TO_FILE) {
if ((curr->fts_namelen +
to.target_end - to.p_path + 1) > MAXPATHLEN) {
warnx("%s/%s: name too long (not copied)",
to.p_path, curr->fts_name);
rval = 1;
continue;
}
/*
* Need to remember the roots of traversals to create
* correct pathnames. If there's a directory being
@@ -308,24 +300,29 @@ copy(argv, type, fts_options)
if (curr->fts_level == FTS_ROOTLEVEL)
if (type != DIR_TO_DNE) {
p = strrchr(curr->fts_path, '/');
base = (p == NULL) ? 0 :
base = (p == NULL) ? 0 :
(int)(p - curr->fts_path + 1);
if (!strcmp(&curr->fts_path[base],
if (!strcmp(&curr->fts_path[base],
".."))
base += 1;
} else
base = curr->fts_pathlen;
if (to.target_end[-1] != '/') {
*to.target_end = '/';
*(to.target_end + 1) = 0;
}
p = &curr->fts_path[base];
nlen = curr->fts_pathlen - base;
(void)strncat(to.target_end + 1, p, nlen);
to.p_end = to.target_end + nlen + 1;
target_mid = to.target_end;
if (*p != '/' && target_mid[-1] != '/')
*target_mid++ = '/';
*target_mid = 0;
if (target_mid - to.p_path + nlen > MAXPATHLEN) {
warnx("%s%s: name too long (not copied)",
to.p_path, p);
rval = 1;
continue;
}
(void)strncat(target_mid, p, nlen);
to.p_end = target_mid + nlen;
*to.p_end = 0;
STRIP_TRAILING_SLASH(to);
}
@@ -368,23 +365,23 @@ copy(argv, type, fts_options)
* umask blocks owner writes, we fail..
*/
if (dne) {
if (mkdir(to.p_path,
if (mkdir(to.p_path,
curr->fts_statp->st_mode | S_IRWXU) < 0)
err(1, "%s", to.p_path);
} else if (!S_ISDIR(to_stat.st_mode)) {
errno = ENOTDIR;
err(1, "%s: %s", to.p_path);
err(1, "%s", to.p_path);
}
/*
* If not -p and directory didn't exist, set it to be
* the same as the from directory, umodified by the
* umask; arguably wrong, but it's been that way
* the same as the from directory, umodified by the
* umask; arguably wrong, but it's been that way
* forever.
*/
if (pflag && setfile(curr->fts_statp, 0))
rval = 1;
else if (dne)
(void)chmod(to.p_path,
(void)chmod(to.p_path,
curr->fts_statp->st_mode);
break;
case S_IFBLK:
@@ -392,17 +389,19 @@ copy(argv, type, fts_options)
if (Rflag) {
if (copy_special(curr->fts_statp, !dne))
rval = 1;
} else
} else {
if (copy_file(curr, dne))
rval = 1;
}
break;
case S_IFIFO:
if (Rflag)
if (Rflag) {
if (copy_fifo(curr->fts_statp, !dne))
rval = 1;
else
} else {
if (copy_file(curr, dne))
rval = 1;
}
break;
default:
if (copy_file(curr, dne))
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: utils.c,v 1.2 1994/09/24 02:53:42 davidg Exp $
*/
#ifndef lint
@@ -64,7 +64,7 @@ copy_file(entp, dne)
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
char *p;
#endif
if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) {
warn("%s", entp->fts_path);
return (1);
+3 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: alloc.c,v 1.3 1995/03/19 13:28:10 joerg Exp $
*/
#ifndef lint
@@ -122,5 +122,6 @@ showall(v, t)
{
memtop = (char *) sbrk(0);
(void) fprintf(cshout, "Allocated memory from 0x%lx to 0x%lx (%ld).\n",
(unsigned long) membot, (unsigned long) memtop, memtop - membot);
(unsigned long) membot, (unsigned long) memtop,
(unsigned long) (memtop - membot));
}
+5 -5
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: const.c,v 1.2 1994/09/24 02:53:48 davidg Exp $
*/
#ifndef lint
@@ -72,7 +72,7 @@ Char STRcent2[] = { '%', '%', '\0' };
Char STRcenthash[] = { '%', '#', '\0' };
Char STRcentplus[] = { '%', '+', '\0' };
Char STRcentminus[] = { '%', '-', '\0' };
Char STRchase_symlinks[] = { 'c', 'h', 'a', 's', 'e', '_', 's', 'y', 'm', 'l',
Char STRchase_symlinks[] = { 'c', 'h', 'a', 's', 'e', '_', 's', 'y', 'm', 'l',
'i', 'n', 'k', 's', '\0' };
Char STRchild[] = { 'c', 'h', 'i', 'l', 'd', '\0' };
Char STRcolon[] = { ':', '\0' };
@@ -90,7 +90,7 @@ Char STRfignore[] = { 'f', 'i', 'g', 'n', 'o', 'r', 'e', '\0' };
Char STRfilec[] = { 'f', 'i', 'l', 'e', 'c', '\0' };
#endif /* FILEC */
Char STRhistchars[] = { 'h', 'i', 's', 't', 'c', 'h', 'a', 'r', 's', '\0' };
Char STRtildothist[] = { '~', '/', '.', 'h', 'i', 's', 't', 'o', 'r',
Char STRtildothist[] = { '~', '/', '.', 'h', 'i', 's', 't', 'o', 'r',
'y', '\0' };
Char STRhistfile[] = { 'h', 'i', 's', 't', 'f', 'i', 'l', 'e', '\0' };
Char STRhistory[] = { 'h', 'i', 's', 't', 'o', 'r', 'y', '\0' };
@@ -109,7 +109,7 @@ Char STRml[] = { '-', 'l', '\0' };
Char STRmn[] = { '-', 'n', '\0' };
Char STRmquestion[] = { '?' | QUOTE, ' ', '\0' };
Char STRnice[] = { 'n', 'i', 'c', 'e', '\0' };
Char STRnoambiguous[] = { 'n', 'o', 'a', 'm', 'b', 'i', 'g', 'u', 'o', 'u',
Char STRnoambiguous[] = { 'n', 'o', 'a', 'm', 'b', 'i', 'g', 'u', 'o', 'u',
's', '\0' };
Char STRnobeep[] = { 'n', 'o', 'b', 'e', 'e', 'p', '\0' };
Char STRnoclobber[] = { 'n', 'o', 'c', 'l', 'o', 'b', 'b', 'e', 'r', '\0' };
@@ -121,7 +121,7 @@ Char STRnotify[] = { 'n', 'o', 't', 'i', 'f', 'y', '\0' };
Char STRor[] = { '|', '\0' };
Char STRor2[] = { '|', '|', '\0' };
Char STRpath[] = { 'p', 'a', 't', 'h', '\0' };
Char STRprintexitvalue[] = { 'p', 'r', 'i', 'n', 't', 'e', 'x', 'i', 't', 'v',
Char STRprintexitvalue[] = { 'p', 'r', 'i', 'n', 't', 'e', 'x', 'i', 't', 'v',
'a', 'l', 'u', 'e', '\0' };
Char STRprompt[] = { 'p', 'r', 'o', 'm', 'p', 't', '\0' };
Char STRprompt2[] = { 'p', 'r', 'o', 'm', 'p', 't', '2', '\0' };
+11 -2
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
.\" $Id$
.\" $Id: csh.1,v 1.2 1994/09/24 02:53:49 davidg Exp $
.\"
.Dd January 21, 1994
.Dt CSH 1
@@ -40,7 +40,7 @@
.Nd a shell (command interpreter) with C-like syntax
.Sh SYNOPSIS
.Nm csh
.Op Fl bcefinstvVxX
.Op Fl bcefimnstvVxX
.Op arg ...
.Nm csh
.Op Fl l
@@ -96,6 +96,14 @@ and outputs are terminals.
The shell is a login shell (only applicable if
.Fl l
is the only flag specified).
.It Fl m
The shell loads
.Pa .cshrc
even if it does not belong to the effective user.
.Xr su 1
can pass
.Fl m
to the shell.
.It Fl n
Commands are parsed, but not executed.
This aids in syntactic checking of shell scripts.
@@ -2107,6 +2115,7 @@ To detect looping, the shell restricts the number of
substitutions on a single line to 20.
.Sh SEE ALSO
.Xr sh 1 ,
.Xr su 1 ,
.Xr access 2 ,
.Xr execve 2 ,
.Xr fork 2 ,
+8 -8
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: csh.c,v 1.2 1994/09/24 02:53:51 davidg Exp $
*/
#ifndef lint
@@ -618,7 +618,7 @@ importpath(cp)
for (;;) {
if ((c = *dp) == ':' || c == 0) {
*dp = 0;
if ((*cp != '/' || *cp == '\0') && (euid == 0 || uid == 0))
if ((*cp != '/' || *cp == '\0') && (euid == 0 || uid == 0))
(void) fprintf(csherr,
"Warning: imported path contains relative components\n");
pv[i++] = Strsave(*cp ? cp : STRdot);
@@ -809,7 +809,7 @@ rechist()
(void) Strcat(buf, STRsldthist);
}
if ((fp = creat(short2str(hfile), 0600)) == -1)
if ((fp = creat(short2str(hfile), 0600)) == -1)
return;
oldidfds = didfds;
@@ -873,14 +873,14 @@ int sig;
/*
* We kill the last foreground process group. It then becomes
* responsible to propagate the SIGHUP to its progeny.
* responsible to propagate the SIGHUP to its progeny.
*/
{
struct process *pp, *np;
for (pp = proclist.p_next; pp; pp = pp->p_next) {
np = pp;
/*
/*
* Find if this job is in the foreground. It could be that
* the process leader has exited and the foreground flag
* is cleared for it.
@@ -888,7 +888,7 @@ int sig;
do
/*
* If a process is in the foreground; we try to kill
* it's process group. If we succeed, then the
* it's process group. If we succeed, then the
* whole job is gone. Otherwise we keep going...
* But avoid sending HUP to the shell again.
*/
@@ -1267,9 +1267,9 @@ vis_fputc(ch, fp)
{
char uenc[5]; /* 4 + NULL */
if (ch & QUOTE)
if (ch & QUOTE)
return fputc(ch & TRIM, fp);
/*
/*
* XXX: When we are in AsciiOnly we want all characters >= 0200 to
* be encoded, but currently there is no way in vis to do that.
*/
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: dir.c,v 1.2 1994/09/24 02:53:54 davidg Exp $
*/
#ifndef lint
@@ -221,7 +221,7 @@ printdirs()
}
if (!(dirflag & DIR_LONG) && hp != NULL && !eq(hp, STRslash) &&
(len = Strlen(hp), Strncmp(hp, dp->di_name, len) == 0) &&
(dp->di_name[len] == '\0' || dp->di_name[len] == '/'))
(dp->di_name[len] == '\0' || dp->di_name[len] == '/'))
len = Strlen(s = (dp->di_name + len)) + 2;
else
len = Strlen(s = dp->di_name) + 1;
+7 -7
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: dol.c,v 1.2 1994/09/24 02:53:56 davidg Exp $
*/
#ifndef lint
@@ -425,7 +425,7 @@ Dgetdol()
if (dimen || bitset)
stderror(ERR_SYNTAX);
if (backpid != 0) {
if (dolbang)
if (dolbang)
xfree((ptr_t) dolbang);
setDolp(dolbang = putn(backpid));
}
@@ -645,13 +645,13 @@ fixDolMod()
dolwcnt = 10000;
c = DgetC(0);
}
if ((c == 'g' && dolmcnt != 10000) ||
if ((c == 'g' && dolmcnt != 10000) ||
(c == 'a' && dolwcnt != 10000)) {
if (c == 'g')
dolmcnt = 10000;
else
dolwcnt = 10000;
c = DgetC(0);
c = DgetC(0);
}
if (c == 's') { /* [eichin:19910926.0755EST] */
@@ -659,12 +659,12 @@ fixDolMod()
int delim = DgetC(0);
dolmod[dolnmod++] = c;
dolmod[dolnmod++] = delim;
if (!delim || letter(delim)
|| Isdigit(delim) || any(" \t\n", delim)) {
seterror(ERR_BADSUBST);
break;
}
}
while ((c = DgetC(0)) != (-1)) {
dolmod[dolnmod++] = c;
if(c == delim) delimcnt--;
@@ -708,7 +708,7 @@ setDolp(cp)
Char *lhsub, *rhsub, *np;
size_t lhlen = 0, rhlen = 0;
int didmod = 0;
delim = dolmod[++i];
if (!delim || letter(delim)
|| Isdigit(delim) || any(" \t\n", delim)) {
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: exec.c,v 1.2 1994/09/24 02:53:59 davidg Exp $
*/
#ifndef lint
@@ -50,7 +50,7 @@ static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 5/31/93";
# include <stdarg.h>
#else
# include <varargs.h>
#endif
#endif
#include "csh.h"
#include "extern.h"
@@ -696,7 +696,7 @@ tellmewhat(lex)
if (eq(sp->word, str2short(bptr->bname))) {
if (aliased)
prlex(cshout, lex);
(void) fprintf(cshout, "%s: shell built-in command.\n",
(void) fprintf(cshout, "%s: shell built-in command.\n",
vis_str(sp->word));
sp->word = s0; /* we save and then restore this */
return;
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: file.c,v 1.2 1994/09/24 02:54:03 davidg Exp $
*/
#ifndef lint
@@ -521,7 +521,7 @@ again: /* search for matches */
return (numitems);
}
else { /* LIST */
qsort((ptr_t) items, numitems, sizeof(items[0]),
qsort((ptr_t) items, numitems, sizeof(items[0]),
(int (*) __P((const void *, const void *))) sortscmp);
print_by_column(looking_for_lognames ? NULL : tilded_dir,
items, numitems);
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: func.c,v 1.2 1994/09/24 02:54:04 davidg Exp $
*/
#ifndef lint
@@ -860,12 +860,12 @@ wfree()
if (wp->w_end.type != I_SEEK && wp->w_start.type == wp->w_end.type &&
wp->w_start.type == o.type) {
if (wp->w_end.type == F_SEEK) {
if (o.f_seek >= wp->w_start.f_seek &&
if (o.f_seek >= wp->w_start.f_seek &&
(wp->w_end.f_seek == 0 || o.f_seek < wp->w_end.f_seek))
break;
}
else {
if (o.a_seek >= wp->w_start.a_seek &&
if (o.a_seek >= wp->w_start.a_seek &&
(wp->w_end.a_seek == 0 || o.a_seek < wp->w_end.a_seek))
break;
}
+5 -5
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: glob.c,v 1.2 1994/09/24 02:54:05 davidg Exp $
*/
#ifndef lint
@@ -574,7 +574,7 @@ tglob(t)
*/
if (c == '`') {
gflag |= G_CSH;
while (*p && *p != '`')
while (*p && *p != '`')
if (*p++ == '\\') {
if (*p) /* Quoted chars */
p++;
@@ -806,7 +806,7 @@ pword()
pnleft = MAXPATHLEN - 4;
}
int
int
Gmatch(string, pattern)
Char *string, *pattern;
{
@@ -829,7 +829,7 @@ Gmatch(string, pattern)
blkfree(blk);
return(gres == gpol);
}
}
static int
pmatch(string, pattern)
@@ -870,7 +870,7 @@ pmatch(string, pattern)
(*(pattern-2) & TRIM) <= stringc);
pattern++;
}
else
else
match = (stringc == (rangec & TRIM));
}
if (rangec == 0)
+4 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: lex.c,v 1.2 1994/09/24 02:54:09 davidg Exp $
*/
#ifndef lint
@@ -575,12 +575,12 @@ getdol()
int delimcnt = 2;
int delim = getC(0);
*np++ = delim;
if (!delim || letter(delim)
|| Isdigit(delim) || any(" \t\n", delim)) {
seterror(ERR_BADSUBST);
break;
}
}
while ((c = getC(0)) != (-1)) {
*np++ = c;
if(c == delim) delimcnt--;
@@ -877,7 +877,7 @@ dosub(sc, en, global)
wdp = hp;
while (--i >= 0) {
register struct wordent *new =
register struct wordent *new =
(struct wordent *) xcalloc(1, sizeof *wdp);
new->word = 0;
+8 -8
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: parse.c,v 1.2 1994/09/24 02:54:11 davidg Exp $
*/
#ifndef lint
@@ -52,19 +52,19 @@ static char sccsid[] = "@(#)parse.c 8.1 (Berkeley) 5/31/93";
static void asyntax __P((struct wordent *, struct wordent *));
static void asyn0 __P((struct wordent *, struct wordent *));
static void asyn3 __P((struct wordent *, struct wordent *));
static struct wordent
static struct wordent
*freenod __P((struct wordent *, struct wordent *));
static struct command
static struct command
*syn0 __P((struct wordent *, struct wordent *, int));
static struct command
static struct command
*syn1 __P((struct wordent *, struct wordent *, int));
static struct command
static struct command
*syn1a __P((struct wordent *, struct wordent *, int));
static struct command
static struct command
*syn1b __P((struct wordent *, struct wordent *, int));
static struct command
static struct command
*syn2 __P((struct wordent *, struct wordent *, int));
static struct command
static struct command
*syn3 __P((struct wordent *, struct wordent *, int));
#define ALEFT 21 /* max of 20 alias expansions */
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: sem.c,v 1.2 1994/09/24 02:54:15 davidg Exp $
*/
#ifndef lint
@@ -438,7 +438,7 @@ execute(t, wanttty, pipein, pipeout)
}
/*
* Fall through for all breaks from switch
*
*
* If there will be no more executions of this command, flush all file
* descriptors. Places that turn on the F_REPEAT bit are responsible for
* doing donefds after the last re-execution
@@ -476,7 +476,7 @@ int i;
*
* I don't know what is best to do. I think that Ambiguous is better
* than restructuring the command vector, because the user can get
* unexpected results. In any case, the command vector restructuring
* unexpected results. In any case, the command vector restructuring
* code is present and the user can choose it by setting noambiguous
*/
static Char *
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: set.c,v 1.2 1994/09/24 02:54:16 davidg Exp $
*/
#ifndef lint
@@ -664,7 +664,7 @@ exportpath(val)
"Warning: ridiculously long PATH truncated\n");
break;
}
if ((**val != '/' || **val == '\0') && (euid == 0 || uid == 0))
if ((**val != '/' || **val == '\0') && (euid == 0 || uid == 0))
(void) fprintf(csherr,
"Warning: exported path contains relative components.\n");
(void) Strcat(exppath, *val++);
+5 -5
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: str.c,v 1.2 1994/09/24 02:54:18 davidg Exp $
*/
#ifndef lint
@@ -449,21 +449,21 @@ vis_str(cp)
if (cp == NULL)
return (NULL);
for (dp = cp; *dp++;)
continue;
n = ((dp - cp) << 2) + 1; /* 4 times + NULL */
if (dstsize < n) {
sdst = (char *) (dstsize ?
sdst = (char *) (dstsize ?
xrealloc(sdst, (size_t) n * sizeof(char)) :
xmalloc((size_t) n * sizeof(char)));
dstsize = n;
}
/*
/*
* XXX: When we are in AsciiOnly we want all characters >= 0200 to
* be encoded, but currently there is no way in vis to do that.
*/
(void) strvis(sdst, short2str(cp), VIS_NOSLASH);
return (sdst);
}
+4 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: time.c,v 1.4 1995/03/19 13:28:12 joerg Exp $
*/
#ifndef lint
@@ -180,7 +180,7 @@ prusage(r0, r1, e, b)
break;
case 'X': /* (average) shared text size */
(void) fprintf(cshout, "%ld", t == 0 ? 0L :
(void) fprintf(cshout, "%ld", t == 0 ? 0L :
(r1->ru_ixrss - r0->ru_ixrss) / t);
break;
@@ -246,7 +246,7 @@ pdeltat(t1, t0)
struct timeval td;
tvsub(&td, t1, t0);
(void) fprintf(cshout, "%d.%01d", td.tv_sec, td.tv_usec / 100000);
(void) fprintf(cshout, "%ld.%01ld", td.tv_sec, td.tv_usec / 100000L);
}
void
@@ -256,7 +256,7 @@ tvadd(tsum, t0)
tsum->tv_sec += t0->tv_sec;
tsum->tv_usec += t0->tv_usec;
if (tsum->tv_usec > 1000000)
if (tsum->tv_usec >= 1000000)
tsum->tv_sec++, tsum->tv_usec -= 1000000;
}
+2 -2
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)date.1 8.2 (Berkeley) 11/17/93
.\" $Id$
.\" $Id: date.1,v 1.4 1994/09/24 02:54:34 davidg Exp $
.\"
.Dd November 17, 1993
.Dt DATE 1
@@ -107,7 +107,7 @@ in the
manual page, as well as any arbitrary text.
The format string for the default display is:
.Bd -literal -offset indent
``%a %b %e %H:%M:%S %Z %Y%n''.
``%a %b %e %H:%M:%S %Z %Y''.
.Ed
.Pp
If an operand does not have a leading plus sign, it is interpreted as
+19 -16
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: date.c,v 1.3 1994/12/26 12:59:28 bde Exp $
*/
#ifndef lint
@@ -76,13 +76,19 @@ main(argc, argv)
struct timezone tz;
int ch, rflag;
char *format, buf[1024];
char *endptr;
int set_timezone;
tz.tz_dsttime = tz.tz_minuteswest = 0;
rflag = 0;
set_timezone = 0;
while ((ch = getopt(argc, argv, "d:nr:ut:")) != EOF)
switch((char)ch) {
case 'd': /* daylight savings time */
tz.tz_dsttime = atoi(optarg) ? 1 : 0;
tz.tz_dsttime = strtol(optarg, &endptr, 10) ? 1 : 0;
if (endptr == optarg || *endptr != '\0')
usage();
set_timezone = 1;
break;
case 'n': /* don't set network */
nflag = 1;
@@ -96,11 +102,11 @@ main(argc, argv)
break;
case 't': /* minutes west of GMT */
/* error check; don't allow "PST" */
if (isdigit(*optarg)) {
tz.tz_minuteswest = atoi(optarg);
break;
}
/* FALLTHROUGH */
tz.tz_minuteswest = strtol(optarg, &endptr, 10);
if (endptr == optarg || *endptr != '\0')
usage();
set_timezone = 1;
break;
default:
usage();
}
@@ -111,14 +117,13 @@ main(argc, argv)
* If -d or -t, set the timezone or daylight savings time; this
* doesn't belong here, there kernel should not know about either.
*/
if ((tz.tz_minuteswest || tz.tz_dsttime) &&
settimeofday(NULL, &tz))
err(1, "settimeofday");
if (set_timezone && settimeofday((struct timeval *)NULL, &tz))
err(1, "settimeofday (timezone)");
if (!rflag && time(&tval) == -1)
err(1, "time");
format = "%a %b %e %H:%M:%S %Z %Y\n";
format = "%a %b %e %H:%M:%S %Z %Y";
/* allow the operands in any order */
if (*argv && **argv == '+') {
@@ -135,7 +140,7 @@ main(argc, argv)
format = *argv + 1;
(void)strftime(buf, sizeof(buf), format, localtime(&tval));
(void)printf("%s", buf);
(void)printf("%s\n", buf);
exit(retval);
}
@@ -210,10 +215,8 @@ setthetime(p)
logwtmp("|", "date", "");
tv.tv_sec = tval;
tv.tv_usec = 0;
if (settimeofday(&tv, NULL)) {
perror("date: settimeofday");
exit(1);
}
if (settimeofday(&tv, (struct timezone *)NULL))
err(1, "settimeofday (timeval)");
logwtmp("{", "date", "");
}
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: netdate.c,v 1.2 1994/09/24 02:54:38 davidg Exp $
*/
#ifndef lint
@@ -169,7 +169,7 @@ loop:
(void)close(s);
return (0);
default:
warnx("wrong ack received from timed: %s",
warnx("wrong ack received from timed: %s",
tsptype[msg.tsp_type]);
timed_ack = -1;
break;
+3 -69
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: conv_tab.c,v 1.2 1994/09/24 02:54:47 davidg Exp $
*/
#ifndef lint
@@ -71,76 +71,10 @@ static char sccsid[] = "@(#)conv_tab.c 8.1 (Berkeley) 5/31/93";
*/
/* Lower-case to upper-case */
u_char l2u[] = {
0000, 0001, 0002, 0003, 0004, 0005, 0006, 0007, /* 0000 */
0010, 0011, 0012, 0013, 0014, 0015, 0016, 0017, /* 0010 */
0020, 0021, 0022, 0023, 0024, 0025, 0026, 0027, /* 0020 */
0030, 0031, 0032, 0033, 0034, 0035, 0036, 0037, /* 0030 */
0040, 0041, 0042, 0043, 0044, 0045, 0046, 0047, /* 0040 */
0050, 0051, 0052, 0053, 0054, 0055, 0056, 0057, /* 0050 */
0060, 0061, 0062, 0063, 0064, 0065, 0066, 0067, /* 0060 */
0070, 0071, 0072, 0073, 0074, 0075, 0076, 0077, /* 0070 */
0100, 0101, 0102, 0103, 0104, 0105, 0106, 0107, /* 0100 */
0110, 0111, 0112, 0113, 0114, 0115, 0116, 0117, /* 0110 */
0120, 0121, 0122, 0123, 0124, 0125, 0126, 0127, /* 0120 */
0130, 0131, 0132, 0133, 0134, 0135, 0136, 0137, /* 0130 */
0140, 0101, 0102, 0103, 0104, 0105, 0106, 0107, /* 0140 */
0110, 0111, 0112, 0113, 0114, 0115, 0116, 0117, /* 0150 */
0120, 0121, 0122, 0123, 0124, 0125, 0126, 0127, /* 0160 */
0130, 0131, 0132, 0173, 0174, 0175, 0176, 0177, /* 0170 */
0200, 0201, 0202, 0203, 0204, 0205, 0206, 0207, /* 0200 */
0210, 0211, 0212, 0213, 0214, 0215, 0216, 0217, /* 0210 */
0220, 0221, 0222, 0223, 0224, 0225, 0226, 0227, /* 0220 */
0230, 0231, 0232, 0233, 0234, 0235, 0236, 0237, /* 0230 */
0240, 0241, 0242, 0243, 0244, 0245, 0246, 0247, /* 0240 */
0250, 0251, 0252, 0253, 0254, 0255, 0256, 0257, /* 0250 */
0260, 0261, 0262, 0263, 0264, 0265, 0266, 0267, /* 0260 */
0270, 0271, 0272, 0273, 0274, 0275, 0276, 0277, /* 0270 */
0300, 0301, 0302, 0303, 0304, 0305, 0306, 0307, /* 0300 */
0310, 0311, 0312, 0313, 0314, 0315, 0316, 0317, /* 0310 */
0320, 0321, 0322, 0323, 0324, 0325, 0326, 0327, /* 0320 */
0330, 0331, 0332, 0333, 0334, 0335, 0336, 0337, /* 0330 */
0340, 0341, 0342, 0343, 0344, 0345, 0346, 0347, /* 0340 */
0350, 0351, 0352, 0353, 0354, 0355, 0356, 0357, /* 0350 */
0360, 0361, 0362, 0363, 0364, 0365, 0366, 0367, /* 0360 */
0370, 0371, 0372, 0373, 0374, 0375, 0376, 0377, /* 0370 */
};
u_char l2u[256];
/* Upper-case to lower-case */
u_char u2l[] = {
0000, 0001, 0002, 0003, 0004, 0005, 0006, 0007, /* 0000 */
0010, 0011, 0012, 0013, 0014, 0015, 0016, 0017, /* 0010 */
0020, 0021, 0022, 0023, 0024, 0025, 0026, 0027, /* 0020 */
0030, 0031, 0032, 0033, 0034, 0035, 0036, 0037, /* 0030 */
0040, 0041, 0042, 0043, 0044, 0045, 0046, 0047, /* 0040 */
0050, 0051, 0052, 0053, 0054, 0055, 0056, 0057, /* 0050 */
0060, 0061, 0062, 0063, 0064, 0065, 0066, 0067, /* 0060 */
0070, 0071, 0072, 0073, 0074, 0075, 0076, 0077, /* 0070 */
0100, 0141, 0142, 0143, 0144, 0145, 0146, 0147, /* 0100 */
0150, 0151, 0152, 0153, 0154, 0155, 0156, 0157, /* 0110 */
0160, 0161, 0162, 0163, 0164, 0165, 0166, 0167, /* 0120 */
0170, 0171, 0172, 0133, 0134, 0135, 0136, 0137, /* 0130 */
0140, 0141, 0142, 0143, 0144, 0145, 0146, 0147, /* 0140 */
0150, 0151, 0152, 0153, 0154, 0155, 0156, 0157, /* 0150 */
0160, 0161, 0162, 0163, 0164, 0165, 0166, 0167, /* 0160 */
0170, 0171, 0172, 0173, 0174, 0175, 0176, 0177, /* 0170 */
0200, 0201, 0202, 0203, 0204, 0205, 0206, 0207, /* 0200 */
0210, 0211, 0212, 0213, 0214, 0215, 0216, 0217, /* 0210 */
0220, 0221, 0222, 0223, 0224, 0225, 0226, 0227, /* 0220 */
0230, 0231, 0232, 0233, 0234, 0235, 0236, 0237, /* 0230 */
0240, 0241, 0242, 0243, 0244, 0245, 0246, 0247, /* 0240 */
0250, 0251, 0252, 0253, 0254, 0255, 0256, 0257, /* 0250 */
0260, 0261, 0262, 0263, 0264, 0265, 0266, 0267, /* 0260 */
0270, 0271, 0272, 0273, 0274, 0275, 0276, 0277, /* 0270 */
0300, 0301, 0302, 0303, 0304, 0305, 0306, 0307, /* 0300 */
0310, 0311, 0312, 0313, 0314, 0315, 0316, 0317, /* 0310 */
0320, 0321, 0322, 0323, 0324, 0325, 0326, 0327, /* 0320 */
0330, 0331, 0332, 0333, 0334, 0335, 0336, 0337, /* 0330 */
0340, 0341, 0342, 0343, 0344, 0345, 0346, 0347, /* 0340 */
0350, 0351, 0352, 0353, 0354, 0355, 0356, 0357, /* 0350 */
0360, 0361, 0362, 0363, 0364, 0365, 0366, 0367, /* 0360 */
0370, 0371, 0372, 0373, 0374, 0375, 0376, 0377, /* 0370 */
};
u_char u2l[256];
/* EBCDIC to ASCII -- 32V compatible. */
u_char e2a_32V[] = {
+20 -6
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: dd.c,v 1.3 1995/01/17 22:55:59 ache Exp $
*/
#ifndef lint
@@ -177,26 +177,40 @@ setup()
if (ddflags & (C_LCASE|C_UCASE))
if (ddflags & C_ASCII)
if (ddflags & C_LCASE) {
for (cnt = 0; cnt < 0377; ++cnt)
for (cnt = 0; cnt <= 0377; ++cnt)
if (isupper(ctab[cnt]))
ctab[cnt] = tolower(ctab[cnt]);
} else {
for (cnt = 0; cnt < 0377; ++cnt)
for (cnt = 0; cnt <= 0377; ++cnt)
if (islower(ctab[cnt]))
ctab[cnt] = toupper(ctab[cnt]);
}
else if (ddflags & C_EBCDIC)
if (ddflags & C_LCASE) {
for (cnt = 0; cnt < 0377; ++cnt)
for (cnt = 0; cnt <= 0377; ++cnt)
if (isupper(cnt))
ctab[cnt] = ctab[tolower(cnt)];
} else {
for (cnt = 0; cnt < 0377; ++cnt)
for (cnt = 0; cnt <= 0377; ++cnt)
if (islower(cnt))
ctab[cnt] = ctab[toupper(cnt)];
}
else
else {
ctab = ddflags & C_LCASE ? u2l : l2u;
if (ddflags & C_LCASE) {
for (cnt = 0; cnt <= 0377; ++cnt)
if (isupper(cnt))
ctab[cnt] = tolower(cnt);
else
ctab[cnt] = cnt;
} else {
for (cnt = 0; cnt <= 0377; ++cnt)
if (islower(cnt))
ctab[cnt] = toupper(cnt);
else
ctab[cnt] = cnt;
}
}
(void)time(&st.start); /* Statistics timestamp. */
}
+25 -23
View File
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: df.c,v 1.6 1995/03/19 13:28:15 joerg Exp $
*/
#ifndef lint
@@ -76,29 +76,30 @@ struct typetab {
char *str;
long types;
} typetab[] = {
"ufs", MT(MOUNT_UFS),
"local", MT_LOCAL,
"all", MT_ALL,
"nfs", MT(MOUNT_NFS),
"mfs", MT(MOUNT_MFS),
"lfs", MT(MOUNT_LFS),
"msdos", MT(MOUNT_MSDOS),
"fdesc", MT(MOUNT_FDESC),
"portal", MT(MOUNT_PORTAL),
{"ufs", MT(MOUNT_UFS)},
{"local", MT_LOCAL},
{"all", MT_ALL},
{"nfs", MT(MOUNT_NFS)},
{"mfs", MT(MOUNT_MFS)},
{"lfs", MT(MOUNT_LFS)},
{"msdos", MT(MOUNT_MSDOS)},
{"fdesc", MT(MOUNT_FDESC)},
{"portal", MT(MOUNT_PORTAL)},
#if 0
/* return fsid of underlying FS */
"lofs", MT(MOUNT_LOFS),
"null", MT(MOUNT_NULL),
"umap", MT(MOUNT_UMAP),
{"lofs", MT(MOUNT_LOFS)},
{"null", MT(MOUNT_NULL)},
{"umap", MT(MOUNT_UMAP)},
#endif
"kernfs", MT(MOUNT_KERNFS),
"procfs", MT(MOUNT_PROCFS),
"afs", MT(MOUNT_AFS),
"iso9660fs", MT(MOUNT_CD9660),
"cdfs", MT(MOUNT_CD9660),
"misc", MT(MOUNT_LOFS)|MT(MOUNT_FDESC)|MT(MOUNT_PORTAL)|
MT(MOUNT_KERNFS)|MT(MOUNT_PROCFS),
NULL, 0
{"kernfs", MT(MOUNT_KERNFS)},
{"procfs", MT(MOUNT_PROCFS)},
{"afs", MT(MOUNT_AFS)},
{"iso9660fs", MT(MOUNT_CD9660)},
{"cdfs", MT(MOUNT_CD9660)},
{"misc", MT(MOUNT_LOFS)|MT(MOUNT_FDESC)|MT(MOUNT_PORTAL)|
MT(MOUNT_KERNFS)|MT(MOUNT_PROCFS)},
{NULL, 0}
};
long addtype __P((long, char *));
@@ -124,6 +125,7 @@ main(argc, argv)
char *mntpt;
iflag = nflag = tflag = 0;
fsmask = MT_NONE;
while ((ch = getopt(argc, argv, "iknt:")) != EOF)
switch (ch) {
@@ -334,7 +336,7 @@ prtstat(sfsp, maxwidth)
used = inodes - sfsp->f_ffree;
(void)printf(" %7ld %7ld %5.0f%% ", used, sfsp->f_ffree,
inodes == 0 ? 100.0 : (double)used / (double)inodes * 100.0);
} else
} else
(void)printf(" ");
(void)printf(" %s\n", sfsp->f_mntonname);
}
@@ -422,7 +424,7 @@ bread(off, buf, cnt)
void
usage()
{
fprintf(stderr,
fprintf(stderr,
"usage: df [-ikn] [-t fstype] [file | file_system ...]\n");
exit(1);
}
+2 -2
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)hostname.1 8.1 (Berkeley) 5/31/93
.\" $Id$
.\" $Id: domainname.1,v 1.1 1994/09/18 21:23:36 wollman Exp $
.\"
.Dd September 18, 1994
.Dt DOMAINNAME 1
@@ -55,7 +55,7 @@ domain name does not necessarily have anything to do with the Domain
Name System domain name, although they are often set equal for administrative
convenience.
.Sh SEE ALSO
.Xr getdomainname 2
.Xr getdomainname 3
.Sh HISTORY
The
.Nm
+2 -2
View File
@@ -40,7 +40,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "From: @(#)hostname.c 8.1 (Berkeley) 5/31/93"; */
static const char rcsid[] =
"$Id: domainname.c,v 1.3 1994/09/21 22:30:55 bde Exp $";
"$Id: domainname.c,v 1.4 1994/09/26 02:14:27 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -56,7 +56,7 @@ main(argc,argv)
int argc;
char *argv[];
{
char *p, domainname[MAXHOSTNAMELEN];
char domainname[MAXHOSTNAMELEN];
argc--, argv++;
+1 -7
View File
@@ -1,14 +1,8 @@
# $Id: Makefile,v 1.8 1994/09/24 02:55:20 davidg Exp $
# $Id: Makefile,v 1.9 1994/10/29 10:13:34 phk Exp $
PROG= ed
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
.if !defined(NOCRYPT)
CFLAGS+=-DDES
LDADD+= -lcrypt
DPADD+= ${LIBCRYPT}
.endif
.include <bsd.prog.mk>
+2 -2
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: buf.c,v 1.6 1994/09/24 02:55:22 davidg Exp $
*/
#ifndef lint
static char *rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
@@ -253,7 +253,7 @@ init_buffers()
{
int i = 0;
/* Read stdin one character at a time to avoid i/o contention
/* Read stdin one character at a time to avoid i/o contention
with shell escapes invoked by nonterminal input, e.g.,
ed - <<EOF
!cat
+8 -2
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)bdes.c 5.5 (Berkeley) 6/27/91
* $Id$
* $Id: cbc.c,v 1.4 1994/09/24 02:55:24 davidg Exp $
*/
#ifndef lint
@@ -115,7 +115,7 @@ init_des_cipher()
des_ct = des_n = 0;
/* initialize the initialization vctor */
/* initialize the initialization vector */
MEMZERO(ivec, 8);
/* intialize the padding vector */
@@ -137,6 +137,8 @@ get_des_char(fp)
des_ct = cbc_decode(des_buf, fp);
}
return (des_ct > 0) ? des_buf[des_n++] : EOF;
#else
return (getc(fp));
#endif
}
@@ -153,6 +155,8 @@ put_des_char(c, fp)
des_n = 0;
}
return (des_ct >= 0) ? (des_buf[des_n++] = c) : EOF;
#else
return (fputc(c, fp));
#endif
}
@@ -168,6 +172,8 @@ flush_des_file(fp)
des_n = 0;
}
return (des_ct >= 0 && cbc_encode(des_buf, des_n, fp) >= 0) ? 0 : EOF;
#else
return (fflush(fp));
#endif
}
+5 -5
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: glbl.c,v 1.3 1995/03/19 13:28:27 joerg Exp $
*/
#ifndef lint
@@ -132,8 +132,8 @@ exec_global(interact, gflag)
for (; *ibufp;)
if ((status = extract_addr_range()) < 0 ||
(status = exec_command()) < 0 ||
status > 0 && (status = display_lines(
current_addr, current_addr, status)) < 0)
(status > 0 && (status = display_lines(
current_addr, current_addr, status)) < 0))
return status;
}
return 0;
@@ -158,7 +158,7 @@ set_active_node(lp)
#if defined(sun) || defined(NO_REALLOC_NULL)
if (active_list != NULL) {
#endif
if ((ts = (line_t **) realloc(active_list,
if ((ts = (line_t **) realloc(active_list,
(ti += MINBUFSZ) * sizeof(line_t **))) == NULL) {
fprintf(stderr, "%s\n", strerror(errno));
sprintf(errmsg, "out of memory");
@@ -167,7 +167,7 @@ set_active_node(lp)
}
#if defined(sun) || defined(NO_REALLOC_NULL)
} else {
if ((ts = (line_t **) malloc((ti += MINBUFSZ) *
if ((ts = (line_t **) malloc((ti += MINBUFSZ) *
sizeof(line_t **))) == NULL) {
fprintf(stderr, "%s\n", strerror(errno));
sprintf(errmsg, "out of memory");
+4 -4
View File
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: io.c,v 1.3 1994/09/24 02:55:27 davidg Exp $
*/
#ifndef lint
@@ -106,7 +106,7 @@ read_stream(fp, n)
return ERR;
if (appended && size && o_isbinary && o_newline_added)
fputs("newline inserted\n", stderr);
else if (newline_added && (!appended || !isbinary && !o_isbinary))
else if (newline_added && (!appended || (!isbinary && !o_isbinary)))
fputs("newline appended\n", stderr);
if (isbinary && newline_added && !appended)
size += 1;
@@ -128,8 +128,8 @@ get_stream_line(fp)
register int c;
register int i = 0;
while (((c = des ? get_des_char(fp) : getc(fp)) != EOF || !feof(fp) &&
!ferror(fp)) && c != '\n') {
while (((c = des ? get_des_char(fp) : getc(fp)) != EOF || (!feof(fp) &&
!ferror(fp))) && c != '\n') {
REALLOC(sbuf, sbufsz, i + 1, ERR);
if (!(sbuf[i++] = c))
isbinary = 1;
+22 -22
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: main.c,v 1.4 1995/03/19 13:28:34 joerg Exp $
*/
#ifndef lint
@@ -42,7 +42,7 @@ static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
* CREDITS
*
* This program is based on the editor algorithm described in
* Brian W. Kernighan and P. J. Plauger's book "Software Tools
* Brian W. Kernighan and P. J. Plauger's book "Software Tools
* in Pascal," Addison-Wesley, 1981.
*
* The buffering algorithm is attributed to Rodney Ruddock of
@@ -154,9 +154,9 @@ top:
signal(SIGQUIT, SIG_IGN);
signal(SIGINT, signal_int);
#ifdef _POSIX_SOURCE
if (status = sigsetjmp(env, 1))
if ((status = sigsetjmp(env, 1)))
#else
if (status = setjmp(env))
if ((status = setjmp(env)))
#endif
{
fputs("\n?\n", stderr);
@@ -192,7 +192,7 @@ top:
fputs("?\n", stderr);
sprintf(errmsg, "warning: file modified");
if (!isatty(0)) {
fprintf(stderr, garrulous ?
fprintf(stderr, garrulous ?
"script, line %d: %s\n" :
"", lineno, errmsg);
quit(2);
@@ -213,7 +213,7 @@ top:
isglobal = 0;
if ((status = extract_addr_range()) >= 0 &&
(status = exec_command()) >= 0)
if (!status || status &&
if (!status ||
(status = display_lines(current_addr, current_addr,
status)) >= 0)
continue;
@@ -225,16 +225,16 @@ top:
fputs("?\n", stderr); /* give warning */
sprintf(errmsg, "warning: file modified");
if (!isatty(0)) {
fprintf(stderr, garrulous ?
"script, line %d: %s\n" :
fprintf(stderr, garrulous ?
"script, line %d: %s\n" :
"", lineno, errmsg);
quit(2);
}
break;
case FATAL:
if (!isatty(0))
fprintf(stderr, garrulous ?
"script, line %d: %s\n" : "",
fprintf(stderr, garrulous ?
"script, line %d: %s\n" : "",
lineno, errmsg);
else
fprintf(stderr, garrulous ? "%s\n" : "",
@@ -243,7 +243,7 @@ top:
default:
fputs("?\n", stderr);
if (!isatty(0)) {
fprintf(stderr, garrulous ?
fprintf(stderr, garrulous ?
"script, line %d: %s\n" : "",
lineno, errmsg);
quit(2);
@@ -256,7 +256,7 @@ top:
long first_addr, second_addr, addr_cnt;
/* extract_addr_range: get line addresses from the command buffer until an
/* extract_addr_range: get line addresses from the command buffer until an
illegal address is seen; return status */
int
extract_addr_range()
@@ -544,11 +544,11 @@ exec_command()
return ERR;
else if (build_active_list(c == 'g' || c == 'G') < 0)
return ERR;
else if (n = (c == 'G' || c == 'V'))
else if ((n = (c == 'G' || c == 'V')))
GET_COMMAND_SUFFIX();
isglobal++;
if (exec_global(n, gflag) < 0)
return ERR;
return ERR;
break;
case 'h':
if (addr_cnt > 0) {
@@ -691,7 +691,7 @@ exec_command()
sflags |= SGR;
ibufp++;
break;
case '0': case '1': case '2': case '3': case '4':
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
STRTOL(sgnum, ibufp);
sflags |= SGF;
@@ -802,7 +802,7 @@ exec_command()
return ERR;
}
#endif
if ((addr = write_file(*fnp ? fnp : old_filename,
if ((addr = write_file(*fnp ? fnp : old_filename,
(c == 'W') ? "a" : "w", first_addr, second_addr)) < 0)
return ERR;
else if (addr == addr_last)
@@ -840,7 +840,7 @@ exec_command()
break;
case '=':
GET_COMMAND_SUFFIX();
printf("%d\n", addr_cnt ? second_addr : addr_last);
printf("%ld\n", addr_cnt ? second_addr : addr_last);
break;
case '!':
if (addr_cnt > 0) {
@@ -888,7 +888,7 @@ check_addr_range(n, m)
}
/* get_matching_node_addr: return the address of the next line matching a
/* get_matching_node_addr: return the address of the next line matching a
pattern in a given direction. wrap around begin/end of editor buffer if
necessary */
long
@@ -902,7 +902,7 @@ get_matching_node_addr(pat, dir)
if (!pat) return ERR;
do {
if (n = dir ? INC_MOD(n, addr_last) : DEC_MOD(n, addr_last)) {
if ((n = dir ? INC_MOD(n, addr_last) : DEC_MOD(n, addr_last))) {
lp = get_addressed_line_node(n);
if ((s = get_sbuf_line(lp)) == NULL)
return ERR;
@@ -910,7 +910,7 @@ get_matching_node_addr(pat, dir)
NUL_TO_NEWLINE(s, lp->len);
if (!regexec(pat, s, 0, NULL, 0))
return n;
}
}
} while (n != current_addr);
sprintf(errmsg, "no match");
return ERR;
@@ -1148,7 +1148,7 @@ move_lines(addr)
REQUE(b2, b1->q_forw);
REQUE(a1->q_back, a2);
REQUE(b1, a1);
current_addr = addr + ((addr < first_addr) ?
current_addr = addr + ((addr < first_addr) ?
second_addr - first_addr + 1 : 0);
}
if (isglobal)
@@ -1339,7 +1339,7 @@ strip_escapes(s)
REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
/* assert: no trailing escape */
while (file[i++] = (*s == '\\') ? *++s : *s)
while ((file[i++] = (*s == '\\') ? *++s : *s))
s++;
return file;
}
+3 -3
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: re.c,v 1.9 1995/03/19 13:28:36 joerg Exp $
*/
#ifndef lint
@@ -39,7 +39,7 @@ extern int patlock;
char errmsg[MAXPATHLEN + 40] = "";
/* get_compiled_pattern: return pointer to compiled pattern from command
/* get_compiled_pattern: return pointer to compiled pattern from command
buffer */
pattern_t *
get_compiled_pattern()
@@ -67,7 +67,7 @@ get_compiled_pattern()
return NULL;
}
patlock = 0;
if (n = regcomp(exp, exps, 0)) {
if ((n = regcomp(exp, exps, 0))) {
regerror(n, exp, errmsg, sizeof errmsg);
free(exp);
return exp = NULL;
+10 -6
View File
@@ -1,4 +1,4 @@
/* sub.c: This file contains the substitution routines for the ed
/* sub.c: This file contains the substitution routines for the ed
line editor */
/*-
* Copyright (c) 1993 Andrew Moore, Talke Studio.
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: sub.c,v 1.5 1995/03/19 13:28:38 joerg Exp $
*/
#ifndef lint
@@ -97,7 +97,7 @@ extract_subst_template()
;
else if (!isglobal) {
while ((n = get_tty_line()) == 0 ||
n > 0 && ibuf[n - 1] != '\n')
(n > 0 && ibuf[n - 1] != '\n'))
clearerr(stdin);
if (n < 0)
return NULL;
@@ -124,6 +124,7 @@ search_and_replace(pat, gflag, kth)
char *txt;
char *eot;
long lc;
long xa = current_addr;
int nsubs = 0;
line_t *lp;
int len;
@@ -154,8 +155,10 @@ search_and_replace(pat, gflag, kth)
} while (txt != eot);
SPL0();
nsubs++;
xa = current_addr;
}
}
current_addr = xa;
if (nsubs == 0 && !(gflag & GLB)) {
sprintf(errmsg, "no match");
return ERR;
@@ -185,7 +188,7 @@ substitute_matching_text(pat, lp, gflag, kth)
if ((txt = get_sbuf_line(lp)) == NULL)
return ERR;
if (isbinary)
if (isbinary)
NUL_TO_NEWLINE(txt, lp->len);
eot = txt + lp->len;
if (!regexec(pat, txt, SE_MAX, rm, 0)) {
@@ -210,8 +213,9 @@ substitute_matching_text(pat, lp, gflag, kth)
off += i;
}
txt += rm[0].rm_eo;
} while (*txt && (!changed || (gflag & GSG) && rm[0].rm_eo) &&
!regexec(pat, txt, SE_MAX, rm, REG_NOTBOL));
} while (*txt &&
(!changed || ((gflag & GSG) && rm[0].rm_eo)) &&
!regexec(pat, txt, SE_MAX, rm, REG_NOTBOL));
i = eot - txt;
REALLOC(rbuf, rbufsz, off + i + 2, ERR);
if (i > 0 && !rm[0].rm_eo && (gflag & GSG)) {
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -1,8 +1,8 @@
# /b/source/CVS/src/bin/expr/Makefile,v 1.5 1993/06/14 19:56:06 jtc Exp
# $Id$
# $Id: Makefile,v 1.6 1994/09/24 02:55:36 davidg Exp $
PROG= expr
SRCS= expr.c
SRCS= expr.c
CLEANFILES+= expr.c y.tab.h
expr.c:
+3 -2
View File
@@ -4,7 +4,7 @@
*
* Largely rewritten by J.T. Conklin ([email protected])
*
* $Id$
* $Id: expr.y,v 1.8 1994/09/24 02:55:37 davidg Exp $
*/
#include <stdio.h>
@@ -193,7 +193,6 @@ struct val *vp;
int
yylex ()
{
struct val *vp;
char *p;
if (*av == NULL)
@@ -228,6 +227,8 @@ struct val *vp;
/* NOTREACHED */
}
int yyparse ();
void
main (argc, argv)
int argc;
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: kill.c,v 1.2 1994/09/24 02:55:44 davidg Exp $
*/
#ifndef lint
@@ -89,7 +89,7 @@ main(argc, argv)
numsig = strtol(*argv, &ep, 10);
if (!*argv || *ep)
errx(1, "illegal signal number: %s", *argv);
if (numsig <= 0 || numsig > NSIG)
if (numsig < 0 || numsig > NSIG)
nosig(*argv);
} else
nosig(*argv);
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ln.c,v 1.4 1994/09/24 02:55:48 davidg Exp $
*/
#ifndef lint
@@ -142,9 +142,9 @@ linkit(target, source, isdir)
++p;
(void)snprintf(path, sizeof(path), "%s/%s", source, p);
source = path;
exists = !stat(source, &sb);
exists = !lstat(source, &sb);
} else
exists = !stat(source, &sb);
exists = !lstat(source, &sb);
/*
* If the file exists, and -f was specified, unlink it.
+12 -5
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ls.c,v 1.5 1995/03/19 13:28:44 joerg Exp $
*/
#ifndef lint
@@ -114,8 +114,12 @@ main(argc, argv)
else
termwidth = win.ws_col;
f_column = f_nonprint = 1;
} else
} else {
f_singlecol = 1;
/* retrieve environment variable, in case of explicit -C */
if ((p = getenv("COLUMNS")))
termwidth = atoi(p);
}
/* Root is -A automatically. */
if (!getuid())
@@ -223,10 +227,12 @@ main(argc, argv)
/* If -l or -s, figure out block size. */
if (f_longform || f_size) {
(void)getbsize(&notused, &blocksize);
blocksize /= 512;
if (f_kblocks)
blocksize *= 2;
blocksize = 2;
else {
(void)getbsize(&notused, &blocksize);
blocksize /= 512;
}
}
/* Select a sort function. */
@@ -367,6 +373,7 @@ display(p, list)
btotal = maxblock = maxinode = maxlen = maxnlink = 0;
bcfile = 0;
maxuser = maxgroup = maxflags = 0;
flags = NULL;
maxsize = 0;
for (cur = list, entries = 0; cur; cur = cur->fts_link) {
if (cur->fts_info == FTS_ERR || cur->fts_info == FTS_NS) {
+3 -3
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: print.c,v 1.3 1995/03/19 13:28:46 joerg Exp $
*/
#ifndef lint
@@ -188,7 +188,7 @@ printcol(dp)
dp->s_block);
if ((base += numrows) >= num)
break;
while ((cnt = (chcnt + TAB & ~(TAB - 1))) <= endcol) {
while ((cnt = ((chcnt + TAB) & ~(TAB - 1))) <= endcol){
(void)putchar('\t');
chcnt = cnt;
}
@@ -283,7 +283,7 @@ printlink(p)
if (p->fts_level == FTS_ROOTLEVEL)
(void)snprintf(name, sizeof(name), "%s", p->fts_name);
else
else
(void)snprintf(name, sizeof(name),
"%s/%s", p->fts_parent->fts_accpath, p->fts_name);
if ((lnklen = readlink(name, path, sizeof(path) - 1)) == -1) {
+15 -15
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ar_io.c,v 1.2 1994/09/24 02:56:11 davidg Exp $
*/
#ifndef lint
@@ -278,7 +278,7 @@ ar_open(name)
break;
default:
/*
* should never happen, worse case, slow...
* should never happen, worse case, slow...
*/
blksz = rdblksz = BLKMULT;
break;
@@ -458,8 +458,8 @@ ar_set_wr()
* will stop us if the archive containing the trailer was not written
*/
wr_trail = 0;
/*
/*
* Add any device dependent code as required here
*/
if (artyp != ISREG)
@@ -480,7 +480,7 @@ ar_set_wr()
/*
* ar_app_ok()
* check if the last volume in the archive allows appends. We cannot check
* this until we are ready to write since there is no spec that says all
* this until we are ready to write since there is no spec that says all
* volumes in a single archive have to be of the same type...
* Return:
* 0 if we can append, -1 otherwise.
@@ -592,7 +592,7 @@ ar_read(buf, cnt)
else
warn(0, "End of archive volume %d reached", arvol);
return(res);
}
}
/*
* ar_write()
@@ -710,8 +710,8 @@ ar_write(buf, bsz)
warn(1,"Unable to append, trailer re-write failed. Quitting.");
return(res);
}
if (res == 0)
if (res == 0)
warn(0, "End of archive volume %d reached", arvol);
else if (res < 0)
syswarn(1, errno, "Failed write to archive volume: %d", arvol);
@@ -791,7 +791,7 @@ ar_rdsync()
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0)
break;
mpos = fsbz - (cpos % (off_t)fsbz);
if (lseek(arfd, mpos, SEEK_CUR) < 0)
if (lseek(arfd, mpos, SEEK_CUR) < 0)
break;
lstrval = 1;
break;
@@ -850,14 +850,14 @@ ar_fow(sksz, skipped)
* number of physical blocks to skip (we do not know physical block
* size at this point), so we must only read foward on tapes!
*/
if (artyp != ISREG)
if (artyp != ISREG)
return(0);
/*
* figure out where we are in the archive
*/
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) {
/*
/*
* we can be asked to move farther than there are bytes in this
* volume, if so, just go to file end and let normal buf_fill()
* deal with the end of file (it will go to next volume by
@@ -898,7 +898,7 @@ ar_rev(sksz)
{
off_t cpos;
struct mtop mb;
register int phyblk;
register int phyblk;
/*
* make sure we do not have try to reverse on a flawed archive
@@ -908,7 +908,7 @@ ar_rev(sksz)
switch(artyp) {
case ISPIPE:
if (sksz <= 0)
if (sksz <= 0)
break;
/*
* cannot go backwards on these critters
@@ -1017,7 +1017,7 @@ ar_rev(sksz)
/*
* get_phys()
* Determine the physical block size on a tape drive. We need the physical
* block size so we know how many bytes we skip over when we move with
* block size so we know how many bytes we skip over when we move with
* mtio commands. We also make sure we are BEFORE THE TAPE FILEMARK when
* return.
* This is one really SLOW routine...
@@ -1218,7 +1218,7 @@ ar_next()
/*
* we are to continue with the same device
*/
if (ar_open(arcname) >= 0)
if (ar_open(arcname) >= 0)
return(0);
tty_prnt("Cannot re-open %s, try again\n",
arcname);
+10 -10
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ar_subs.c,v 1.2 1994/09/24 02:56:12 davidg Exp $
*/
#ifndef lint
@@ -449,7 +449,7 @@ wr_archive(arcn, is_app)
if ((res > 0) || (docrc && (set_crc(arcn, fd) < 0))) {
/*
* unable to obtain the crc we need, close the file,
* purge link table entry
* purge link table entry
*/
rdfile_close(arcn, &fd);
purg_lnk(arcn);
@@ -472,7 +472,7 @@ wr_archive(arcn, is_app)
}
wr_one = 1;
if (res > 0) {
/*
/*
* format write says no file data needs to be stored
* so we are done messing with this file
*/
@@ -535,7 +535,7 @@ wr_archive(arcn, is_app)
* is called to add the new members.
* PAX IMPLEMENTATION DETAIL NOTE:
* -u is implemented by adding the new members to the end of the archive.
* Care is taken so that these do not end up as links to the older
* Care is taken so that these do not end up as links to the older
* version of the same file already stored in the archive. It is expected
* when extraction occurs these newer versions will over-write the older
* ones stored "earlier" in the archive (this may be a bad assumption as
@@ -677,7 +677,7 @@ append()
(void)fputs("done.\n", stderr);
vfpart = 0;
}
/*
* go to the writing phase to add the new members
*/
@@ -765,7 +765,7 @@ copy()
/*
* start up the hard link table; file traversal routines and the
* modification time and access mode database
* modification time and access mode database
*/
if ((lnk_start() < 0) || (ftree_start() < 0) || (dir_start() < 0))
return;
@@ -881,7 +881,7 @@ copy()
* try to create a hard link to the src file if requested
* but make sure we are not trying to overwrite ourselves.
*/
if (lflag)
if (lflag)
res = cross_lnk(arcn);
else
res = chk_same(arcn);
@@ -988,7 +988,7 @@ next_head(arcn)
register int hsz;
register int in_resync = 0; /* set when we are in resync mode */
int cnt = 0; /* counter for trailer function */
/*
* set up initial conditions, we want a whole frmt->hsz block as we
* have no data yet.
@@ -1132,7 +1132,7 @@ get_arc()
register int minhd = BLKMULT;
char *hdend;
int notice = 0;
/*
* find the smallest header size in all archive formats and then set up
* to read the archive.
@@ -1192,7 +1192,7 @@ get_arc()
if ((*fsub[ford[i]].id)(hdbuf, hdsz) < 0)
continue;
frmt = &(fsub[ford[i]]);
/*
/*
* yuck, to avoid slow special case code in the extract
* routines, just push this header back as if it was
* not seen. We have left extra space at start of the
+9 -9
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: buf_subs.c,v 1.2 1994/09/24 02:56:13 davidg Exp $
*/
#ifndef lint
@@ -101,7 +101,7 @@ wr_start()
* archive that might be hard to read elsewhere. If all ok, we then
* open the first archive volume
*/
if (!wrblksz)
if (!wrblksz)
wrblksz = frmt->bsz;
if (wrblksz > MAXBLK) {
warn(1, "Write block size of %d too large, maximium is: %d",
@@ -115,7 +115,7 @@ wr_start()
}
/*
* we only allow wrblksz to be used with all archive operations
* we only allow wrblksz to be used with all archive operations
*/
blksz = rdblksz = wrblksz;
if ((ar_open(arcname) < 0) && (ar_next() < 0))
@@ -215,7 +215,7 @@ cp_start()
* about the conditions under which they will allow a write to occur.
* Often devices restrict the conditions where writes can be made writes,
* so it may not be feasable to append archives stored on all types of
* devices.
* devices.
* Return:
* 0 for success, -1 for failure
*/
@@ -313,7 +313,7 @@ appnd_start(skcnt)
warn(1, "Unable to rewrite archive trailer, cannot append.");
return(-1);
}
/*
* rd_sync()
* A read error occurred on this archive volume. Resync the buffer and
@@ -488,7 +488,7 @@ rd_skip(skcnt)
return(0);
}
/*
/*
* wr_fin()
* flush out any data (and pad if required) the last block. We always pad
* with zero (even though we do not have to). Padding with 0 makes it a
@@ -517,7 +517,7 @@ wr_fin()
* by format specific write routines to pass a file header). On failure we
* punt. We do not allow the user to continue to write flawed archives.
* We assume these headers are not very large (the memory copy we use is
* a bit expensive).
* a bit expensive).
* Return:
* 0 if buffer was filled ok, -1 o.w. (buffer flush failure)
*/
@@ -810,7 +810,7 @@ rd_wrfile(arcn, ofd, left)
/*
* if we failed from archive read, we do not want to skip
*/
if ((size > 0L) && (*left == 0L))
if ((size > 0L) && (*left == 0L))
return(-1);
/*
@@ -1019,7 +1019,7 @@ buf_flush(bufcnt)
/*
* write a block and check if it all went out ok
*/
cnt = ar_write(buf, blksz);
cnt = ar_write(buf, blksz);
if (cnt == blksz) {
/*
* the write went ok
+3 -3
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: cpio.c,v 1.2 1994/09/24 02:56:16 davidg Exp $
*/
#ifndef lint
@@ -93,7 +93,7 @@ cpio_strd()
* mode; looking for a valid header), and cnt (which starts at zero)
* which is used to count the number of empty blocks we have seen so far.
* Return:
* 0 if a valid trailer, -1 if not a valid trailer,
* 0 if a valid trailer, -1 if not a valid trailer,
*/
#if __STDC__
@@ -572,7 +572,7 @@ cpio_wr(arcn)
/*
* vcpio_id()
* determine if a block given to us is a valid system VR4 cpio header
* WITHOUT crc. WATCH it the magic cookies are in OCTAL, the header
* WITHOUT crc. WATCH it the magic cookies are in OCTAL, the header
* uses HEX
* Return:
* 0 if a valid header, -1 otherwise
+5 -5
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)cpio.h 8.1 (Berkeley) 5/31/93
* $Id$
* $Id: cpio.h,v 1.2 1994/09/24 02:56:17 davidg Exp $
*/
/*
@@ -71,7 +71,7 @@ typedef struct {
char c_mtime[11]; /* modification time */
char c_namesize[6]; /* length of pathname */
char c_filesize[11]; /* length of file in bytes */
} HD_CPIO;
} HD_CPIO;
#define MAGIC 070707 /* transportable archive id */
@@ -82,7 +82,7 @@ typedef struct {
#endif /* _PAX_ */
/*
* Binary cpio header structure
* Binary cpio header structure
*
* CAUTION! CAUTION! CAUTION!
* Each field really represents a 16 bit short (NOT ASCII). Described as
@@ -102,7 +102,7 @@ typedef struct {
u_char h_namesize[2];
u_char h_filesize_1[2];
u_char h_filesize_2[2];
} HD_BCPIO;
} HD_BCPIO;
#ifdef _PAX_
/*
@@ -140,7 +140,7 @@ typedef struct {
char c_rmin[8]; /* special file minor # */
char c_namesize[8]; /* length of pathname */
char c_chksum[8]; /* 0 OR CRC of bytes of FILE data */
} HD_VCPIO;
} HD_VCPIO;
#define VMAGIC 070701 /* sVr4 new portable archive id */
#define VCMAGIC 070702 /* sVr4 new portable archive id CRC */
+6 -6
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: file_subs.c,v 1.2 1994/09/24 02:56:19 davidg Exp $
*/
#ifndef lint
@@ -159,7 +159,7 @@ file_close(arcn, fd)
/*
* set owner/groups first as this may strip off mode bits we want
* then set file permission modes. Then set file access and
* modification times.
* modification times.
*/
if (pids)
res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid);
@@ -180,7 +180,7 @@ file_close(arcn, fd)
/*
* lnk_creat()
* Create a hard link to arcn->ln_name from arcn->name. arcn->ln_name
* must exist;
* must exist;
* Return:
* 0 if ok, -1 otherwise
*/
@@ -266,7 +266,7 @@ chk_same(arcn)
{
struct stat sb;
/*
/*
* if file does not exist, return. if file exists and -k, skip it
* quietly
*/
@@ -570,7 +570,7 @@ unlnk_exist(name, type)
*/
if (rmdir(name) < 0) {
if (type == PAX_DIR)
return(1);
return(1);
syswarn(1,errno,"Unable to remove directory %s", name);
return(-1);
}
@@ -847,7 +847,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
register char *end;
register int wcnt;
register char *st = str;
/*
* while we have data to process
*/
+4 -4
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: ftree.c,v 1.2 1994/09/24 02:56:20 davidg Exp $
*/
#ifndef lint
@@ -214,7 +214,7 @@ ftree_sel(arcn)
* when file trees are supplied pax as args. The list is not used when
* the trees are read from stdin.
*/
if (ftcur != NULL)
if (ftcur != NULL)
ftcur->refcnt = 1;
/*
@@ -307,7 +307,7 @@ ftree_arg()
if (fthead == NULL) {
/*
* the user didn't supply any args, get the file trees
* to process from stdin;
* to process from stdin;
*/
if (fgets(farray[0], PAXPATHLEN+1, stdin) == NULL)
return(-1);
@@ -362,7 +362,7 @@ next_file(arcn)
/*
* ftree_sel() might have set the ftree_skip flag if the user has the
* -n option and a file was selected from this file arg tree. (-n says
* only one member is matched for each pattern) ftree_skip being 1
* only one member is matched for each pattern) ftree_skip being 1
* forces us to go to the next arg now.
*/
if (ftree_skip) {
+7 -7
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: gen_subs.c,v 1.3 1995/03/19 13:28:49 joerg Exp $
*/
#ifndef lint
@@ -135,7 +135,7 @@ ls_list(arcn, now)
# ifdef NET2_STAT
(void)printf("%4u,%4u ", MAJOR(sbp->st_rdev),
# else
(void)printf("%4lu,%4lu ", MAJOR(sbp->st_rdev),
(void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
# endif
MINOR(sbp->st_rdev));
else {
@@ -203,7 +203,7 @@ ls_tty(arcn)
/*
* zf_strncpy()
* copy src to dest up to len chars (stopping at first '\0'), when src is
* shorter than len, pads to len with '\0'. big performance win (and
* shorter than len, pads to len with '\0'. big performance win (and
* a lot easier to code) over strncpy(), then a strlen() then a
* bzero(). (or doing the bzero() first).
*/
@@ -335,7 +335,7 @@ ul_asc(val, str, len, base)
{
register char *pt;
u_long digit;
/*
* WARNING str is not '\0' terminated by this routine
*/
@@ -350,7 +350,7 @@ ul_asc(val, str, len, base)
while (pt >= str) {
if ((digit = (val & 0xf)) < 10)
*pt-- = '0' + (char)digit;
else
else
*pt-- = 'a' + (char)(digit - 10);
if ((val = (val >> 4)) == (u_long)0)
break;
@@ -449,7 +449,7 @@ uqd_asc(val, str, len, base)
{
register char *pt;
u_quad_t digit;
/*
* WARNING str is not '\0' terminated by this routine
*/
@@ -464,7 +464,7 @@ uqd_asc(val, str, len, base)
while (pt >= str) {
if ((digit = (val & 0xf)) < 10)
*pt-- = '0' + (char)digit;
else
else
*pt-- = 'a' + (char)(digit - 10);
if ((val = (val >> 4)) == (u_quad_t)0)
break;
+16 -16
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: options.c,v 1.2 1994/09/24 02:56:22 davidg Exp $
*/
#ifndef lint
@@ -90,34 +90,34 @@ static void cpio_usage __P((void));
FSUB fsub[] = {
/* 0: OLD BINARY CPIO */
"bcpio", 5120, sizeof(HD_BCPIO), 1, 0, 0, 1, bcpio_id, cpio_strd,
{"bcpio", 5120, sizeof(HD_BCPIO), 1, 0, 0, 1, bcpio_id, cpio_strd,
bcpio_rd, bcpio_endrd, cpio_stwr, bcpio_wr, cpio_endwr, cpio_trail,
rd_wrfile, wr_rdfile, bad_opt,
rd_wrfile, wr_rdfile, bad_opt},
/* 1: OLD OCTAL CHARACTER CPIO */
"cpio", 5120, sizeof(HD_CPIO), 1, 0, 0, 1, cpio_id, cpio_strd,
{"cpio", 5120, sizeof(HD_CPIO), 1, 0, 0, 1, cpio_id, cpio_strd,
cpio_rd, cpio_endrd, cpio_stwr, cpio_wr, cpio_endwr, cpio_trail,
rd_wrfile, wr_rdfile, bad_opt,
rd_wrfile, wr_rdfile, bad_opt},
/* 2: SVR4 HEX CPIO */
"sv4cpio", 5120, sizeof(HD_VCPIO), 1, 0, 0, 1, vcpio_id, cpio_strd,
{"sv4cpio", 5120, sizeof(HD_VCPIO), 1, 0, 0, 1, vcpio_id, cpio_strd,
vcpio_rd, vcpio_endrd, cpio_stwr, vcpio_wr, cpio_endwr, cpio_trail,
rd_wrfile, wr_rdfile, bad_opt,
rd_wrfile, wr_rdfile, bad_opt},
/* 3: SVR4 HEX CPIO WITH CRC */
"sv4crc", 5120, sizeof(HD_VCPIO), 1, 0, 0, 1, crc_id, crc_strd,
{"sv4crc", 5120, sizeof(HD_VCPIO), 1, 0, 0, 1, crc_id, crc_strd,
vcpio_rd, vcpio_endrd, crc_stwr, vcpio_wr, cpio_endwr, cpio_trail,
rd_wrfile, wr_rdfile, bad_opt,
rd_wrfile, wr_rdfile, bad_opt},
/* 4: OLD TAR */
"tar", 10240, BLKMULT, 0, 1, BLKMULT, 0, tar_id, no_op,
{"tar", 10240, BLKMULT, 0, 1, BLKMULT, 0, tar_id, no_op,
tar_rd, tar_endrd, no_op, tar_wr, tar_endwr, tar_trail,
rd_wrfile, wr_rdfile, tar_opt,
rd_wrfile, wr_rdfile, tar_opt},
/* 5: POSIX USTAR */
"ustar", 10240, BLKMULT, 0, 1, BLKMULT, 0, ustar_id, ustar_strd,
{"ustar", 10240, BLKMULT, 0, 1, BLKMULT, 0, ustar_id, ustar_strd,
ustar_rd, tar_endrd, ustar_stwr, ustar_wr, tar_endwr, tar_trail,
rd_wrfile, wr_rdfile, bad_opt,
rd_wrfile, wr_rdfile, bad_opt},
};
#define F_TAR 4 /* format when called as tar */
#define DEFLT 5 /* default write format from list above */
@@ -367,8 +367,8 @@ pax_options(argc, argv)
* specify an archive format on write
*/
tmp.name = optarg;
if (frmt = (FSUB *)bsearch((void *)&tmp, (void *)fsub,
sizeof(fsub)/sizeof(FSUB), sizeof(FSUB), c_frmt)) {
if ((frmt = (FSUB *)bsearch((void *)&tmp, (void *)fsub,
sizeof(fsub)/sizeof(FSUB), sizeof(FSUB), c_frmt))) {
flg |= XF;
break;
}
@@ -823,7 +823,7 @@ printflg(flg)
int pos = 0;
(void)fprintf(stderr,"%s: Invalid combination of options:", argv0);
while (nxt = ffs(flg)) {
while ((nxt = ffs(flg))) {
flg = flg >> nxt;
pos += nxt;
(void)fprintf(stderr, " -%c", flgch[pos-1]);
+15 -15
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: pat_rep.c,v 1.3 1995/03/19 13:28:56 joerg Exp $
*/
#ifndef lint
@@ -88,7 +88,7 @@ static int resub __P((regex_t *, regmatch_t *, char *, char *, char *));
* parses the -s replacement string; compiles the regular expression
* and stores the compiled value and it's replacement string together in
* replacement string list. Input to this function is of the form:
* /old/new/pg
* /old/new/pg
* The first char in the string specifies the delimiter used by this
* replacement string. "Old" is a regular expression in "ed" format which
* is compiled by regcomp() and is applied to filenames. "new" is the
@@ -348,7 +348,7 @@ pat_sel(arcn)
/*
* we reach this point only when we allow a single selected match per
* pattern, if the pattern matches a directory and we do not have -d
* pattern, if the pattern matches a directory and we do not have -d
* (dflag) we are done with this pattern. We may also be handed a file
* in the subtree of a directory. in that case when we are operating
* with -d, this pattern was already selected and we are done
@@ -372,7 +372,7 @@ pat_sel(arcn)
*/
if (pt->pend != NULL)
*pt->pend = '\0';
if ((pt->pstr = strdup(arcn->name)) == NULL) {
warn(1, "Pattern select out of memory");
if (pt->pend != NULL)
@@ -397,7 +397,7 @@ pat_sel(arcn)
if (*(pt->pstr + len) == '/') {
*(pt->pstr + len) = '\0';
pt->plen = len;
}
}
pt->flgs = DIR_MTCH | MTCH;
arcn->pat = pt;
return(0);
@@ -438,7 +438,7 @@ pat_sel(arcn)
* this archive member is "selected" we process and mark the pattern as
* one which matched a selected archive member (see pat_sel())
* Return:
* 0 if this archive member should be processed, 1 if it should be
* 0 if this archive member should be processed, 1 if it should be
* skipped and -1 if we are done with all patterns (and pax should quit
* looking for more members)
*/
@@ -515,7 +515,7 @@ pat_match(arcn)
/*
* fn_match()
* Return:
* 0 if this archive member should be processed, 1 if it should be
* 0 if this archive member should be processed, 1 if it should be
* skipped and -1 if we are done with all patterns (and pax should quit
* looking for more members)
* Note: *pend may be changed to show where the prefix ends.
@@ -564,7 +564,7 @@ fn_match(pattern, string, pend)
case '*':
c = *pattern;
/*
* Collapse multiple *'s.
* Collapse multiple *'s.
*/
while (c == '*')
c = *++pattern;
@@ -617,7 +617,7 @@ range_match(pattern, test)
int negate;
int ok = 0;
if (negate = (*pattern == '!'))
if ((negate = (*pattern == '!')))
++pattern;
while ((c = *pattern++) != ']') {
@@ -649,7 +649,7 @@ range_match(pattern, test)
* if we spot any file links to the old file name in the future, we will
* know exactly how to fix the file link.
* Return:
* 0 continue to process file, 1 skip this file, -1 pax is finished
* 0 continue to process file, 1 skip this file, -1 pax is finished
*/
#if __STDC__
@@ -862,7 +862,7 @@ fix_path(or_name, or_len, dir_name, dir_len)
*or_len = len;
/*
* enough space, shift
* enough space, shift
*/
while (src >= start)
*dest-- = *src--;
@@ -1014,7 +1014,7 @@ rep_name(name, nlen, prnt)
*/
} while (pt->flgs & GLOB);
if (found)
if (found)
break;
/*
@@ -1037,7 +1037,7 @@ rep_name(name, nlen, prnt)
warn(1,"Replacement name too long %s >> %s",
name, nname);
return(1);
}
}
/*
* inform the user of the result if wanted
@@ -1046,7 +1046,7 @@ rep_name(name, nlen, prnt)
if (*nname == '\0')
(void)fprintf(stderr,"%s >> <empty string>\n",
name);
else
else
(void)fprintf(stderr,"%s >> %s\n", name, nname);
}
@@ -1054,7 +1054,7 @@ rep_name(name, nlen, prnt)
* if empty inform the caller this file is to be skipped
* otherwise copy the new name over the orig name and return
*/
if (*nname == '\0')
if (*nname == '\0')
return(1);
*nlen = l_strncpy(name, nname, PAXPATHLEN + 1);
}
+12 -12
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: pax.c,v 1.2 1994/09/24 02:56:27 davidg Exp $
*/
#ifndef lint
@@ -116,7 +116,7 @@ sigset_t s_mask; /* signal mask for cleanup critical sect */
*
* 1 READ ENHANCEMENTS
* 1.1 Operations which read archives will continue to operate even when
* processing archives which may be damaged, truncated, or fail to meet
* processing archives which may be damaged, truncated, or fail to meet
* format specs in several different ways. Damaged sections of archives
* are detected and avoided if possible. Attempts will be made to resync
* archive read operations even with badly damaged media.
@@ -131,7 +131,7 @@ sigset_t s_mask; /* signal mask for cleanup critical sect */
* 1.5 The user is notified whenever something is found during archive
* read operations which violates spec (but the read will continue).
* 1.6 Multiple archive volumes can be read and may span over different
* archive devices
* archive devices
* 1.7 Rigidly restores all file attributes exactly as they are stored on the
* archive.
* 1.8 Modification change time ranges can be specified via multiple -T
@@ -157,7 +157,7 @@ sigset_t s_mask; /* signal mask for cleanup critical sect */
* these fields. This removes any restrictions on using these archive
* formats on large file systems.
* 2.5 Multiple archive volumes can be written and may span over different
* archive devices
* archive devices
* 2.6 A archive volume record limit allows the user to specify the number
* of bytes stored on an archive volume. When reached the user is
* prompted for the next archive volume. This is specified with the
@@ -204,7 +204,7 @@ sigset_t s_mask; /* signal mask for cleanup critical sect */
* name modification (-Z)
*
* 4 GENERAL ENHANCEMENTS
* 4.1 Internal structure is designed to isolate format dependent and
* 4.1 Internal structure is designed to isolate format dependent and
* independent functions. Formats are selected via a format driver table.
* This encourages the addition of new archive formats by only having to
* write those routines which id, read and write the archive header.
@@ -235,7 +235,7 @@ main(argc, argv)
return(exit_val);
/*
* select a primary operation mode
* select a primary operation mode
*/
switch(act) {
case EXTRACT:
@@ -349,7 +349,7 @@ gen_init()
/*
* Handle posix locale
*
* set user defines time printing format for -v option
* set user defines time printing format for -v option
*/
ltmfrmt = getenv("LC_TIME");
@@ -371,27 +371,27 @@ gen_init()
n_hand.sa_handler = sig_cleanup;
if ((sigaction(SIGHUP, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
(o_hand.sa_handler == SIG_IGN) &&
(sigaction(SIGHUP, &o_hand, &o_hand) < 0))
goto out;
if ((sigaction(SIGTERM, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
(o_hand.sa_handler == SIG_IGN) &&
(sigaction(SIGTERM, &o_hand, &o_hand) < 0))
goto out;
if ((sigaction(SIGINT, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
(o_hand.sa_handler == SIG_IGN) &&
(sigaction(SIGINT, &o_hand, &o_hand) < 0))
goto out;
if ((sigaction(SIGQUIT, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
(o_hand.sa_handler == SIG_IGN) &&
(sigaction(SIGQUIT, &o_hand, &o_hand) < 0))
goto out;
if ((sigaction(SIGXCPU, &n_hand, &o_hand) < 0) &&
(o_hand.sa_handler == SIG_IGN) &&
(o_hand.sa_handler == SIG_IGN) &&
(sigaction(SIGXCPU, &o_hand, &o_hand) < 0))
goto out;
+4 -4
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)pax.h 8.2 (Berkeley) 4/18/94
* $Id$
* $Id: pax.h,v 1.2 1994/09/24 02:56:28 davidg Exp $
*/
/*
@@ -63,7 +63,7 @@
#define DEFOP LIST /* if no flags default is to LIST */
/*
* Device type of the current archive volume
* Device type of the current archive volume
*/
#define ISREG 0 /* regular file */
#define ISCHR 1 /* character device */
@@ -76,7 +76,7 @@
*
* The format specific routine table allows new archive formats to be quickly
* added. Overall pax operation is independent of the actual format used to
* form the archive. Only those routines which deal directly with the archive
* form the archive. Only those routines which deal directly with the archive
* are tailored to the oddities of the specifc format. All other routines are
* independent of the archive format. Data flow in and out of the format
* dependent routines pass pointers to ARCHD structure (described below).
@@ -207,7 +207,7 @@ typedef struct {
#define PAX_FIF 7 /* fifo */
#define PAX_HLK 8 /* hard link */
#define PAX_HRG 9 /* hard link to a regular file */
#define PAX_CTG 10 /* high performance file */
#define PAX_CTG 10 /* high performance file */
} ARCHD;
/*
+14 -14
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: tables.c,v 1.2 1994/09/24 02:56:34 davidg Exp $
*/
#ifndef lint
@@ -85,7 +85,7 @@ static DEVT *chk_dev __P((dev_t, int));
/*
* hard link table routines
*
* The hard link table tries to detect hard links to files using the device and
* The hard link table tries to detect hard links to files using the device and
* inode values. We do this when writing an archive, so we can tell the format
* write routine that this file is a hard link to another file. The format
* write routine then can store this file in whatever way it wants (as a hard
@@ -333,10 +333,10 @@ lnk_end()
* that this is one HUGE database. To save memory space, the actual file names
* are stored in a scatch file and indexed by an in memory hash table. The
* hash table is indexed by hashing the file path. The nodes in the table store
* the length of the filename and the lseek offset within the scratch file
* the length of the filename and the lseek offset within the scratch file
* where the actual name is stored. Since there are never any deletions to this
* table, fragmentation of the scratch file is never a issue. Lookups seem to
* not exhibit any locality at all (files in the database are rarely
* not exhibit any locality at all (files in the database are rarely
* looked up more than once...). So caching is just a waste of memory. The
* only limitation is the amount of scatch file space available to store the
* path names.
@@ -468,7 +468,7 @@ chk_ftime(arcn)
*/
pt->mtime = arcn->sb.st_mtime;
return(0);
}
}
/*
* file is older
*/
@@ -493,7 +493,7 @@ chk_ftime(arcn)
return(0);
}
syswarn(1, errno, "Failed write to file time table");
} else
} else
syswarn(1, errno, "Failed seek on file time table");
} else
warn(1, "File time table ran out of memory");
@@ -567,7 +567,7 @@ add_name(oname, onamelen, nname)
* should never happen
*/
warn(0, "No interactive rename table, links may fail\n");
return(0);
return(0);
}
/*
@@ -666,7 +666,7 @@ sub_name(oname, onamelen)
*/
return;
}
/*
* device/inode mapping table routines
* (used with formats that store device and inodes fields)
@@ -856,7 +856,7 @@ map_dev(arcn, dev_mask, ino_mask)
return(0);
/*
* check for device and inode truncation, and extract the truncated
* bit pattern.
* bit pattern.
*/
if ((arcn->sb.st_dev & (dev_t)dev_mask) != arcn->sb.st_dev)
++trc_dev;
@@ -1064,7 +1064,7 @@ add_atdir(fname, dev, ino, mtime, atime)
return;
/*
* make sure this directory is not already in the table, if so just
* make sure this directory is not already in the table, if so just
* return (the older entry always has the correct time). The only
* way this will happen is when the same subtree can be traversed by
* different args to pax and the -n option is aborting fts out of a
@@ -1233,7 +1233,7 @@ dir_start()
* name is name of the directory, psb the stat buffer with the data in it,
* frc_mode is a flag that says whether to force the setting of the mode
* (ignoring the user set values for preserving file mode). Frc_mode is
* for the case where we created a file and found that the resulting
* for the case where we created a file and found that the resulting
* directory was not writeable and the user asked for file modes to NOT
* be preserved. (we have to preserve what was created by default, so we
* have to force the setting at the end. this is stated explicitly in the
@@ -1312,15 +1312,15 @@ proc_dir()
* read the trailer, then the file name, if this fails
* just give up.
*/
if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0)
if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0)
break;
if (read(dirfd,(char *)&dblk, sizeof(dblk)) != sizeof(dblk))
break;
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
break;
if (read(dirfd, name, dblk.nlen) != dblk.nlen)
break;
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
break;
/*
+2 -2
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)tables.h 8.1 (Berkeley) 5/31/93
* $Id$
* $Id: tables.h,v 1.2 1994/09/24 02:56:35 davidg Exp $
*/
/*
@@ -106,7 +106,7 @@ typedef struct namt {
* this table. (When the inode field in the archive header are too small, we
* remap the dev on writes to remove accidental collisions).
*
* The list is hashed by device number using chain collision resolution. Off of
* The list is hashed by device number using chain collision resolution. Off of
* each DEVT are linked the various remaps for this device based on those bits
* in the inode which were truncated. For example if we are just remapping to
* avoid a device number during an update append, off the DEVT we would have
+8 -8
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: tar.c,v 1.2 1994/09/24 02:56:37 davidg Exp $
*/
#ifndef lint
@@ -182,7 +182,7 @@ ul_oct(val, str, len, term)
#endif
{
register char *pt;
/*
* term selects the appropriate character(s) for the end of the string
*/
@@ -246,7 +246,7 @@ uqd_oct(val, str, len, term)
#endif
{
register char *pt;
/*
* term selects the appropriate character(s) for the end of the string
*/
@@ -315,8 +315,8 @@ tar_chksm(blk, len)
*/
pt = blk;
stop = blk + CHK_OFFSET;
while (pt < stop)
chksm += (u_long)(*pt++ & 0xff);
while (pt < stop)
chksm += (u_long)(*pt++ & 0xff);
/*
* move past the checksum field and keep going, spec counts the
* checksum field as the sum of 8 blanks (which is pre-computed as
@@ -327,7 +327,7 @@ tar_chksm(blk, len)
pt += CHK_LEN;
stop = blk + len;
while (pt < stop)
chksm += (u_long)(*pt++ & 0xff);
chksm += (u_long)(*pt++ & 0xff);
return(chksm);
}
@@ -532,7 +532,7 @@ tar_rd(arcn, buf)
* strip off any trailing slash.
*/
if (*pt == '/') {
*pt = '\0';
*pt = '\0';
--arcn->nlen;
}
return(0);
@@ -1013,7 +1013,7 @@ ustar_wr(arcn)
*/
zf_strncpy(hd->name, pt, sizeof(hd->name));
/*
/*
* set the fields in the header that are type dependent
*/
switch(arcn->type) {
+3 -3
View File
@@ -1,12 +1,12 @@
# @(#)Makefile 8.1 (Berkeley) 6/2/93
# $Id$
# $Id: Makefile,v 1.4 1995/04/15 03:23:36 davidg Exp $
PROG= ps
SRCS= fmt.c keyword.c nlist.c print.c ps.c
CFLAGS+=-I/sys
DPADD= ${LIBMATH} ${LIBKVM}
LDADD= -lm -lkvm
BINOWN= root
BINMODE=4555
BINGRP= kmem
BINMODE=2555
.include <bsd.prog.mk>
+8 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: fmt.c,v 1.4 1994/11/10 23:25:12 ats Exp $
*/
#ifndef lint
@@ -38,6 +38,7 @@ static char sccsid[] = "@(#)fmt.c 8.4 (Berkeley) 4/15/94";
#endif /* not lint */
#include <sys/param.h>
#include <sys/syslimits.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <ctype.h>
@@ -59,7 +60,7 @@ shquote(argv)
char **argv;
{
char **p, *dst, *src;
static char buf[4096]; /* XXX */
static char buf[ARG_MAX]; /* XXX */
if (*argv == 0) {
buf[0] = 0;
@@ -74,6 +75,9 @@ shquote(argv)
dst++;
*dst++ = ' ';
}
/* Chop off trailing space */
if (dst != buf)
dst--;
*dst = '\0';
return (buf);
}
@@ -108,9 +112,9 @@ fmt_argv(argv, cmd, maxlen)
if ((cp = malloc(len)) == NULL)
return (NULL);
if (ap == NULL)
sprintf(cp, "(%.*s)", maxlen, cmd);
sprintf(cp, " (%.*s)", maxlen, cmd);
else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0)
sprintf(cp, "%s(%.*s)", ap, maxlen, cmd);
sprintf(cp, "%s (%.*s)", ap, maxlen, cmd);
else
(void) strcpy(cp, ap);
return (cp);
+2 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: nlist.c,v 1.3 1994/10/02 08:19:11 davidg Exp $
* $Id: nlist.c,v 1.4 1994/10/02 08:33:29 davidg Exp $
*/
#ifndef lint
@@ -111,6 +111,7 @@ donlist()
eval = rval = 1;
}
mempages -= tmp;
mempages /= PAGE_SIZE;
#else
if (kread(X_ECMX, mempages)) {
warnx("ecmx: %s", kvm_geterr(kd));
+6 -6
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: print.c,v 1.4 1994/10/02 08:33:30 davidg Exp $
* $Id: print.c,v 1.6 1995/03/19 13:29:01 joerg Exp $
*/
#ifndef lint
@@ -410,7 +410,7 @@ wchan(k, ve)
v = ve->var;
if (KI_PROC(k)->p_wchan) {
if (KI_PROC(k)->p_wmesg)
(void)printf("%-*.*s", v->width, v->width,
(void)printf("%-*.*s", v->width, v->width,
KI_EPROC(k)->e_wmesg);
else
(void)printf("%-*x", v->width,
@@ -468,7 +468,7 @@ p_rssize(k, ve) /* doesn't account for text */
#ifndef NEWVM
(void)printf("%*d", v->width, pgtok(KI_PROC(k)->p_rssize));
#else
(void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_vm.vm_rssize));
(void)printf("%*ld", v->width, pgtok(KI_EPROC(k)->e_vm.vm_rssize));
#endif
}
@@ -599,7 +599,7 @@ pagein(k, ve)
VAR *v;
v = ve->var;
(void)printf("%*d", v->width,
(void)printf("%*ld", v->width,
k->ki_u.u_valid ? k->ki_u.u_ru.ru_majflt : 0);
}
@@ -630,7 +630,7 @@ tsize(k, ve)
#ifndef NEWVM
(void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_xsize));
#else
(void)printf("%*d", v->width, pgtok(KI_EPROC(k)->e_vm.vm_tsize));
(void)printf("%*ld", v->width, pgtok(KI_EPROC(k)->e_vm.vm_tsize));
#endif
}
@@ -664,7 +664,7 @@ printval(bp, v)
if (v->flag & LJUST)
*cp++ = '-';
*cp++ = '*';
while (*cp++ = *fcp++);
while ((*cp++ = *fcp++));
switch (v->type) {
case CHAR:
+5 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ps.c,v 1.4 1994/10/02 08:33:31 davidg Exp $
* $Id: ps.c,v 1.6 1995/03/19 13:29:06 joerg Exp $
*/
#ifndef lint
@@ -384,7 +384,7 @@ saveuser(ki)
struct user *u_addr = (struct user *)USRSTACK;
usp = &ki->ki_u;
if (kvm_uread(kd, KI_PROC(ki), &u_addr->u_stats,
if (kvm_uread(kd, KI_PROC(ki), (unsigned long)&u_addr->u_stats,
(char *)&pstats, sizeof(pstats)) == sizeof(pstats)) {
/*
* The u-area might be swapped out, and we can't get
@@ -486,8 +486,9 @@ kludge_oldps_options(s)
* if there's a trailing number, and not a preceding 'p' (pid) or
* 't' (tty) flag, then assume it's a pid and insert a 'p' flag.
*/
if (isdigit(*cp) && (cp == s || cp[-1] != 't' && cp[-1] != 'p' &&
(cp - 1 == s || cp[-2] != 't')))
if (isdigit(*cp) &&
(cp == s || (cp[-1] != 't' && cp[-1] != 'p')) &&
(cp - 1 == s || cp[-2] != 't'))
*ns++ = 'p';
(void)strcpy(ns, cp); /* and append the number */
+2 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 7/19/93
# $Id: Makefile,v 1.3 1994/09/24 02:56:53 davidg Exp $
# $Id: Makefile,v 1.4 1994/09/29 13:06:00 csgr Exp $
PROG= rcp
SRCS= rcp.c util.c
@@ -11,6 +11,7 @@ SRCS+= kcmd.c krcmd.c
CFLAGS+=-DKERBEROS -DCRYPT
DPADD= ${LIBKRB} ${LIBDES}
LDADD= -lkrb -ldes
DISTRIBUTION= krb
.endif
BINOWN= root
+12 -12
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: rcp.c,v 1.3 1995/03/19 13:29:14 joerg Exp $
*/
#ifndef lint
@@ -226,7 +226,7 @@ main(argc, argv)
(void)signal(SIGPIPE, lostconn);
if (targ = colon(argv[argc - 1])) /* Dest is remote host. */
if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */
toremote(targ, argc, argv);
else {
tolocal(argc, argv); /* Dest is local host. */
@@ -248,7 +248,7 @@ toremote(targ, argc, argv)
if (*targ == 0)
targ = ".";
if (thost = strchr(argv[argc - 1], '@')) {
if ((thost = strchr(argv[argc - 1], '@'))) {
/* user@host */
*thost++ = 0;
tuser = argv[argc - 1];
@@ -366,10 +366,10 @@ tolocal(argc, argv)
if ((bp = malloc(len)) == NULL)
err(1, NULL);
(void)snprintf(bp, len, "%s -f %s", cmd, src);
rem =
rem =
#ifdef KERBEROS
use_kerberos ?
kerberos(&host, bp, pwd->pw_name, suser) :
use_kerberos ?
kerberos(&host, bp, pwd->pw_name, suser) :
#endif
rcmd(&host, port, pwd->pw_name, suser, bp, 0);
(void)free(bp);
@@ -509,7 +509,7 @@ rsource(name, statp)
closedir(dirp);
return;
}
while (dp = readdir(dirp)) {
while ((dp = readdir(dirp))) {
if (dp->d_ino == 0)
continue;
if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
@@ -539,7 +539,7 @@ sink(argc, argv)
BUF *bp;
off_t i, j;
int amt, count, exists, first, mask, mode, ofd, omode;
int setimes, size, targisdir, wrerrno;
int setimes, size, targisdir, wrerrno = 0;
char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ];
#define atime tv[0]
@@ -714,7 +714,7 @@ bad: run_err("%s: %s", np, strerror(errno));
j = write(ofd, bp->buf, count);
if (j != count) {
wrerr = YES;
wrerrno = j >= 0 ? EIO : errno;
wrerrno = j >= 0 ? EIO : errno;
}
}
count = 0;
@@ -724,7 +724,7 @@ bad: run_err("%s: %s", np, strerror(errno));
if (count != 0 && wrerr == NO &&
(j = write(ofd, bp->buf, count)) != count) {
wrerr = YES;
wrerrno = j >= 0 ? EIO : errno;
wrerrno = j >= 0 ? EIO : errno;
}
if (ftruncate(ofd, size)) {
run_err("%s: truncate: %s", np, strerror(errno));
@@ -780,9 +780,9 @@ again:
errno = 0;
if (dest_realm == NULL)
dest_realm = krb_realmofhost(*host);
rem =
rem =
#ifdef CRYPT
doencrypt ?
doencrypt ?
krcmd_mutual(host,
port, user, bp, 0, dest_realm, &cred, schedule) :
#endif
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: util.c,v 1.3 1995/03/19 13:29:16 joerg Exp $
*/
#ifndef lint
@@ -111,14 +111,14 @@ susystem(s, userid)
char *s;
{
sig_t istat, qstat;
int status, w;
int status;
pid_t pid;
pid = vfork();
switch (pid) {
case -1:
return (127);
case 0:
(void)setuid(userid);
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
+4 -1
View File
@@ -1,6 +1,9 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $Id$
# $Id: Makefile,v 1.2 1994/09/24 02:56:59 davidg Exp $
PROG= rm
SRCS= rm.c stat_flags.c
.PATH: ${.CURDIR}/../ls
.include <bsd.prog.mk>
+64 -29
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: rm.c,v 1.5 1994/09/24 02:57:02 davidg Exp $
*/
#ifndef lint
@@ -55,7 +55,10 @@ static char sccsid[] = "@(#)rm.c 8.5 (Berkeley) 4/18/94";
#include <string.h>
#include <unistd.h>
extern char *flags_to_string __P((u_long, char *));
int dflag, eval, fflag, iflag, Pflag, stdin_ok;
uid_t uid;
int check __P((char *, char *, struct stat *));
void checkdot __P((char **));
@@ -114,6 +117,7 @@ main(argc, argv)
exit (eval);
stdin_ok = isatty(STDIN_FILENO);
uid = geteuid();
if (rflag)
rm_tree(argv);
@@ -129,12 +133,13 @@ rm_tree(argv)
FTS *fts;
FTSENT *p;
int needstat;
int rval;
/*
* Remove a file hierarchy. If forcing removal (-f), or interactive
* (-i) or can't ask anyway (stdin_ok), don't stat the file.
*/
needstat = !fflag && !iflag && stdin_ok;
needstat = !uid || !fflag && !iflag && stdin_ok;
/*
* If the -i option is specified, the user can skip on the pre-order
@@ -177,6 +182,12 @@ rm_tree(argv)
(void)fts_set(fts, p, FTS_SKIP);
p->fts_number = SKIPPED;
}
else if (!uid &&
(p->fts_statp->st_flags & (UF_APPEND|UF_IMMUTABLE)) &&
!(p->fts_statp->st_flags & (SF_APPEND|SF_IMMUTABLE)) &&
chflags(p->fts_accpath,
p->fts_statp->st_flags &= ~(UF_APPEND|UF_IMMUTABLE)) < 0)
goto err;
continue;
case FTS_DP:
/* Post-order: see if user skipped. */
@@ -188,25 +199,34 @@ rm_tree(argv)
!check(p->fts_path, p->fts_accpath, p->fts_statp))
continue;
/*
* If we can't read or search the directory, may still be
* able to remove it. Don't print out the un{read,search}able
* message unless the remove fails.
*/
if (p->fts_info == FTS_DP || p->fts_info == FTS_DNR) {
if (!rmdir(p->fts_accpath))
continue;
if (errno == ENOENT) {
if (fflag)
rval = 0;
if (!uid &&
(p->fts_statp->st_flags & (UF_APPEND|UF_IMMUTABLE)) &&
!(p->fts_statp->st_flags & (SF_APPEND|SF_IMMUTABLE)))
rval = chflags(p->fts_accpath,
p->fts_statp->st_flags &= ~(UF_APPEND|UF_IMMUTABLE));
if (!rval) {
/*
* If we can't read or search the directory, may still be
* able to remove it. Don't print out the un{read,search}able
* message unless the remove fails.
*/
if (p->fts_info == FTS_DP || p->fts_info == FTS_DNR) {
if (!rmdir(p->fts_accpath))
continue;
} else if (p->fts_info != FTS_DP)
warnx("%s: unable to read", p->fts_path);
} else {
if (Pflag)
rm_overwrite(p->fts_accpath, NULL);
if (!unlink(p->fts_accpath) || (fflag && errno == ENOENT))
continue;
if (errno == ENOENT) {
if (fflag)
continue;
} else if (p->fts_info != FTS_DP)
warnx("%s: unable to read", p->fts_path);
} else {
if (Pflag)
rm_overwrite(p->fts_accpath, NULL);
if (!unlink(p->fts_accpath) || (fflag && errno == ENOENT))
continue;
}
}
err:
warn("%s", p->fts_path);
eval = 1;
}
@@ -243,12 +263,19 @@ rm_file(argv)
}
if (!fflag && !check(f, f, &sb))
continue;
if (S_ISDIR(sb.st_mode))
rval = rmdir(f);
else {
if (Pflag)
rm_overwrite(f, &sb);
rval = unlink(f);
rval = 0;
if (!uid &&
(sb.st_flags & (UF_APPEND|UF_IMMUTABLE)) &&
!(sb.st_flags & (SF_APPEND|SF_IMMUTABLE)))
rval = chflags(f, sb.st_flags & ~(UF_APPEND|UF_IMMUTABLE));
if (!rval) {
if (S_ISDIR(sb.st_mode))
rval = rmdir(f);
else {
if (Pflag)
rm_overwrite(f, &sb);
rval = unlink(f);
}
}
if (rval && (!fflag || errno != ENOENT)) {
warn("%s", f);
@@ -318,7 +345,7 @@ check(path, name, sp)
struct stat *sp;
{
int ch, first;
char modep[15];
char modep[15], flagsp[128];
/* Check -i first. */
if (iflag)
@@ -330,13 +357,21 @@ check(path, name, sp)
* because their permissions are meaningless. Check stdin_ok
* first because we may not have stat'ed the file.
*/
if (!stdin_ok || S_ISLNK(sp->st_mode) || !access(name, W_OK))
if (!stdin_ok || S_ISLNK(sp->st_mode) ||
!access(name, W_OK) &&
!(sp->st_flags & (SF_APPEND|SF_IMMUTABLE)) &&
(!(sp->st_flags & (UF_APPEND|UF_IMMUTABLE)) || !uid))
return (1);
strmode(sp->st_mode, modep);
(void)fprintf(stderr, "override %s%s%s/%s for %s? ",
strcpy(flagsp, flags_to_string(sp->st_flags, NULL));
if (*flagsp)
strcat(flagsp, " ");
(void)fprintf(stderr, "override %s%s%s/%s %sfor %s? ",
modep + 1, modep[9] == ' ' ? "" : " ",
user_from_uid(sp->st_uid, 0),
group_from_gid(sp->st_gid, 0), path);
group_from_gid(sp->st_gid, 0),
*flagsp ? flagsp : "",
path);
}
(void)fflush(stderr);
+5 -1
View File
@@ -1,7 +1,11 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $Id$
# $Id: Makefile,v 1.3 1994/09/24 02:57:03 davidg Exp $
PROG= rmail
MAN8= rmail.8
# If you want to have your rmail queuing the mail only, uncomment the
# following:
# CFLAGS+= -DQUEUE_ONLY
.include <bsd.prog.mk>
+8 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: rmail.c,v 1.4 1995/03/19 13:29:18 joerg Exp $
*/
#ifndef lint
@@ -48,7 +48,7 @@ static char sccsid[] = "@(#)rmail.c 8.1 (Berkeley) 5/31/93";
*
* This program reads the >From ... remote from ... lines that UUCP is so
* fond of and turns them into something reasonable. It then execs sendmail
* with various options built from these lines.
* with various options built from these lines.
*
* The expected syntax is:
*
@@ -119,6 +119,8 @@ main(argc, argv)
if (argc < 1)
usage();
fplen = fptlen = 0;
addrp = "";
from_path = from_sys = from_user = NULL;
for (offset = 0;;) {
@@ -228,7 +230,11 @@ main(argc, argv)
i = 0;
args[i++] = _PATH_SENDMAIL; /* Build sendmail's argument list. */
args[i++] = "-oee"; /* No errors, just status. */
#ifdef QUEUE_ONLY
args[i++] = "-odq"; /* Queue it, don't try to deliver. */
#else
args[i++] = "-odi"; /* Deliver in foreground. */
#endif
args[i++] = "-oi"; /* Ignore '.' on a line by itself. */
if (from_sys != NULL) { /* Set sender's host name. */
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: alias.c,v 1.2 1994/09/24 02:57:20 davidg Exp $
*/
#ifndef lint
@@ -227,7 +227,7 @@ unaliascmd(argc, argv)
char **argv;
{
int i;
while ((i = nextopt("a")) != '\0') {
if (i == 'a') {
rmaliases();
+4 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: cd.c,v 1.2 1994/09/24 02:57:24 davidg Exp $
* $Id: cd.c,v 1.3 1994/11/06 01:29:26 jkh Exp $
*/
#ifndef lint
@@ -88,6 +88,8 @@ cdcmd(argc, argv) char **argv; {
nextopt(nullstr);
if ((dest = *argptr) == NULL && (dest = bltinlookup("HOME", 1)) == NULL)
error("HOME not set");
if (*dest == '\0')
dest = ".";
if (dest[0] == '-' && dest[1] == '\0') {
dest = prevdir ? prevdir : curdir;
print = 1;
@@ -220,7 +222,7 @@ top:
STPUTC('\0', p);
p = grabstackstr(p);
INTOFF;
if (chdir(p) < 0) {
if (chdir(*p ? p : ".") < 0) {
INTON;
return -1;
}
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: error.c,v 1.2 1994/09/24 02:57:27 davidg Exp $
*/
#ifndef lint
@@ -53,7 +53,7 @@ static char sccsid[] = "@(#)error.c 8.1 (Berkeley) 5/31/93";
#ifdef __STDC__
#include "stdarg.h"
#else
#include <varargs.h>
#include <varargs.h>
#endif
#include <errno.h>
+4 -4
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: eval.c,v 1.2 1994/09/24 02:57:29 davidg Exp $
*/
#ifndef lint
@@ -134,8 +134,8 @@ SHELLPROC {
* The eval commmand.
*/
evalcmd(argc, argv)
char **argv;
evalcmd(argc, argv)
char **argv;
{
char *p;
char *concat;
@@ -233,7 +233,7 @@ evaltree(n, flags)
evalsubshell(n, flags);
break;
case NIF: {
int status = 0;
int status = 0;
evaltree(n->nif.test, EV_TESTED);
if (evalskip)
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: exec.c,v 1.3 1994/09/24 02:57:32 davidg Exp $
*/
#ifndef lint
@@ -744,7 +744,7 @@ delete_cmd_entry() {
void
getcmdentry(name, entry)
char *name;
struct cmdentry *entry;
struct cmdentry *entry;
{
struct tblentry *cmdp = cmdlookup(name, 0);
+11 -9
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: expand.c,v 1.3 1995/03/01 13:04:15 guido Exp $
*/
#ifndef lint
@@ -322,10 +322,10 @@ expari(flag)
* scan backwards looking for the start of arithmetic. If the
* next previous character is a CTLESC character, then we
* have to rescan starting from the beginning since CTLESC
* characters have to be processed left to right.
* characters have to be processed left to right.
*/
CHECKSTRSPACE(8, expdest);
USTPUTC('\0', expdest);
USTPUTC('\0', expdest);
start = stackblock();
p = expdest;
while (*p != CTLARI && p >= start)
@@ -372,7 +372,7 @@ expbackq(cmd, quoted, flag)
saveifs = ifsfirst;
savelastp = ifslastp;
saveargbackq = argbackq;
saveherefd = herefd;
saveherefd = herefd;
herefd = -1;
p = grabstackstr(dest);
evalbackcmd(cmd, &in);
@@ -402,8 +402,10 @@ expbackq(cmd, quoted, flag)
STPUTC(lastc, dest);
}
}
if (lastc == '\n') {
p--;
while (lastc == '\n') {
STUNPUTC(dest);
lastc = *--p;
}
if (in.fd >= 0)
close(in.fd);
@@ -623,7 +625,7 @@ numvar:
sep = '\0';
goto allargs;
}
/* fall through */
/* fall through */
case '*':
sep = ' ';
allargs:
@@ -781,8 +783,8 @@ expandmeta(str, flag)
expdir = NULL;
INTON;
if (exparg.lastp == savelastp) {
/*
* no matches
/*
* no matches
*/
nometa:
*exparg.lastp = str;
@@ -967,7 +969,7 @@ msort(list, len)
if (len <= 1)
return list;
half = len >> 1;
half = len >> 1;
p = list;
for (n = half ; --n >= 0 ; ) {
q = p;
+13 -9
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: histedit.c,v 1.3 1995/05/05 06:34:13 davidg Exp $
*/
#ifndef lint
@@ -140,7 +140,7 @@ sethistsize() {
if (hist != NULL) {
cp = lookupvar("HISTSIZE");
if (cp == NULL || *cp == '\0' ||
if (cp == NULL || *cp == '\0' ||
(histsize = atoi(cp)) < 0)
histsize = 100;
history(hist, H_EVENT, histsize);
@@ -172,7 +172,7 @@ histcmd(argc, argv)
if (hist == NULL)
error("history not active");
if (argc == 1)
error("missing history argument");
@@ -245,7 +245,7 @@ histcmd(argc, argv)
/*
* If executing, parse [old=new] now
*/
if (lflg == 0 && argc > 0 &&
if (lflg == 0 && argc > 0 &&
((repl = strchr(argv[0], '=')) != NULL)) {
pat = argv[0];
*repl++ = '\0';
@@ -283,7 +283,7 @@ histcmd(argc, argv)
}
/*
* XXX - this should not depend on the event numbers
* always increasing. Add sequence numbers or offset
* always increasing. Add sequence numbers or offset
* to the history element in next (diskbased) release.
*/
direction = first < last ? H_PREV : H_NEXT;
@@ -319,7 +319,7 @@ histcmd(argc, argv)
out1fmt("%5d ", he->num);
out1str(he->str);
} else {
char *s = pat ?
char *s = pat ?
fc_replace(he->str, pat, repl) : (char *)he->str;
if (sflg) {
@@ -329,7 +329,7 @@ histcmd(argc, argv)
evalstring(s);
if (displayhist && hist) {
/*
* XXX what about recursive and
* XXX what about recursive and
* relative histnums.
*/
history(hist, H_ENTER, s);
@@ -355,7 +355,7 @@ histcmd(argc, argv)
readcmdfile(editfile); /* XXX - should read back - quick tst */
unlink(editfile);
}
if (lflg == 0 && active > 0)
--active;
if (displayhist)
@@ -389,6 +389,10 @@ fc_replace(s, p, r)
not_fcnumber(s)
char *s;
{
if (s == NULL) {
/* NULL is not a fc_number */
return (1);
}
if (*s == '-')
s++;
return (!is_number(s));
@@ -434,7 +438,7 @@ str_to_event(str, last)
str);
} else {
/*
* pattern
* pattern
*/
he = history(hist, H_PREV_STR, str);
if (he == NULL)
+3 -3
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: input.c,v 1.2 1994/09/24 02:57:39 davidg Exp $
*/
#ifndef lint
@@ -264,7 +264,7 @@ eof:
done:
if (parsefile->fd == 0 && hist && something) {
INTOFF;
history(hist, whichprompt == 1 ? H_ENTER : H_ADD,
history(hist, whichprompt == 1 ? H_ENTER : H_ADD,
parsefile->buf);
INTON;
}
@@ -276,7 +276,7 @@ done:
*/
i = parsenleft + 1;
p = parsefile->buf;
for (; i--; p++)
for (; i--; p++)
out2c(*p)
flushout(out2);
}
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: jobs.c,v 1.2 1994/09/24 02:57:41 davidg Exp $
*/
#ifndef lint
@@ -488,7 +488,7 @@ makejob(node, nprocs)
INTON;
TRACE(("makejob(0x%x, %d) returns %%%d\n", (int)node, nprocs, jp - jobtab + 1));
return jp;
}
}
/*
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: main.c,v 1.2 1994/09/24 02:57:48 davidg Exp $
*/
#ifndef lint
@@ -153,7 +153,7 @@ main(argc, argv) char **argv; {
state1:
state = 2;
read_profile(".profile");
}
}
state2:
state = 3;
if ((shinit = lookupvar("ENV")) != NULL &&
+11 -3
View File
@@ -35,14 +35,18 @@
# SUCH DAMAGE.
#
# @(#)mkbuiltins 8.1 (Berkeley) 5/31/93
# $Id$
# $Id: mkbuiltins,v 1.2 1994/09/24 02:57:53 davidg Exp $
temp=/tmp/ka$$
havejobs=0
if grep '^#define JOBS[ ]*1' shell.h > /dev/null
then havejobs=1
fi
exec > obj/builtins.c
if [ -d obj ] ; then
exec > obj/builtins.c
else
exec > builtins.c
fi
cat <<\!
/*
* This file was generated by the mkbuiltins program.
@@ -67,7 +71,11 @@ awk '{ for (i = 2 ; i <= NF ; i++) {
echo ' NULL, 0
};'
exec > obj/builtins.h
if [ -d obj ] ; then
exec > obj/builtins.h
else
exec > builtins.h
fi
cat <<\!
/*
* This file was generated by the mkbuiltins program.
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: mkinit.c,v 1.2 1994/09/24 02:57:54 davidg Exp $
* $Id: mkinit.c,v 1.3 1994/11/06 06:27:04 pst Exp $
*/
#ifndef lint
@@ -91,7 +91,7 @@ struct text {
int nleft;
struct block *start;
struct block *last;
};
};
struct block {
struct block *next;
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: mksignames.c,v 1.2 1994/09/24 02:57:56 davidg Exp $
*/
#ifndef lint
@@ -158,7 +158,7 @@ char writer[] = "\
main(argc, argv) char **argv; {
FILE *cfile, *hfile;
FILE *cfile, *hfile;
struct sig *sigp;
int maxsig;
int i;
+2 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: options.c,v 1.2 1994/09/24 02:58:04 davidg Exp $
*/
#ifndef lint
@@ -201,7 +201,7 @@ minus_o(name, val)
error("Illegal option -o %s", name);
}
}
STATIC void
setoption(flag, val)
+9 -9
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: parser.c,v 1.5 1995/01/11 07:07:00 paul Exp $
*/
#ifndef lint
@@ -472,7 +472,7 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : ""));
STATIC union node *
simplecmd(rpp, redir)
simplecmd(rpp, redir)
union node **rpp, *redir;
{
union node *args, **app;
@@ -486,10 +486,10 @@ simplecmd(rpp, redir)
args = NULL;
app = &args;
/*
/*
* We save the incoming value, because we need this for shell
* functions. There can not be a redirect or an argument between
* the function name and the open parenthesis.
* the function name and the open parenthesis.
*/
orig_rpp = rpp;
@@ -630,7 +630,7 @@ readtoken() {
#ifdef DEBUG
int alreadyseen = tokpushback;
#endif
top:
t = xxreadtoken();
@@ -835,7 +835,7 @@ readtoken1(firstc, syntax, eofmark, striptabs)
CHECKSTRSPACE(3, out); /* permit 3 calls to USTPUTC */
if (parsebackquote && c == '\\') {
c = pgetc(); /* XXX - compat with old /bin/sh */
if (c != '\\' && c != '`' && c != '$') {
if (/*c != '\\' && */c != '`' && c != '$') {
pungetc();
c = '\\';
}
@@ -926,7 +926,7 @@ readtoken1(firstc, syntax, eofmark, striptabs)
} else
USTPUTC(')', out);
} else {
/*
/*
* unbalanced parens
* (don't 2nd guess - no error)
*/
@@ -1176,12 +1176,12 @@ parsebackq: {
register c;
int savelen;
char *str;
STARTSTACKSTR(out);
while ((c = pgetc ()) != '`') {
if (c == '\\') {
c = pgetc ();
if (c != '\\' && c != '`' && c != '$'
if ( c != '\\' && c != '`' && c != '$'
&& (!dblquote || c != '"'))
STPUTC('\\', out);
}
+3 -3
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: redir.c,v 1.2 1994/09/24 02:58:10 davidg Exp $
*/
#ifndef lint
@@ -72,10 +72,10 @@ struct redirtab {
MKINIT struct redirtab *redirlist;
/*
/*
* We keep track of whether or not fd0 has been redirected. This is for
* background commands, where we want to redirect fd0 to /dev/null only
* if it hasn't already been redirected.
* if it hasn't already been redirected.
*/
int fd0_redirected = 0;
+16 -9
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)sh.1 8.4 (Berkeley) 4/18/94
.\" $Id$
.\" $Id: sh.1,v 1.2 1994/09/24 02:58:13 davidg Exp $
.\"
.na
.TH SH 1
@@ -661,7 +661,8 @@ value and exported and readonly flags from the variable
with the same name in the surrounding scope, if there is
one. Otherwise, the variable is initially unset. The shell
uses dynamic scoping, so that if you make the variable x
local to function f, which then calls function g, references to the variable x made inside g will refer to the
local to function f, which then calls function g, references
to the variable x made inside g will refer to the
variable x declared inside f, not to the global variable
named x.
.LP
@@ -996,9 +997,10 @@ Pathname Expansion and the case(1) command.
.B Shell Patterns
.sp
.LP
A pattern consists of normal characters, which match themselves, and meta-characters. The meta-characters are
A pattern consists of normal characters, which match themselves,
and meta-characters. The meta-characters are
``!'', ``*'', ``?'', and ``[''. These characters lose
there special meanings if they are quoted. When command
their special meanings if they are quoted. When command
or variable substitution is performed and the dollar sign
or back quotes are not double quoted, the value of the
variable or the output of the command is scanned for these
@@ -1026,7 +1028,8 @@ minus sign, make it the first or last character listed
.LP
This section lists the builtin commands which
are builtin because they need to perform some operation
that can't be performed by a separate process. In addition to these, there are several other commands that may
that can't be performed by a separate process. In addition
to these, there are several other commands that may
be builtin for efficiency (e.g. printf(1), echo(1), test(1),
etc).
.TP
@@ -1042,7 +1045,8 @@ Continue the specified jobs (or the current job if no
jobs are given) in the background.
.TP
command command arg...
Execute the specified builtin command. (This is useful when you have a shell function with the same name
Execute the specified builtin command. (This is useful
when you have a shell function with the same name
as a builtin command.)
.TP
cd [ directory ]
@@ -1207,15 +1211,18 @@ read from the standard input. The trailing newline
is deleted from the line and the line is split as
described in the section on word splitting above, and
the pieces are assigned to the variables in order.
If there are more pieces than variables, the remaining pieces (along with the characters in IFS that
If there are more pieces than variables, the remaining
pieces (along with the characters in IFS that
separated them) are assigned to the last variable.
If there are more variables than pieces, the remaining variables are assigned the null string.
If there are more variables than pieces, the remaining
variables are assigned the null string.
.sp
The -e option causes any backslashes in the input to
be treated specially. If a backslash is followed by
a newline, the backslash and the newline will be
deleted. If a backslash is followed by any other
character, the backslash will be deleted and the following character will be treated as though it were
character, the backslash will be deleted and the following
character will be treated as though it were
not in IFS, even if it is.
.TP
readonly name...
+5 -5
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: trap.c,v 1.2 1994/09/24 02:58:18 davidg Exp $
*/
#ifndef lint
@@ -187,13 +187,13 @@ setsignal(signo) {
}
}
t = &sigmode[signo - 1];
if (*t == 0) {
/*
* current setting unknown
if (*t == 0) {
/*
* current setting unknown
*/
sigact = getsigaction(signo);
if (sigact == SIG_IGN) {
if (mflag && (signo == SIGTSTP ||
if (mflag && (signo == SIGTSTP ||
signo == SIGTTIN || signo == SIGTTOU)) {
*t = S_IGN; /* don't hard ignore these */
} else
+3 -3
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: var.c,v 1.2 1994/09/24 02:58:22 davidg Exp $
*/
#ifndef lint
@@ -93,7 +93,7 @@ const struct varinit varinit[] = {
{&vmail, VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL="},
{&vmpath, VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH="},
{&vpath, VSTRFIXED|VTEXTFIXED, "PATH=:/bin:/usr/bin"},
/*
/*
* vps1 depends on uid
*/
{&vps2, VSTRFIXED|VTEXTFIXED, "PS2=> "},
@@ -586,7 +586,7 @@ unsetcmd(argc, argv) char **argv; {
}
if (flg_func == 0 && flg_var == 0)
flg_var = 1;
for (ap = argptr; *ap ; ap++) {
if (flg_func)
ret |= unsetfunc(*ap);
+4 -9
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: cchar.c,v 1.3 1995/04/28 19:29:28 ache Exp $
*/
#ifndef lint
@@ -100,14 +100,14 @@ csearch(argvp, ip)
struct cchar *cp, tmp;
long val;
char *arg, *ep, *name;
name = **argvp;
tmp.name = name;
if (!(cp = (struct cchar *)bsearch(&tmp, cchars1,
sizeof(cchars1)/sizeof(struct cchar) - 1, sizeof(struct cchar),
c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars1,
sizeof(cchars1)/sizeof(struct cchar) - 1, sizeof(struct cchar),
c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars2,
sizeof(cchars2)/sizeof(struct cchar) - 1, sizeof(struct cchar),
c_cchar)))
return (0);
@@ -122,11 +122,6 @@ csearch(argvp, ip)
ip->t.c_cc[cp->sub] = _POSIX_VDISABLE;
else if (cp->sub == VMIN || cp->sub == VTIME) {
val = strtol(arg, &ep, 10);
if (val == _POSIX_VDISABLE) {
warnx("value of %ld would disable the option -- %s",
val, name);
usage();
}
if (val > UCHAR_MAX) {
warnx("maximum option value is %d -- %s",
UCHAR_MAX, name);
+4 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: gfmt.c,v 1.3 1995/03/19 13:29:23 joerg Exp $
*/
#ifndef lint
@@ -64,15 +64,15 @@ gprint(tp, wp, ldisc)
{
struct cchar *cp;
(void)printf("gfmt1:cflag=%x:iflag=%x:lflag=%x:oflag=%x:",
(void)printf("gfmt1:cflag=%lx:iflag=%lx:lflag=%lx:oflag=%lx:",
tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag);
for (cp = cchars1; cp->name; ++cp)
(void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]);
(void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp));
(void)printf("ispeed=%ld:ospeed=%ld\n", cfgetispeed(tp), cfgetospeed(tp));
}
void
gread(tp, s)
gread(tp, s)
struct termios *tp;
char *s;
{
+3 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: key.c,v 1.3 1995/03/19 13:29:25 joerg Exp $
*/
#ifndef lint
@@ -286,7 +286,7 @@ f_speed(ip)
struct info *ip;
{
(void)printf("%d\n", cfgetospeed(&ip->t));
(void)printf("%ld\n", cfgetospeed(&ip->t));
}
void
@@ -296,6 +296,6 @@ f_tty(ip)
int tmp;
tmp = TTYDISC;
if (ioctl(0, TIOCSETD, &tmp) < 0)
if (ioctl(ip->fd, TIOCSETD, &tmp) < 0)
err(1, "TIOCSETD");
}
+9 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: modes.c,v 1.2 1994/09/24 02:58:59 davidg Exp $
*/
#ifndef lint
@@ -81,6 +81,14 @@ struct modes cmodes[] = {
{ "-clocal", 0, CLOCAL },
{ "crtscts", CRTSCTS, 0 },
{ "-crtscts", 0, CRTSCTS },
{ "ctsflow", CCTS_OFLOW, 0 },
{ "-ctsflow", 0, CCTS_OFLOW },
{ "dsrflow", CDSR_OFLOW, 0 },
{ "-dsrflow", 0, CDSR_OFLOW },
{ "dtrflow", CDTR_IFLOW, 0 },
{ "-dtrflow", 0, CDTR_IFLOW },
{ "rtsflow", CRTS_IFLOW, 0 },
{ "-rtsflow", 0, CRTS_IFLOW },
{ "mdmbuf", MDMBUF, 0 },
{ "-mdmbuf", 0, MDMBUF },
{ NULL },
Loaded 100 of 7916 files, more files were not shown because too many files have changed in this diff. Show more