]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoProperly parse the nowin95 mount option.
rodrigc [Sat, 19 Nov 2005 16:38:39 +0000 (16:38 +0000)]
Properly parse the nowin95 mount option.

Tested by: Rainer Hurling <rhurlin at gwdg dot de>

18 years agoMinor tweaks.
damien [Sat, 19 Nov 2005 15:08:05 +0000 (15:08 +0000)]
Minor tweaks.

18 years agoMove MAX_IPOPTLEN and struct ipoption back into ip_var.h as
andre [Sat, 19 Nov 2005 14:01:32 +0000 (14:01 +0000)]
Move MAX_IPOPTLEN and struct ipoption back into ip_var.h as
userland programs depend on it.

Pointed out by: le
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years ago- Move the documentation for the ENABLE_WPA_SUPPLICANT_EAPOL knob to into
jkoshy [Sat, 19 Nov 2005 12:21:11 +0000 (12:21 +0000)]
- Move the documentation for the ENABLE_WPA_SUPPLICANT_EAPOL knob to into
  the list for 'world' builds.
- Increase the width of a bullet list.
- Use .Ss to name sub-sections of this file.

18 years agoDo not explicitly state how many bytes an argument list can be in the
simon [Sat, 19 Nov 2005 11:30:55 +0000 (11:30 +0000)]
Do not explicitly state how many bytes an argument list can be in the
description of E2BIG, since it's now larger on some platforms.

MFC after: 3 days

18 years agoRevert last revision by phk@, it's redundant since bsd.incs.mk
ru [Sat, 19 Nov 2005 07:04:17 +0000 (07:04 +0000)]
Revert last revision by phk@, it's redundant since bsd.incs.mk
already handles this, FWIW.

18 years agoAdd the NO_INCS knob to bsd.prog.mk and bsd.lib.mk to not include
ru [Sat, 19 Nov 2005 06:45:44 +0000 (06:45 +0000)]
Add the NO_INCS knob to bsd.prog.mk and bsd.lib.mk to not include
bsd.incs.mk, and use it when installing 32-bit compat libraries
on amd64.  This causes it to *not* overwrite native headers with
i386 versions, which was the case with <fenv.h> and <vgl.h>.

PR: amd64/83806
Prodded by: bde
MFC after: 1 week

18 years agoo Include <sys/time.h>
marcel [Sat, 19 Nov 2005 04:47:06 +0000 (04:47 +0000)]
o  Include <sys/time.h>
o  Make this ILP32/LP64 clean: cast pointers to long
o  Code conditional upon DEBUG must also be conditional
   upon _LIBC_R_

18 years agoo Include <string.h>
marcel [Sat, 19 Nov 2005 04:45:15 +0000 (04:45 +0000)]
o  Include <string.h>
o  Make this ILP32/LP64 clean: cast pointers to long.

18 years agoFix typo: s/_LIBC_R/_LIBC_R_/
marcel [Sat, 19 Nov 2005 04:43:29 +0000 (04:43 +0000)]
Fix typo: s/_LIBC_R/_LIBC_R_/

18 years agoMoved all the optimizations for |x| <= 9pi/2 from
bde [Sat, 19 Nov 2005 02:38:27 +0000 (02:38 +0000)]
Moved all the optimizations for |x| <= 9pi/2 from
__ieee754_rem_pio2f() to its 3 callers and manually inline them.

On Athlons, with favourable compiler flags and optimizations and
favourable pipeline conditions, this gives a speedup of 30-40 cycles
for cosf(), sinf() and tanf() on the range pi/4 < |x| <= 9pi/4, so
thes functions are now signifcantly faster than the hardware trig
functions in many cases.  E.g., in a benchmark with uniformly distributed
x in [-2pi, 2pi], A64 hardware fcos took 72-129 cycles and cosf() took
37-55 cycles.  Out-of-order execution is needed to get both of these
times.  The optimizations in this commit apparently work more by
removing 1 serialization point than by reducing latency.

18 years agoAdd "shortnames" and "longnames" mount options which are
rodrigc [Fri, 18 Nov 2005 22:34:31 +0000 (22:34 +0000)]
Add "shortnames" and "longnames" mount options which are
synonyms for "shortname" and "longname" mount options.  The old
(before nmount()) mount_msdosfs program accepted "shortnames" and "longnames",
but the kernel nmount() checked for "shortname" and "longname".
So, make the kernel accept "shortnames", "longnames", "shortname", "longname"
for forwards and backwarsd compatibility.

