]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoRetire the failed OBSOLETE_IN_6 experiment code.
imp [Sun, 29 Oct 2006 20:03:55 +0000 (20:03 +0000)]
Retire the failed OBSOLETE_IN_6 experiment code.

17 years agoAdd missing headers.
marius [Sun, 29 Oct 2006 17:23:54 +0000 (17:23 +0000)]
Add missing headers.

17 years agoBecause the BTX mini-kernel now uses flat memory mode and clients
ru [Sun, 29 Oct 2006 14:50:58 +0000 (14:50 +0000)]
Because the BTX mini-kernel now uses flat memory mode and clients
are no longer limited to a virtual address space of 16 megabytes,
only mask high two bits of a virtual address.  This allows to load
larger kernels (up to 1 gigabyte).  Not masking addresses at all
was a bad idea on machines with less than >3G of memory -- kernels
are linked at 0xc0xxxxxx, and that would attempt to load a kernel
at above 3G.  By masking only two highest bits we stay within the
safe limits while still allowing to boot larger kernels.

(This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c
rev. 1.71.)

Prodded by: jhb
Tested by: nyan (pc98)

17 years agoregen after linux_io_* backout
netchild [Sun, 29 Oct 2006 14:12:44 +0000 (14:12 +0000)]
regen after linux_io_* backout

17 years agoBackout the linux aio stuff. Several problems where identified and the
netchild [Sun, 29 Oct 2006 14:02:39 +0000 (14:02 +0000)]
Backout the linux aio stuff. Several problems where identified and the
dynamic nature (if no native aio code is available, the linux part
returns ENOSYS because of missing requisites) should be solved differently
than it is.

All this will be done in P4.

Not included in this commit is a backout of the changes to the native aio
code (removing static in some places). Those changes (and some more) will
also be needed when the reworked linux aio stuff will reenter the tree.

Requested by: rwatson
Discussed with: rwatson

17 years agoDo not try to rtsol on pflog or pfsync devices.
mlaier [Sun, 29 Oct 2006 13:29:49 +0000 (13:29 +0000)]
Do not try to rtsol on pflog or pfsync devices.

17 years ago- Use non-recursive mutex. MTX_RECURSE is unnecessary since rev. 1.70
oleg [Sun, 29 Oct 2006 12:09:24 +0000 (12:09 +0000)]
- Use non-recursive mutex. MTX_RECURSE is unnecessary since rev. 1.70
- Pay respect to net.isr.direct: use netisr_dispatch() instead of ip_input()

Reviewed by: glebius, rwatson

- purge_flow_set():
    - Do not leak memory while purging queues which are not bound to pipe.
    - style(9) cleanup

MFC after: 2 months

17 years agostyle(9)
netchild [Sun, 29 Oct 2006 09:50:55 +0000 (09:50 +0000)]
style(9)

Noticed by: rwatson

17 years agoRemoved some SMP ifdefs so that using the TSC as a cputime clock is
bde [Sun, 29 Oct 2006 09:48:44 +0000 (09:48 +0000)]
Removed some SMP ifdefs so that using the TSC as a cputime clock is
not completely decided at config time.  Just don't default to using
the TSC if there are multiple active CPUs.  Also, don't default to
using the TSC if it is broken.  SMP ifdefs are still used to disallow
using perfmon since perfmon is always broken if SMP is just configured.

This only helps much for SMP kernels running on 1 CPU.  The overheads
for using the i8254 cputime clock were a bit too high on 486/33's, and
now on multi-GHz CPUs they are usually in the 99-99.9% range.  Switching
from the old default of an i8254 clock to the TSC works poorly because
the overheads are not recalibrated.

Use the same condition for declaring perfmon stuff as for using it.

17 years agoRefactor vfs_setdirty(), creating vfs_setdirty_locked_object().
alc [Sun, 29 Oct 2006 00:04:39 +0000 (00:04 +0000)]
Refactor vfs_setdirty(), creating vfs_setdirty_locked_object().

Call vfs_setdirty_locked_object() from vfs_busy_pages() instead of
vfs_setdirty(), thereby eliminating a second acquisition and release
of the same vm object lock.

17 years agoGive rc.firewall a polish and a new method.
phk [Sat, 28 Oct 2006 20:08:12 +0000 (20:08 +0000)]
Give rc.firewall a polish and a new method.

Factor out the loopback setup

Use "me" instead of hardcoded $ip where possible.

Add "workstation" which protects just this machine with stateful
    firewalling.  Put the variables for this in rc.conf.

