]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoDocument limitation of station address reprogramming.
yongari [Mon, 20 Dec 2010 17:39:39 +0000 (17:39 +0000)]
Document limitation of station address reprogramming.

13 years agoAdd (disabled) sample configuration lines needed to enable snmp_target(3) module
syrinx [Mon, 20 Dec 2010 17:28:15 +0000 (17:28 +0000)]
Add (disabled) sample configuration lines needed to enable snmp_target(3) module
and configure minimal target addresses & notifications needed for bsnmpd(1)
to send SNMPv3 notifications.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip
Approved by: philip

13 years agoBring in a SNMP module that allows configuration of SNMPv3 Notification targets.
syrinx [Mon, 20 Dec 2010 17:13:14 +0000 (17:13 +0000)]
Bring in a SNMP module that allows configuration of SNMPv3 Notification targets.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip
Approved by: philip

13 years agoMerge amd64 and i386 bus.h and move the resulting header to x86. Replace
tijl [Mon, 20 Dec 2010 16:39:43 +0000 (16:39 +0000)]
Merge amd64 and i386 bus.h and move the resulting header to x86. Replace
the original amd64 and i386 headers with stubs.

Rename (AMD64|I386)_BUS_SPACE_* to X86_BUS_SPACE_* everywhere.

Reviewed by: imp (previous version), jhb
Approved by: kib (mentor)

13 years agoSuggest to run the delete-old target after the second mergemaster. If you run
netchild [Mon, 20 Dec 2010 15:17:34 +0000 (15:17 +0000)]
Suggest to run the delete-old target after the second mergemaster. If you run
it before, your rc scripts may still reference old files/directories and
if you are in the unlucky situation to have triggered a reboot (intentionally
or not) between the delete-old run and the mergemaster, your system may not
start anymore.

While I'm here, give a hint about delete-old-libs.

Noticed by: bcr (luckily in a discussion and not by getting hit by this)
MFC after: 1 week

13 years agoDon't whine about child drivers calling pci_enable_busmaster(). That is
jhb [Mon, 20 Dec 2010 14:54:24 +0000 (14:54 +0000)]
Don't whine about child drivers calling pci_enable_busmaster().  That is
perfectly normal.

MFC after: 1 week

13 years agoMemory can be laid out with large gaps on 64-bit PowerPC, so switch to
nwhitehorn [Mon, 20 Dec 2010 14:25:01 +0000 (14:25 +0000)]
Memory can be laid out with large gaps on 64-bit PowerPC, so switch to
VM_PHYSSEG_SPARSE.

13 years agoAdd __unused. Ansi prototypes.
charnier [Mon, 20 Dec 2010 09:36:54 +0000 (09:36 +0000)]
Add __unused. Ansi prototypes.

13 years agoAdd __unused. Ansi prototypes.
charnier [Mon, 20 Dec 2010 09:28:28 +0000 (09:28 +0000)]
Add __unused. Ansi prototypes.

13 years agoAdd __unused. Ansi prototypes.
charnier [Mon, 20 Dec 2010 08:54:30 +0000 (08:54 +0000)]
Add __unused. Ansi prototypes.

13 years agoAdd __unused
charnier [Mon, 20 Dec 2010 08:47:43 +0000 (08:47 +0000)]
Add __unused

13 years agoAdd __unused
charnier [Mon, 20 Dec 2010 08:44:08 +0000 (08:44 +0000)]
Add __unused

13 years agoAdd __unused
charnier [Mon, 20 Dec 2010 08:37:26 +0000 (08:37 +0000)]
Add __unused

13 years agoAdd __unused. Ansi prototypes.
charnier [Mon, 20 Dec 2010 08:29:54 +0000 (08:29 +0000)]
Add __unused. Ansi prototypes.

13 years agoOops, fwe(4) listed twice.
yongari [Mon, 20 Dec 2010 00:27:40 +0000 (00:27 +0000)]
Oops, fwe(4) listed twice.