Discovered by: Rainer Hurling <rhurlin at gwdg dot de>

18 years agoural now supports automatic rate adaptation in BSS mode.
damien [Fri, 18 Nov 2005 21:46:28 +0000 (21:46 +0000)]
ural now supports automatic rate adaptation in BSS mode.

18 years agoSecond part of the AMRR commit.
damien [Fri, 18 Nov 2005 21:37:02 +0000 (21:37 +0000)]
Second part of the AMRR commit.
Enable automatic rate adaptation in BSS operating mode.
Works great here.  Will need a lot of testing though.

18 years agoConsolidate all IP Options handling functions into ip_options.[ch] and
andre [Fri, 18 Nov 2005 20:12:40 +0000 (20:12 +0000)]
Consolidate all IP Options handling functions into ip_options.[ch] and
include ip_options.h into all files making use of IP Options functions.

From ip_input.c rev 1.306:
  ip_dooptions(struct mbuf *m, int pass)
  save_rte(m, option, dst)
  ip_srcroute(m0)
  ip_stripoptions(m, mopt)

From ip_output.c rev 1.249:
  ip_insertoptions(m, opt, phlen)
  ip_optcopy(ip, jp)
  ip_pcbopts(struct inpcb *inp, int optname, struct mbuf *m)

No functional changes in this commit.

Discussed with: rwatson
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd sanity checking for QUEUE(3) lists under INVARIANTS. Races may lead
emaste [Fri, 18 Nov 2005 19:41:55 +0000 (19:41 +0000)]
Add sanity checking for QUEUE(3) lists under INVARIANTS.  Races may lead
to list corruption, which can be difficult to unravel in a post-mortem
analysis.  These checks verify that prev and next pointers are consistent
when inserting or removing elements, thus catching any corruption earlier.

Also use TRASHIT to break LIST and SLIST link pointers on element removal,
from mlaier via -hackers.

Reviewed by: mlaier
Approved by: rwatson (mentor)

18 years agoUnifdef for FreeBSD.
ru [Fri, 18 Nov 2005 19:38:45 +0000 (19:38 +0000)]
Unifdef for FreeBSD.

18 years ago- Always print the trap number so that we have something to start with for
jhb [Fri, 18 Nov 2005 19:26:46 +0000 (19:26 +0000)]
- Always print the trap number so that we have something to start with for
  mystery traps.  If we don't have a message for a given trap, just use
  UNKNOWN for the message.
- Add trap messages for T_XMMFLT and T_RESERVED.

MFC after: 1 week

18 years agoDocument CLOCK_UPTIME which returns the current uptime in SI seconds.
andre [Fri, 18 Nov 2005 17:13:22 +0000 (17:13 +0000)]
Document CLOCK_UPTIME which returns the current uptime in SI seconds.
At the moment it is just an alias for CLOCK_MONOTONIC which reports
the same number.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoRemove references to MEXT_ADD_REF, MEXT_REM_REF and MEXT_IS_REF
andre [Fri, 18 Nov 2005 17:04:49 +0000 (17:04 +0000)]
Remove references to MEXT_ADD_REF, MEXT_REM_REF and MEXT_IS_REF
which were removed with rev. 1.179 of mbuf.h.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd CLOCK_UPTIME to clock_gettime(2) reporting the current
andre [Fri, 18 Nov 2005 16:51:13 +0000 (16:51 +0000)]
Add CLOCK_UPTIME to clock_gettime(2) reporting the current
uptime measured in SI seconds.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd support for a new/unreleased Pentium-M.
ps [Fri, 18 Nov 2005 16:47:24 +0000 (16:47 +0000)]
Add support for a new/unreleased Pentium-M.

Reviewed by: jkoshy