Submitted by: Flemming Jacobsen <fj@batmule.dk>
Reviewed by: cperciva

17 years agoIn bufdone_finish() restrict the acquisition and release of the page
alc [Sat, 28 Oct 2006 19:16:57 +0000 (19:16 +0000)]
In bufdone_finish() restrict the acquisition and release of the page
queues lock to BIO_READ operations.  Recent changes to the implementation
of the per-page flags have eliminated the need for the page queues lock
in the other cases.

17 years agoFix style(9).
netchild [Sat, 28 Oct 2006 16:47:38 +0000 (16:47 +0000)]
Fix style(9).

Noticed by: rwatson

17 years agoBacked out rev.1.10 (a special case for amd64). The amd64 mcount code
bde [Sat, 28 Oct 2006 13:34:35 +0000 (13:34 +0000)]
Backed out rev.1.10 (a special case for amd64).  The amd64 mcount code
never needed any frame pointers for itself.

17 years agoIn the userland .mcount():
bde [Sat, 28 Oct 2006 13:12:06 +0000 (13:12 +0000)]
In the userland .mcount():
- Don't use a frame pointer.  Our callers need a frame pointer, but we
  could only use one to support things that aren't supported.  (These
  things are:
  - profiling of profiling
  - debugging of profiling.  The core ENTRY() macro doesn't support
    forcing a frame pointer for debugging, so don't do more here.)
