Commit Graph

147835 Commits

Author SHA1 Message Date
christos
53516f73e1 Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.
2006-06-01 18:04:08 +00:00
drochner
3f13a4cf7b Better check data read from tetris.scores before use as array indices etc.
This is CVE-2006-1539, files against Gentoo Linux, the patch is from
Gentoo.
A standard NetBSD installation is not as much risk because tetris is
sgid "games", and users shouldn't be in that group.
2006-06-01 16:12:27 +00:00
christos
8d1784140b PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.
2006-06-01 15:59:31 +00:00
nathanw
9822b848e6 Change return type of sdgetdisklabel() from void to int; return an error
if readdisklabel() returned an error.

sdopen(): Return an error if sdgetdisklabel() returns an error. This prevents
a crash in spec_open() (and possibly elsewhere) if a sd device is detached in
the middle of sdopen().
2006-06-01 15:53:09 +00:00
tsutsui
88032f5d39 Sync with hpcsh/bus_space.c rev 1.12:
> Use C99 syntax for designated initializers.
> Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-06-01 14:18:41 +00:00
jonathan
6e42605bf4 Rework bge_reset() to more closely follow the Broadcom-supplied Linux driver:
1. Instead of enabling the buffer manager hardware-FSM only on
pre-5705 devices, initialize the buffer manager on all bge devices.
Modelled on the Broadcom-authored Linux driver.

2. Instead of enabling the memory arbiter hardware-FSM only on
pre-5705 devices, initialize the memory arbiter on all bge devices.
Modelled on the Broadcom-authored Linux driver.

3. Ditto the second copy of code which enables the memory arbiter.
Also, add an XXX asking, why taunt the chip this way a second time?
(The most plausible explanatoin is that enabling the memory arbiter
twice is my own darn fault, likely a cut-and-paste glitch I made many
moons ago, when re-ordering hardware enables to match the Linux drivers.)
2006-06-01 02:20:54 +00:00
jonathan
e8c37e204d Fix a minor thinko in ascertaining whether or not a bge(4) device is
attached via PCI-Express:

The previous code first checked that the bge ASIC-revision matched the
5750 ASIC-revisoin (the bcm5721 has the same ASIC revision). However, the
bcm5752 is also a PCI-Express device, but has a different ASIC revision.
Thus, we were setting sc->bge_pcie to zero for bcm5752s, which in turn
causes bge_reset() to not perform required PCI-Express setup.