18 years agoPurge layer specific mbuf flags on layer crossings to avoid confusing
andre [Fri, 18 Nov 2005 16:23:26 +0000 (16:23 +0000)]
Purge layer specific mbuf flags on layer crossings to avoid confusing
upper or lower layers.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoRework icmp_error() to deal with truncated IP packets from
andre [Fri, 18 Nov 2005 14:48:42 +0000 (14:48 +0000)]
Rework icmp_error() to deal with truncated IP packets from
ip_forward() when doing extended quoting in error messages.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoIn ip_forward() copy as much into the temporary error mbuf as we
andre [Fri, 18 Nov 2005 14:44:48 +0000 (14:44 +0000)]
In ip_forward() copy as much into the temporary error mbuf as we
have free space in it.  Allocate correct mbuf from the beginning.
This allows icmp_error() to quote the entire TCP header in error
messages.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoAdd KASSERTs to M_ALIGN() and MH_ALIGN() to prevent usage on wrong
andre [Fri, 18 Nov 2005 14:40:43 +0000 (14:40 +0000)]
Add KASSERTs to M_ALIGN() and MH_ALIGN() to prevent usage on wrong
mbuf types.

Sponsored by: TCP/IP Optimization Fundraise 2005

18 years agoFix markup, grammar and spelling.
ru [Fri, 18 Nov 2005 14:21:28 +0000 (14:21 +0000)]
Fix markup, grammar and spelling.

18 years agoCross-reference hwpmc(4).
jkoshy [Fri, 18 Nov 2005 14:05:47 +0000 (14:05 +0000)]
Cross-reference hwpmc(4).

18 years agoUnbreak and fix markup.
ru [Fri, 18 Nov 2005 14:01:11 +0000 (14:01 +0000)]
Unbreak and fix markup.

18 years agoFix warning, sort sections.
ru [Fri, 18 Nov 2005 13:53:36 +0000 (13:53 +0000)]
Fix warning, sort sections.

18 years agoMinor markup tweaks.
ru [Fri, 18 Nov 2005 13:50:59 +0000 (13:50 +0000)]
Minor markup tweaks.

18 years agoMinimally fix this manpage to not emit warnings.
ru [Fri, 18 Nov 2005 13:44:44 +0000 (13:44 +0000)]
Minimally fix this manpage to not emit warnings.

18 years agoFix up markup.
ru [Fri, 18 Nov 2005 12:08:31 +0000 (12:08 +0000)]
Fix up markup.

18 years agoProvide a short description.
ru [Fri, 18 Nov 2005 12:01:14 +0000 (12:01 +0000)]
Provide a short description.

18 years agoFix up markup.
ru [Fri, 18 Nov 2005 11:54:14 +0000 (11:54 +0000)]
Fix up markup.

18 years agoFix up markup etc. in recently born manpage.
ru [Fri, 18 Nov 2005 11:53:23 +0000 (11:53 +0000)]
Fix up markup etc. in recently born manpage.

18 years ago-mdoc sweep.
ru [Fri, 18 Nov 2005 10:56:28 +0000 (10:56 +0000)]
-mdoc sweep.

18 years ago-mdoc sweep.
ru [Fri, 18 Nov 2005 10:36:29 +0000 (10:36 +0000)]
-mdoc sweep.

18 years ago- Add parsing for the following existing UFS/FFS mount options in the nmount()
rodrigc [Fri, 18 Nov 2005 06:06:10 +0000 (06:06 +0000)]
- Add parsing for the following existing UFS/FFS mount options in the nmount()
callpath via vfs_getopt(), and set the appropriate MNT_* flag:
  -> acls, async, force, multilabel, noasync, noatime,
  -> noclusterr, noclusterw, snapshot, update

- Allow errmsg as a valid mount option via vfs_getopt(),
  so we can later add a hook to propagate mount errors back
  to userspace via vfs_mount_error().

18 years agoRemoved an unused declaration which was so old that it wasn't a prototype
bde [Fri, 18 Nov 2005 05:03:12 +0000 (05:03 +0000)]
Removed an unused declaration which was so old that it wasn't a prototype
and thus just broke building at any nonzero WARNS level.

Fixed nearby style bugs.

18 years agoFix a bug that caused some /dev entries to continue to exist after
jdp [Fri, 18 Nov 2005 02:43:49 +0000 (02:43 +0000)]
Fix a bug that caused some /dev entries to continue to exist after
the underlying drive had been hot-unplugged from the system.  Here
is a specific example.  Filesystem code had opened /dev/da1s1e.
Subsequently, the drive was hot-unplugged.  This (correctly) caused
all of the associated /dev/da1* entries to be deleted.  When the
filesystem later realized that the drive was gone it closed the
device, reducing the write-access counts to 0 on the geom providers
for da1s1e, da1s1, and da1.  This caused geom to re-taste the
providers, resulting in the devices being created again.  When the
drive was hot-plugged back in, it resulted in duplicate /dev entries
for da1s1e, da1s1, and da1.

