christos
3a24c02f26
cleanup fsck error handling:
...
1. explain what each error means
2. remove 130 (128 + 2) which was presumably there because fsck_msdos did
not handle SIGINT properly
2008-02-24 01:05:35 +00:00
christos
358764c860
Catch signals and exit with the proper error code like all the other fsck
...
programs.
2008-02-24 00:59:03 +00:00
reed
baa9962260
Fix typo.
2008-02-24 00:34:51 +00:00
dsl
e16564a11e
Remove a 9 from the stuttered example in order to match the only
...
possible reality.
2008-02-24 00:05:31 +00:00
dsl
2791dfc743
When converting fp values to integer, use floor(x) so that we get
...
consistent convertions not the 'round to even'.
This means that it is possibly to generate the 'stuttered' sequence
4 4 3 3 2 2 1 1 0 0 -1 -1.
2008-02-24 00:04:00 +00:00
dsl
9d6613d400
Rename 's' to 'step', allow a precision of 0 to be specified (overriding
...
the value determined from 'begin' and 'end').
2008-02-23 23:59:59 +00:00
elad
2ef031e659
Adapt to secmodel_securelevel.
2008-02-23 23:32:30 +00:00
dsl
a357ac4921
If we are doing a random integer (or character) format, then increase the
...
range by 1 so that the quoted upper and lower values both appear, and
with the same frequency as the intermediate values.
This reverts the change from rev 1.13, and fixes it properly!
Also fixes 'jot -r -c - 97 98' as reported to netbsd-bugs (but not as a PR!).
2008-02-23 22:46:10 +00:00
uwe
f9a91c1634
Set curlwp and curpcb in cpu_switchto instead of cpu_switch_prepare.
...
We can now skip cpu_switch_prepare for the "fast" switch case (when
"returning" is true) which we will need for fast soft interrupts.
2008-02-23 22:30:46 +00:00
dholland
98e588be9a
Fixes from OpenBSD.
...
- If a player goes bankrupt buying a property (which shouldn't be
allowed, but I guess it is), don't cause them to resign to themselves.
- Use "NULL", not "0", for pointers.
- Avoid undefined behavior adjusting the current player after resigning.
- Don't leak the memory used to store player names.
The last of these is disabled for the moment because we have the pointers
in question tagged const. Will see to this when I'm finished merging.
2008-02-23 22:28:46 +00:00
dsl
c4d8b28d09
Remove some pointless indirections and add {} around some long single
...
statements.
2008-02-23 22:26:41 +00:00
dholland
693812a822
Fix from OpenBSD: don't say "1 houses".
2008-02-23 22:20:35 +00:00
dholland
4e54ceffce
Bug fixes from OpenBSD:
...
- don't truncate unreasonably long player names when bidding;
- don't allow players to bid more cash than they have.
2008-02-23 22:17:02 +00:00
dholland
7913f644df
Bug fix: having $0 does not mean you need to mortgage something. Plus some
...
tidyup.
From OpenBSD.
2008-02-23 22:06:30 +00:00
dholland
d49f907ead
More fixes from OpenBSD:
...
- initialize in the proper order
- don't allow 1-player games
- make the check for players named "done" work properly
- a couple other minor things
2008-02-23 21:48:46 +00:00
christos
742b48d55e
Make sure that the exit values are always sane, and use symbolic instead
...
of magic constants. Reviewed by go@
2008-02-23 21:41:47 +00:00
dholland
5ed7a7102f
Sanity fixes for input handling. Suggested by OpenBSD, but different code.
2008-02-23 21:35:13 +00:00
phx
cb8c72e1d4
Added scsibus at umass for USB keys and ADOSFS for mounting Amiga file systems
...
on Pegasos computers.
Approved by garbled.
2008-02-23 21:16:05 +00:00
phx
1ed426bc21
On the Pegasos2, we must never run PCI-configure for the MV64361 host bridge,
...
otherwise the devices on that bus might no longer work correctly (e.g.
interrupt flood).
Approved by garbled.
2008-02-23 21:11:22 +00:00
christos
c74c62426e
- sizeof(type) -> sizeof(variable)
...
- add a missing memset()
- process unlimited length lines
2008-02-23 21:10:54 +00:00
dholland
52f0089409
A first stab at supporting the housing shortage rules. From OpenBSD.
...
(note: this is not fully correct - I will fix it when I finish merging)
2008-02-23 21:07:52 +00:00
christos
1fe4bceb66
Say what our exit values mean (this is not correct right now, because not
...
all fsck programs have been fixed but it will be soon).
2008-02-23 20:38:53 +00:00
dholland
c844dfca6b
Don't increment booleans. From OpenBSD
2008-02-23 20:18:46 +00:00
dholland
ff1acb6483
Sanity fixes for input buffer handling. From OpenBSD
2008-02-23 20:12:15 +00:00
oster
eb54cecf5a
maxcols and DEFCOLS are column counts, not "how much space to
...
allocate" values. Thus, if we multiply DEFCOLSL by sizeof(char *) we
should do likewise for maxcols (and not just add maxcols to the "how
much space to allocate" parameter!!)
Fixes the 'jot 33 1 > J33 ; paste -s J33 | column -t' SegFault
lossage reported by Jeremy Reed on tech-misc.
2008-02-23 19:58:06 +00:00
matt
beb8ce1f63
Add rw_enter/rw_tryenter/rw_exit stubs (untested).
2008-02-23 19:56:10 +00:00
matt
f0df2a688a
Add some 440 definitions
2008-02-23 19:54:54 +00:00
dholland
61715c12c2
Improve the behavior of get-out-of-jail-free cards by returning them to
...
the bottom of the deck when used. There are still a few other problems.
From OpenBSD.
2008-02-23 19:54:06 +00:00
matt
27907c4e8a
Use BAT_VA2IDX()
2008-02-23 19:50:41 +00:00
dholland
82ff30a443
Rename ->last_card to ->top_card to match OpenBSD (and also to make
...
somewhat more sense...)
2008-02-23 19:49:21 +00:00
matt
7aa9230dd8
Add BAT_VA2IDX to abstract out the va to index calculation.
2008-02-23 19:48:43 +00:00
matt
21a07206db
Add clrr{ptr,long,reg}i, l{ptr,long,reg}arx, st{ptr,long,reg}cx macros
2008-02-23 19:38:47 +00:00
matt
c44a88fb5a
Detect HIGHBAT/XBSEN/HIGHSPRG to MPC74[45]x where x > 1
...
Enable above as appropriate.
2008-02-23 19:37:07 +00:00
matt
c6f7e7c68c
Add MTX_* and RW_* definitions
2008-02-23 19:34:53 +00:00
matt
2fb44af084
Add BAT_WIMG and some XBL aware BAT_BL_{512,1G,2G,4G} macros.
2008-02-23 19:28:29 +00:00
matt
e40b7cd828
Add a XBSEN flag for large BATs
2008-02-23 19:23:37 +00:00
dholland
8b5e597afa
Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.
2008-02-23 19:09:00 +00:00
oster
8b2eb1e024
Add the missing 'n' to 'correspoding'.
2008-02-23 18:35:04 +00:00
uwe
434cf91d86
Now that __EXCEPTION_BLOCK does the right thing, preserving SR for us,
...
we don't have to open-code it here.
2008-02-23 18:00:22 +00:00
sborrill
b701bbf89d
Fix tiny typo
2008-02-23 17:53:23 +00:00
uwe
6b59ecacca
Shave off a few instructions by using callee-save registers to cache
...
stuff. Profit from the fact that __EXCEPTION_BLOCK now preserves SR
and replace __EXCEPTION_UNBLOCK with just an "ldc" to restore SR.
2008-02-23 17:52:31 +00:00
sborrill
12958cf8a3
Add boot.cfg files to bootcd and bootcd-com iso images.
2008-02-23 17:52:14 +00:00
sborrill
2463fb7b22
Only attempt to output up to MAXBANNER banner lines
2008-02-23 17:49:29 +00:00
uwe
9b1adbdb11
Tweak __EXCEPTION_BLOCK so that original SR value is preserved in Rm.
...
We can then often use just "ldc Rm, sr" instead of matching
__EXCEPTION_UNBLOCK and thus shave off a few instructions.
2008-02-23 17:49:22 +00:00
matt
c9cd44128e
Add assym.d to DEPS so it gets properly cleaned.
2008-02-23 17:43:36 +00:00
chris
855792073c
Add some more missing pmap_update()s following pmap_kremove()s.
2008-02-23 17:27:58 +00:00
uwe
75c29600dd
Misc cosmetic changes to cpu_switchto: use asm comments to have a few
...
more chars before we wrap, replace remaining ,<TAB> with ,<SPACE> in
operands, clarify a few comments. Note new "bool returning" argument
(not used yet as it's always false unless we have fast soft
interrupts). Same object code generated.
2008-02-23 16:48:03 +00:00
mlelstv
69b2d26ed9
make this less verbose
2008-02-23 16:25:35 +00:00
chris
2ff98bbc26
Add missing pmap_update(pmap_kernel()); calls after pmap_kenter_pa and
...
pmap_remove.
2008-02-23 16:05:17 +00:00
christos
6711b9aec7
use the proper variable.
2008-02-23 15:53:22 +00:00