Commit Graph

26354 Commits

Author SHA1 Message Date
alex
3314e9bde1 Added copyright (taken from natd.c).
Approved by:	Ari Suutari <ari@suutari.iki.fi>
1997-12-30 00:38:56 +00:00
phk
c1be3d2c9c Fix a include gottcha in the SMP case.
Submitted by: Simon Shapiro <Shimon@Simon-Shapiro.ORG>
1997-12-29 23:36:56 +00:00
brian
8209f48d49 Don't complain that someone's changed the clock unless the time
after a select() interrupt is more than 1 second past what
should have been the end time.
We may just be running on an over-burdened machine.
1997-12-29 22:23:52 +00:00
brian
bb76302c2d Show how much time is left before timing out in the
`show timeout' output.
Remove ipIdleSecs variable - it's not used.
1997-12-29 22:23:13 +00:00
brian
c38e16bb3b Add a "scsi -f /dev/ssc -p" example and xref ssc(4).
Make the other examples prettier.
1997-12-29 21:08:33 +00:00
brian
6197b3c485 Fix typos.
Xref ssc(4).
1997-12-29 21:07:49 +00:00
brian
dc65c67c1b Add ssc(4). 1997-12-29 21:07:10 +00:00
jkh
1034d83c4d * add a -c option which displays the grand total of all files
counted.

 * re-word parts of the man page which I felt were badly worded
   or ambiguous.

 * change the behaviour of argument processing so that when more
   than one of the -P, -H and -L options are specified it will
   print an error message, rather than choosing the last option
   specified, this behaviour is more logical and consistent with
   other utilities.

 * change the behaviour of argument processing so that negative
   arguments to the -d option are not allowed.

PR:		5388
Submitted by:	Niall Smart <rotel@indigo.ie>
1997-12-29 20:56:21 +00:00
jkh
974e420029 gateway -> gateway_enable
Pointed out by: Susie Ward <sward@voltage.net>
1997-12-29 20:07:17 +00:00
dyson
7bf56bd14a Add the vnode interlock back around vref. 1997-12-29 16:54:03 +00:00
dyson
988b240fc6 Add the vnode interlock back around vget. 1997-12-29 16:53:53 +00:00
kato
24650f8d03 Sync with sys/i386/conf/options.i386 revision 1.66. 1997-12-29 16:17:59 +00:00
kato
d3c0f0fbd0 Sync with sys/i386/i386/microtime.s revision up to 1.39. 1997-12-29 16:17:09 +00:00
kato
5ee02566eb Sync with sys/i386/isa/clock.c revision up to 1.107. 1997-12-29 16:15:57 +00:00
kato
94ab377b71 Sync with sys/i386/isa/sio.c revision up to 1.193. 1997-12-29 16:08:48 +00:00
kato
29b2fd54bd Sync with sys/i386/i386/userconfig.c revision 1.99. 1997-12-29 16:06:20 +00:00
brian
1c3e16c0fc Mention that the -r flag reprobes the entire bus on which the given
device resides and that the -f flag must specify the `whole slice'
if it's a disk.
1997-12-29 15:17:57 +00:00
steve
6f5cdf1a51 Fix a few style nits from previous commit.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1997-12-29 14:05:49 +00:00
max
841d24202d Typo fix: bootgw -> bootpgw 1997-12-29 13:59:28 +00:00
peter
c43811df0f script(1) has annoyed me with it's inflexable command argument parsing
since I first saw it.  I finally needed to pass arguments through to
the spawned command badly enough (and urgently) that I threw this together.
1997-12-29 13:31:46 +00:00
jkh
6ce389dcd3 Normalize default owner/group handling, fix bogons in a couple of
printf arg lists.
1997-12-29 09:45:23 +00:00
bde
85fbb446a9 Fixed style bugs in previous commit. 1997-12-29 08:54:52 +00:00
julian
a13419db88 If available, use the device's LOGICAL blocksize as reported by
the "READ_CAPACITY" command, rather than the physical blocksize
reported in the physical geometry code-page.

Also don't print out worrying bogus messages when probing a
device that has no media. There's no point in printing out
something that is unknowable. It just confuses things.

Move the check for valid blocksize out of 'open()' to the subroutine
that actually finds this out, thus probe/attach can also report and
act on the problem.
1997-12-29 07:49:31 +00:00
charnier
ab8e3efb1c Add missing .Ar. 1997-12-29 07:03:46 +00:00
steve
2d5f5de492 Get md5(1) to use getopt(3). Also some minor -Wall cleaning
while here.

PR:		5387
Submitted by:	Matthew Hunt <mph@pobox.com>
1997-12-29 03:40:37 +00:00
steve
e40600458f Handle the condition where BS is typed while the cursor is
at the first position on either of the last two lines of the
screen.  Ie. append contents of current line to the previous
line and scroll the next line's contents up.

PR:		5392
Submitted by:	Kouichi Hirabayashi <kh@mogami-wire.co.jp>
1997-12-29 03:29:29 +00:00
dyson
8ab3ac77d2 Fix the decl of vfs_ioopt, allow LFS to compile again, fix a minor problem
with the object cache removal.
1997-12-29 01:03:55 +00:00
dyson
cd67bb82fe Lots of improvements, including restructring the caching and management
of vnodes and objects.  There are some metadata performance improvements
that come along with this.  There are also a few prototypes added when
the need is noticed.  Changes include:

