]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: Remove the 'add_kld_command' arg from load_kld().
jhb [Mon, 5 May 2008 19:15:38 +0000 (19:15 +0000)]
MFC: Remove the 'add_kld_command' arg from load_kld().

16 years agoMFC: Emit a warning when the network_interfaces variable is not set to AUTO.
brooks [Sun, 4 May 2008 16:15:04 +0000 (16:15 +0000)]
MFC: Emit a warning when the network_interfaces variable is not set to AUTO.

16 years agoMFC: Add error handling for PSEUDO syscalls.
dfr [Sun, 4 May 2008 09:09:29 +0000 (09:09 +0000)]
MFC: Add error handling for PSEUDO syscalls.

PR: 123325

16 years agoMFC: add -f option and other small fixes
simokawa [Fri, 2 May 2008 06:17:16 +0000 (06:17 +0000)]
MFC: add -f option and other small fixes
firewire.8 rev 1.22
firewire.c rev 1.24

16 years agoMFC: A few fixes.
jhb [Thu, 1 May 2008 20:15:01 +0000 (20:15 +0000)]
MFC: A few fixes.
- Increase time we wait for things to settle to 1 millisecond,
  10 microseconds is too short.
- In est_acpi_info(), initialize count.

16 years agoMFC:
scf [Wed, 30 Apr 2008 23:35:46 +0000 (23:35 +0000)]
MFC:
Have the man page catch up with the namespace pollution cleanup that
occurred between 2001-2003.  Thanks to bde for the history lesson[1]
concerning sys/types.h and the many system calls that at one time
(pre-2001) were required by POSIX to include it.

1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html

    src/lib/libc/sys/mkdir.2: rev 1.25 -> 1.26

16 years agoMFC: 1.5
marius [Wed, 30 Apr 2008 11:26:55 +0000 (11:26 +0000)]
MFC: 1.5

- Include <machine/utrap.h> so this header doesn't have an MD
  dependency.
- Make prototypes style(9) compliant.

16 years agoMFC rev 1.278:
brooks [Tue, 29 Apr 2008 20:43:48 +0000 (20:43 +0000)]
MFC rev 1.278:

Delay the global registration of the struct ifnet in if_alloc() until after
we're certain the allocation will entierly succeed.  This fixes a leak in a
fairly unlikely case.

Reported by: vijay singh <vijjus at rocketmail dot com>

16 years agoMFC per ppp profile variable documentation (revs 1.336 and 1.337)
brooks [Tue, 29 Apr 2008 20:34:31 +0000 (20:34 +0000)]
MFC per ppp profile variable documentation (revs 1.336 and 1.337)

PR: conf/121452, conf/122127

16 years agoMFC: Fix a resource leak in the recent fixes for file descriptors >
jhb [Tue, 29 Apr 2008 17:44:00 +0000 (17:44 +0000)]
MFC: Fix a resource leak in the recent fixes for file descriptors >
SHRT_MAX.

16 years agoMFC: Support for the detach packet.
jhb [Mon, 28 Apr 2008 20:48:42 +0000 (20:48 +0000)]
MFC: Support for the detach packet.

16 years agoMFC: sys/netipsec/key.c rev. 1.31,
bz [Mon, 28 Apr 2008 16:19:36 +0000 (16:19 +0000)]
MFC: sys/netipsec/key.c rev. 1.31,
     also apply to sys/netkey/key.c not present in 7.x/8.

  Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

  In case of "new SA", we must check the hard lifetime of the old SA
  to find out if it is not permanent and we can delete it.

  Submitted by:   sakane via gnn

16 years agoRevert, this was supposed to go into HEAD.
stefanf [Sun, 27 Apr 2008 20:43:26 +0000 (20:43 +0000)]
Revert, this was supposed to go into HEAD.

16 years ago- Fix bugs where the value of arithmetic expansion$((...)) was trucated
stefanf [Sun, 27 Apr 2008 20:25:43 +0000 (20:25 +0000)]
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
  to type int.
- Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
  currently supported FreeBSD architectures).  SUSv3 requires at least type
  long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
  do that too.

PR: 122659
Submitted by: Jaakko Heinonen (minor modifications by me)