13 years agoAdd ae(4) to the list of drivers use the miibus interface.
yongari [Mon, 20 Dec 2010 00:23:47 +0000 (00:23 +0000)]
Add ae(4) to the list of drivers use the miibus interface.

13 years agoigb(4), ixgbe(4), mxge(4) and nxge(4) support VLAN hardware tag
yongari [Mon, 20 Dec 2010 00:10:53 +0000 (00:10 +0000)]
igb(4), ixgbe(4), mxge(4) and nxge(4) support VLAN hardware tag
insertion/stripping.
et(4) and fwe(4) support VLAN oversized frames.

13 years agoAdd .Xr to altq(4).
yongari [Sun, 19 Dec 2010 23:54:31 +0000 (23:54 +0000)]
Add .Xr to altq(4).

13 years agoAdd .Xr to altq(4).
yongari [Sun, 19 Dec 2010 23:53:23 +0000 (23:53 +0000)]
Add .Xr to altq(4).

13 years agoae(4), igb(4), ixgb(4) and ixgbe(4) supports altq(4).
yongari [Sun, 19 Dec 2010 23:50:36 +0000 (23:50 +0000)]
ae(4), igb(4), ixgb(4) and ixgbe(4) supports altq(4).

13 years agoAdd --numeric-owner to tar extract operations in portsnap.
simon [Sun, 19 Dec 2010 23:09:42 +0000 (23:09 +0000)]
Add --numeric-owner to tar extract operations in portsnap.

This is done to speed up extraction significantly (both for portsnap
extract and update) in the case of slow NSS modules (like nss_ldap) as
it avoids having to look up uid and gid for root / wheel.

The reason this is a bigger problem for portsnap than for many other
system operations, is that portsnap executes tar(1) once for each port
so the internal uid/gid caching in tar(1) only helps a bit, resulting
in many user lookup calls.

Discussed with: cperciva

13 years agoRestore the ABI of struct kinfo_proc32 after r213536.
kib [Sun, 19 Dec 2010 21:18:33 +0000 (21:18 +0000)]
Restore the ABI of struct kinfo_proc32 after r213536.

MFC after: 3 days

13 years agoCorrect cookie type to match reality.
pjd [Sun, 19 Dec 2010 18:07:10 +0000 (18:07 +0000)]
Correct cookie type to match reality.

13 years agoReduce lock scope a little.
pjd [Sun, 19 Dec 2010 18:06:20 +0000 (18:06 +0000)]
Reduce lock scope a little.

13 years agoAdd __unused. Ansi prototypes.
charnier [Sun, 19 Dec 2010 16:25:23 +0000 (16:25 +0000)]
Add __unused. Ansi prototypes.

13 years agoGarbage-collect unused variable.
nwhitehorn [Sun, 19 Dec 2010 16:07:53 +0000 (16:07 +0000)]
Garbage-collect unused variable.

13 years agoAdd __unused. Ansi prototypes.
charnier [Sun, 19 Dec 2010 14:18:07 +0000 (14:18 +0000)]
Add __unused. Ansi prototypes.

13 years agoAdd __unused. Ansi prototypes.
charnier [Sun, 19 Dec 2010 13:40:38 +0000 (13:40 +0000)]
Add __unused. Ansi prototypes.

13 years agoadd __unused
charnier [Sun, 19 Dec 2010 13:05:17 +0000 (13:05 +0000)]
add __unused

13 years agoUpdate firmware for wpi(4) from version 2.14.4 to 15.32.2.9.
bschmidt [Sun, 19 Dec 2010 11:37:44 +0000 (11:37 +0000)]
Update firmware for wpi(4) from version 2.14.4 to 15.32.2.9.

PR: kern/142907
Submitted by: Craig Butler <craig001 at lerwick.hopto.org>
MFC after: 2 weeks