This fix adds a new disk_gone() function which is called by CAM when a
drive goes away.  It orphans all of the providers associated with the
drive, setting an error condition of ENXIO in each one.  In addition,
we prevent a re-taste on last close for writing if an error condition
has been set in the provider.

Sponsored by:   Isilon Systems
Reviewed by:    phk
MFC after:      1 week

18 years agodon't match packets other than IPv4 against divert rule.
ume [Fri, 18 Nov 2005 02:23:59 +0000 (02:23 +0000)]
don't match packets other than IPv4 against divert rule.
divert supports only IPv4.

Reported by: SAITOU Toshihide <toshi__at__ruby.ocn.ne.jp>
Discussed with: suz
MFC after: 1 day

18 years agoIn vfs_nmount(), check to see if "update" mount option was passed
rodrigc [Fri, 18 Nov 2005 01:31:10 +0000 (01:31 +0000)]
In vfs_nmount(), check to see if "update" mount option was passed
in, and if so, set MNT_UPDATE filesystem flag.
vfs_nmount() calls vfs_domount(), and there is special logic
inside vfs_domount() if MNT_UPDATE is set.  This is very important
when we want to do an update mount of the root filesystem, using nmount().

18 years agoNo CAVEAT about EISA attachment given that there is no EISA support
wilko [Thu, 17 Nov 2005 21:05:25 +0000 (21:05 +0000)]
No CAVEAT about EISA attachment given that there is no EISA support

Sort of submitted by: jhb
Forgotten in previous commit by: wilko

18 years agoPrint (total - used) as the amount of available swap for a swap device
rwatson [Thu, 17 Nov 2005 19:31:52 +0000 (19:31 +0000)]
Print (total - used) as the amount of available swap for a swap device
when printing swapinfo output, rather than (total), as that is (strictly
speaking) more accurate.

Pointed out by: Rob <spamrefuse at yahoo dot com>
MFC after: 3 days

18 years agoMention that this driver does not work on i386+PAE.
brueffer [Thu, 17 Nov 2005 16:43:56 +0000 (16:43 +0000)]
Mention that this driver does not work on i386+PAE.

Suggested by: scottl
MFC after: 3 days

18 years agoMention BCM5752 support in two more places.
brueffer [Thu, 17 Nov 2005 16:37:16 +0000 (16:37 +0000)]
Mention BCM5752 support in two more places.

18 years agoDocument tunables.
glebius [Thu, 17 Nov 2005 15:10:40 +0000 (15:10 +0000)]
Document tunables.

18 years ago-mdoc sweep.
ru [Thu, 17 Nov 2005 13:00:00 +0000 (13:00 +0000)]
-mdoc sweep.

18 years agoMFOpenBSD 1.62:
glebius [Thu, 17 Nov 2005 12:56:40 +0000 (12:56 +0000)]
MFOpenBSD 1.62:

  Prevent backup CARP hosts from replying to arp requests, fixes strangeness
  with some layer-3 switches. From Bill Marquette.

Tested by: Kazuaki Oda <kaakun highway.ne.jp>

18 years agoWhen a user is in more than 16 groups the call to authunix_create() will
harti [Thu, 17 Nov 2005 12:19:19 +0000 (12:19 +0000)]
When a user is in more than 16 groups the call to authunix_create() will
result in abort() beeing called. This is because there is a limit of
the number of groups in the RPC which is 16. When the actual number of
groups is too large it results in xdr_array() returning an error which,
in turn, authunix_create() handles by just calling abort().

Fix this by passing only the first 16 groups to authunix_create().

18 years agodoc sweep
ru [Thu, 17 Nov 2005 12:16:33 +0000 (12:16 +0000)]
doc sweep

18 years ago-mdoc sweep.
ru [Thu, 17 Nov 2005 12:15:23 +0000 (12:15 +0000)]
-mdoc sweep.