16 years agoMFC:
scf [Sun, 27 Apr 2008 17:39:33 +0000 (17:39 +0000)]
MFC:
Capitalize "Eve".  This is the correct form and now matches
calendar.usholiday.

    src/usr.bin/calendar/calendars/calendar.christian: rev 1.10 -> 1.11

16 years agoMFC: 1.61
marius [Sun, 27 Apr 2008 11:36:42 +0000 (11:36 +0000)]
MFC: 1.61

- vx_stop() requires the driver lock to be held.
- Add some missing newlines to messages printed by vx_getlink().

16 years agoBack out the last revision - it shouldn't have been committed and in any
dfr [Sun, 27 Apr 2008 10:57:53 +0000 (10:57 +0000)]
Back out the last revision - it shouldn't have been committed and in any
case its wrong for RELENG_6.

16 years agoUnbreak RELENG_6 build.
oleg [Sat, 26 Apr 2008 19:15:57 +0000 (19:15 +0000)]
Unbreak RELENG_6 build.

PR: misc/123110

16 years agoMFC to RELENG_6:
antoine [Sat, 26 Apr 2008 17:39:56 +0000 (17:39 +0000)]
MFC to RELENG_6:
  Don't allocate the constant array "props" on the stack in wctype.

  PR:             74743
  Submitted by:   knut st. osmundsen
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC: 1.111
oleg [Fri, 25 Apr 2008 10:35:53 +0000 (10:35 +0000)]
MFC: 1.111

Calculate p.fs.lookup_step correctly. This should prevent zeroing of
w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation).

16 years agoMFC:
oleg [Fri, 25 Apr 2008 10:29:26 +0000 (10:29 +0000)]
MFC:
src/sys/netinet/ip_dummynet.h 1.41
src/sys/netinet/ip_dummynet.c 1.111-1.114
src/sys/netinet/ip_fw_pfil.c 1.26
src/sys/net/if_bridge.c 1.107
src/sys/net/if_ethersubr.c 1.240
src/sbin/ipfw/ipfw.8 1.206