13 years agoFix a bug introduced in r216518. The ndis_subsys field holds the PCI
tijl [Sun, 19 Dec 2010 11:14:34 +0000 (11:14 +0000)]
Fix a bug introduced in r216518. The ndis_subsys field holds the PCI
subdevice ID in addition to the subvendor ID.

Reported by: Paul B Mahol 'onemda gmail com'
Approved by: kib (mentor)

13 years agoFix panic trying to use monitor mode. The iwn_cmd() calls issued by
bschmidt [Sun, 19 Dec 2010 10:36:06 +0000 (10:36 +0000)]
Fix panic trying to use monitor mode. The iwn_cmd() calls issued by
iwn_config() want to msleep() on the mutex.

PR: kern/138427
Submitted by: Henry Hu <henry.hu.sh at gmail.com>
MFC after: 3 days

13 years agoFix build on bigendian archs.
bschmidt [Sun, 19 Dec 2010 09:18:14 +0000 (09:18 +0000)]
Fix build on bigendian archs.

13 years agoRedo some parts of r216333, specifically, the locking changes to
alc [Sun, 19 Dec 2010 07:31:56 +0000 (07:31 +0000)]
Redo some parts of r216333, specifically, the locking changes to
pmap_extract_and_hold(), and undo the rest.  In particular, I forgot
that PG_PS and PG_PTE_PAT are the same bit.

13 years agoDocument JMC251/JMC261 support.
yongari [Sun, 19 Dec 2010 00:00:29 +0000 (00:00 +0000)]
Document JMC251/JMC261 support.

13 years agoAdd support for JMicron JMC251/JMC261 Gigabit/Fast ethernet
yongari [Sat, 18 Dec 2010 23:52:50 +0000 (23:52 +0000)]
Add support for JMicron JMC251/JMC261  Gigabit/Fast ethernet
controller with Card Read Host Controller. These controllers are
multi-function devices and have the same ethernet core of
JMC250/JMC260. Starting from REVFM 5(chip full mask revision)
controllers have the following features.
 o eFuse support
 o PCD(Packet Completion Deferring)
 o More advanced PHY power saving

Because these controllers started to use eFuse, station address
modified by driver is permanent as if it was written to EEPROM. If
you have to change station address please save your controller
default address to safe place before reprogramming it. There is no
way to restore factory default station address.

Many thanks to JMicron for continuing to support FreeBSD.

HW donated by: JMicron

13 years agoUse system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
yongari [Sat, 18 Dec 2010 23:26:38 +0000 (23:26 +0000)]
Use system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
number.

13 years agoMake sure whether driver allocated resource before releasing it.
yongari [Sat, 18 Dec 2010 23:24:59 +0000 (23:24 +0000)]
Make sure whether driver allocated resource before releasing it.

13 years agoFix a regression introduced in r213893. FPGA version requires PHY
yongari [Sat, 18 Dec 2010 23:21:16 +0000 (23:21 +0000)]
Fix a regression introduced in r213893. FPGA version requires PHY
probing so allow PHY probing on all possible addresses.

13 years agosh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).
jilles [Sat, 18 Dec 2010 23:03:51 +0000 (23:03 +0000)]
sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).

Constants in arithmetic starting with 0 should be octal only.

This avoids the following highly puzzling result:
  $ echo $((018-017))
  3
by making it an error instead.

13 years agoConsistently put a tab character between #define and the macro name.
yongari [Sat, 18 Dec 2010 23:03:38 +0000 (23:03 +0000)]
Consistently put a tab character between #define and the macro name.

13 years agoRemove dead code.
uqs [Sat, 18 Dec 2010 22:16:15 +0000 (22:16 +0000)]
Remove dead code.

c is assigned 0 and *loc is pointing to NULL, so c!=0 cannot be true,
and dereferencing loc would be a bad idea anyway.

Coverity Prevent: CID 5113
Reviewed by: jilles

13 years ago- Signal that data should not be modified.
lulf [Sat, 18 Dec 2010 20:43:18 +0000 (20:43 +0000)]
- Signal that data should not be modified.