18 years agoCorrectly handle a TCP connection being shutdown by the server while
cperciva [Thu, 17 Nov 2005 11:01:32 +0000 (11:01 +0000)]
Correctly handle a TCP connection being shutdown by the server while
we're reading response headers.  (Handle it as a connection-killing
error, rather than entering an infinite loop reading zero bytes.)

Reported by: simon
Discovered thanks to: A not-very-transparent transparent HTTP proxy.
MFC after: 3 days

18 years ago- Backout last change, since it is memory overkill for a non busy host or
glebius [Thu, 17 Nov 2005 10:13:18 +0000 (10:13 +0000)]
- Backout last change, since it is memory overkill for a non busy host or
  for a notebook with em(4) adapter.
- Introduce tunables em.hw.txd and em.hw.rxd, which allow administrator
  to configure number of transmit and receive descriptors.
- Check em.hw.txd and em.hw.rxd against hardware limits [*] and require
  them to be multiple of 128.

[*] According to comments in if_em.h the 82540EM/82541ER chips can handle
    more than 256 descriptors. Since we don't have this hardware to test,
    we decided to mimic NetBSD wm(4) driver, that limits these chips to
    256 descriptors.

In collaboration with: yongari

18 years agoDo not install boot_i386.8 on all architectures.
ru [Thu, 17 Nov 2005 09:39:36 +0000 (09:39 +0000)]
Do not install boot_i386.8 on all architectures.

18 years agoPrefer NULL to 0.
yongari [Thu, 17 Nov 2005 08:56:21 +0000 (08:56 +0000)]
Prefer NULL to 0.
Add missing lock/unlock in sysctl handler.
Protect accessing NULL pointer when resource allocation was failed.
style(9)

Reviewed by: scottl
MFC after: 1 week

18 years agoRemove vestiges of oldcard and owi.
ru [Thu, 17 Nov 2005 06:51:49 +0000 (06:51 +0000)]
Remove vestiges of oldcard and owi.

18 years agoMinor cleanups:
bde [Thu, 17 Nov 2005 03:53:22 +0000 (03:53 +0000)]
Minor cleanups:

s_cosf.c and s_sinf.c:
Use a non-bogus magic constant for the threshold of pi/4.  It was 2 ulps
smaller than pi/4 rounded down, but its value is not critical so it should
be the result of natural rounding.

s_cosf.c and s_tanf.c:
Use a literal 0.0 instead of an unnecessary variable initialized to
[(float)]0.0.  Let the function prototype convert to 0.0F.

Improved wording in some comments.

Attempted to improve indentation of comments.

18 years agofixed a typo in comment
suz [Thu, 17 Nov 2005 02:34:50 +0000 (02:34 +0000)]
fixed a typo in comment

18 years agoFix spelling mistake.
obrien [Thu, 17 Nov 2005 02:32:39 +0000 (02:32 +0000)]
Fix spelling mistake.

Submitted by: kris

18 years agoRearranged the the optimizations for special cases to reduce the average
bde [Thu, 17 Nov 2005 02:20:04 +0000 (02:20 +0000)]
Rearranged the the optimizations for special cases to reduce the average
number of branches.

Use a non-bogus magic constant for the threshold of pi/4.  It was 2 ulps
smaller than pi/4 rounded down, but its value is not critical so it should
be the result of natural rounding.  Use "<=" comparisons with rounded-
down thresholds for all small multiples of pi/4.

Cleaned up previous commit:
- use static const variables instead of expressions for multiples of pi/2
  to ensure that they are evaluated at compile time.  gcc currently
  evaluates them at compile time but C99 compilers are not required
  to do so.  We want compile time evaluation for optimization and don't
  care about side effects.
- use M_PI_2 instead of a magic constant for pi/2.  We need magic constants
  related to pi/2 elsewhere but not here since we just want pi/2 rounded
  to double and even prefer it to be rounded in the default rounding mode.
  We can depend on the cmpiler being C99ish enough to round M_PI_2 correctly
  just as much as we depended on it handling hex constants correctly.  This
  also fixes a harmless rounding error in the hex constant.
- keep using expressions n*<value for pi/2> in the initializers for the
  static const variables.  2*M_PI_2 and 4*M_PI_2 are obviously rounded in
  the same way as the corresponding infinite precision expressions for
  multiples of pi/2, and 3*M_PI_2 happens to be rounded like this, so we
  don't need magic constants for the multiples.
- fixed and/or updated some comments.

