]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r196938:
trasz [Sun, 31 Jan 2010 02:20:01 +0000 (02:20 +0000)]
MFC r196938:

Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed
error messages.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196736:
trasz [Sun, 31 Jan 2010 02:18:28 +0000 (02:18 +0000)]
MFC r196736:

Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196710:
trasz [Sun, 31 Jan 2010 02:17:01 +0000 (02:17 +0000)]
MFC r196710:

Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196949:
trasz [Sun, 31 Jan 2010 02:11:14 +0000 (02:11 +0000)]
MFC r196949:

Enable NFSv4 ACL support in ZFS.

MFC r197435:

In VOP_SETACL(9) and VOP_GETACL(9), specifying wrong ACL type should result
in EINVAL, not EOPNOTSUPP.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201018:
trasz [Sat, 30 Jan 2010 15:53:32 +0000 (15:53 +0000)]
MFC r201018:

Fix breakage introduced in last commit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201016:
trasz [Sat, 30 Jan 2010 15:50:01 +0000 (15:50 +0000)]
MFC r201016:

Improve ACL branding mismatch detection and reporting in some rare cases,
such as "setfacl -m ''".

git-svn-id: svn://svn.freebsd.org/base/stable/8@203198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRegenerate.
antoine [Sat, 30 Jan 2010 15:42:06 +0000 (15:42 +0000)]
Regenerate.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203197 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202440 to stable/8:
antoine [Sat, 30 Jan 2010 15:40:00 +0000 (15:40 +0000)]
MFC r202440 to stable/8:
  Unbreak world WITHOUT_NETGRAPH.

  PR: 137487
  Submitted by: bf (previous version)
  No objections: net@

git-svn-id: svn://svn.freebsd.org/base/stable/8@203196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202448 to stable/8:
antoine [Sat, 30 Jan 2010 15:28:14 +0000 (15:28 +0000)]
MFC r202448 to stable/8:
  Do not build netgraph kernel modules if WITHOUT_NETGRAPH is set in src.conf
  Submitted by: bf

git-svn-id: svn://svn.freebsd.org/base/stable/8@203195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196936:
trasz [Sat, 30 Jan 2010 14:58:25 +0000 (14:58 +0000)]
MFC r196936:

Add NFSv4 support to setfacl(1).

git-svn-id: svn://svn.freebsd.org/base/stable/8@203193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196841:
trasz [Sat, 30 Jan 2010 14:56:13 +0000 (14:56 +0000)]
MFC r196841:

Add NFSv4 ACL support to mv(1).

git-svn-id: svn://svn.freebsd.org/base/stable/8@203192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196839:
trasz [Sat, 30 Jan 2010 14:54:12 +0000 (14:54 +0000)]
MFC r196839:

Add NFSv4 ACL support to find(1).

git-svn-id: svn://svn.freebsd.org/base/stable/8@203191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196827:
trasz [Sat, 30 Jan 2010 14:51:24 +0000 (14:51 +0000)]
MFC r196827:

Add NFSv4 ACL support to getfacl(1).

git-svn-id: svn://svn.freebsd.org/base/stable/8@203190 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196754:
trasz [Sat, 30 Jan 2010 14:49:17 +0000 (14:49 +0000)]
MFC r196754:

Add NFSv4 ACL support to cp(1) and fix a few memory leaks.

Note that this changes error reporting behaviour somewhat - before,
no error was reported if ACL couldn't be copied because the target
filesystem doesn't support ACLs.  Now, it will be reported - of course,
only if there actually is an ACL to copy.

Reviewed by: rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@203189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196753:
trasz [Sat, 30 Jan 2010 14:47:23 +0000 (14:47 +0000)]
MFC r196753:

- Don't include both <sys/types.h> and <sys/param.h>

- Keep variables sorted

- Fix logic error with -f and -v options - don't print
  the usual -v output if there was an error, whether or not
  we were passed -f

- Don't call free(3) just before exit(2)

- Whitespace fixes

Submitted by: bde

git-svn-id: svn://svn.freebsd.org/base/stable/8@203188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196712:
trasz [Sat, 30 Jan 2010 14:44:32 +0000 (14:44 +0000)]
MFC r196712:

