Commit Graph

63624 Commits

Author SHA1 Message Date
ache
c7e44d0909 Document new EINVAL, EOVERFLOW cases. Sort ERRORS 2001-08-21 21:44:48 +00:00
n_hibma
459feba22a Deconfuse a debugging message. 2001-08-21 21:41:15 +00:00
n_hibma
8be7dfb7bf Regen.
National BearPaw 1200 has changed name USB_PRODUCT_NATIONAL_BEARPAW1200.
2001-08-21 21:36:58 +00:00
n_hibma
10d148026e Add Mustek, National and Ultima scanners.
Submitted by:	Henning Meier-Geinitz <hmg@gmx.de>
PR:		29777
MFC after:	1 week
2001-08-21 21:35:40 +00:00
imp
01d34df527 Report the interrupt path via the sysctl to userland as a string.
Submitted by: green
2001-08-21 21:31:27 +00:00
ache
5b25e70c26 Make lseek() POSIXed: for non character special files
1) handle off_t overflow with EOVERFLOW
2) handle negative offsets with EINVAL

Reviewed by:	arch discussion
2001-08-21 21:20:42 +00:00
jhb
2d8b874618 Add a hook to mi_switch() to abort via db_error() if we attempt to
perform a context switch from DDB.

Consulting from:	bde
2001-08-21 20:09:05 +00:00
imp
478fdbdcbc Add new, simple pcic manual page. 2001-08-21 20:07:49 +00:00
dd
0d4ba9ee29 Don't claim to be mp(3). 2001-08-21 20:05:39 +00:00
imp
b3400f019f Rearrange how we do interrupt routing tweaking. We now have
hw.pcic.intr_path	{1,2}	1 == ISA, 2 == PCI
	hw.pcic.init_route	Force TI chipset initializations in edge case.
2001-08-21 20:04:42 +00:00
scottl
4c62004cf7 Fresh code drop from the vendor. This fixes some critical bugs and adds
support for a new class of controllers.  Also adjust MAINTAINER at the
approval of msmith.

Obtained from:	mark_salyzyn@adaptec.com
2001-08-21 19:58:16 +00:00
dd
5aeaee9fa9 Do not use contractions where they aren't necessary, use "host"
instead of "computer", and clean up some confusing sentences.

Submitted by:	sheldonh
2001-08-21 19:39:01 +00:00
dd
a53b7a0080 Use .In, .Ux, and .Rv where appropriate. Also consistently call this
a "function" instead of a "routine".

Submitted by:	ru
2001-08-21 19:32:47 +00:00
dd
bed180befd Expand the ?: construct into an if/else.
Submitted by:	nectar
2001-08-21 19:27:07 +00:00
mike
bcf70c152e Take maintainership of whois(1). 2001-08-21 19:24:50 +00:00
dd
99b2d7167c The setprogname() function sets the name of the program to be the last
component of the progname argument.
2001-08-21 18:49:58 +00:00
dd
daf9108f0f Fix style bug. 2001-08-21 18:46:33 +00:00
jhb
4f6c3a9342 - Fix a bug in the previous workaround for the tsleep/endtsleep race.
callout_stop() would fail in two cases:
    1) The timeout was currently executing, and
    2) The timeout had already executed.
  We only needed to work around the race for 1).  We caught some instances
  of 2) via the PS_TIMEOUT flag, however, if endtsleep() fired after the
  process had been woken up but before it had resumed execution,
  PS_TIMEOUT would not be set, but callout_stop() would fail, so we
  would block the process until endtsleep() resumed it.  Except that
  endtsleep() had already run and couldn't resume it.  This adds a new flag
  PS_TIMOFAIL to indicate the case of 2) when PS_TIMEOUT isn't set.
- Implement this race fix for condition variables as well.

Tested by:	sos
2001-08-21 18:42:45 +00:00
iwasaki
fbda0f8d3b Fix error checking about device state transition from D0 to D3.
Turn off the resources listed in _PR0 to go to D3 if we don't have _PR3/_PS3.

Reviewed by:	msmith
2001-08-21 18:22:40 +00:00
imp
db70defc69 It looks like we're doing the wrong thing by catching the setup_intr
request and just calling it when we get a bridge interrupt.  The
problem is that if other code wants to block hardware interrupts for a
little bit with splXXX, those masks aren't updated the way we're doing
it.  This doesn't matter for -current, but does for -stable.

The whole reason that we were catching interrupts was to detect that
the card was still there.  Ian's fixes however ensure that the card
will be there with an interrupt handler, or not there at all.  Since
the pcic interrupt is at a high priority, this should be OK.

This should fix the network related crashes people started seeing in
stable after I merged the pcic as a pci device code.