The test for a 5750 ASIC revision may (or may not) have been carried
across from the FreeBSD bge(4) driver. FreeBSD's bge(4) does not
properly detect or handle post-5750 bge devices. Instead, FreeBSD's
bge(4) keeps a sofc copy of the ASIC revision, and for post-5750
devices (5752, 5714, ...) overwrites that softc copy of the
ASIC-revision with the 5750 ASIC revision.  Thus, the test (mutatis
mutandis, using FreeBDS's softc asic-revision field), was correct for
FreeBSD; but manifestly incorrect for NetBSD.

Mark Davies (mark at mcs.vuw.ac..nz) has confirmed via private email
that this change fixes PR kern/kern/33509: his bcm5752 now works.
2006-06-01 01:46:41 +00:00
uwe
4c3245cf01 Remove redundant semicolon in dev_type_cnbell. 2006-06-01 00:43:37 +00:00
uwe
e81e00a1ad s/0/NULL/ when dealing with pointers. 2006-05-31 22:48:48 +00:00
uwe
cac00f2e06 Use C99 syntax for designated initializers.
Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-05-31 22:40:38 +00:00
riz
03c11483b9 Add support for the DLink DGE-530T revision B1 (Tested by Tillman
Hodgson) and the DGE-560T (untested).
2006-05-31 21:46:32 +00:00
riz
5412a4d276 Regen. 2006-05-31 21:43:25 +00:00
riz
1ff114df3d Add a couple DLINK product IDs, from OpenBSD. 2006-05-31 21:42:35 +00:00
rpaulo
134b1ef326 Add missing coma. 2006-05-31 20:23:52 +00:00
rpaulo
fc5eb63af6 It doesn't make sense to print the MPLS ttl here.
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
agc
2b1d5a0345 :g/%i/s//%d/gc
Also make a first stab at implementing persistent reserve in SCSI command.
2006-05-31 19:53:13 +00:00
christos
c377b4c43d More Coverity fixes from Mark D. Baushke. 2006-05-31 15:59:12 +00:00
perry
713a76184e explain why the ordering of MAN= is like it is. 2006-05-31 13:51:48 +00:00
perry
567aeb1815 To make vdiffs for imports simpler, follow the pattern of the original
Makefile.in for listing the files to be installed.

No functional change at all.

Also, remove a spurious tab from after the MLINKS= line
2006-05-31 13:45:46 +00:00
rpaulo
088720fe4b Don't print an error if kernel doesn't have INET6 support.
By Jukka Salmi on current-users.
2006-05-31 13:26:17 +00:00
tsutsui
a46e8b9247 Remove unneeded #include headers. 2006-05-31 13:20:42 +00:00
tsutsui
d241536854 Use __predict_true() and __predict_false() in some critical handlers. 2006-05-31 13:14:13 +00:00
tsutsui
cbe0593dd5 Cleanup ICU (i8259 compatible PIC) interrupt handling code:
- move ICU interrupt stuff from pci/pcib.h to cobalt/machdep.c
  because ICU should be initialized before pcib is attached
- initialize ICU more properly
- check interrupt types and set ELCR (edge/level control registers)
  accordingly in icu_intr_establish()
- check requested IRQ line and call only a necessary hander in icu_intr()
- use specific EOI to ack interrupts rather than AEOI
- use macro defined in <dev/ic/i8259reg.h>
2006-05-31 12:59:39 +00:00
drochner
4b02662f6c -add 2 subclasses new in rev. 3.0 of the spec, and fix a pasto in another
-get power management rev printing right
2006-05-31 10:01:18 +00:00
drochner
05a790f438 regen 2006-05-31 09:54:45 +00:00
drochner
5529c06d6a support ntp_gettime again
compile tested by Havard Eidnes
2006-05-31 09:52:27 +00:00
tsutsui
3bd0011e38 Use a proper macro to determine I/O size for DIO-II devices. 2006-05-31 09:32:11 +00:00
tsutsui
35a0a35342 Check scode range for DIO-II based framebuffers correctly
in cnattach() functions.
Fixes boot failure problem on HP400t with fb console
reported by Stephan "doomwarrior" on port-hp300.
2006-05-31 09:25:44 +00:00
simonb
f11583fa19 Fix "pointer targets in passing argument X of 'Y' differ in signedness"
warnings.  Originally, bswap32_region() took a u_int32_t * as its first
argument.  Since no args passed to it are u_int32_t *, but some are
int32_t *, change it to int32_t * and fix remaining casts.
2006-05-31 08:09:55 +00:00
simonb
f40854a95b Bump version to nb2 for gcc bug 26565 fix.
Revert date back to gcc branch date of 20060420.
2006-05-31 05:58:41 +00:00
mrg
b435d26d50 add insn-modes.h to the list of header files the gen* programs .lo
objects depend on.  now usr.bin/gcc4 is "make -j100" safe.
2006-05-31 05:13:20 +00:00
simonb
e8c51d90a5 Pull up gcc svn revision 111934:
PR middle-end/26565
  * builtins.c (get_pointer_alignment): Handle component
  references for field alignment.

Fixes aligned store problems on MIPS described in:
    http://mail-index.NetBSD.org/tech-toolchain/2006/05/16/0002.html
    http://mail-index.NetBSD.org/tech-toolchain/2006/05/17/0001.html
2006-05-31 05:10:14 +00:00
simonb
d8075254e2 Bye bye sendmail. 2006-05-31 03:30:26 +00:00
tron
bc543810da Install mailq(1) and newaliases(1) as links to sendmail(1). 2006-05-31 03:06:47 +00:00
tron
19851bbafd Resurrect "/etc/mail" and "/etc/mail/aliases". Postfix still uses that
configuration file.
2006-05-31 02:58:14 +00:00
garbled
fed113c6f4 Rewrite the pci bus attribute decodings to be human-readable by using the
proper pcipnp structure file to read them rather than magical array offsets.

Add more complete decoding of the VPD, including extendedvpd, and TLB.  While
I was here, fix a bug where we never printed the L1 cache data properly.
2006-05-30 23:56:38 +00:00
freza
fbb6d5fc9e Remove duplicate definitions of mfdcr()/mtdcr() in favor of a single one
in cpu.h

OK Matt Thomas
2006-05-30 22:44:13 +00:00
christos
4ca4d18faa mention sendmail removal. 2006-05-30 21:27:39 +00:00
nathanw
ea1149c828 mknative run for sparc64. 2006-05-30 21:25:32 +00:00
nathanw
d275c70520 mknative run for sparc 2006-05-30 21:24:12 +00:00
jnemeth
74cf788741 PR/30730 force changing password via chsh fails
PR/33502 password aging not working
copy old_pwd to new_pwd before modifying
2006-05-30 19:48:07 +00:00
tron
413df19e55 Remove obsolete sendmail manual pages, add postfix manual pages. 2006-05-30 19:33:26 +00:00
tron
a36ebd2187 Install manual pages mailq(1), newaliases(1) and sendmail(1) to replace
the removed sendmail manual pages.
2006-05-30 19:32:28 +00:00
tron
300dbf11e5 Check whether user and group "postfix" exist. 2006-05-30 19:31:13 +00:00
he
eb8171b634 Remove local declaration of the 'fb' attribute now that it's declared
globally.
2006-05-30 19:19:36 +00:00
tron
73575a68a2 After removal of "sendmail":
- Remove the code dealing with "sendmail" updates.
- Don't check for the existence of user and group "smmsp" any more.
- Remove "/etc/rc.d/smmsp" and "/etc/rc.d/sendmail" because there defaults
  have been removed from "/etc/defaults/rc.conf".
2006-05-30 05:53:24 +00:00
nathanw
6c6d4376da Support .native in an objdir, so I can keep more than one around at a
time.
2006-05-30 04:22:40 +00:00
jnemeth
4d5f1df695 add BQS 2006-05-30 03:54:20 +00:00
christos
7754caa257 remove some more smmsp for sendmail. 2006-05-30 02:10:01 +00:00
uwe
bcd4abc305 If tty that we open already has hpf1275a line discipline set, don't
spawn new pseudo-device and wskbd instances.

XXX: The logic for exclusive use needs to be thought out better, but
for now this should at least prevent scores of new hpf1275a/wskbd
being attached if you accidentally set this line discipline on your
serial console.
2006-05-30 01:14:38 +00:00