18 years agoMake the elf wrapper work with recent kernel.debug changes.
cognet [Thu, 17 Nov 2005 01:32:01 +0000 (01:32 +0000)]
Make the elf wrapper work with recent kernel.debug changes.

18 years agoOBE
imp [Wed, 16 Nov 2005 20:58:56 +0000 (20:58 +0000)]
OBE

18 years agoRevert a part of the previous commits to these files that made the NMI
jhb [Wed, 16 Nov 2005 20:58:40 +0000 (20:58 +0000)]
Revert a part of the previous commits to these files that made the NMI
IPI_STOP handling code use atomic_readandclear() to execute the restart
function on the first CPU to resume and restore the behavior of always
executing the restart function on the BSP since this is in fact what the
non-NMI IPI_STOP handler does.  I did add back in a statement to clear
the restart function pointer after it is executed to match the behavior
of the non-NMI IPI_STOP handler.

18 years agothis is no longer needed.
imp [Wed, 16 Nov 2005 20:58:35 +0000 (20:58 +0000)]
this is no longer needed.

18 years agoRevert previous commit to these files. There isn't a race necessitating
jhb [Wed, 16 Nov 2005 20:55:57 +0000 (20:55 +0000)]
Revert previous commit to these files.  There isn't a race necessitating
an xchg instruction as we only try to execute the startup function if
the CPU ID is 0 (i.e. the BSP).  I missed this earlier.

18 years agoFix a typo in the check for an invalid APIC. If we are told about an
jhb [Wed, 16 Nov 2005 20:29:29 +0000 (20:29 +0000)]
Fix a typo in the check for an invalid APIC.  If we are told about an
I/O APIC that doesn't exist, then a read of the version register is going
to return -1 which is 0xffffffff not 0xffffff.

Tested on: i386
Tested by: Nikos Ntarmos ntarmos at ceid dot upatras dot gr
MFC after: 1 week

18 years agoCorrect description of RLIMIT_CPU.
jhb [Wed, 16 Nov 2005 18:18:52 +0000 (18:18 +0000)]
Correct description of RLIMIT_CPU.

Reported by: bde

18 years agoXref ng_ether(4) and ng_iface(4) nodes, which are used in examples.
glebius [Wed, 16 Nov 2005 14:08:17 +0000 (14:08 +0000)]
Xref ng_ether(4) and ng_iface(4) nodes, which are used in examples.

18 years agofixed a kernel crash due to an improper removal of callout-timer
suz [Wed, 16 Nov 2005 12:36:08 +0000 (12:36 +0000)]
fixed a kernel crash due to an improper removal of callout-timer
(ToDo: similar fix is necessary for other NDP-related callout-timers
 in netinet6/nd6*.c)

PR: kern/88725
MFC after: 1 month

18 years agoUnbreak on amd64.
ru [Wed, 16 Nov 2005 12:33:04 +0000 (12:33 +0000)]
Unbreak on amd64.

18 years agoFix currency symbol -- it should be 'NEW SHEQEL SIGN' (U+20AA).
tjr [Wed, 16 Nov 2005 11:20:51 +0000 (11:20 +0000)]
Fix currency symbol -- it should be 'NEW SHEQEL SIGN' (U+20AA).

Submitted by: Rostislav Krasny

18 years agoSync as close as possible with NetBSD.
pjd [Wed, 16 Nov 2005 11:03:00 +0000 (11:03 +0000)]
Sync as close as possible with NetBSD.
This includes fixes and cleanups listed below:

- If a process dissappears while we are signalling it, don't count it as a
  match/error.
- Better handling of errors and messages.
- Downgrade failure to kill(2) (other than ESRCH) from fatal error to a
  warning; otherwise processing aborts and possibly matching killees would
  remain unsignalled. This makes pkill match the Solaris behavior.
- Exit with 2 on usage errors as documented.

Obtained from: NetBSD
Glanced at by: maintainer (gad) [a bit different version of this patch]

18 years agoAvoid invoking the current script again when we need
yar [Wed, 16 Nov 2005 10:45:19 +0000 (10:45 +0000)]
Avoid invoking the current script again when we need
to issue sub-commands, e.g., restart = stop + start.
By calling run_rc_command instead, we provide rc.d
scripts with full control over their configuration
variables.

