Commit Graph

19359 Commits

Author SHA1 Message Date
asami
71220e9b22 Change space to tab.
Pointed out by:	bde (this is only one of the four, though)
1997-01-30 11:05:57 +00:00
kato
4dbb7c3002 Synchronize with sys/i386/isa/sio.c revision 1.157. 1997-01-30 10:48:06 +00:00
kato
297e5886fb Synchronize with sys/i386/isa/npx.c revision 1.38. 1997-01-30 10:45:36 +00:00
kato
dec8fc0e49 Synchronize with sys/i386/isa/clock.c revision 1.75. 1997-01-30 10:44:05 +00:00
jmacd
bdeeed7f59 Correct "Chflags() will fail it:" to read "Chflags() will fail if:". 1997-01-30 10:25:38 +00:00
jmacd
45f2876f9b I just found a bug in my program, I was calling va_arg (..., char),
when parsing a printf-like arg list.  Looking for someone to blame,
I noticed that the man page has a bad example.  It clearly says at
the top that types following the last known argument are passed after
their default type conversions, and then later the example uses

	va_arg (..., char);

so I fixed it.
1997-01-30 10:22:00 +00:00
max
0988434e5d Better handling of command-line argument:
1. Pass argc and argv to getarg and process them with getopt().
  2. Instead of using an array to save arg characters, use array of
    pointers and call backgammon/teachgammon with execv, instead of execl.

This should fix problems with calling teachgammon.
2.2 candidate.
1997-01-30 07:12:59 +00:00
jkh
71baeec496 Sync with RELENG_2_2 changes. 1997-01-30 06:38:19 +00:00
davidn
25969ba119 Fix free()ing block twice, remove unused function. 1997-01-30 03:37:13 +00:00
max
c2172b20d2 Oops, setreuid() also needed before and after opening/closing the recover file
in recover().
2.2 candidate.
1997-01-30 01:51:45 +00:00
max
9abde98e48 Do getreuid(geteuid(), getuid()) before opening file to save the game and
after closing it.
This fixes bug that user couldn't save the game in progress.
2.2 candidate.
1997-01-30 01:29:28 +00:00
brian
0340159e07 Check the timer request flag irrespective of wheter select() came back with
EINTR - it's possible that it happened at some other point in the loop.
1997-01-30 00:49:50 +00:00
bde
264fc79b21 Estimate an initial overhead of 0 usec instead of 20 usec in DELAY().
I have code to calibrate the overhead fairly accurately, but there
is little point in using it since it is most accurate on machines
where an estimate of 0 works well.  On slow machines, the accuracy
of DELAY() has a large variance since it is limited by the resolution
of getit() even if the initial delay is calibrated perfectly.

Use fixed point and long longs to speed up scaling in DELAY().
The old method slowed down a lot when the frequency became variable.
Assume the default frequency for short delays so that the fixed
point calculation can be exact.

Fast scaling is only important for small delays.  Scaling is done
after looking at the counter and outside the loop, so it doesn't
decrease accuracy or resolution provided it completes before the
delay is up.  The comment in the code is still confused about this.
1997-01-29 22:51:44 +00:00
jkh
d81f278ab4 Allow user to delete as well as install packages from the package
installer menu.

Fix status line code so informationals show up properly again.
1997-01-29 22:35:05 +00:00
bde
637e1706b9 Fixes and workarounds for Hayes ESP:
- don't uselessly initialize the fifo "DMA" bit at attach time.
- initialize the fifo "DMA" bit at open time.  Without this, the device
  interrupts for every character received, reducing input performance
  to that of an 8250.
- don't uselessly initialize the fifo trigger level to 8 (scaled to
  256) at attach time.
- don't scale the fifo trigger level to 512 bytes.  The driver's pseudo-
  dma buffer has size 256, so it can't handle bursts of size 512 or 256.
  It should be able to handle the second lowest ftl (2 scaled to 64).
- don't reset the fifos in siostop().  Reset triggers a hardware bug
  involving wedging of the output interrupt bit  This workaround
  unfortunately requires ESP support to be configured.