Add NFSv4 ACL support to ls(1).

MFC r196773:

Fix regression introduced in r196712 - the 'name' string needs
to be rewritten for each file we want to check ACL on.  Without
this change, ls(1) would check only the ACL on the first file
to list.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196711:
trasz [Sat, 30 Jan 2010 14:40:42 +0000 (14:40 +0000)]
MFC r196711:

Make the code more readable and fix chmod(1) on symlinks with
NFSv4 enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203186 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201145 to stable/8:
antoine [Sat, 30 Jan 2010 12:11:21 +0000 (12:11 +0000)]
MFC r201145 to stable/8:
  (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
  Fix some wrong usages.
  Note: this does not affect generated binaries as this argument is not used.

  PR: 137213
  Submitted by: Eygene Ryabinkin (initial version)

git-svn-id: svn://svn.freebsd.org/base/stable/8@203184 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202894
alc [Sat, 30 Jan 2010 06:23:28 +0000 (06:23 +0000)]
MFC r202894
  Handle a race between pmap_kextract() and pmap_promote_pde().

git-svn-id: svn://svn.freebsd.org/base/stable/8@203182 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202880:
kib [Fri, 29 Jan 2010 20:42:03 +0000 (20:42 +0000)]
MFC r202880:
Do not check for existence of symlink source for the link action.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202692:
kib [Fri, 29 Jan 2010 20:02:28 +0000 (20:02 +0000)]
MFC r202692:
Remove the signal from sigqueue before notifying the debugger for traced
process, fixing the race between resuming from stopped state and other
thread noting the old signal on the queue and acting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202986:
rpaulo [Fri, 29 Jan 2010 18:19:43 +0000 (18:19 +0000)]
MFC r202986:
  o add more notification strings in iwn_intr_str()
  o sync with OpenBSD code

  Submitted by: Bernhard Schmidt <bschmidt at techwires.net>
  MFC after: 3 days

git-svn-id: svn://svn.freebsd.org/base/stable/8@203173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202967:
rpaulo [Fri, 29 Jan 2010 18:18:18 +0000 (18:18 +0000)]
MFC r202967:
   Call ieee80211_radiotap_rx, not ieee80211_radiotap_tx on sta_input()

   PR: 143163
   Submitted by:Alexander Egorenkov <egorenar at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@203172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 203066, 203067
edwin [Fri, 29 Jan 2010 11:30:40 +0000 (11:30 +0000)]
MFC of 203066, 203067

Git has been added as port 9418:
http://www.iana.org/assignments/port-numbers

The Erlang Port Mapper Daemon (from ports/lang/erlang) has been
assigned official port number 4369 by IANA.

PR: conf/143259 conf/113265
Submitted by: Denny Lin <dennylin93@cnmc32.hs.ntnu.edu.tw> Jimmy Olgeni <olgeni@freebsd.org>

git-svn-id: svn://svn.freebsd.org/base/stable/8@203163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203125: fix typo in .Xr.
joerg [Fri, 29 Jan 2010 10:38:54 +0000 (10:38 +0000)]
MFC r203125: fix typo in .Xr.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202324: In 'make delete-old', use 'exec' to redirect an fd persistently
jilles [Thu, 28 Jan 2010 22:15:29 +0000 (22:15 +0000)]
MFC r202324: In 'make delete-old', use 'exec' to redirect an fd persistently

That is, write 'exec 3<&0' instead of '3<&0'. Due to an sh(1) bug fixed in
head in r199953, the latter also persisted, provided that fd 3 was not open
before.  With newer sh or fd 3 open, it would not delete orphaned catpages.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202317
brueffer [Thu, 28 Jan 2010 17:07:14 +0000 (17:07 +0000)]
MFC: r202317

Add manpages for ipwfw(4) and iwifw(4), based on iwnfw(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@203121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r196797:
gnn [Thu, 28 Jan 2010 16:48:44 +0000 (16:48 +0000)]
MFC r196797:

Add ARP statistics to the kernel and netstat.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203120 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years ago- Record merge of r197788, r203040, r203045, r203048.
avilla [Thu, 28 Jan 2010 15:09:11 +0000 (15:09 +0000)]
- Record merge of r197788, r203040, r203045, r203048.

Noticed by: gavin
Approved by: tabthorpe (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@203117 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200135:
delphij [Thu, 28 Jan 2010 02:33:20 +0000 (02:33 +0000)]
MFC r200135:

Make umount(8) WARNS=6 clean:
 - Cast delimiter width to integer [1]
 - Solve name conflicts against system header
 - Constify parameters to avoid qualifier conflict

PR: bin/140017 [1]
Submitted by: Ulrich Spörlein <uqs spoerlein net> [1]
Sponsored by: iXsystems, Inc

git-svn-id: svn://svn.freebsd.org/base/stable/8@203105 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years ago- MFC r197788, r203040, r203045, r203048
avilla [Wed, 27 Jan 2010 18:12:22 +0000 (18:12 +0000)]
- MFC r197788, r203040, r203045, r203048

Approved by: tabthorpe (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@203084 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoFixup mergeinfo.
jhb [Wed, 27 Jan 2010 17:03:40 +0000 (17:03 +0000)]
Fixup mergeinfo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203079 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r200318 from head: add myself to calendar.freebsd.
gavin [Wed, 27 Jan 2010 15:36:19 +0000 (15:36 +0000)]
Merge r200318 from head:  add myself to calendar.freebsd.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203074 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r202943: Add man pages for the gpib(4), pcii(4), and tnt4882(4)
joerg [Wed, 27 Jan 2010 10:42:34 +0000 (10:42 +0000)]
Merge r202943: Add man pages for the gpib(4), pcii(4), and tnt4882(4)
drivers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge of r202870,202898:
joerg [Wed, 27 Jan 2010 10:32:02 +0000 (10:32 +0000)]
Merge of r202870,202898:

Overhaul of the pcii driver:

. Properly allocate all IO space resources.  These cards scatter their
  IO addresses over a range of 0x1600 bytes, and they require an
  additional address for "special interrupt handling".

. Implement the "special interrupt handling" per the GPIB-PCIIA
  Technical Reference Manual; this was apparently not declared for the
  clone card this driver has been originally implemented for, but it
  turned out to be needed for both, an original NI brand PCII/PCIIA
  card as well as the Axiom AX5488 clone.

. Add some diagnostic messages for various resource allocation etc.
  failures during probe.

. Add some comments about the structure of the IO address space that
  is used by these cards.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202915:
bz [Wed, 27 Jan 2010 09:45:07 +0000 (09:45 +0000)]
MFC r202915:
  Correct a typo.

  Submitted by: kensmith

git-svn-id: svn://svn.freebsd.org/base/stable/8@203060 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRemove bogus mergeinfo I accidentally added (attempted merge from
dougb [Tue, 26 Jan 2010 18:31:42 +0000 (18:31 +0000)]
Remove bogus mergeinfo I accidentally added (attempted merge from
a bogus head).

Reminded by: gavin

git-svn-id: svn://svn.freebsd.org/base/stable/8@203039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202817:
dougb [Tue, 26 Jan 2010 18:24:13 +0000 (18:24 +0000)]
MFC r202817:

Make -U once again honor -D after my change to consolidate setting
of MTREEDB with DESTDIR.

PR: bin/143089
Submitted by: Anton Yuzhaninov <citrin@citrin.ru>

git-svn-id: svn://svn.freebsd.org/base/stable/8@203037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoinsta-mfh r203028 (doc update)
des [Tue, 26 Jan 2010 15:07:47 +0000 (15:07 +0000)]
insta-mfh r203028 (doc update)

git-svn-id: svn://svn.freebsd.org/base/stable/8@203029 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFH (r202613, r202623): HTTP digest authentication support.
des [Tue, 26 Jan 2010 14:15:12 +0000 (14:15 +0000)]
MFH (r202613, r202623): HTTP digest authentication support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of tzdata2010b, r203019
edwin [Tue, 26 Jan 2010 11:15:03 +0000 (11:15 +0000)]
MFC of tzdata2010b, r203019

Mexico's House of Representatives has approved a proposal for
northern Mexico's border cities to share the same daylight saving
schedule as the United States.

git-svn-id: svn://svn.freebsd.org/base/stable/8@203020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202884:
kib [Tue, 26 Jan 2010 09:20:33 +0000 (09:20 +0000)]
MFC r202884:
Document pthread_timedjoin_np.
Note implementation-defined EOPNOTSUPP error [1].

git-svn-id: svn://svn.freebsd.org/base/stable/8@203014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC SVN rev 198492
emax [Tue, 26 Jan 2010 00:38:56 +0000 (00:38 +0000)]
MFC SVN rev 198492

Fix typo in bluetooth.3
Do not use reserved C++ keyword "new"

git-svn-id: svn://svn.freebsd.org/base/stable/8@202995 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201895:
zec [Mon, 25 Jan 2010 14:17:13 +0000 (14:17 +0000)]
MFC r201895:
  Reduce recursions on curvnet and thus spamming the console with warning
  messages for kernels built with options VIMAGE and VNET_DEBUG enabled.

  Reviewed by:  bz

git-svn-id: svn://svn.freebsd.org/base/stable/8@202968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201879:
attilio [Mon, 25 Jan 2010 12:05:51 +0000 (12:05 +0000)]
MFC r201879:
Introduce the new kernel thread called "deadlock resolver".
It is used in order to seek within the threads state and heuristically
understand if there is any deadlock happening.

In order to implement it, the sq_type in sleepqueues is mandatory and not
only compiled along with INVARIANTS option. Additively, a new sleepqueue
function, sleepq_type() is added, returning the type of the sleepqueue
linked to a wchan.
Three new sysctls are added in order to configure the thread:
debug.deadlkres.slptime_threshold
debug.deadlkres.blktime_threshold
debug.deadlkres.sleepfreq

rappresenting the thresholds for sleep and block time that will lead to
a deadlock matching (when exceeded), while the sleepfreq rappresents the
number of seconds between 2 consecutive thread runnings.
In order to enable the deadlock resolver thread recompile your kernel
with the option DEADLKRES.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@202966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201790:
attilio [Mon, 25 Jan 2010 11:56:53 +0000 (11:56 +0000)]
MFC r201790:
- Set td_slptick to 0 when moving threads out of sleepqueues.
- Move td_slptick from u_int to int in order to follow 'ticks' signedness
  and wrap up accordingly.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@202965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202449:
tuexen [Sun, 24 Jan 2010 22:17:08 +0000 (22:17 +0000)]
MFC 202449:

Get rid of support of an old version of the SCTP-AUTH draft.
Get rid of unused MD5 code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r202000 from head:
gavin [Sun, 24 Jan 2010 22:01:04 +0000 (22:01 +0000)]
Merge r202000 from head:

  Don't panic on attach if we can't allocate ifp

Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202950 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoFix mergeinfo after r202464, which was merged to etc/rc.d rather than etc
gavin [Sun, 24 Jan 2010 21:17:06 +0000 (21:17 +0000)]
Fix mergeinfo after r202464, which was merged to etc/rc.d rather than etc

Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202949 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197752:
das [Sun, 24 Jan 2010 20:15:59 +0000 (20:15 +0000)]
MFC r197752:

  Better glibc compatibility for getline/getdelim:

  - Tolerate applications that pass a NULL pointer for the buffer and
    claim that the capacity of the buffer is nonzero.

  - If an application passes in a non-NULL buffer pointer and claims the
    buffer has zero capacity, we should free (well, realloc) it
    anyway. It could have been obtained from malloc(0), so failing to
    free it would be a small memory leak.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRecord rev. 198277 MFC.
fjoe [Sun, 24 Jan 2010 17:00:21 +0000 (17:00 +0000)]
Record rev. 198277 MFC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoRecord rev. 201924 MFC.
fjoe [Sun, 24 Jan 2010 16:58:20 +0000 (16:58 +0000)]
Record rev. 201924 MFC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202500:
ed [Sun, 24 Jan 2010 14:30:57 +0000 (14:30 +0000)]
MFC r202500:

  Fix a regression that was introduced in r191882.

  I changed login_tty() to only work when the application is not a session
  leader yet. This works fine for applications in the base system, but it
  turns out various applications call this function after daemonizing,
  which means they already use their own session.

  If setsid() fails, just call tcsetsid() on the current session.
  tcsetsid() will already perform proper security checks.

Reported by: Oliver Lehmann

git-svn-id: svn://svn.freebsd.org/base/stable/8@202929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoBump __FreeBSD_version for scandir(3) and alphasort(3) interface changes.
kib [Sun, 24 Jan 2010 12:37:30 +0000 (12:37 +0000)]
Bump __FreeBSD_version for scandir(3) and alphasort(3) interface changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge scandir(3) interface update to stable/8.
kib [Sun, 24 Jan 2010 12:35:36 +0000 (12:35 +0000)]
Merge scandir(3) interface update to stable/8.

MFC r201512:
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008.

MFC r201602:
Move scandir(3) and alphasort(3) into XSI namespace.

MFC r201604:
Use thunks to adapt alphasort-like interface to the comparision function
required by qsort() and qsort_r().

MFC r202556 (by ache):
Use strcoll() in opendir() and alphasort(). Remove some comments.

MFC r202572 (by ache):
Revert to using strcmp() for opendir().

MFC r202677 (by ache):
Style.

MFC r202679 (by ache):
Style: rename internal function to opendir_compar().

MFC r202691 (by ache):
For alphasort(3) add reference to strcoll(3).

MFC r202693 (by ache):
Style: reword comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202469:
bz [Sun, 24 Jan 2010 12:22:38 +0000 (12:22 +0000)]
MFC r202469:
  Garbage collect references to the no longer implemented tcp_fasttimo().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: Send link state change control messages to "orphans" hook as well.
fjoe [Sun, 24 Jan 2010 08:59:33 +0000 (08:59 +0000)]
MFC: Send link state change control messages to "orphans" hook as well.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202468:
bz [Sat, 23 Jan 2010 16:40:35 +0000 (16:40 +0000)]
MFC r202468:

  Add ip4.saddrsel/ip4.nosaddrsel (and equivalent for ip6) to control
  whether to use source address selection (default) or the primary
  jail address for unbound outgoing connections.

  This is intended to be used by people upgrading from single-IP
  jails to multi-IP jails but not having to change firewall rules,
  application ACLs, ... but to force their connections (unless
  otherwise changed) to the primry jail IP they had been used for
  years, as well as for people prefering to implement similar policies.

  Note that for IPv6, if configured incorrectly, this might lead to
  scope violations, which single-IPv6 jails could as well, as by the
  design of jails. [1]

  Reviewed by: jamie, hrs (ipv6 part)
  Pointed out by: hrs [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@202891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200764
rnoland [Sat, 23 Jan 2010 16:29:04 +0000 (16:29 +0000)]
MFC r200764

Fix a handful of issues with via agp support.

  * Read the pci capability register to identify AGP 3 support
  * Add missing smaller aperture sizes for AGP3 chips.
  * Fix the aperture size calculation on AGP2 chips.
    All sizes between 32M and 256M reported as 256M.
  * Add \n to error string.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202162
brueffer [Sat, 23 Jan 2010 14:12:40 +0000 (14:12 +0000)]
MFC: r202162

Various fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202863
np [Sat, 23 Jan 2010 08:37:04 +0000 (08:37 +0000)]
MFC r202863

Don't forget to release the adapter lock for a no-op.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 202552:
marcel [Sat, 23 Jan 2010 06:29:34 +0000 (06:29 +0000)]
MFC rev 202552:
Add command-line option -dev to set the default value of the currdev
variable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202268:
delphij [Sat, 23 Jan 2010 01:25:09 +0000 (01:25 +0000)]
MFC r202268:

 o Add PCI ID for BCM 5756.
 o Don't enable BGE_FLAG_BER_BUG on both 5722 and 5756, and based
   on their PCI IDs rather than their chip IDs.

Reported by:    several PC-BSD users via kmoore
Reviewed by:    yongari, imp, jhb, davidch
Sponsored by:   iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202709:
delphij [Sat, 23 Jan 2010 00:52:32 +0000 (00:52 +0000)]
MFC r202709:

Give the right value when complaining it being wrong.

Reported by: danfe

git-svn-id: svn://svn.freebsd.org/base/stable/8@202859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201894:
delphij [Sat, 23 Jan 2010 00:49:10 +0000 (00:49 +0000)]
MFC r201894:

Fix formatting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201892:
delphij [Sat, 23 Jan 2010 00:43:44 +0000 (00:43 +0000)]
MFC r201892:

Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).

Reviewed by: davidxu

git-svn-id: svn://svn.freebsd.org/base/stable/8@202855 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200930:
delphij [Sat, 23 Jan 2010 00:32:19 +0000 (00:32 +0000)]
MFC r200930:

Adapt OpenBSD pf's "sloopy" TCP state machine which is useful for Direct
Server Return mode, where not all packets would be visible to the load
balancer or gateway.

This commit should be reverted when we merge future pf versions.  The
benefit it would provide is that this version does not break any existing
public interface and thus won't be a problem if we want to MFC it to
earlier FreeBSD releases.

Discussed with: mlaier
Obtained from: OpenBSD
Sponsored by: iXsystems, Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoSynchronize pkg_install with HEAD.
flz [Fri, 22 Jan 2010 23:13:46 +0000 (23:13 +0000)]
Synchronize pkg_install with HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202840 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201261:
brooks [Fri, 22 Jan 2010 20:24:55 +0000 (20:24 +0000)]
MFC r201261:
  Add missing `void' keywords.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r201647 from head:
gavin [Fri, 22 Jan 2010 20:02:22 +0000 (20:02 +0000)]
Merge r201647 from head:
  Print leading zeros in the UFS2 FSID.

PR: bin/142155
Submitted by: Efstratios Karatzas  gpf.kira gmail.com
Approved by: ed (mentor, implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202824 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201350:
brooks [Fri, 22 Jan 2010 19:51:34 +0000 (19:51 +0000)]
MFC r201350:

  The devices that supported EVFILT_NETDEV kqueue filters were removed in
  r195175.  Remove all definitions, documentation, and usage.

The change of function signature for vlan_link_state() was not merged to
maintain the ABI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202582:
dougb [Fri, 22 Jan 2010 17:30:36 +0000 (17:30 +0000)]
MFC r202582:
Update named.conf for documentation IP addresses and domains

git-svn-id: svn://svn.freebsd.org/base/stable/8@202818 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r201848
brueffer [Fri, 22 Jan 2010 17:03:49 +0000 (17:03 +0000)]
MFC: r201848

Free allocated sbufs before returning ENOMEM.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202798:
mav [Fri, 22 Jan 2010 11:42:23 +0000 (11:42 +0000)]
MFC r202798:
Add "MIXER CONTROLS" chapter.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202804 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202160:
mav [Fri, 22 Jan 2010 11:40:55 +0000 (11:40 +0000)]
MFC r202160:
Update, reflecting added multichannel playback support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202127, r202156:
mav [Fri, 22 Jan 2010 11:37:19 +0000 (11:37 +0000)]
MFC r202127, r202156:
Add multichannel (4.0, 5.1 and 7.1) playback support.

Stereo stream is no more duplicated to all ports. If you loose sound, check
you are using right connectors. Front speakers connector is usually green,
center/LFE - orange, rear - black, side - gray.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202267:
mav [Fri, 22 Jan 2010 11:31:49 +0000 (11:31 +0000)]
MFC r202267:
Hide from default sndstat some information not used on daily basis,
to make it readable by average user with average screen size.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202166:
mav [Fri, 22 Jan 2010 11:30:32 +0000 (11:30 +0000)]
MFC r202166:
Make default recording source choosing more intelligent.
Change default recording level from 0 to 75.
It should increase chances for things to work just out of the box.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r197420:
mav [Fri, 22 Jan 2010 11:16:46 +0000 (11:16 +0000)]
MFC r197420:
Lock bus scan.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202567: acpi_ec: remove redundant acpi_disabled check
avg [Fri, 22 Jan 2010 09:41:09 +0000 (09:41 +0000)]
MFC r202567: acpi_ec: remove redundant acpi_disabled check

git-svn-id: svn://svn.freebsd.org/base/stable/8@202792 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202558: acpi_ec: clean up 'private' ivar when freeing memory
avg [Fri, 22 Jan 2010 09:34:57 +0000 (09:34 +0000)]
MFC r202558: acpi_ec: clean up 'private' ivar when freeing memory

git-svn-id: svn://svn.freebsd.org/base/stable/8@202790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202585: fix a comment typo
avg [Fri, 22 Jan 2010 09:27:31 +0000 (09:27 +0000)]
MFC r202585: fix a comment typo

git-svn-id: svn://svn.freebsd.org/base/stable/8@202787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev. 202271-202273:
marcel [Fri, 22 Jan 2010 03:59:05 +0000 (03:59 +0000)]
MFC rev. 202271-202273:
o  Add wrappers for the RT Variable Services.
o  Add ioctl requests to /dev/io on ia64 for reading and writing
   EFI variables.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev. 202097:
marcel [Fri, 22 Jan 2010 03:50:43 +0000 (03:50 +0000)]
MFC rev. 202097:
Use io(4) for I/O port access on ia64, rather than through sysarch(2).

git-svn-id: svn://svn.freebsd.org/base/stable/8@202776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198411:
jhb [Thu, 21 Jan 2010 19:11:18 +0000 (19:11 +0000)]
MFC 198411:
- Fix several off-by-one errors when using MAXCOMLEN.  The p_comm[] and
  td_name[] arrays are actually MAXCOMLEN + 1 in size and a few places that
  created shadow copies of these arrays were just using MAXCOMLEN.
- Prefer using sizeof() of an array type to explicit constants for the
  array length in a few places.
- Ensure that all of p_comm[] and td_name[] is always zero'd during
  execve() to guard against any possible information leaks.  Previously
  trailing garbage in p_comm[] could be leaked to userland in ktrace
  record headers via td_name[].

git-svn-id: svn://svn.freebsd.org/base/stable/8@202764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 198134,198149,198170,198171,198391,200948:
jhb [Thu, 21 Jan 2010 17:54:29 +0000 (17:54 +0000)]
MFC 198134,198149,198170,198171,198391,200948:
Add a facility for associating optional descriptions with active interrupt
handlers.  This is primarily intended as a way to allow devices that use
multiple interrupts (e.g. MSI) to meaningfully distinguish the various
interrupt handlers.
- Add a new BUS_DESCRIBE_INTR() method to the bus interface to associate
  a description with an active interrupt handler setup by BUS_SETUP_INTR.
  It has a default method (bus_generic_describe_intr()) which simply passes
  the request up to the parent device.
- Add a bus_describe_intr() wrapper around BUS_DESCRIBE_INTR() that supports
  printf(9) style formatting using var args.
- Reserve MAXCOMLEN bytes in the intr_handler structure to hold the name of
  an interrupt handler and copy the name passed to intr_event_add_handler()
  into that buffer instead of just saving the pointer to the name.
- Add a new intr_event_describe_handler() which appends a description string
  to an interrupt handler's name.
- Implement support for interrupt descriptions on amd64, i386, and sparc64 by
  having the nexus(4) driver supply a custom bus_describe_intr method that
  invokes a new intr_describe() MD routine which in turn looks up the
  associated interrupt event and invokes intr_event_describe_handler().

git-svn-id: svn://svn.freebsd.org/base/stable/8@202762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202587
marius [Thu, 21 Jan 2010 17:37:25 +0000 (17:37 +0000)]
MFC: r202587

Add epic(4) also here.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r202290
brueffer [Thu, 21 Jan 2010 16:31:45 +0000 (16:31 +0000)]
MFC: r202290

Build iwi(4) and iwifw(4) modules on amd64 as well.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202753 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 202286:
jhb [Thu, 21 Jan 2010 15:10:20 +0000 (15:10 +0000)]
MFC 202286:
Update the ident for the XENHVM kernel config to match the filename.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202578 and r202579:
ru [Thu, 21 Jan 2010 13:15:14 +0000 (13:15 +0000)]
MFC r202578 and r202579:

If CTAGS is not set or set to something other than "ctags" or "gtags",
"cleandepend" was not removing the .depend file; fixed. [1]

Allow the CTAGS to be set to something other than "gtags" or "ctags",
but assume it supports a ctags(1)-compatible syntax. [2]

PR: 126747 [1], 46676 [2]

git-svn-id: svn://svn.freebsd.org/base/stable/8@202747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 202280, 202281
edwin [Thu, 21 Jan 2010 10:16:21 +0000 (10:16 +0000)]
MFC of 202280, 202281

- Remove -d option, whois.nic.mil doesn't exist anymore.

- Make whois capable of searching for IPv6 addresses just like it can
  do for IPv4 addresses without having to explicetly specify that the
  ARIN server should be used to get the initial information.

PR: bin/142507, bin/128725
Submitted by: Dan Mahoney <danm@prime.gushi.org>, "Matt D. Harris" <mdh_lists@yahoo.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@202740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201416:
np [Thu, 21 Jan 2010 10:12:21 +0000 (10:12 +0000)]
MFC r201416:

Avoid NULL dereference in arpresolve.

Requested by: kib@

git-svn-id: svn://svn.freebsd.org/base/stable/8@202739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r201907,202671,202678
np [Thu, 21 Jan 2010 03:06:52 +0000 (03:06 +0000)]
MFC r201907,202671,202678

r201907:
Extra parantheses to keep certain compilers happy.

r202671:
Fix for a cxgb(4) panic.  cxgb_ioctl can be called by the IP and IPv6
layers with non-sleepable locks held.  Don't (potentially) sleep in
those situations.

r202678:
Complain if freelist queue sizes are significantly less than desired.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202406:
yongari [Thu, 21 Jan 2010 00:53:00 +0000 (00:53 +0000)]
MFC r202406:
  Don't free mbuf chains when bge(4) fails to collapse the mbuf
  chains. This part of code is to enhance performance so failing the
  collapsing should not free TX frames. Otherwise bge(4) will
  unnecessarily drop frames which in turn can freeze the network
  connection.

  Reported by: Igor Sysoev (is <> rambler-co dot ru)
  Tested by: Igor Sysoev (is <> rambler-co dot ru)

git-svn-id: svn://svn.freebsd.org/base/stable/8@202730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202294:
yongari [Thu, 21 Jan 2010 00:49:14 +0000 (00:49 +0000)]
MFC r202294:
  Add check for fiber mode for BCM5714 PHY. This PHY supports both
  copper and fiber interfaces over GMII so an explicit check is
  necessary to know whether it was configured for fiber interface.
  This change make BCM5715S work.

  Tested by: olli
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202728 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202293:
yongari [Thu, 21 Jan 2010 00:45:12 +0000 (00:45 +0000)]
MFC r202293:
  For controllers that has dual mode PHY(copper or fiber) interfaces
  over GMII, make sure to enable GMII. With this change brgphy(4) is
  used to handle the dual mode PHY. Since we still don't have a sane
  way to pass PHY specific information to mii(4) layer special
  handling is needed in brgphy(4) to determine which mode of PHY was
  configured in parent interface.
  This change make BCM5715S work.

  Tested by: olli
  Obtained from: OpenBSD
  PR: kern/122551

git-svn-id: svn://svn.freebsd.org/base/stable/8@202726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r202269:
yongari [Thu, 21 Jan 2010 00:37:14 +0000 (00:37 +0000)]
MFC r202269:
  Add BCM5754 PHY id that is found on Dell Studio XPS 16.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r200018:
nwhitehorn [Wed, 20 Jan 2010 16:28:39 +0000 (16:28 +0000)]
MFC r200018:

Bump limits on PowerPC. This allows large executables like parts of LLVM
to function.

Reviewed by: grehan
Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@202706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198470, r198521:
kib [Wed, 20 Jan 2010 15:24:24 +0000 (15:24 +0000)]
MFC r198470, r198521:
Syncronize iwn(4) manpages with HEAD.

git-svn-id: svn://svn.freebsd.org/base/stable/8@202705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r198429, r198439, r198468, r201209, r201822, r201882:
kib [Wed, 20 Jan 2010 15:22:34 +0000 (15:22 +0000)]
MFC r198429, r198439, r198468, r201209, r201822, r201882:
Syncronize iwn(4) driver in stable/8 with HEAD.

Approved by: rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@202704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f