- style(9) cleanup.
- dummynet_io() declaration has changed.
- Alter packet flow inside dummynet and introduce 'fast' mode of dummynet
  operation: allow certain packets to bypass dummynet scheduler. Benefits are:
  -- lower latency: if packet flow does not exceed pipe bandwidth, packets
     will not be (up to tick) delayed (due to dummynet's scheduler granularity).
  -- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter
     ip stack later. Such packets can be fastforwarded.
  -- recursion (which can lead to kernel stack exhaution) eliminated. This fix
     long existed panic, which can be triggered this way:
kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost
- New sysctl nodes:
  net.inet.ip.dummynet.io_fast - enables 'fast' dummynet io
  net.inet.ip.dummynet.io_pkt - packets passed to dummynet
  net.inet.ip.dummynet.io_pkt_fast - packets avoided dummynet scheduler
  net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet
- Workaround p->numbytes overflow, which can result in infinite loop inside
  dummynet module (prerequisite is using queues with "fat" pipe).

PR: kern/113548 kern/121955

16 years agoRemove DDB options which accidentally got added in the last revision.
dfr [Thu, 24 Apr 2008 13:08:30 +0000 (13:08 +0000)]
Remove DDB options which accidentally got added in the last revision.

16 years agoRegen.
dfr [Thu, 24 Apr 2008 10:52:30 +0000 (10:52 +0000)]
Regen.

16 years agoMFC: kernel-mode NFS lock manager.
dfr [Thu, 24 Apr 2008 10:46:25 +0000 (10:46 +0000)]
MFC: kernel-mode NFS lock manager.

16 years agoFix spelling mistake made in MFC of rev 1.61.
scf [Thu, 24 Apr 2008 01:30:52 +0000 (01:30 +0000)]
Fix spelling mistake made in MFC of rev 1.61.

16 years agoMFC: if_xl.c 1.211, 1.212, 1.213 (partial); if_xlreg.h 1.60
marius [Wed, 23 Apr 2008 21:38:29 +0000 (21:38 +0000)]
MFC: if_xl.c 1.211, 1.212, 1.213 (partial); if_xlreg.h 1.60

- Spelling fix for interupt -> interrupt
- Fix function prototype for device_shutdown method.
- Take advantage of bus_dmamap_load_mbuf_sg(9).
- Sync with other NIC drivers and prepend a TX mbuf if the first attempt
  to load it fails with an error other than EFBIG and stop trying instead
  of freeing it and keeping on trying to enqueue more mbufs. Also ensure
  the driver queue isn't empty before trying to enqueue mbufs in order to
  reduce locking operations.
- In xl_ifmedia_upd() add a missing XL_UNLOCK(). [1]
- Const'ify the xl_devs array.
- Remove an outdated comment.

PR: 113406 [1]

16 years agoMFC: Add PCI ID's for ICH8 USB controllers.
jhb [Wed, 23 Apr 2008 18:54:51 +0000 (18:54 +0000)]
MFC: Add PCI ID's for ICH8 USB controllers.

16 years agoMFC: Fix pkg_info when specifying a remote package.
flz [Wed, 23 Apr 2008 10:42:00 +0000 (10:42 +0000)]
MFC: Fix pkg_info when specifying a remote package.

  src/usr.sbin/pkg_install/info/perform.c: rev 1.54 -> 1.55
  src/usr.sbin/pkg_install/info/main.c: rev 1.51 -> 1.52

16 years agoMFC of new 'arm' category.
linimon [Wed, 23 Apr 2008 04:01:53 +0000 (04:01 +0000)]
MFC of new 'arm' category.

16 years agoMFC: 1.15-1.18: Fix overflows and memory leaks.
ru [Tue, 22 Apr 2008 13:23:34 +0000 (13:23 +0000)]
MFC: 1.15-1.18: Fix overflows and memory leaks.

16 years agoMFC r1.32, r1.33:
rpaulo [Tue, 22 Apr 2008 12:44:39 +0000 (12:44 +0000)]
MFC r1.32, r1.33:
   Add support for Asus EeePC backlight control.
   style(9) fix.

   Submitted by:   Akira Funahashi <funa at funa.org>

16 years agoMFC ip1000phy.c 1.3, ip1000phyreg.h 1.2 and miidevs 1.52 to RELENG_6.
yongari [Tue, 22 Apr 2008 06:39:07 +0000 (06:39 +0000)]
MFC ip1000phy.c 1.3, ip1000phyreg.h 1.2 and miidevs 1.52 to RELENG_6.
  Add support for IC Plus IP1001 PHY.

16 years agoMFC rgephy.c rev 1.19 to RELENG_6.
yongari [Tue, 22 Apr 2008 06:26:01 +0000 (06:26 +0000)]
MFC rgephy.c rev 1.19 to RELENG_6.
  Add detection of isolation state.

  PR: kern/76710

16 years agoMFC 1.26: Reset the internal state used for the 'getopts' built-in when 'shift'
stefanf [Sun, 20 Apr 2008 18:08:46 +0000 (18:08 +0000)]
MFC 1.26: Reset the internal state used for the 'getopts' built-in when 'shift'
or 'set' are used to modify the arguments.

16 years agoMFC 1.36: Leave working directory variables unchanged if chdir() fails.
stefanf [Sun, 20 Apr 2008 18:08:12 +0000 (18:08 +0000)]
MFC 1.36: Leave working directory variables unchanged if chdir() fails.

16 years agoUpdate pthread errata note with errata notice.
bmah [Sun, 20 Apr 2008 17:55:48 +0000 (17:55 +0000)]
Update pthread errata note with errata notice.

Mention multicast refcounting kernel panic.

16 years agoMFC to RELENG_6:
antoine [Sun, 20 Apr 2008 16:32:20 +0000 (16:32 +0000)]
MFC to RELENG_6:
  Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13
  Significant changes:
  - rev. 1.11: Use PRId64 instead of a cast to long long and %lld to print
  an int64_t.
  - rev. 1.12: Fix a bug that humanize_number() produces "1000" where it
  should be "1.0G" or "1.0M".  The bug reported by Greg Troxel.

  PR:             118461
  PR:             102694
  Approved by:    rwatson (mentor)
  Obtained from:  NetBSD
  MFC after:      1 month

16 years agoMFC some small optimizations:
mav [Sun, 20 Apr 2008 11:34:56 +0000 (11:34 +0000)]
MFC some small optimizations:
rev. 1.151: Remove impossible (hk_peer == NULL) check.
rev. 1.152: Remove ng_setisr() call from ng_dequeue().
rev. 1.153: There is no need to erase hook->hk_node before freeing hook.
rev. 1.154: Use new atomic_fetchadd() primitive instead of looping atomic_cmpset().
rev. 1.158: ng_address_hook() microoptimization.

16 years agoMove our ".mcount" bits around a little.
obrien [Fri, 18 Apr 2008 16:06:46 +0000 (16:06 +0000)]
Move our ".mcount" bits around a little.

16 years agoMFC:
emax [Fri, 18 Apr 2008 00:55:03 +0000 (00:55 +0000)]
MFC:

Fix possible buffer overrun on 64-bit arch when generating MAC
address for tap interface.

Reported by: Marc Lorner < marc dot loerner at hob dot de >
Reviewed by: bms
MFC after: 3 days

16 years agoDocument SA-08:05.openssh
delphij [Thu, 17 Apr 2008 19:10:57 +0000 (19:10 +0000)]
Document SA-08:05.openssh

16 years agoMFC if_rl.c, rev 1.174 to RELENG_6.
yongari [Thu, 17 Apr 2008 04:18:29 +0000 (04:18 +0000)]
MFC if_rl.c, rev 1.174 to RELENG_6.
  It seems that RealTek 8129/8139 chip reports invalid length of
  received frame under certain conditions. wpaul said the length
  0xfff0 is special meaning that indicates hardware is in the
  process of copying a packet into host memory. But it seems
  there are other cases that hardware is busy or stuck in bad
  situation even if the received frame length is not 0xfff0.
  To work-around this condition, add a check that verifys that
  recevied frame length is in valid range. If received length is out
  of range reinitialize hardware to recover from stuck condition.

16 years agoMention bzip2 1.0.5 MFC.
delphij [Thu, 17 Apr 2008 01:02:03 +0000 (01:02 +0000)]
Mention bzip2 1.0.5 MFC.

16 years agoMFC: bzip2 1.0.5
delphij [Thu, 17 Apr 2008 00:53:13 +0000 (00:53 +0000)]
MFC: bzip2 1.0.5

16 years agoFix logic error in sshd(8) concerning the handling of failed
cperciva [Thu, 17 Apr 2008 00:00:41 +0000 (00:00 +0000)]
Fix logic error in sshd(8) concerning the handling of failed
attempts to bind ports for X11 forwarding.

Security: FreeBSD-SA-08:05.openssh

16 years agoMFC rev 1.431 menus.c
remko [Wed, 16 Apr 2008 18:50:04 +0000 (18:50 +0000)]
MFC rev 1.431 menus.c

  Remove ftp.hk.super.net, the DNS isn't pointing to anything at the moment.

  I tested this as well as the submitter and couldn't resolve this either,
  since I dont want to "announce" dead mirrors, I'll remove it from the
  list.

  PR:             122567
  Submitted by:   vs
  Approved by:    imp (mentor, implicit for trivial changes)
  MFC after:      1 week

Approved by: imp (mentor, implicit)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Wed, 16 Apr 2008 09:09:51 +0000 (09:09 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC revs 1.17-1.20, the functional components of which are:
brooks [Tue, 15 Apr 2008 22:37:43 +0000 (22:37 +0000)]
MFC revs 1.17-1.20, the functional components of which are:

1.17:
Allow the characters .-+/ to appear in ppp profile names by folding them
to _ when evaluating ppp_<profile>_nat and ppp_<profile>_mode.  Document
the per-profile variables.

1.18:
Add support for hardwiring ppp sessions to particular devices with new
per-profile variables of the form ppp_<profile>_unit.  No ppp_unit
variable is supported since tying the same unit to more than one profile
won't work.

PR: conf/121452, conf/122127

16 years agoMFC:
emax [Tue, 15 Apr 2008 20:31:14 +0000 (20:31 +0000)]
MFC:

Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server
mode at boot time. Multiple profiles can be started at the same time.
The whole idea is very similar to the ppp rc script.

Document Bluetooth knobs in rc.conf(5)

Set defaults for the rfcomm_pppd_server rc script

16 years agostyle(9)
obrien [Mon, 14 Apr 2008 18:56:48 +0000 (18:56 +0000)]
style(9)

16 years agoMFC:
mlaier [Sat, 12 Apr 2008 19:52:13 +0000 (19:52 +0000)]
MFC:
  Make ALTQ cope with disappearing interfaces (particularly common with mpd
  and netgraph in gernal).  This also allows to add queues for an interface
  that is not yet existing (you have to provide the bandwidth for the
  interface, however).

  PR: kern/106400, kern/117827

Tested by: Florian Smeets, Boris S.

16 years agoMFC: tlb.h 1.27; cache.c 1.21; cheetah.c 1.6; mp_machdep.c 1.38;
marius [Sat, 12 Apr 2008 13:41:32 +0000 (13:41 +0000)]
MFC: tlb.h 1.27; cache.c 1.21; cheetah.c 1.6; mp_machdep.c 1.38;
     pmap.c 1.171; spitfire.c 1.6; tlb.c 1.9

- Do as the comment in pmap_bootstrap() suggests and flush all non-locked
  TLB entries possibly left over by the firmware and also do so while
  bootstrapping APs.
- Use __FBSDID.

16 years agoMFC: if_dc.c 1.195, 1.194; if_dcreg.h 1.55
marius [Fri, 11 Apr 2008 23:41:43 +0000 (23:41 +0000)]
MFC: if_dc.c 1.195, 1.194; if_dcreg.h 1.55

- Fix function prototype for device_shutdown method.
- Const'ify the dc_devs array.
- Correct the maxsize parameter when creating the mbufs busdma tag to
  reflect the actual requirement of dc(4).
- Move the KASSERT in dc_newbuf() to the right spot.
- Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9).
- Move the comment regarding dc_start_locked() to the right spot.

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Fri, 11 Apr 2008 10:35:00 +0000 (10:35 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

16 years agoMFC rev 1.134 ObsoleteFiles.inc
remko [Fri, 11 Apr 2008 10:14:19 +0000 (10:14 +0000)]
MFC rev 1.134 ObsoleteFiles.inc

  Document the removal data for usbdevs.h and usbdevs_data.h,
  sort the entry into it's correct place (behind 200407XX before
  200406XX because we have an explicit date here).

  PR:             misc/122098
  Submitted by:   "John Hein" <jhein@timing.com>
  MFC after:      3 days

Approved by: imp (mentor, implicit)
PR: misc/122099 (should have been this PR).

16 years agoMFC rev 1.19
brooks [Fri, 11 Apr 2008 00:18:37 +0000 (00:18 +0000)]
MFC rev 1.19

Add a new function is_default_interface() which determines if this
interface is one with the default route (or there isn't one).  Use it to
decide if we should adjust the default route and /etc/resolv.conf.

Fix the delete of the default route.  The if statement was totally bogus
and the delete only worked due to a typo. [1]

Reported by:    Jordan Coleman <jordan at JordanColeman dot com> [1]

16 years agoMFC revision 1.22
delphij [Thu, 10 Apr 2008 22:43:46 +0000 (22:43 +0000)]
MFC revision 1.22
date: 2008/03/07 00:01:19;  author: delphij;  state: Exp;  lines: +61 -68
Merge revisions 1.10 and 1.11 from DragonFly:

 - Use real getopt() handling instead of the hand-rolled and
   IOCCC-worthy "Micro getopt()" macros, plus clean up to the
   option handling code:
    * Sort the options in the switch statement;
    * Plug piddling memory leaks when processing repeated options
      by freeing strings before allocating them for a second time;
    * Die with a fatal error if the requested report file cannot
      be opened for appending;
    * Don't call init() before usage() (to prevent the usage
      message being mangled by changes to the terminal settings;)
 - Clean up the usage message, both in usage() and in the main
   program comment, both stylistically (sort and combine options)
   and for accuracy (following the manual page, make note of the -s
   and -S flags, and use the term 'send' instead of 'say' to reduce
   confusion (SAY is the name of a command for output to the user,
   not the connection.))

Obtained from:  DragonFly

16 years agoMFC: rev 1.205: compile on systems without SCTL_MASK32
peter [Thu, 10 Apr 2008 02:45:39 +0000 (02:45 +0000)]
MFC: rev 1.205: compile on systems without SCTL_MASK32

16 years agoMFC: backport -P (per-cpu) stats for %user/%system/%idle etc.
peter [Wed, 9 Apr 2008 19:48:06 +0000 (19:48 +0000)]
MFC: backport -P (per-cpu) stats for %user/%system/%idle etc.

16 years agoMFC: record per-cpu stats for %user/%nice/%system/%idle
peter [Wed, 9 Apr 2008 19:47:20 +0000 (19:47 +0000)]
MFC: record per-cpu stats for %user/%nice/%system/%idle

16 years agoMFC revisions 1.56 and 1.57:
trhodes [Tue, 8 Apr 2008 17:40:43 +0000 (17:40 +0000)]
MFC revisions 1.56 and 1.57:

Bring the DIAGNOSTICS section in ed.4 closer to reality by removing missing
diagnostic messages and adding a few found in the code.

PR: 51891

Properly Xref device.hints(5).

16 years agoMFC r1.11:
rpaulo [Tue, 8 Apr 2008 16:39:00 +0000 (16:39 +0000)]
MFC r1.11:
  Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
  devices.

16 years agoMFC:
rpaulo [Tue, 8 Apr 2008 16:36:49 +0000 (16:36 +0000)]
MFC:
  Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.

16 years agoMFC: Explicitly bypass bpf(4) for media test packets during attach.
jhb [Tue, 8 Apr 2008 14:23:23 +0000 (14:23 +0000)]
MFC: Explicitly bypass bpf(4) for media test packets during attach.

16 years agoMFC r1.97:
rpaulo [Tue, 8 Apr 2008 12:35:56 +0000 (12:35 +0000)]
MFC r1.97:
  Sync with rev 1.63 of NetBSD's ums.c:
       If a mouse has both a wheel and a Z direction we report both.
       XXX Due to tradition the wheel is reported as the Z direction (and the Z
       direction as W).
       Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
       doesn't know what to do with the new coordinate.

16 years agoAdd pkg_check and pkg_sign to ObsoleteFiles.inc.
flz [Tue, 8 Apr 2008 09:08:17 +0000 (09:08 +0000)]
Add pkg_check and pkg_sign to ObsoleteFiles.inc.

16 years agoMFC aac.c 1.137:
emaste [Mon, 7 Apr 2008 14:19:57 +0000 (14:19 +0000)]
MFC aac.c 1.137:
  Calling RequestSupplementAdapterInfo before RequestAdapterInfo appears
  to trip a bug causing the latter to return a zeroed struct
  aac_adapter_info.  This causes two issues.  One is cosmetic only --
  a verbose boot prints information about the controller, and shows all
  zero:

  aac0: Unknown processor 0MHz, 0MB memory (0MB cache, 0MB execution),
    unknown battery platform

  The second problem is that the firmware version information is stored
  away for aac_rev_check, for userland tools (like aaccli) to query via
  the FSACTL_MINIPORT_REV_CHECK and FSACTL_LNX_MINIPORT_REV_CHECK ioctls.
  When aaccli encounters this issue it prints

  Command Error: <The current AFAAPI.DLL is too old to work with the
    current controller software.>

  Move the RequestSupplementAdapterInfo call after RequestAdapterInfo,
  which seems to fix both problems.

16 years agoSynchronize pkg_install with HEAD:
flz [Mon, 7 Apr 2008 11:32:01 +0000 (11:32 +0000)]
Synchronize pkg_install with HEAD:

- Add pkg_updating,
- Remove pkg_sign,
- Support for 8-CURRENT,
- Style cleanup (__P use),
- ... and much more.

16 years agoMFC ng_pptpgre.c rev. 1.41-1.42
mav [Mon, 7 Apr 2008 10:33:28 +0000 (10:33 +0000)]
MFC ng_pptpgre.c rev. 1.41-1.42
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.

16 years agoMFC:
syrinx [Sun, 6 Apr 2008 17:49:37 +0000 (17:49 +0000)]
MFC:
src/contrib/bsnmp/snmpd/main.c: Revision 1.1.1.14

Vendor patch: Prevent bsnmpd from dumping core when a module's init hook
returns an error.

Approved by:    bz (mentor)

16 years agoMFC: BTX real mode, tzdata2008b, GNOME 2.22.
bmah [Sun, 6 Apr 2008 05:34:14 +0000 (05:34 +0000)]
MFC:  BTX real mode, tzdata2008b, GNOME 2.22.

16 years agoMFC revision 1.4: Add /boot/devices.hints to the default list of files
cperciva [Fri, 4 Apr 2008 23:25:08 +0000 (23:25 +0000)]
MFC revision 1.4: Add /boot/devices.hints to the default list of files
which have local modifications merged during upgrading.

16 years agoMFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
cperciva [Fri, 4 Apr 2008 23:22:49 +0000 (23:22 +0000)]
MFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
files which don't exist; and fix the handling of symlinks to
dynamically linked libraries.

16 years agoMFC: ipfw2.c 1.114
julian [Fri, 4 Apr 2008 18:10:50 +0000 (18:10 +0000)]
MFC: ipfw2.c   1.114
     ipfw.8    1.209

Use an explicit argument to format table args as IP addresses.

16 years agoMerge rev 1.20:
scottl [Fri, 4 Apr 2008 16:42:17 +0000 (16:42 +0000)]
Merge rev 1.20:
  Fix a buffer overflow in the processing of various SCSI commands.  This
  likely fixes a great number of weird problems that have been reported
  with this driver.

16 years agoMFC: Make it possible to continue working after calling doadump() manually.
jhb [Thu, 3 Apr 2008 19:40:58 +0000 (19:40 +0000)]
MFC: Make it possible to continue working after calling doadump() manually.

16 years agoMFC: Add the 'tid' command to select a thread using a kernel thread ID.
jhb [Thu, 3 Apr 2008 18:49:05 +0000 (18:49 +0000)]
MFC: Add the 'tid' command to select a thread using a kernel thread ID.

16 years agoMFC: Initialize list of kld's correctly when there are no kld's and catch
jhb [Thu, 3 Apr 2008 18:47:05 +0000 (18:47 +0000)]
MFC: Initialize list of kld's correctly when there are no kld's and catch
errors in kgdb_parse() so it returns 0 for invalid expressions.  This
fixes the kld loading for 6.x and 7.x.

16 years agoMFC: rev. 1.6
brueffer [Wed, 2 Apr 2008 16:53:04 +0000 (16:53 +0000)]
MFC: rev. 1.6

ARC-1680 is supported.

16 years agoMFC rev 1.212 ata-chipset.c
remko [Tue, 1 Apr 2008 18:22:37 +0000 (18:22 +0000)]
MFC rev 1.212 ata-chipset.c
MFC rev 1.83 ata-pci.h

  Add proper support for the SATA/AHCI part of IXP[67]00

Approved by:    imp (mentor, implicit), sos

16 years agoAcquire Giant in aac_cam_event for xpt_release_simq. Not necessary with
emaste [Tue, 1 Apr 2008 00:09:29 +0000 (00:09 +0000)]
Acquire Giant in aac_cam_event for xpt_release_simq.  Not necessary with
MPSAFE CAM so not an MFC.

16 years agoMFC aac.c r1.126:
emaste [Mon, 31 Mar 2008 23:16:05 +0000 (23:16 +0000)]
MFC aac.c r1.126:

  Do not recursively acquire aac_io_lock in aac_ioctl_event.

16 years agoMFC aac_cam.c 1.30:
emaste [Mon, 31 Mar 2008 20:11:46 +0000 (20:11 +0000)]
MFC aac_cam.c 1.30:

  Merge from Adaptec a 64 bit fix and a workaround for luns != 0
  returning CAM_SEL_TIMEOUT on SAS controllers, which prevented
  passthrough devices from being created.

16 years agoMFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:
emaste [Mon, 31 Mar 2008 20:03:31 +0000 (20:03 +0000)]
MFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24:

  Add family support to allow the driver to attach to new devices that
  share the same interface.

16 years agoMFC aac.c 1.130:
emaste [Mon, 31 Mar 2008 19:50:53 +0000 (19:50 +0000)]
MFC aac.c 1.130:
  Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by: Adaptec

16 years agoMFC aac.c 1.131:
emaste [Mon, 31 Mar 2008 17:04:10 +0000 (17:04 +0000)]
MFC aac.c 1.131:
  Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init

16 years agoMFC aac.c 1.121:
emaste [Mon, 31 Mar 2008 14:44:08 +0000 (14:44 +0000)]
MFC aac.c 1.121:
  Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669

16 years agoInclude Guido's license information from the pattern-matching code.
kientzle [Mon, 31 Mar 2008 06:20:46 +0000 (06:20 +0000)]
Include Guido's license information from the pattern-matching code.

16 years agoMFC rev 1.84 route.c
remko [Sat, 29 Mar 2008 13:44:36 +0000 (13:44 +0000)]
MFC rev 1.84 route.c

  In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR: bin/112303
  Submitted by: bruce@cran.org.uk
  MFC after: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC aac.c r1.133:
emaste [Fri, 28 Mar 2008 18:13:38 +0000 (18:13 +0000)]
MFC aac.c r1.133:
  Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec

16 years agoMFC aac.c r1.127
emaste [Thu, 27 Mar 2008 20:47:21 +0000 (20:47 +0000)]
MFC aac.c r1.127

  Avoid holding the aac_io_lock over copyout.

  Submitted by: Achim Leubner @ Adaptec.

16 years agoMFC
kib [Thu, 27 Mar 2008 13:53:52 +0000 (13:53 +0000)]
MFC
rev. 1.682 of sys/amd64/amd64/machdep.c
rev. 1.16  of sys/amd64/ia32/ia32_signal.c
rev. 1.33  of sys/amd64/linux32/linux32_sysvec.c
rev. 1.666 of sys/i386/i386/machdep.c
rev. 1.152 of sys/i386/linux/linux_sysvec.c
rev. 1.39  of sys/i386/svr4/svr4_machdep.c
rev. 1.402 of sys/pc98/pc98/machdep.c

Modify the signal handler frame setup code to clear the DF {e,r}flags
bit on the amd64/i386 for the signal handlers.

16 years agoFix typo and wording glitch.
bmah [Thu, 27 Mar 2008 04:55:06 +0000 (04:55 +0000)]
Fix typo and wording glitch.

Submitted by: Ben Kaduk

16 years agoMFC Revision 1.27
lulf [Wed, 26 Mar 2008 16:33:57 +0000 (16:33 +0000)]
MFC Revision 1.27
  - Fix a memory leak when re-discovering a gvinum configuration.

Approved by:    pjd (mentor)

16 years agoMFC aac.c r1.123:
emaste [Wed, 26 Mar 2008 14:46:43 +0000 (14:46 +0000)]
MFC aac.c r1.123:
  Dequeue all events in aac_release_command (instead of just one)
  so that there's no risk of them getting stranded.

16 years agoMFC aac.c r1.128:
emaste [Wed, 26 Mar 2008 14:22:22 +0000 (14:22 +0000)]
MFC aac.c r1.128:
  Change spelling and eliminate a typo in comments to reduce diffs with
  Adaptec's vendor driver.

16 years agoMFC 1.31: Change .8s port name restriction to .15s.
ume [Tue, 25 Mar 2008 13:14:29 +0000 (13:14 +0000)]
MFC 1.31: Change .8s port name restriction to .15s.
This change corresponds to inet.c 1.13.

16 years agoMFC of tzdata2008b
edwin [Tue, 25 Mar 2008 03:50:01 +0000 (03:50 +0000)]
MFC of tzdata2008b

16 years agoMFC: 1.26
jkim [Mon, 24 Mar 2008 17:50:24 +0000 (17:50 +0000)]
MFC: 1.26

Update list of possible mixer devices.

16 years agoMFC: 1.24-1.26
jkim [Mon, 24 Mar 2008 17:49:34 +0000 (17:49 +0000)]
MFC: 1.24-1.26

- Check device masks and bypass printing headers if capable device does
not exist.  /etc/rc.d/mixer tried to restore non-existent recording
source because /var/var/db/mixer*-state contains '=rec' for example.
- Remove hardcoded mixer2 and mixer3 and do the right thing.
- Replace getopt(3) with hand-rolled option parser.  It was not able
to handle 'mixer -rec mic' although it is a valid command.
- Make '-s' and '-S' mutualy exclusive as mixer(8) says.
- Do not re-read recording source unless it has been modified.
- Clean up code and fix style(9) nits.