13 years agoUnbreak hostapd. This code has been explicitly removed in upstream versions.
bschmidt [Sat, 18 Dec 2010 20:29:41 +0000 (20:29 +0000)]
Unbreak hostapd. This code has been explicitly removed in upstream versions.

13 years agoFix some whitespace nits.
bschmidt [Sat, 18 Dec 2010 20:27:09 +0000 (20:27 +0000)]
Fix some whitespace nits.

13 years agoChange order in wpa_driver_bsd_ops to match upstream code. Add description
bschmidt [Sat, 18 Dec 2010 20:25:25 +0000 (20:25 +0000)]
Change order in wpa_driver_bsd_ops to match upstream code. Add description
while here.

13 years agoAdd a comment explaining the undefs, while here remove one which is not
bschmidt [Sat, 18 Dec 2010 20:23:28 +0000 (20:23 +0000)]
Add a comment explaining the undefs, while here remove one which is not
required.

13 years agoRename bsd_set_iface_flags to bsd_ctrl_iface and change arguments to match
bschmidt [Sat, 18 Dec 2010 20:22:15 +0000 (20:22 +0000)]
Rename bsd_set_iface_flags to bsd_ctrl_iface and change arguments to match
upstream. For the same reason rewrite bsd_get_seqnum.

13 years agoImport bsd_configure_wpa() to sync with upstream code.
bschmidt [Sat, 18 Dec 2010 20:17:10 +0000 (20:17 +0000)]
Import bsd_configure_wpa() to sync with upstream code.

13 years agoPrefer os_memset, os_strlcpy and os_free. While here adjust the return
bschmidt [Sat, 18 Dec 2010 20:15:47 +0000 (20:15 +0000)]
Prefer os_memset, os_strlcpy and os_free. While here adjust the return
value checks for 2 ioctl calls and rewrite error handling in bsd_init
to better integrate with upstream code.

13 years agoRemove some unused variables and unnecessary casts.
bschmidt [Sat, 18 Dec 2010 20:13:42 +0000 (20:13 +0000)]
Remove some unused variables and unnecessary casts.

13 years agoRemove debug messages which are no longer present in upstream code. While
bschmidt [Sat, 18 Dec 2010 20:11:09 +0000 (20:11 +0000)]
Remove debug messages which are no longer present in upstream code. While
here remove some explicit line breaks.

13 years agoRename iface to ifname to match the upstream code.
bschmidt [Sat, 18 Dec 2010 20:08:21 +0000 (20:08 +0000)]
Rename iface to ifname to match the upstream code.

13 years agoRename ioctl_sock to just sock to match the upstream code. While here
bschmidt [Sat, 18 Dec 2010 20:04:47 +0000 (20:04 +0000)]
Rename ioctl_sock to just sock to match the upstream code. While here
remove the no longer used wext_sock and bsd_driver_ops variables.

13 years agoMove some functions around to match the upstream order.
bschmidt [Sat, 18 Dec 2010 20:00:28 +0000 (20:00 +0000)]
Move some functions around to match the upstream order.

13 years agoAdd bsd_send_mlme_param to aggregate IEEE80211_IOC_MLME ioctls:
bschmidt [Sat, 18 Dec 2010 19:58:23 +0000 (19:58 +0000)]
Add bsd_send_mlme_param to aggregate IEEE80211_IOC_MLME ioctls:
- merge bsd_set_sta_authorized and bsd_sta_set_flags
- change bsd_set_sta_authorized, bsd_sta_deauth and bsd_sta_disassoc
  to use bsd_send_mlme_param

13 years agoChange bsd_del_key() to match upstream code:
bschmidt [Sat, 18 Dec 2010 19:56:45 +0000 (19:56 +0000)]
Change bsd_del_key() to match upstream code:
- change order of if/else
- move wpa_printf() into the condition
- change unsigned char* to u8*
- prefer os_memset/os_memcpy