- Ensure that we are in the text section and have normal alignment.
- Use the normal syntax for `.type'.

17 years agoAdd missing markup bits.
ru [Sat, 28 Oct 2006 13:05:10 +0000 (13:05 +0000)]
Add missing markup bits.

Submitted by: Emil Mikulic

17 years agoregen (prctl addition)
netchild [Sat, 28 Oct 2006 11:24:38 +0000 (11:24 +0000)]
regen (prctl addition)

17 years agoi386/include/profile.h:
bde [Sat, 28 Oct 2006 11:03:03 +0000 (11:03 +0000)]
i386/include/profile.h:
Fixed a syntax error for the (!__KERNEL && !__GNUCLIKE_ASM) case in
rev.1.36.  Apparently, this case has never been reached even by lint.

Submitted by: stefanf

{amd64,i386}/include/profile.h:
In case the above case is actually reached, break it properly by
providing null support that will fail at link time instead of a stub
that gives wrong (null) profiling at runtime.

17 years agoMFP4:
netchild [Sat, 28 Oct 2006 10:59:59 +0000 (10:59 +0000)]
MFP4:
Implement prctl().

Submitted by: rdivacky
Tested with: LTP

17 years agoo Fix incorrect function name (kobj_free -> kobj_delete).
maxim [Sat, 28 Oct 2006 10:57:35 +0000 (10:57 +0000)]
o Fix incorrect function name (kobj_free -> kobj_delete).

Obtained from: DragonFlyBSD
MFC after: 1 week

17 years agoo Fix function name.
maxim [Sat, 28 Oct 2006 10:53:39 +0000 (10:53 +0000)]
o Fix function name.

Obtained from: DragonFlyBSD
MFC after: 1 week

17 years agoMFP4:
netchild [Sat, 28 Oct 2006 09:51:10 +0000 (09:51 +0000)]
MFP4:
Rename MAX_SAMPLE_RATES macro to OSS_MAX_SAMPLE_RATES.  The old
macro clashed with those used in other applications and libaries
(ex: RtAudio).  4Front responded by updating their spec, so we
will follow suit.

Submitted by: ryanb
Noticed by: pointyhat/kris

17 years agoBackout bogus checkin to HEAD
jfv [Sat, 28 Oct 2006 08:11:07 +0000 (08:11 +0000)]
Backout bogus checkin to HEAD
Approved by: scottl

17 years agoIn MCOUNT_OVERHEAD(label), actually use the `label' parameter. We were
bde [Sat, 28 Oct 2006 07:59:11 +0000 (07:59 +0000)]
In MCOUNT_OVERHEAD(label), actually use the `label' parameter.  We were
still using the global label named "profil", and this worked accidentally
because all callers use the same name.

17 years agoDocument Soekris net48xx support.
brueffer [Sat, 28 Oct 2006 07:26:50 +0000 (07:26 +0000)]
Document Soekris net48xx support.

PR: docs/104865
Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>

17 years agoCleaned up includes. <machine/profile.h> was unused. <machine/timerreg.h>
bde [Sat, 28 Oct 2006 06:38:51 +0000 (06:38 +0000)]
Cleaned up includes.  <machine/profile.h> was unused.  <machine/timerreg.h>
was only used in the GUPROF case, so the messes to get its i386 prerequisites
included shouldn't have been needed.

Fixed some style bugs. Quote #error contents, and don't repeat an #error
directive on amd64.

17 years agoRemoved all traces of HIDENAME() in amd64 and i386 kernel code. Using
bde [Sat, 28 Oct 2006 06:04:29 +0000 (06:04 +0000)]
Removed all traces of HIDENAME() in amd64 and i386 kernel code.  Using
this used to be slightly cleaner than using ifdefs in a few places to
support both a.out and elf, but using it now just causes messes and
unportabilities.  It seems to be impossible to implement the elf
HIDENAME() portably in cpp (since token pasting of "." and <name> is
invalid).

*/prof_machdep.c:
- Removed all uses of CNAME().  CNAME() is easy enough to use in pure
  asm code, but using it in inline asm requires messy quoting.  The
  core pure asm code has been hacked on more and all uses of CNAME() in
  it have already gone away.  Just assume the elf convention here too.
- Removed now-uneeded include of <machine/asmacros.h>.
- Removed the workaround for a namespace conflict with this include.

17 years agoThis is the merge of the Intel 6.2.9 driver. It provides all new shared code,
jfv [Sat, 28 Oct 2006 00:47:55 +0000 (00:47 +0000)]
This is the merge of the Intel 6.2.9 driver. It provides all new shared code,
new device support, and it is hoped a more stable driver for 6.2. RELEASE.
This checkin was discussed and approved today by RE, scottl, jhb, and pdeuskar

17 years agoDon't call mexitcount or provide a stub mexitcount to call when
bde [Fri, 27 Oct 2006 14:17:50 +0000 (14:17 +0000)]
Don't call mexitcount or provide a stub mexitcount to call when
profiling is configured but high resolution profiling is not configured.
Only functions in *.[Ss] called the stub, so efficiency was not
significantly affected.

17 years ago- Convert
oleg [Fri, 27 Oct 2006 13:05:37 +0000 (13:05 +0000)]
- Convert
net.inet.ip.dummynet.curr_time
net.inet.ip.dummynet.searches
net.inet.ip.dummynet.search_steps
  to SYSCTL_LONG nodes. It will prevent frequent wrap around on 64bit archs.

- Implement simple mechanics for dummynet(4) internal time correction.
  Under certain circumstances (system high load, dummynet lock contention, etc)
  dummynet's tick counter can be significantly slower than it should be.
  (I've observed up to 25% difference on one of my production servers).
  Since this counter used for packet scheduling, it's accuracy is vital for
  precise bandwidth limitation.

  Introduce new sysctl nodes:
  net.inet.ip.dummynet.
    tick_lost - number of ticks coalesced by taskqueue thread.
    tick_adjustment - number of time corrections done.
    tick_diff - adjusted vs non-adjusted tick counter difference
    tick_delta - last vs 'standard' tick differnece (usec).
    tick_delta_sum - accumulated (and not corrected yet) time
     difference (usec).

Reviewed by: glebius
MFC after: 2 month

17 years agoUse separate thread for servicing dummynet(4).
oleg [Fri, 27 Oct 2006 11:16:58 +0000 (11:16 +0000)]
Use separate thread for servicing dummynet(4).
Utilize taskqueue(9) API.

Submitted by: glebius
MFC after: 2 month

17 years agostyle(9) cleanup.
oleg [Fri, 27 Oct 2006 10:52:32 +0000 (10:52 +0000)]
style(9) cleanup.

MFC after: 2 month

17 years agoWording nits.
trhodes [Fri, 27 Oct 2006 08:26:24 +0000 (08:26 +0000)]
Wording nits.

17 years agoRemove member p_procscopegrp which is no longer used by libthr.
davidxu [Fri, 27 Oct 2006 05:45:44 +0000 (05:45 +0000)]
Remove member p_procscopegrp which is no longer used by libthr.

17 years agoAdd MPEG2-TS/HDV support to fwcontrol.
imp [Thu, 26 Oct 2006 22:33:38 +0000 (22:33 +0000)]
Add MPEG2-TS/HDV support to fwcontrol.

Submitted by: Petr Holub" <hopet@ics.muni.cz>
Clean up by: mi@
Pr: 98134

17 years agoRemove the KSE option now that it's in DEFAULTS on these arches/machines.
jb [Thu, 26 Oct 2006 22:11:35 +0000 (22:11 +0000)]
Remove the KSE option now that it's in DEFAULTS on these arches/machines.

The 'nooption' kernel config entry has to be used to turn KSE off now.
This isn't my preferred way of dealing with this, but I'll defer to
scottl's experience with the io/mem kernel option change and the grief
experienced over that.

Submitted by: scottl@

17 years agoAdd 'options KSE' to the kernel config DEFAULTS on all arches/machines
jb [Thu, 26 Oct 2006 22:05:25 +0000 (22:05 +0000)]
Add 'options KSE' to the kernel config DEFAULTS on all arches/machines
except sun4v.

This change makes the transition from a default to an option more
transparent and is an attempt to head off all the compliants that are
likely from people who don't read UPDATING, based on experience with
the io/mem change.

Submitted by: scottl@

17 years agoMake KSE a kernel option, turned on by default in all GENERIC
jb [Thu, 26 Oct 2006 21:42:22 +0000 (21:42 +0000)]
Make KSE a kernel option, turned on by default in all GENERIC
kernel configs except sun4v (which doesn't process signals properly
with KSE).

Reviewed by: davidxu@

17 years agoAdopt comments borrowed from aout_freebsd.c.
ru [Thu, 26 Oct 2006 20:04:22 +0000 (20:04 +0000)]
Adopt comments borrowed from aout_freebsd.c.

17 years agoRestore support for -c and -d that were treacherously murdered in
ru [Thu, 26 Oct 2006 19:41:02 +0000 (19:41 +0000)]
Restore support for -c and -d that were treacherously murdered in
rev. 1.58.  (This only costs us four bytes.)

Prodded by: bde
MFC after: 3 days

17 years agoBack out rev. 1.71 as it breaks directly loading (i386) kernels.
ru [Thu, 26 Oct 2006 19:15:54 +0000 (19:15 +0000)]
Back out rev. 1.71 as it breaks directly loading (i386) kernels.

OK'ed by: jhb
PR: i386/96430, i386/104709
MFC after: 3 days

17 years agoMF kmod.mk 1.176: Properly handle vnode_if.h dependencies.
ru [Thu, 26 Oct 2006 19:04:20 +0000 (19:04 +0000)]
MF kmod.mk 1.176: Properly handle vnode_if.h dependencies.

Instructed by: bde

17 years agoFixed high resolution profiling on arches that support it (amd64 and
bde [Thu, 26 Oct 2006 15:16:43 +0000 (15:16 +0000)]
Fixed high resolution profiling on arches that support it (amd64 and
i386).  Use -mprofiler-epilogue again, and don't use -finstrument-functions.
The former has been fixed for arches that implement high-res profiling,
and the latter has been useless for kernel profiling since gcc-3.4
when it started forcing -fno-inline.  -fno-inline gives a kernel with
performance characteristics too different from a normal kernel to be
worth profiling, by turning off inlining of all the little optimized
functions in headers.  This interacts especially badly with FreeBSD's
use of "static inline" for all inlines in headers, by creating many
separate copies of the little functions, so not inlining tends to
increase cache pressure where it should reduce it, and (since gprof(1)
doesn't understand the copies) the statistics for the little functions
are hard to interpret even if you want them.

17 years agoThe attempt to rename "." with MAC framework compiled in would cause attempt
kib [Thu, 26 Oct 2006 13:20:28 +0000 (13:20 +0000)]
The attempt to rename "." with MAC framework compiled in would cause attempt
to twice unlock the vnode. Check that ni_vp and ni_dvp are different before
doing second unlock.

Reviewed by: rwatson
Approved by: pjd (mentor)
MFC after: 1 week

17 years agoBetter align output of "show uma" by moving from displaying the basic
rwatson [Thu, 26 Oct 2006 12:55:32 +0000 (12:55 +0000)]
Better align output of "show uma" by moving from displaying the basic
counters of allocs/frees/use for each zone to the same statistics
shown by userspace "vmstat -z".

MFC after: 3 days

17 years agoFix leak in NAMEI zone caused by nfs server when VOP_RENAME fails.
kib [Thu, 26 Oct 2006 12:41:53 +0000 (12:41 +0000)]
Fix leak in NAMEI zone caused by nfs server when VOP_RENAME fails.

Submitted by: Padma Bhooma <pbhooma at panasas com>
Reviewed by: bde
Approved by: pjd (mentor)
MFC after: 1 week

17 years agoReduced the ifdef tangle for profiling by moving the unreachable
bde [Thu, 26 Oct 2006 11:53:25 +0000 (11:53 +0000)]
Reduced the ifdef tangle for profiling by moving the unreachable
never-working parts for icc to the attic.

Fixed some nearby style bugs.

17 years agoIncrease usefulness of "show malloc" by moving from displaying the basic
rwatson [Thu, 26 Oct 2006 10:17:13 +0000 (10:17 +0000)]
Increase usefulness of "show malloc" by moving from displaying the basic
counters of allocs/frees/use for each malloc type to calculating InUse,
MemUse, and Requests as displayed by the userspace vmstat -m.  This is
more useful when debugging malloc(9)-related memory leaks, where the
count of allocs/frees may not usefully reflect that current memory
allocation (i.e., when highly variable size allocations occur with the
same malloc type, such as with contigmalloc).

MFC after: 3 days
Limitations observed by: scottl

17 years agoOptimize umtx_lock_pi() a bit by moving some heavy code out of the loop,
davidxu [Thu, 26 Oct 2006 09:33:34 +0000 (09:33 +0000)]
Optimize umtx_lock_pi() a bit by moving some heavy code out of the loop,
make a fast path when a umtx_pi can be allocated without being blocked.

17 years agoRe-sync'ing pf rules in post command as we already did for ipfilter.
avatar [Thu, 26 Oct 2006 00:29:43 +0000 (00:29 +0000)]
Re-sync'ing pf rules in post command as we already did for ipfilter.

With this patch, pf rules with dynamically created devices such like tun0
works without further intervention.

Reviewed by: mlaier
MFC after: 3 days

17 years agoFix a bug converting a variable from the numeric type to a string.
ru [Wed, 25 Oct 2006 21:23:20 +0000 (21:23 +0000)]
Fix a bug converting a variable from the numeric type to a string.

PR: bin/104795
MFC after: 3 days

17 years agoLet allow to teardown multiple irqs as well.
cognet [Wed, 25 Oct 2006 21:11:46 +0000 (21:11 +0000)]
Let allow to teardown multiple irqs as well.

17 years agoSetup multiple interrupts if needed.
cognet [Wed, 25 Oct 2006 21:00:08 +0000 (21:00 +0000)]
Setup multiple interrupts if needed.

17 years agoFix LEDs not working when atkbd is an active keyboard and the physical
ru [Wed, 25 Oct 2006 13:35:42 +0000 (13:35 +0000)]
Fix LEDs not working when atkbd is an active keyboard and the physical
keyboard is attached only after the system has already booted.

If USB keyboard is also present, and there's no kbdmux(4), the problem
has been hiding itself because as soon as we get to multi-user, the
USB keyboard becomes an active keyboard (see devd.conf), thus marking
atkbd inactive and letting the old code initialize the keyboard.

With kbdmux(4), or if there's no USB keyboard, the atkbd keyboard is
always active, whether it's physically attached or not, thus it never
initialized itself properly on a physical attach.

To fix this, move block that initialized the keyboard on attach upper
so it doesn't depend on the (KBD_IS_ACTIVE(kbd) && KBD_IS_BUSY(kbd))
condition.  Also move KBD_FOUND_DEVICE() a few lines upper so that
KDSETLED and KDSETREPEAT that follow it propagate to the controller.

MFC after: 3 days

17 years agoRemove extra _MAC_ from #ifdef guard.
rwatson [Wed, 25 Oct 2006 13:14:25 +0000 (13:14 +0000)]
Remove extra _MAC_ from #ifdef guard.

17 years agoFix non-working CAPS LED under X by applying fix from atkbd.c,v 1.27:
ru [Wed, 25 Oct 2006 12:22:19 +0000 (12:22 +0000)]
Fix non-working CAPS LED under X by applying fix from atkbd.c,v 1.27:

: revision 1.27
: date: 2000/05/28 12:43:24;  author: ache;  state: Exp;  lines: +3 -2
: Manipulate with AltGR Led (really CapsLock Led) only in K_XLATE mode, because
: all other modes not set ALKED flag and it means that CapsLock always turned
: off for them.
: Real bug example is X11 which never turn on CapsLock with Russian keyboard.
:
: PR:             18651
: Submitted by:   "Mike E. Matsnev" <mike@po.cs.msu.su>

MFC after: 3 days

17 years agoForce the use of the tbl(1) preprocessor.
ru [Wed, 25 Oct 2006 10:44:59 +0000 (10:44 +0000)]
Force the use of the tbl(1) preprocessor.

17 years ago- Don't pass an empty ``NM='' to lorder(1) when NM is unset.
ru [Wed, 25 Oct 2006 09:43:38 +0000 (09:43 +0000)]
- Don't pass an empty ``NM='' to lorder(1) when NM is unset.
- Don't redundantly use "env".
- Protect NM value with quotes, just in case.

17 years agoDocument the NM environment variable.
ru [Wed, 25 Oct 2006 09:40:07 +0000 (09:40 +0000)]
Document the NM environment variable.

17 years agoMFp4: Move the parameters that are basically dictated by the AT91
imp [Wed, 25 Oct 2006 08:00:11 +0000 (08:00 +0000)]
MFp4: Move the parameters that are basically dictated by the AT91
organization to that file.

17 years agoMFp4: Status register bits
imp [Wed, 25 Oct 2006 07:58:18 +0000 (07:58 +0000)]
MFp4: Status register bits

17 years agoFixed -mprofiler-epilogue. The garbage collector apparently doesn't
bde [Wed, 25 Oct 2006 07:29:22 +0000 (07:29 +0000)]
Fixed -mprofiler-epilogue.  The garbage collector apparently doesn't
understand that non-local variables can never be collected, and when
it collected the static variable for mexitcount_libfunc, gcc aborted
on the next use of this variable.

This quick fix is to reinitialize the variable on every use and depend
on garbage collection recovering the small amount of memory wasted by
this, and not worry by the small amount of time wasted by this.  It
would be better to initialize the variable together with most of the
other libfuncs in optabs.c and depend on whatever magic is there to
prevent its collection, but we initialize it here to avoid taking at
least 2 more files off the vendor branch.

17 years agoIn order to eliminate a branch, convert opcode to unsigned integer.
davidxu [Wed, 25 Oct 2006 06:38:46 +0000 (06:38 +0000)]
In order to eliminate a branch, convert opcode to unsigned integer.

17 years agoEliminate an unnecessary `if' statement.
davidxu [Wed, 25 Oct 2006 06:28:23 +0000 (06:28 +0000)]
Eliminate an unnecessary `if' statement.

17 years agoMove sigqueue_take() call into proc_reparent(), this fixed bugs where
davidxu [Wed, 25 Oct 2006 06:18:04 +0000 (06:18 +0000)]
Move sigqueue_take() call into proc_reparent(), this fixed bugs where
proc_reparent() is called but sigqueue_take() is forgotten.

17 years ago- Update USB HID usage tables according to the following specs:
markus [Tue, 24 Oct 2006 23:52:22 +0000 (23:52 +0000)]
- Update USB HID usage tables according to the following specs:
  * USB HID Usage Tables, V1.12
  * USB Monitor Control Class Specification, V1.0
  * USB Usage Tables for HID Power Devices, V1.0
  * USB Device Class Definition for Physical Devices, V1.0
  * USB HID Point of Sale Usage Tables, V1.02
- Fix spelling of 'Microsoft'
- Bring the so called Microsoft page, in line with the style of the rest of
  the file.
- Remove NetBSD version string as it doesn't reflect reality any longer

Approved by: emax (mentor)

17 years agoOoops, dump_avail[i] can be 0 if the RAM starts at 0x00000000, so check that
cognet [Tue, 24 Oct 2006 23:27:52 +0000 (23:27 +0000)]
Ooops, dump_avail[i] can be 0 if the RAM starts at 0x00000000, so check that
dump_avail[i + 1] is == 0 as a stop condition instead.
MFC after: 3 days

17 years agoBizet was only born once.
grog [Tue, 24 Oct 2006 23:18:07 +0000 (23:18 +0000)]
Bizet was only born once.

17 years agoTwo tiny style fixes.
ru [Tue, 24 Oct 2006 22:16:51 +0000 (22:16 +0000)]
Two tiny style fixes.

17 years agoRevert rev. 1.86 by jmallett@ as it breaks "ro" mounts specified
ru [Tue, 24 Oct 2006 22:02:29 +0000 (22:02 +0000)]
Revert rev. 1.86 by jmallett@ as it breaks "ro" mounts specified
in /etc/fstab.

This has been happening due to the priority inversion; options
specified on the command line should take precedence over options
from fstab over default "noro" option, but since both the default
"noro" and options specified on the command line (-w, -r, -o ...)
were put into the same "options" variable, "noro" took precedence
over fstab "ro" (this is easily visible with "mount -d").

PR: bin/100164

17 years agoThe AUTO_KEYBOARD_DETECT is useful on amd64 as well.
ru [Tue, 24 Oct 2006 21:00:49 +0000 (21:00 +0000)]
The AUTO_KEYBOARD_DETECT is useful on amd64 as well.

17 years agoRemove hint.atkbd.0.flags="0x1" from the installation device.hints;
ru [Tue, 24 Oct 2006 20:52:06 +0000 (20:52 +0000)]
Remove hint.atkbd.0.flags="0x1" from the installation device.hints;
kbdmux(4) is available during install and should take care of USB
keyboards.

17 years agoFix the description of "media-type".
ru [Tue, 24 Oct 2006 20:20:41 +0000 (20:20 +0000)]
Fix the description of "media-type".

17 years agoFlesh out the compatibility section a little bit. Bump doc date.
trhodes [Tue, 24 Oct 2006 18:42:42 +0000 (18:42 +0000)]
Flesh out the compatibility section a little bit.  Bump doc date.

17 years agoBackout previous change (SIGSYS related). The fix has been applied to the
sobomax [Tue, 24 Oct 2006 17:41:28 +0000 (17:41 +0000)]
Backout previous change (SIGSYS related). The fix has been applied to the
proper place.

Pointed out by: rwatson

17 years agoRegen.
sobomax [Tue, 24 Oct 2006 17:25:36 +0000 (17:25 +0000)]
Regen.

17 years agoFix kernel breakage introduced in the previous commit (redeclatation
sobomax [Tue, 24 Oct 2006 17:24:11 +0000 (17:24 +0000)]
Fix kernel breakage introduced in the previous commit (redeclatation
of the audit functions).

17 years agoMerge res_send.c of BIND9 9.3.3rc2 into main chunk. It includes
ume [Tue, 24 Oct 2006 14:41:43 +0000 (14:41 +0000)]
Merge res_send.c of BIND9 9.3.3rc2 into main chunk.  It includes
following fix:

Retransmission timeouts should be based on which attempt
it is to the nameserver and not the nameserver itself.

Obtained from: ISC
MFC after: 3 days

17 years agoRegenerate.
rwatson [Tue, 24 Oct 2006 13:54:56 +0000 (13:54 +0000)]
Regenerate.

17 years agoHook up audit functions in the freebsd32 compatibility code. It is
rwatson [Tue, 24 Oct 2006 13:49:44 +0000 (13:49 +0000)]
Hook up audit functions in the freebsd32 compatibility code.  It is
believed these likely don't require wrappers.

Reported by: sobomax
MFC after: 3 days

17 years agoReduce our pointy-hat pool capacity by one (i.e. bump manpage date,
keramida [Tue, 24 Oct 2006 13:27:08 +0000 (13:27 +0000)]
Reduce our pointy-hat pool capacity by one (i.e. bump manpage date,
after the last change to this manpage).

Reminded by: ru

17 years agoDocument NO_IGNORE and its interation with FORBIDDEN.
keramida [Tue, 24 Oct 2006 12:30:28 +0000 (12:30 +0000)]
Document NO_IGNORE and its interation with FORBIDDEN.

Triggered by:    a question by Panagiotis Hadgis <hadgis@ceid.upatras.gr>

17 years agoProtect sigqueue_take() call by child process's lock, it fixed a
davidxu [Tue, 24 Oct 2006 12:04:21 +0000 (12:04 +0000)]
Protect sigqueue_take() call by child process's lock, it fixed a
potential race with ptrace 'attach' which changes parent of the
child process.

17 years agoDitch crummy fattime <--> timespec conversion functions
phk [Tue, 24 Oct 2006 11:55:18 +0000 (11:55 +0000)]
Ditch crummy fattime <--> timespec conversion functions

17 years agoDrop crummy fattime to timespec conversion routines.
phk [Tue, 24 Oct 2006 11:43:41 +0000 (11:43 +0000)]
Drop crummy fattime to timespec conversion routines.

Leave a XXX here for anybody able to test.

17 years ago(Forced commit.) Forgot to note that previous change was
ru [Tue, 24 Oct 2006 11:20:29 +0000 (11:20 +0000)]
(Forced commit.)  Forgot to note that previous change was

Submitted by: Stepan A. Baranov

17 years agoRemove the non-standard and undocumented STAILQ_REMOVE_HEAD_UNTIL()
ru [Tue, 24 Oct 2006 11:19:21 +0000 (11:19 +0000)]
Remove the non-standard and undocumented STAILQ_REMOVE_HEAD_UNTIL()
macro now that we no longer use it.

17 years agoSwitch to using STAILQ_REMOVE_HEAD() instead of STAILQ_REMOVE_HEAD_UNTIL().
ru [Tue, 24 Oct 2006 11:17:46 +0000 (11:17 +0000)]
Switch to using STAILQ_REMOVE_HEAD() instead of STAILQ_REMOVE_HEAD_UNTIL().

Submitted by: Stepan A. Baranov

This corresponds to OpenBSD rev. 1.134:

: revision 1.134
: date: 2004/05/04 16:59:31;  author: grange;  state: Exp;  lines: +10 -10
: Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.
: This matches our SLIST behaviour and NetBSD's SIMPLEQ as well.
:
: ok millert krw deraadt

17 years agoReplace slightly crummy fattime<->timespec conversion functions.
phk [Tue, 24 Oct 2006 11:14:05 +0000 (11:14 +0000)]
Replace slightly crummy fattime<->timespec conversion functions.

17 years agoBetter naming of fattime conversion functions, they do convert to timespec
phk [Tue, 24 Oct 2006 10:27:23 +0000 (10:27 +0000)]
Better naming of fattime conversion functions, they do convert to timespec
after all.

Add 'utc' argument to control if fattimestamps are on UTC or local timezone
calendar.

17 years agoDocument net.link.bridge.ipfw_arp for filtering ARP packets with ipfw.
thompsa [Tue, 24 Oct 2006 08:47:39 +0000 (08:47 +0000)]
Document net.link.bridge.ipfw_arp for filtering ARP packets with ipfw.

MFC after: 3 days

17 years agoRefine the checksum hack a little. It appears that the chip can handle UDP
scottl [Tue, 24 Oct 2006 08:24:31 +0000 (08:24 +0000)]
Refine the checksum hack a little.  It appears that the chip can handle UDP
and TCP checksum offloading fine, it only has a problem with IP checksums on
IP fragments..  Barring a fix or workaround available from the hardware, the
real solution would be to have finer grained control in the stack over what
can and cannot be assisted in hardware.

17 years agoIgnore SIGSYS when BSM is compiled in. Otherwise, attempt to invoke su on
sobomax [Tue, 24 Oct 2006 08:18:10 +0000 (08:18 +0000)]
Ignore SIGSYS when BSM is compiled in. Otherwise, attempt to invoke su on
system that don't have audit framefork compiled into kernel or ia32 binary
on amd64 system will result in SIGSYS. There is one place in su.c itself
where it tries to check for errno != ENOSYS, but it has been a nop since su
does not catch SIGSYS anyway. There are few other places in libbsm,
where attempt to invoke audit syscal would result in SIGSYS if no audit
support is present in the kernel, so that the only reliable method for
now is to disable SIGSYS completely in the case when BSM is compiled in.

In the long run, both direct invocation of audit-related syscalls and
libbsm should be made more intellegent to handle the case when BSM is not
compiled into the kernel gracefully.

MFC after: 3 days
           (provided re@ approval)

17 years agoDon't leak files.
imp [Tue, 24 Oct 2006 07:12:31 +0000 (07:12 +0000)]
Don't leak files.
This also eliminates the need for ifp init.

Submitted by: ru@

17 years agoDocument multiple hints lines.
imp [Tue, 24 Oct 2006 00:44:40 +0000 (00:44 +0000)]
Document multiple hints lines.
Tweak machine description to more accurately reflect second argument being
the cpu architecture.  Note correspondence with MACHINE and MACHINE_ARCH.

17 years agoEnd my resistance to jmg's multiple hints files and bring in support
imp [Tue, 24 Oct 2006 00:31:59 +0000 (00:31 +0000)]
End my resistance to jmg's multiple hints files and bring in support
for having multiple hints files generate a correct hints.c (eg, with
all the specified ones catenated together).

17 years agostyle(9) pedantry
imp [Tue, 24 Oct 2006 00:07:39 +0000 (00:07 +0000)]
style(9) pedantry

17 years agoSince multiple hints lines do not work, make doing that a fatal error.
imp [Tue, 24 Oct 2006 00:02:23 +0000 (00:02 +0000)]
Since multiple hints lines do not work, make doing that a fatal error.

17 years agoIf the user did not chose a distribution from the menu, a sensible
erwin [Mon, 23 Oct 2006 20:49:49 +0000 (20:49 +0000)]
If the user did not chose a distribution from the menu, a sensible
default distribution (user) will be installed, however, no kernel
will be installed.  Fix this by installing a sensible default kernel,
SMP/GENERIC, depending on WITH_SMP and number of CPUS found.

Reviewed by:    jhb

17 years agoIt so happens that everything that is stupid is not unconstitutional.
phk [Mon, 23 Oct 2006 13:25:17 +0000 (13:25 +0000)]
It so happens that everything that is stupid is not unconstitutional.
               -- Supreme Court Justice Antonio Scalia