John Baldwin
96025496cf
- Remove a spurious blank line.
...
- Add a missing static keyword.
2004-05-11 20:06:55 +00:00
John Baldwin
175af5d978
Fixup a few bogons in a comment.
2004-05-11 20:06:32 +00:00
John Baldwin
d3b3af7599
Remove unused WL_IRQS macro.
2004-05-11 20:06:12 +00:00
Maxim Konovalov
a49b21371a
o Calculate a number of bytes to copy (cnt) correctly:
...
+----+-+-+-+-+----+----+- - - - - - - - - - - - -+----+
| | |C| | | | | | |
| IP |N|O|L|P| | IP | | IP |
| #1 |O|D|E|T| | #2 | | #n |
| |P|E|N|R| | | | |
+----+-+-+-+-+----+----+- - - - - - - - - - - - -+----+
^ ^<---- cnt - (IPOPT_MINOFF - 1) ---->|
| |
src | +-- cp[IPOPT_OFF + 1] + sizeof(struct in_addr)
|
dst +-- cp[IPOPT_OFF + 1]
PR: kern/66386
Submitted by: Andrei Iltchenko
MFC after: 3 weeks
2004-05-11 19:14:44 +00:00
Dag-Erling Smørgrav
cbb58e9c9a
Man page for the ichwd driver.
2004-05-11 18:36:38 +00:00
Dag-Erling Smørgrav
cae8da6164
Add a driver for the watchdog timer function present on the LPC interface
...
bridge in Intel ICH-series chipsets.
The original implementation was by W. Daryl Hawkins of Texas A&M, but I
have made substantial modifications.
2004-05-11 18:21:38 +00:00
Ruslan Ermilov
b3eaeb0b24
mdoc(7): EXAMPLES is the standard section name.
2004-05-11 18:18:31 +00:00
Tony Finch
a27113d965
I *knew* it would be a bad idea to touch the fortunes. *sigh*
...
Submitted by: Kevin Oberman <oberman@es.net>
Pointy hat to: me, again
2004-05-11 17:43:36 +00:00
Tony Finch
00b1a2a12f
Pedantry.
...
Submitted by: njl@
2004-05-11 17:26:16 +00:00
Christian S.J. Peron
1f95348010
Document the fact that in a jailed environment, sendto(2) could fail
...
returning EPERM if the source address specified in the IP header did
not match the address bound to the prison.
Approved by: bmilekic (mentor)
2004-05-11 16:28:07 +00:00
Olivier Houchard
dd472ec61d
Fix a few glitches in my previous commit.
...
This makes config(8) WARNS?=6 compliant.
2004-05-11 15:42:44 +00:00
Hiten Pandya
2db6331792
Add a comma after `e.g.', so that mdoc does not add two whitespaces
...
automatically.
Noticed by: Ruslan Ermilov <ru at FreeBSD.org>
2004-05-11 14:13:52 +00:00
Tim J. Robbins
88af941a73
In the absence of proper validation, at least check that null bytes
...
do not appear as anything but the first byte of a multibyte character.
2004-05-11 14:08:22 +00:00
Søren Schmidt
bbf15239ed
Dont try to finish devstat's if the disk pointer is NULL, this can happen
...
when a disk has been destroyed but still has outstanding bio's.
Reviewed by: phk
2004-05-11 13:17:40 +00:00
Tim J. Robbins
7076971c1a
Test accumulation of partial multibyte characters in conversion
...
state objects.
2004-05-11 13:10:47 +00:00
Diomidis Spinellis
c3cd9d1f90
Add Greek character encoding suport.
...
MFC after: 2 weeks
2004-05-11 11:11:14 +00:00
Diomidis Spinellis
26eff9e85b
Fix and clarify unparsable sentence.
...
MFC after: 2 weeks
2004-05-11 11:10:09 +00:00
Diomidis Spinellis
94cf9da03c
Bring the description for login_getclassbyname in sync with the function's
...
arguments. The function has as a second argument a struct passwd * pointer,
not a directory name.
MFC after: 2 weeks
2004-05-11 11:05:26 +00:00
Tim J. Robbins
f52e2ef29f
Eliminate a memory leak in kern_symlink() that could occur if
...
vn_start_write() failed.
2004-05-11 10:42:02 +00:00
Tim J. Robbins
8eec77b09e
To handle orphaned character device vnodes properly in mmap(), check that
...
v_mount is non-null before dereferencing it. If it's null, behave as if
MNT_NOEXEC was not set on the mount that originally containined it.
2004-05-11 10:26:37 +00:00
Tony Finch
70a9abdd45
Oops, I didn't mean to commit that one. It's dreadful, and nothing
...
to do with Simon.
Pointy hat to: fanf@
2004-05-11 10:03:03 +00:00
Tony Finch
aa0bdecb75
On the signs of network congestion.
...
Submitted by: Simon Tatham <anakin@pobox.com>
2004-05-11 10:00:14 +00:00
Hiten Pandya
2b55fc2e9c
Document the 'fdidx' argument of VOP_OPEN(9).
...
PR: 56911
Noticed by: Jun Su <junsu@m-net.arbornet.org>
2004-05-10 23:17:09 +00:00
Tony Finch
fffbf07a36
Re-sort
2004-05-10 23:02:07 +00:00
Hiten Pandya
7e1b2808d5
Remove duplicated explanations and text.
...
PR: 24869
Submitted by: Staffan Ulfberg <staffanu@nada.kth.se>
2004-05-10 23:02:00 +00:00
Tony Finch
7475c308d4
Moore's law vs. Nethack
...
Submitted by: Simon Tatham <anakin@pobox.com>
2004-05-10 23:00:26 +00:00
Hiten Pandya
e53f7998da
Use strlcpy(3) instead of strcpy(3).
...
PR: 46761
Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
2004-05-10 22:33:12 +00:00
Dag-Erling Smørgrav
476daaec24
Minor style issues.
2004-05-10 21:18:03 +00:00
Simon L. B. Nielsen
202c735f35
Fix typos.
...
PR: docs/66481
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
2004-05-10 20:39:32 +00:00
Søren Schmidt
45bf968a10
Fix Sii3114 support.
2004-05-10 20:23:25 +00:00
Simon L. B. Nielsen
67da07abb3
- Remove duplicate words.
...
- Fix a spelling nit.
PR: docs/66482
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
2004-05-10 20:12:02 +00:00
John Baldwin
eb8943b13e
Rework the APIC mixed mode support a bit:
...
- Require the APIC enumerators to explicitly enable mixed mode by calling
ioapic_enable_mixed_mode(). Calling this function tells the apic driver
that the PC-AT 8259A PICs are present and routable through the first I/O
APIC via an ExtINT pin. The mptable enumerator always calls this
function for now. The MADT enumerator only enables mixed mode if the
PC-AT compatability flag is set in the MADT header.
- Allow mixed mode to be enabled or disabled via a 'hw.apic.mixed_mode'
tunable. By default this tunable is set to 1 (true). The kernel option
NO_MIXED_MODE changes the default to 0 to preserve existing behavior, but
adding 'hw.apic.mixed_mode=0' to loader.conf achieves the same effect.
- Only use mixed mode to route IRQ 0 if it is both enabled by the APIC
enumerator and activated by the loader tunable. Note that both
conditions must be true, so if the APIC enumerator does not enable mixed
mode, then you can't set the tunable to try to override the enumerator.
2004-05-10 18:49:58 +00:00
Robert Watson
02ebd2bcb5
Improve consistency of include file guards in src/sys/sys by terminating
...
them with '_', as well as beginning with '_'.
Observed by: bde
2004-05-10 18:38:07 +00:00
John Baldwin
ffe2232b31
- Simplify the sizeof expression in the CTASSERT() for NUM_ISA_IRQS.
...
- Fixup grammar in a comment.
Submitted by: bde (1)
2004-05-10 18:33:52 +00:00
John Baldwin
0fd166d7da
- Change madt_map_table() to verify the checksum of any table it is asked
...
to map. If the checksum fails, the table is unmapped and a NULL pointer
returned.
- For ACPI version >= 2.0, check the extended checksum of the RSDP.
AcpiOsGetRootPointer() already checks the version 1.0 checksum.
- Remap the full MADT table at the end of madt_probe() so that we verify
its checksum before saying it is really there.
Requested by: njl
2004-05-10 18:33:08 +00:00
John Baldwin
fb0ac5433b
If an ACPI PCI-PCI bridge doesn't have a _PRT object, fall back to using
...
the swizzle method for routing PCI interrupts across the bridge. This
fixes problems with motherboards (typically laptops) whose BIOS doesn't
provide a PRT for the AGP bridge even though there is a device entry for
the bridge in the ACPI namespace.
Tested by: Kenneth Culver culverk at sweetdreamsracing dot biz
2004-05-10 18:26:22 +00:00
David E. O'Brien
c337dbb2f2
Use pcbp->pcb_ufp for UltraSparc vs. ->pcb_fp.
2004-05-10 17:45:51 +00:00
Diomidis Spinellis
857b57eae1
Remove a trailing newline, to behave as documented in syslog(3):
...
"A trailing newline is added if none is present."
The code in syslogd, stderr, and console output always adds a newline
at the EOL. However, the existing code never actually removed a
trailing newline, and apparently relied on syslogd to convert it
into a space character. Thus, the existing newline was converted
to a trailing space at the EOL by syslogd, while stderr, and console
output resulted in an empty line.
MFC after: 2 weeks
2004-05-10 17:12:52 +00:00
Olivier Houchard
72d8d1c7f3
Do not attempt ro read more than sizeof(buf) from stdin.
2004-05-10 15:52:16 +00:00
Christian S.J. Peron
3581cc66bb
Zero the un-used portions of the struct sockaddr data before sending
...
it back to userspace, so it does not break bind(2) on raw sockets in jails.
Currently some processes, like traceroute(8) construct a routing request
to determine its source address based on the destination. This sockaddr
data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to
make sure the address exists on the interface, the comparison will
fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed
before initialization.
Approved by: bmilekic (mentor)
2004-05-10 15:07:23 +00:00
David E. O'Brien
9c4b841b67
We don't support USB devices in PAE mode, so catch up with GENERIC rev 1.402.
2004-05-10 14:23:36 +00:00
Bruce Evans
b37af785fb
Fixed mispelling of SCRIPTS as SCRIPT.
2004-05-10 13:17:08 +00:00
Dag-Erling Smørgrav
611b4102ed
-W{missing,strict}-prototypes do not make sense for C++, and gcc34 will
...
complain about them, so remove them from CXXFLAGS.
2004-05-10 12:14:18 +00:00
Maxime Henrion
c5c09c282b
- Remove the __FBSDID and put the $FreeBSD$ tag in the comment above,
...
so that including this file more than once works.
- Fix some style bugs while I'm here.
2004-05-10 11:50:21 +00:00
Maxime Henrion
d170b1ebab
Prefer explicit ints to implicit ints in the prototype as well as in
...
the function definition.
2004-05-10 11:17:20 +00:00
Maxime Henrion
406e2f168e
- Fix a typo in a printf(). [1]
...
- Fix some other style bugs while I'm here.
Submitted by: Koop Mast <kwm@rainbow-runner.nl> [1]
Fixes PR: sparc64/66448 [1]
2004-05-10 11:07:21 +00:00
Pawel Jakub Dawidek
d4bd6f11c7
Add myself as maintainer for geom_concat and geom_gate.
2004-05-10 10:07:25 +00:00
Bruce Evans
d98d9ce623
Fixed style bugs in previous commit (bogus forward declaration and
...
inconsistent capitalization in comments).
2004-05-10 09:36:26 +00:00
Maksim Yevmenkin
92f4dabf30
Resync
2004-05-10 02:26:49 +00:00
Maksim Yevmenkin
73a4a9a759
Mode few Bluetooth defines into system include files
...
Reviewed by: imp
2004-05-10 02:24:56 +00:00