13 years agoAggregate SIOCS80211 and SIOCG80211 ioctl request code. While here, bring
bschmidt [Sat, 18 Dec 2010 19:55:19 +0000 (19:55 +0000)]
Aggregate SIOCS80211 and SIOCG80211 ioctl request code. While here, bring
the wpa_printf()/perror() messages in sync with upstream code.

13 years agoInform a compiler which asm statements in the x86 implementation of
kib [Sat, 18 Dec 2010 16:41:11 +0000 (16:41 +0000)]
Inform a compiler which asm statements in the x86 implementation of
atomics change eflags.

Reviewed by: jhb
MFC after: 2 weeks

13 years agoAdd 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
bschmidt [Sat, 18 Dec 2010 15:45:10 +0000 (15:45 +0000)]
Add 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
'could not set power mode', 'device config failed' and other errors due
reading invalid memory.

Obtained from: OpenBSD
MFC after: 3 days

13 years agoFix association on 5GHz channels. The device is initially configured using
bschmidt [Sat, 18 Dec 2010 15:35:10 +0000 (15:35 +0000)]
Fix association on 5GHz channels. The device is initially configured using
a 2GHz channel with appropriate flags set to sc->config. Due to not zeroing
sc->config for auth/assoc those flags are still set while trying to connect
on a 5GHz channel.

MFC after: 3 days

13 years agoFix a panic while disabling the RF kill button, caller of the
bschmidt [Sat, 18 Dec 2010 15:25:21 +0000 (15:25 +0000)]
Fix a panic while disabling the RF kill button, caller of the
wpi_rfkill_resume() function will take care of the lock.

PR: kern/144898
MFC after: 3 days

13 years agoReconnect arm to the universe build, and connect big-endian MIPS and ARM
nwhitehorn [Sat, 18 Dec 2010 14:34:05 +0000 (14:34 +0000)]
Reconnect arm to the universe build, and connect big-endian MIPS and ARM
and powerpc64 to universe for the first time. In general, provide
(slightly hacky) knowledge of multi-architecture TARGETs to universe as
well as the ability to distinguish the correct toolchain for a given
kernel using config -m.

13 years agoNo need to zero the softc. It's allocated with M_ZERO.
tijl [Sat, 18 Dec 2010 14:24:24 +0000 (14:24 +0000)]
No need to zero the softc. It's allocated with M_ZERO.

Use pci_enable_busmaster instead of setting PCIM_CMD_BUSMASTEREN
directly. There's no need to set PCIM_CMD_MEMEN. The bit is set when a
SYS_RES_MEMORY resource is activated.

Remove redundant pci_* function calls from suspend/resume methods. The
bus driver already saves and restores the PCI configuration.

Write 1 byte instead of 4 when setting the HIFN_TRDY_TIMEOUT register.
It is only 1 byte according to the specification.

Reviewed by: jhb
Approved by: kib (mentor)

13 years agoUse convenience functions where possible instead of accessing the PCI
tijl [Sat, 18 Dec 2010 14:21:28 +0000 (14:21 +0000)]
Use convenience functions where possible instead of accessing the PCI
configuration registers directly.

Remove pci_enable_io calls where they are redundant. The PCI bus driver
will set the right bits when the corresponding bus resource is activated.

Remove redundant pci_* function calls from suspend/resume methods. The
bus driver already saves and restores the PCI configuration.

Reviewed by: jhb
Approved by: kib (mentor)

13 years agoIn pmap_extract(), unlock pmap lock earlier. The calculation does not need
kib [Sat, 18 Dec 2010 11:31:32 +0000 (11:31 +0000)]
In pmap_extract(), unlock pmap lock earlier. The calculation does not need
the lock when operating on local variables.

Reviewed by: alc

13 years agoSort cross references by section.
brucec [Sat, 18 Dec 2010 10:09:07 +0000 (10:09 +0000)]
Sort cross references by section.