1) Cleaning up vref, vget.
2) Removal of the object cache.
3) Nuke vnode_pager_uncache and friends, because they aren't needed anymore.
4) Correct some missing LK_RETRY's in vn_lock.
5) Correct the page range in the code for msync.

Be gentle, and please give me feedback asap.
1997-12-29 00:25:11 +00:00
jkh
f5f5008388 Yet another slight bogon that I just noticed needed cleaning up. The for
loop was sloppily written, taking advantage of a default for argument
handling which few are probably aware of rather than stating its purpose
more explicitly.  Can't also help but notice that the fd* entry also contains
far more comment lines than actual statements - can we please clean that
up?  The wt* entry could use a bit of the same.
1997-12-29 00:10:20 +00:00
alex
005e82d0d4 -Wall cleanup. 1997-12-29 00:09:06 +00:00
jkh
2d2c1486ba Whoops - one small tweak: I eliminated the deprecated isdn case,
so also remove mention of it in the comments.
1997-12-29 00:03:36 +00:00
jkh
70552aa81e Remove all explicit rm's (with and without wildcards) and replace them
with a function which does the rm/mknod in one step, eliminating the
gratuitous device node removal behavior of before.

Reviewed by:	bde
1997-12-29 00:02:18 +00:00
alex
0f42dce470 Added $Id$. 1997-12-29 00:00:10 +00:00
steve
c1884e4eb8 Add back a #include <sys/types.h> so that this header is
self-sufficient again.  This is a quick fix that should
really be remedied by removing all of the gratuitous changes
made in revision 1.20.

PR:		5351
1997-12-28 22:31:59 +00:00
brian
839c2bd106 Don't expect select() to adjust the passed time when it's
interrupted with a SIGALRM.  In fact, select() sets the
passed time to zero, making the previous implementation
terminate always after 1/10th of a second !

Also, deal with someone changing the clock while we're
sleeping (and restart the whole sleep).

Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
1997-12-28 21:55:05 +00:00
jraynard
d1a7d9a5ed Fix a couple of stray apostrophes. 1997-12-28 20:52:56 +00:00
wosch
9689b05da5 Add OS macros for FreeBSD 2.2.6, OpenBSD 2.2, OpenBSD 2.3. 1997-12-28 18:20:05 +00:00
alex
c9da542ee5 -Wall cleanup. 1997-12-28 17:50:10 +00:00
phk
87f11cf193 More cleanup relating to our use of the TSC.
Look in the cpu_feature (CPUID output) to see if we have it.
1997-12-28 17:33:10 +00:00
phk
ca105236ff wash, sort and put in order various nits from the i586_ctr -> tsc
commit.

Pointed out by: bde
1997-12-28 13:36:09 +00:00
wosch
2608f479cc The terminating character in strings is NUL', not NULL'. 1997-12-28 12:06:29 +00:00
julian
2519865571 back out previous commit
got a better version.
1997-12-28 09:10:37 +00:00
kato
e50e705007 Merge from sys/i386/i386/microtime.s revision 1.36. 1997-12-28 08:16:28 +00:00
julian
e8593c05aa Move the sector size check to the right place,
also cope with some drives that return funny values.
The correct fix will come in a few days.
1997-12-28 07:10:54 +00:00
bde
c4f9529d8c Fixed initialization of the divisor latch. We depended on siocnopen()
initializing it for the (usual) (siocniobase != 0) case, but
siocnopen() doesn't initialize it if the latch registers already
have the correct values.
1997-12-28 06:36:35 +00:00
steve
b26196a27a An a termcap entry for ancient Wyse60 terminals, wy60-nt, that don't
have hardware tab support.

PR:		5386
Submitted by:	Kevin Day <toasty@dragondata.com>
1997-12-28 06:29:36 +00:00
bde
233f527965 YAMFsio.c (always call ttwwakeup() before returning from comstart()). 1997-12-28 06:23:03 +00:00
bde
6923614d1d Always call ttwwakeup() before returning from comstart(). It isn't
necessary to call it when the tty layer's output state has not been
changed, but siostop() sometimes changes the TS_BUSY state and then
calls comstart() mainly for its side effect of calling ttwwakeup().
1997-12-28 06:20:47 +00:00
bde
aee0b8bb68 Removed unnecessary (and broken) wakeup code in rpstart(). There is no
need to do it directly, since ttwwakeup() is always called just before
returning from rpstart().  The brokenness was waking up the wrong address
after clearing TS_SO_OLOWAT.  It's not clear how processes waiting for
output to drain below low water ever got woken up.

Found by:	when I fixed longstanding warts in output watermark
		handling, this was the only driver that knew too much
		(anything) about the watermarks
1997-12-28 05:45:07 +00:00
bde
07b5eb4e92 Removed stale comment about printf's deficiencies and rewrote the code
that worked around them for the CLI devtab listing.

Print the `conflicts' flag in the CLI devtab listing.
1997-12-28 05:20:59 +00:00