For an example problem the former approach caused, see
http://lists.freebsd.org/pipermail/freebsd-rc/2005-October/000311.html

Reviewed by: freebsd-rc
Tested by: Dirk Engling erdgeist <at> erdgeist.org
MFC after: 2 weeks

18 years agoI often find myself doing:
pjd [Wed, 16 Nov 2005 10:36:44 +0000 (10:36 +0000)]
I often find myself doing:

% pgrep <something> [to verify which processes match]
% pkill <something>

To speed such operation up, add -I option which works like rm(1)'s -i
option (unfortunately -i is already used in pkill(1)), ie. pkill will
ask for confirmation before killing each matching process.

After adding -j, -F, -i, -S, -o and -L options and other improvements,
I think I can add myself to the copyright header.

Glanced at by: maintainer (gad)

18 years agoDiff reduction to RELENG_6.
ru [Wed, 16 Nov 2005 07:24:31 +0000 (07:24 +0000)]
Diff reduction to RELENG_6.

18 years agoHaving three options (-a, -A, -I) controlling the output of dotted
ru [Wed, 16 Nov 2005 07:13:37 +0000 (07:13 +0000)]
Having three options (-a, -A, -I) controlling the output of dotted
files is too much and hard to follow.  Instead, make the -I option
just mean "do not automatically set -A for root".  That is, if -A
is explicitly set, -I is ignored.  Also, document -I in usage().
(The ls.c diff is better viewed relative to rev. 1.80.)

No objection: mux
Silence from: mnag
MFC after: 3 days

18 years agoConvert mount_smbfs to use nmount().
rodrigc [Wed, 16 Nov 2005 02:47:12 +0000 (02:47 +0000)]
Convert mount_smbfs to use nmount().

Reviewed by: bp (smbfs maintainer)

18 years ago- Add errmsg to the list of smbfs mount options.
rodrigc [Wed, 16 Nov 2005 02:26:25 +0000 (02:26 +0000)]
- Add errmsg to the list of smbfs mount options.
- Use vfs_mount_error() to propagate smbfs mount errors back to userspace.

Reviewed by: bp (smbfs maintainer)

18 years agoDo not pass noauto to nmount() or external mount program.
rodrigc [Wed, 16 Nov 2005 02:13:27 +0000 (02:13 +0000)]
Do not pass noauto to nmount() or external mount program.

Noticed by: maxim

18 years agoCatch up with loader_color -> loader_logo and document beastie_disable.
ru [Tue, 15 Nov 2005 21:26:49 +0000 (21:26 +0000)]
Catch up with loader_color -> loader_logo and document beastie_disable.

18 years agoRevise hcsecd(8) and sdpd(8) rc.d scripts.
emax [Tue, 15 Nov 2005 20:36:26 +0000 (20:36 +0000)]
Revise hcsecd(8) and sdpd(8) rc.d scripts.

- Have both scripts automatically kldload ng_btsocket(4). I did not want to
  do it, but its easier for users and it seems other scripts do similar things;

- Assign few variables after load_rc_config, so the /etc/rc.conf overrides
  actually work;

MFC after: 1 week

18 years agoProvide a link to the documentation of the I/O APIC at Intel.
andre [Tue, 15 Nov 2005 20:18:13 +0000 (20:18 +0000)]
Provide a link to the documentation of the I/O APIC at Intel.

18 years agoAdd geometry of SiliconSystems 4GB CF card
phk [Tue, 15 Nov 2005 18:48:52 +0000 (18:48 +0000)]
Add geometry of SiliconSystems 4GB CF card

18 years agoAdd some initial bits (currently unused) for upcoming AMRR support.
damien [Tue, 15 Nov 2005 17:58:16 +0000 (17:58 +0000)]
Add some initial bits (currently unused) for upcoming AMRR support.
AMRR = Adaptive Multi Rate Retry algorithm
More information: http://www-sop.inria.fr/rapports/sophia/RR-5208.html

More to come.

18 years agoAdd some initial bits (currently unused) for upcoming AMRR support.
damien [Tue, 15 Nov 2005 17:48:49 +0000 (17:48 +0000)]
Add some initial bits (currently unused) for upcoming AMRR support.
AMRR = Adaptive Multi Rate Retry algorithm
More information: http://www-sop.inria.fr/rapports/sophia/RR-5208.html

