Commit Graph

181198 Commits

Author SHA1 Message Date
dholland
8842f79b56 Remove description of -a option and optional log file name, since
neither has done anything in a long long time. Add previously
undocumented -s/-f (slow vs. fast) options, although I question the
utility thereof and suspect they should just be removed.

Bump date (first time since 1993)
2009-05-25 00:53:46 +00:00
dholland
b398836923 sprintf -> snprintf 2009-05-25 00:46:01 +00:00
dholland
96ebfddf0f sprintf -> snprintf. 2009-05-25 00:43:34 +00:00
dholland
869c9375c3 "abbreviation" has two Bs. 2009-05-25 00:39:45 +00:00
dholland
3ae4e09ad9 Use random() instead of rand(), so we get something like random
numbers out.

This changes the "tournament codes"; that is, the same code will give
you a different game now from what it used to. (This is because the
codes are basically random seeds.) I really really doubt anyone cares
about this, especially since the tournament feature appears to be
undocumented.
2009-05-25 00:37:27 +00:00
dholland
014e646e3e Remove obviously botched test for "fast mode" based on terminal speed.
Default to "fast mode" as ~nobody has a 300 baud terminal any more.
("Fast mode" apparently controls whether short-range scans are printed
by default at certain times.)
2009-05-25 00:29:08 +00:00
dholland
4d0e1ebeea Use getopt to handle the remaining (all currently undocumented) options. 2009-05-25 00:25:58 +00:00
dholland
fdeec4afb6 Remove last traces of undocumented -p option (apparently related to
process priority) and documented -a option, neither of which have
done anything since CSRG days.
2009-05-25 00:20:22 +00:00
dholland
5f12e3fad3 Don't give special privileges to uid 13107. 2009-05-25 00:12:32 +00:00
dholland
b9b8495125 __attribute__((__noreturn__)) -> __dead 2009-05-25 00:07:14 +00:00
dholland
01781d3f3f Null for pointers, not 0. 2009-05-25 00:05:56 +00:00
dholland
a16adbcbde Fix score printing so columns line up. 2009-05-25 00:03:18 +00:00
dholland
db2522cfd8 Abolish cgetc(). It contained one line of code, which was wrong.
Call getchar() directly, and handle EOF properly instead of looping
(in some cases) or pretending that EOF is 0 (which it isn't).
2009-05-24 23:20:22 +00:00
pooka
387cc577e1 Add BSDCan 2009 paper to SEE ALSO. 2009-05-24 23:13:49 +00:00
dholland
df31a803d8 Remove unnecessary initialization that silenced a compiler warning in 1997. 2009-05-24 23:00:46 +00:00
mlelstv
1db94e50d9 file(1) no longer provides the plain text "magic" database.
change the install.md script to not need file(1) similar to what the
sparc port did.
2009-05-24 22:59:18 +00:00
dholland
3ac047a655 Sprinkle some blank lines for readability. 2009-05-24 22:57:37 +00:00
dholland
61357867d7 Split up lines > 80 chars. Object files unchanged. 2009-05-24 22:55:03 +00:00
dholland
fffd2fba77 Don't use literal ^G's in string constants. Use \a. 2009-05-24 21:55:24 +00:00
dholland
50b862e21c KNF: brace and comment placement. Object files identical. 2009-05-24 21:44:56 +00:00
ad
5b2c64652b Note fd changes. 2009-05-24 21:42:39 +00:00
ad
d991fcb3b6 More changes to improve kern_descrip.c.
- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.
2009-05-24 21:41:25 +00:00
mlelstv
13573078f8 Removed old Amiga-specific "sicallback" software interrupts and replaced
them by MI softints. Approved by "is".

Also drop mptr.h from set.
2009-05-24 20:53:22 +00:00
dholland
d8016deb30 whitespace 2009-05-24 20:43:09 +00:00
dholland
ad04eda0f2 KNF: fix formatting of preprocessor directives 2009-05-24 20:39:43 +00:00
he
45932f91e5 Apply fix borrowed from i386: Fix const issue (cast const pointers
to "const uint8_t *" instead of "caddr_t").
2009-05-24 20:35:41 +00:00
christos
39ac8a1e03 - prevent recursive error calls fatal -> die -> cleanup -> sys_cleanup -> cf* ->
fatal/error etc.
- prefix all the errors with __func__.
This allows me to unplug my 3G modem and have pppd exit correctly.
2009-05-24 20:31:25 +00:00
mlelstv
57f2ff1bb6 <sys/syscallargs.h> requires <sys/sched.h> to define cpuset_t. 2009-05-24 20:10:50 +00:00
dholland
bf0917b6ae ANSIfy function declarations. No object file diffs except for two functions
whose K&R declaration didn't fully match the prototype (char vs. int) and
the diff of the disassembly of those looks plausible.
2009-05-24 19:18:44 +00:00
wiz
9d12d16c67 Put DESCRIPTION before HARDWARE. New sentence, new line. 2009-05-24 19:06:45 +00:00
he
237687b934 Copy build fix from i386: Fix const issues (cast const pointers
to "const uint8_t *" instead of "caddr_t").
2009-05-24 18:29:03 +00:00
dholland
783505aca4 KNF. No change to .o file. 2009-05-24 18:22:27 +00:00
nisimura
2dc9cefd00 - detect FTDI chiptype from bcdDevice field to determine the number of
channels.
- now capable of quad channel FT4232H.
- mention FT232BM, FT232R, FT2232D, FT2232H and FT4232H chip models.
2009-05-24 16:32:58 +00:00
nisimura
44dbe1e84c - detect FTDI chiptype from bcdDevice field to determine the number of
channels.
- tested on 232BM, 232RL and 2232D chips.
- now capable of quad channel FT4232H.
- minor format nit and legacy title comment removal.
- non UART type bit stream (!= ucom) support is under planning.
2009-05-24 16:24:25 +00:00
skrll
f55e04e7f7 Remove a bunch of garbage from previous. 2009-05-24 15:27:08 +00:00
ad
193d553767 Split out kobj structures so crash/ddb can get at them. 2009-05-24 15:00:24 +00:00
ad
27695c89cb ddb: don't try to stat builtin modules. 2009-05-24 14:54:17 +00:00
nonaka
b822210843 SDHC card was able to be used. 2009-05-24 12:59:54 +00:00
ad
7d20bf2a9e Bus scans can make it appear as if the system has paused, so
twiddle constantly while config_interrupts() jobs are running.
2009-05-24 12:27:50 +00:00
skrll
93a4f7c66c Kill '$' in exported symbols. 2009-05-24 09:17:59 +00:00
skrll
fae01d956c G/C DTRAP 2009-05-24 09:13:37 +00:00
skrll
f06013108d u_intNN_t -> uintNN_t
"same" code before and after.
2009-05-24 06:53:34 +00:00
ginsbach
c9e7e3b144 Document getdate(3) addition and adding %s to strptime(3). 2009-05-24 02:36:57 +00:00
ginsbach
48dc241150 Crank date for previous. 2009-05-24 02:30:17 +00:00
ginsbach
98fa92ea04 Add %s to strptime(3) to make symmetric with strftime(3). 2009-05-24 02:25:43 +00:00
ad
63e35cb9ab Create /dev/zfs and /dev/zpool/. 2009-05-23 22:29:14 +00:00
wiz
81ea280bf2 Sort options in SYNOPSIS. 2009-05-23 20:26:18 +00:00
he
c411502583 After the change from "struct device *" to "device_t", we now depend
on the definitions from <sys/device.h>, so include it here.
2009-05-23 19:11:19 +00:00
christos
7966578116 remove stray comma, from anon ymous. 2009-05-23 18:57:25 +00:00
ad
46205038ea 5.99.12 struct lwp changes for timecounter detachment 2009-05-23 18:28:26 +00:00