Reported by: pluknet

13 years agoAdd Exar octal PCI UART.
emaste [Sat, 18 Dec 2010 02:54:51 +0000 (02:54 +0000)]
Add Exar octal PCI UART.

Submitted by: Mark Johnston
Obtained from: Sandvine Incorporated

13 years agoBring in the relevant changes from NetBSD's 1.31:
dougb [Sat, 18 Dec 2010 00:30:52 +0000 (00:30 +0000)]
Bring in the relevant changes from NetBSD's 1.31:

"Use strlcpy, not strncpy, when the desired semantics are strlcpy's
rather than strncpy's."

Note: NetBSD's 1.32 is their adoption of our r216206

Obtained from: dholland@NetBSD.org

13 years agoImplement and use a single optimized function for unholding a set of pages.
alc [Fri, 17 Dec 2010 22:41:22 +0000 (22:41 +0000)]
Implement and use a single optimized function for unholding a set of pages.

Reviewed by: kib@

13 years agoFix two vnode locking problems in nfsd_recalldelegation() in the
rmacklem [Fri, 17 Dec 2010 22:18:09 +0000 (22:18 +0000)]
Fix two vnode locking problems in nfsd_recalldelegation() in the
experimental NFSv4 server. The first was a bogus use of VOP_ISLOCKED()
in a KASSERT() and the second was the need to lock the vnode for the
nfsrv_checkremove() call. Also, delete a "__unused" that was bogus,
since the argument is used.

Reviewed by: zack.kirsch at isilon.com
MFC after: 2 weeks

13 years agoSimply refer to all Xen drivers as para-virtualized, as this appears to
rwatson [Fri, 17 Dec 2010 22:09:55 +0000 (22:09 +0000)]
Simply refer to all Xen drivers as para-virtualized, as this appears to
be the preferred Xen parlance.

Discussed with: Steve Hand <steven.hand at cl.cam.ac.uk>
MFC after: 1 day

13 years agoUpdate shmget(2) with POSIX access permissions and remove non-standard SHM_R,
brucec [Fri, 17 Dec 2010 21:10:08 +0000 (21:10 +0000)]
Update shmget(2) with POSIX access permissions and remove non-standard SHM_R,
SHM_W and machine/param.h.

13 years agocyclic xcall: use smp_no_rendevous_barrier as setup function parameter
avg [Fri, 17 Dec 2010 18:22:50 +0000 (18:22 +0000)]
cyclic xcall: use smp_no_rendevous_barrier as setup function parameter

In this case we call target function only on a single CPU and do not
need any synchronization at the setup stage.

It's a bit non-obvious but setup function of NULL means that
smp_rendezvous_cpus waits for all CPUs to arrive at the rendezvous
point, but without doing any actual setup.  While using
smp_no_rendevous_barrier means that each CPU proceeds on its own
schedule without any synchronization whatsoever.

MFC after: 3 weeks

13 years agoAdd back a bounds check on valid idle priorities that was lost in an
jhb [Fri, 17 Dec 2010 16:29:06 +0000 (16:29 +0000)]
Add back a bounds check on valid idle priorities that was lost in an
earlier commit.  While here, move the thread lock down in rtp_to_pri().
It is not needed for all of the priority value checks and the computation
of newpri.

Reported by: swell.k @ gmail
MFC after: 3 days

13 years agosmall cleanup of acpi battery status setting and checking
avg [Fri, 17 Dec 2010 16:21:30 +0000 (16:21 +0000)]
small cleanup of acpi battery status setting and checking

This is based on the patch submitted by Yuri Skripachov.
Overview of the changes:
- clarify double-use of some ACPI_BATT_STAT_* definitions
- clean up undefined/extended status bits returned by _BST
- warn about charging+discharging bits being set at the same time

PR: kern/124744
Submitted by: Yuri Skripachov <y.skripachov@gmail.com>
Tested by: Yuri Skripachov <y.skripachov@gmail.com>
MFC after: 2 weeks