18 years agoOptimize and clean TX time computation.
damien [Tue, 15 Nov 2005 17:17:15 +0000 (17:17 +0000)]
Optimize and clean TX time computation.
Avoid a test and a modulus operation.

MFC after: 2 weeks

18 years agoAdd BCM5752 to HARDWARE section.
glebius [Tue, 15 Nov 2005 14:48:52 +0000 (14:48 +0000)]
Add BCM5752 to HARDWARE section.

18 years agoRecognize Broadcom BCM5752 chip, that can be found in HP DC7600.
glebius [Tue, 15 Nov 2005 14:43:22 +0000 (14:43 +0000)]
Recognize Broadcom BCM5752 chip, that can be found in HP DC7600.

PR: kern/88940
Submitted by: Alexander Hausner

18 years agoSome whitespace and style cleanup.
glebius [Tue, 15 Nov 2005 10:54:20 +0000 (10:54 +0000)]
Some whitespace and style cleanup.

18 years agoUpdate ieee80211_mhz2ieee to understand public safety bands and spectrum
sam [Tue, 15 Nov 2005 05:56:32 +0000 (05:56 +0000)]
Update ieee80211_mhz2ieee to understand public safety bands and spectrum
that can potentially be mapped to negative ieee #'s.

NB: before operation on the latter can be supported we need to cleanup
    various code that assumes ieee channel #'s are >= 0

18 years agonuke special handling to extend cts when bursting; it was race prone
sam [Tue, 15 Nov 2005 05:49:02 +0000 (05:49 +0000)]
nuke special handling to extend cts when bursting; it was race prone

MFC after: 7 days

18 years agobandaid inconsistent state handling: the rate index map may be
sam [Tue, 15 Nov 2005 05:47:20 +0000 (05:47 +0000)]
bandaid inconsistent state handling: the rate index map may be
stale when called to reset rate control state causing us to
pickup an invalid index, check for this and skip 'em (things
will eventually get fixed up so this is not harmful)

18 years agoUnbreak kernel builds.
kan [Tue, 15 Nov 2005 04:19:27 +0000 (04:19 +0000)]
Unbreak kernel builds.

Submitted by: arr

18 years agoThe KAME's getipnodebyaddr() code honor the MULTI_PTRS_ARE_ALIASES
ume [Tue, 15 Nov 2005 03:40:15 +0000 (03:40 +0000)]
The KAME's getipnodebyaddr() code honor the MULTI_PTRS_ARE_ALIASES
define also, but res_config.h was not included into libc/net/name6.c.
So getipnodebyaddr() ignored the multiple PTRs.

PR: kern/88241
Submitted by: Dan Lukes <dan__at__obluda.cz>
MFC after: 3 days

18 years agoKeep track of volumes in non-optimal state and expose a simple count
kan [Tue, 15 Nov 2005 02:38:35 +0000 (02:38 +0000)]
Keep track of volumes in non-optimal state and expose a simple count
of volumes that might need administrator attention through device
specific sysctl to simplify device monitoring.

Submitted by: Deomid Ryabkov <myself at rojer dot pp dot ru>

18 years agoAdd a new configuration variable, ipv4_addrs_<ifn>, which adds one or
brooks [Mon, 14 Nov 2005 23:34:50 +0000 (23:34 +0000)]
Add a new configuration variable, ipv4_addrs_<ifn>, which adds one or
more IPv4 address from a ranged list in CIRD notation:

ipv4_addrs_ed0="192.168.0.1/24 192.168.1.1-5/28"

In the process move alias processing into new ipv4_up/down functions to
more toward a less IPv4 centric world.

Submitted by: Philipp Wuensche <cryx dash freebsd at h3q dot com>

18 years agoBriefly document the use of kern.elf32.can_exec_dyn.
cognet [Mon, 14 Nov 2005 22:24:48 +0000 (22:24 +0000)]
Briefly document the use of kern.elf32.can_exec_dyn.

MFC after: 3 days

18 years agoAdd a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one can
cognet [Mon, 14 Nov 2005 22:24:00 +0000 (22:24 +0000)]
Add a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one can
execute a ET_DYN binary (shared object).
This does not make much sense, but some linux scripts expect to be able to
execute /lib/ld-linux.so.2 (ldd comes to mind).
The sysctl defaults to 0.

MFC after: 3 days