1997-01-29 21:50:02 +00:00
jkh
369e45d4cb Cosmetic tweaks.
Also redirect stderr to Debug when running multiuser.
1997-01-29 21:45:30 +00:00
jkh
ac85456797 Fix broken layout help (this is what broke the TCP help screen).
Allow DITEM_NO_ECHO to be encoded in layout field types and make
user.c use it for the password item.
1997-01-29 21:16:07 +00:00
jkh
0b1072afc8 More fixes and an update to the ZIP section.
Submitted-By: pds
1997-01-29 15:02:05 +00:00
jkh
b727838bd4 Talk about ZIP drives.
Fix a typo.
Submitted-By: pds
1997-01-29 14:45:57 +00:00
bde
477f38f71b Removed `Debugger("no slices")'. It's normal and harmless to have no
slices in sd_open() after a media change when the previous sd_open()
discards the previous slices and then fails.  sd_open() just handles
media changes poorly and fails too often.
1997-01-29 14:18:34 +00:00
bde
a40655e5dd Disabled logging of masked exceptions on exit. Keep the side effect of
saving the state (see rev.1.17).
1997-01-29 13:46:28 +00:00
kato
05e286fe5e Fixed reset port address of PC-9801-108.
Submitted by:	Chiharu Shibata <chi@rd.njk.co.jp>
1997-01-29 12:42:41 +00:00
davidn
c8262fe8b1 Fix typo .->, for default separators in login_getcaplist(). 1997-01-29 06:50:00 +00:00
davidn
79f712147e Completed fixes with login_getcapsize(). 1997-01-29 06:31:42 +00:00
davidn
960d5c29b4 Added -Wall to CFLAGS, cleaned up (all avoidable) warnings. 1997-01-29 06:11:31 +00:00
davidn
9b241a5043 1) Fixed bug in free()ing internal string/array where
allocated size not reset to 0 causing NULL dereference
	on call after login_close().
2)	Modify login_capsize() behaviour to match manpage, allow
	concatenated sizes; ie. 10m500k
1997-01-29 06:06:32 +00:00
davidn
7069b2a506 #include <sys/stat.h> for umask() prototype. 1997-01-29 06:02:49 +00:00
max
eb61707cbd Merge 1.46 -> 1.47 changes. 1997-01-29 05:56:15 +00:00
mpp
17f7e2c9e2 Update to reflect the current mount.h. 1997-01-29 05:43:46 +00:00
gibbs
d0c49608ac Add 1997 to my copyright.
Change the autotermination code slightly to be more careful on narrow
adapters.
1997-01-29 05:28:21 +00:00
gibbs
d9c03f77e0 Add 1997 to my copyright.
If we can, use timeouts instead of DELAYs when dealing with a bus reset.
This prevents us from holding up the whole machine for a noticible amount
of time (especially for a real time app).

Make a pass over the timeout/error handling code.  Aborts are more
reliable.  We actually handle parity errors correctly now instead of
locking up the bus.  Added code to properly clean up disconnected SCBs
down on the card during error handling.  Improved robustness in several
areas.

If we are using defaults, but are an Ultra card, negotiate at 20MHz instead
of 10.

Don't attempt to handle any commands for 100ms after a reset has occured.
This is the minimum time before a target will respond to selection.  Also
disable the busfree interrupt before doing a bus reset.  This prevents the
driver from getting confused by an "unexpected busfree".
1997-01-29 05:27:03 +00:00
mpp
d85c3c457e Update to reflect the current types.h. 1997-01-29 05:24:35 +00:00
gibbs
deadaf1cb7 Add 1997 to my copyright.
Expand the boundaries of a pause disabled region to close of possible race
condition.

Revert a portion of the DMA code to fix false overruns.

Add a missing "add_scb_to_free_list" so we don't leak SCBs.
1997-01-29 05:19:46 +00:00
jkh
3bdfe7960a Straighten out Portugal and Russia. 1997-01-29 04:16:28 +00:00
jkh
2c34f16609 Make media re-init a user choice. 1997-01-29 03:30:24 +00:00
brian
bfe2c29335 Move the call to TimerService() into main.c - just after the select()
call.  The SIGALRM just sets a flag now, preventing the possibility of
any nasty recursivness in the handler itself.
1997-01-29 01:27:58 +00:00
jkh
cb0391dcad Do media initialization at correct time for upgrade too.
Update /stand.
1997-01-29 01:23:05 +00:00
jkh
9506febea9 Update Russian FTP sites according to Mikhail A. Sokolov's current
configuration.
1997-01-29 01:13:27 +00:00
jkh
9c22ad0f6f Death to another bad idea: Don't auto-mount CDROM on startup. 1997-01-29 00:14:17 +00:00
max
7db0f4ba23 Merge 1.45 -> 1.46 changes. 1997-01-28 21:38:45 +00:00
max
a8d8b0eede Merge 1.201 -> 1.202 changes. 1997-01-28 21:32:33 +00:00
wosch
a6574d9b83 The option "fstype" does not handle the argument "msdos" correctly.
This error results from changing the name for the msdos file system
from "pcfs" to "msdos". Close PR #1105

submitted by: Thomas Wintergerst <thomas@lemur.nord.de>,
              Slaven Rezic <eserte@cs.tu-berlin.de>
1997-01-28 13:18:46 +00:00
kato
c50b40bf29 Synchronize with sys/i386/conf/options.i386 revision 1.34. 1997-01-28 13:10:22 +00:00
phk
f6dcc30e24 Some of these cards are always in promiscous mode :-(
If you enable ip forwarding your net melts down.
This is a workaround, probably not the correct fix.
1997-01-28 11:21:21 +00:00
asami
0be2437c94 Change Brent J. Nordquist's e-mail address.
Submitted by:	"Brent J. Nordquist" <bjn@visi.com>
1997-01-28 08:07:35 +00:00
mpp
a2413810da Update to reflect current fs.h. 1997-01-28 07:25:18 +00:00
dg
abe7289a8c Oops, fix white space in last commit. 1997-01-28 07:09:05 +00:00
dg
3d55397795 Fix signal handler race condition. 1997-01-28 07:06:54 +00:00
mpp
41a5f91245 Update to match current include files. 1997-01-28 07:03:33 +00:00
mpp
430352cbbc Update to reflect current acct.h. 1997-01-28 06:53:19 +00:00