13 years agoFix a flightsize bug related to the processing of PKTDRP reports.
tuexen [Fri, 17 Dec 2010 15:39:55 +0000 (15:39 +0000)]
Fix a flightsize bug related to the processing of PKTDRP reports.

MFC after: 3 days.

13 years agoCorrect some misundertandings on my part about PV vs HVM kernel
rwatson [Fri, 17 Dec 2010 11:25:37 +0000 (11:25 +0000)]
Correct some misundertandings on my part about PV vs HVM kernel
configuration options.

MFC after: 1 day

13 years agoFix spelling nits.
rwatson [Fri, 17 Dec 2010 10:05:21 +0000 (10:05 +0000)]
Fix spelling nits.

MFC after: 3 days
Submitted by: bcr

13 years agoAdd pf in quiet mode
kevlo [Fri, 17 Dec 2010 09:38:55 +0000 (09:38 +0000)]
Add pf in quiet mode

13 years agoMinor cleanup for sys/conf/Makefile.mips. Use -e and replace two calls to
jchandra [Fri, 17 Dec 2010 09:14:25 +0000 (09:14 +0000)]
Minor cleanup for sys/conf/Makefile.mips. Use -e and replace two calls to
sed with one.

13 years agoClarifications of a number of points in xen.4, and some additional device
rwatson [Fri, 17 Dec 2010 01:30:56 +0000 (01:30 +0000)]
Clarifications of a number of points in xen.4, and some additional device
driver information from gibbs@.

MFC after: 3 days

13 years agosh: Fix corruption of command substitutions with special chars after newline
jilles [Thu, 16 Dec 2010 23:28:20 +0000 (23:28 +0000)]
sh: Fix corruption of command substitutions with special chars after newline

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.

13 years agoBugfix: Take also the nr-mapping array into account when detecting
tuexen [Thu, 16 Dec 2010 21:01:02 +0000 (21:01 +0000)]
Bugfix: Take also the nr-mapping array into account when detecting
        gaps.

Reviewed by: rrs@
MFC after: 3 days.

13 years agoThe 'ret' variable is of type ssize_t and we use proper format for it (%zd), so
pjd [Thu, 16 Dec 2010 19:48:03 +0000 (19:48 +0000)]
The 'ret' variable is of type ssize_t and we use proper format for it (%zd), so
no (bogus) cast is needed.

MFC after: 3 days

13 years agoRevert r216473.
obrien [Thu, 16 Dec 2010 17:54:56 +0000 (17:54 +0000)]
Revert r216473.
WARNS=6 causes "warning: cast increases required alignment of target type"
on arm, ia64, mips, and sparc64.

13 years ago- If the atkbdc device is assigned an IRQ resource by ACPI or the PnPBIOS,
jhb [Thu, 16 Dec 2010 17:14:37 +0000 (17:14 +0000)]
- If the atkbdc device is assigned an IRQ resource by ACPI or the PnPBIOS,
  allow the child atkbd device to reuse that IRQ resource instead of
  reallocating the same IRQ from the parent bus inside the atkbd driver.
- Don't allocate a shared IRQ for the atkbd driver.  For AT keyboard
  devices on an ISA bus the IRQ is not shareable.  Instead, the bus driver
  should mark the IRQ shareable if the bus supports shared IRQs.
- Don't identify child devices until after the atkbdc device itself has
  attached.

13 years ago- When moving the IRQ resource from the psmcpnp device to the psm device,
jhb [Thu, 16 Dec 2010 17:08:43 +0000 (17:08 +0000)]
- When moving the IRQ resource from the psmcpnp device to the psm device,
  delete the IRQ resource from the psmcpnp device completely.
- Don't allocate the IRQ resource shared.  It is not a shareable interrupt
  on ISA.  The bus driver can set RF_SHAREABLE if the IRQ is actually
  shareable on a non-ISA bus.