Submitted indirectly by: Ian Dowse
MFC when: Ian has had a chance to do his torture hang testing.
2001-08-21 18:13:16 +00:00
semenu
07b2f35f34 Document recent changes about VLAN support and oversized packets.
PR:		kern/29235
MFC after:	1 day
2001-08-21 17:52:52 +00:00
ru
f67ee72edf Fixed warnings. 2001-08-21 17:28:39 +00:00
nectar
aae0c019d1 Pass the pointy hat, please.
Submitted by:	ru
2001-08-21 17:16:32 +00:00
nectar
43702240bb setprogname() should set __progname to the last component of the given
path.
2001-08-21 16:55:34 +00:00
dfr
d280a62e1c Make sure stack is aligned to 16 bytes. 2001-08-21 16:53:23 +00:00
ru
cf9d9a36e7 Added TFTP support.
Submitted by:	Joe Clarke <marcus@marcuscom.com>
MFC after:	2 weeks
2001-08-21 16:25:38 +00:00
ru
ac9087fba1 Update -v documentation to match reality.
Spotted by:	bde
2001-08-21 15:59:55 +00:00
ru
15006d0da8 Added netid(5) manpage.
PR:		docs/25657
Obtained from:	OpenBSD
2001-08-21 15:39:15 +00:00
jhb
47668ffb66 Whitespace style nits. 2001-08-21 15:37:19 +00:00
ume
f0f29f2dc3 fix typo. icmptype of destination unreach is not 2 but 1.
Submitted by:	kuriyama
2001-08-21 15:05:09 +00:00
jhb
bfb2a1d964 Protect prototype of ptrace_clear_single_step() with #ifdef _KERNEL/#endif.
Requested by:	bde
2001-08-21 13:42:39 +00:00
jhb
39008f1a5d GC unused prototype of ptrace_write_u().
Forgotten by:	peter
2001-08-21 13:41:46 +00:00
joerg
7cdb2456bc Properly initialize the random number generator in pw_getpass().
Right now, the automatically generated passwords have been rather
predictable. :-(

MFC after:	1 day
2001-08-21 13:33:20 +00:00
brian
3803cbd626 Fix two typos 2001-08-21 13:20:02 +00:00
brian
c5bd8f6e5d Revert to version 1.16 which was more correct than either of my attempts. 2001-08-21 12:54:15 +00:00
sos
a70c5b3073 Add support for the newer Promise chips here as well. 2001-08-21 12:23:31 +00:00
brian
be0965e41d Display a better error message when snprintf() returns < 0
Pointed out by: bde
2001-08-21 11:39:45 +00:00
brian
30830b4292 Handle overflows from snprintf(), not just returns of < 0
Pointed out by: bde
2001-08-21 11:39:32 +00:00
sos
20971d752c Finally commit some of the minor things I've collected over the last month(s):
Add tagged queueing support for new IBM drives.

Add support for Yet Another Promise ATA 100 chip.

Flush disk cache on close.

Dont flush the disk cache on BIO_ORDERED anymore.

Cleanup the tests for DMA on ATAPI devices.

Allow to share ALL irq's even the std irg 14 & 15.

Fix calculation bug in end of media code on CD's.

Add REZERO on opening a CDR/CDRW.

Cleanup ataioctl a bit.
2001-08-21 11:35:47 +00:00
brian
569bf91b79 Remove unnecessary casts.
The original (1.16) code was mostly correct, but this version is
far clearer.

Casts suggested to now be obfuscations by: bde
2001-08-21 11:24:53 +00:00
ru
4d0fae19b5 Close the "IRC DCC" security breach reported recently on Bugtraq.
Submitted by:	Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
2001-08-21 11:21:08 +00:00
brian
2286423a99 o Enable IFF_MULTICAST when first opening the tun device (and keep the flag
when we ioctl(TUNSIFINFO) under OpenBSD)
o Don't bring the interface up immediately
o Don't complain about unrecognised interface flags in ``show iface''.
2001-08-21 11:07:58 +00:00
joerg
637fbcbedb Fix a typo in a variable name that made pw(8) coredump when using
USE_MD5RAND.

MFC after:	2 days
2001-08-21 10:29:01 +00:00
bp
2e08e5b45a Map errdos:67 to the ENOENT.
Obtained from:	Mac OS X
MFC after:		1 week
2001-08-21 09:16:57 +00:00
bp
e46bed178b Use local wrappers instead of direct calls to mtx_destroy().
Obtained from:	Mac OS X
MFC after:		1 week
2001-08-21 09:10:23 +00:00
msmith
5d4db18126 Remove noisy printfs from the notify handler; having these go off
every couple of seconds is not useful.
2001-08-21 09:06:02 +00:00
bp
52c8a1f983 Remove unnecessary "#if __FreeBSD_version". 2001-08-21 08:58:02 +00:00
bp
555767b49c Use proper endian conversion.
Obtained from:	Mac OS X
MFC after:		1 week
2001-08-21 08:27:47 +00:00
bp
078a22aae0 Return proper length of _PC_NAME_MAX value if long names support is enabled.
Obtained from:	Mac OS X
MFC after:	1 week
2001-08-21 08:25:09 +00:00
bp
a333ea9b9d Use proper endian conversions.
Obtained from:	Mac OS X
MFC after:	1 week
2001-08-21 08:21:03 +00:00