13 years agoSmall style fixes:
jhb [Thu, 16 Dec 2010 17:05:28 +0000 (17:05 +0000)]
Small style fixes:
- Avoid side-effect assignments in if statements when possible.
- Don't use ! to check for NULL pointers, explicitly check against NULL.
- Explicitly check error return values against 0.
- Don't use INTR_MPSAFE for interrupt handlers with only filters as it is
  meaningless.
- Remove unneeded function casts.

13 years agoIf dlclose() is called recursively from a _fini() function, the inner
jh [Thu, 16 Dec 2010 16:56:44 +0000 (16:56 +0000)]
If dlclose() is called recursively from a _fini() function, the inner
dlclose() call may unload the object of the outer call prematurely
because objects are unreferenced before _fini() calls.

Fix this by unreferencing objects after calling objlist_call_fini() in
dlclose(). Therefore objlist_call_fini() now calls the fini function if
the reference count of an object is 1. In addition we must restart the
list_fini traversal after every _fini() call because another dlclose()
call might have modified the reference counts.

Add an XXX comment to objlist_call_fini() about possible race with
dlopen().

PR: 133246, 149464
Reviewed by: kan, kib

13 years agoSpelling fix.
jhb [Thu, 16 Dec 2010 16:55:22 +0000 (16:55 +0000)]
Spelling fix.

13 years agoPass JFLAG as JFLAG from tinderbox to universe. This gives the same
jhb [Thu, 16 Dec 2010 15:27:13 +0000 (15:27 +0000)]
Pass JFLAG as JFLAG from tinderbox to universe.  This gives the same
semantics for JFLAG with tinderbox as for universe.  Previously doing
'make JFLAG=-j4 tinderbox' was equivalent to 'make -j4 universe'
(i.e. 4 worlds in parallel) rather than 'make JFLAG=-j4 universe'
(i.e. worlds in sequence, each built with -j4).

MFC after: 1 month

13 years agoUse bus_alloc_resource_any() instead of bus_alloc_resource(). Besides being
jhb [Thu, 16 Dec 2010 15:19:32 +0000 (15:19 +0000)]
Use bus_alloc_resource_any() instead of bus_alloc_resource().  Besides being
cleaner, this fixes problems where the code was using ~0 instead of ~0ul
for the upper bound on "any" resources.

MFC after: 1 month

13 years agoPass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clang
syrinx [Thu, 16 Dec 2010 15:18:53 +0000 (15:18 +0000)]
Pass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clang
properly exports its symbols to the modules.

Submitted by: dim

13 years agolibbsnmp was moved to usr/lib
syrinx [Thu, 16 Dec 2010 11:58:50 +0000 (11:58 +0000)]
libbsnmp was moved to usr/lib

13 years agoSilence the compiler warnings in libbsnmp by removing several (now)
syrinx [Thu, 16 Dec 2010 11:20:37 +0000 (11:20 +0000)]
Silence the compiler warnings in libbsnmp by removing several (now)
unsed parameters.

Sponsored by: The FreeBSD Foundation
Reviewed by: philip@

13 years agoAdd a missing cast. Reported by blade_ly at yahoo.com.cn.
tuexen [Thu, 16 Dec 2010 09:49:16 +0000 (09:49 +0000)]
Add a missing cast. Reported by blade_ly at yahoo.com.cn.

MFC after: 1 day.

13 years agoImprove problems logging.
pjd [Thu, 16 Dec 2010 07:30:47 +0000 (07:30 +0000)]
Improve problems logging.

MFC after: 3 days

13 years agoDon't ignore errors from remote requests.
pjd [Thu, 16 Dec 2010 07:29:58 +0000 (07:29 +0000)]
Don't ignore errors from remote requests.

MFC after: 3 days

13 years agoLog the fact of launching and include protocol version number.
pjd [Thu, 16 Dec 2010 07:28:40 +0000 (07:28 +0000)]
Log the fact of launching and include protocol version number.

MFC after: 3 days