Commit Graph

150464 Commits

Author SHA1 Message Date
Christian Brueffer
3716ed4726 MFC: r202317
Add manpages for ipwfw(4) and iwifw(4), based on iwnfw(4).
2010-01-28 17:07:14 +00:00
George V. Neville-Neil
fbbbfe0ba5 MFC r196797:
Add ARP statistics to the kernel and netstat.
2010-01-28 16:48:44 +00:00
Xin LI
ef096f9d2a 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
2010-01-28 02:33:20 +00:00
Alberto Villa
df4743bc4a - MFC r197788, r203040, r203045, r203048
Approved by:	tabthorpe (mentor)
2010-01-27 18:12:22 +00:00
John Baldwin
8d2d060c70 Fixup mergeinfo. 2010-01-27 17:03:40 +00:00
Gavin Atkinson
18fab66957 Merge r200318 from head: add myself to calendar.freebsd. 2010-01-27 15:36:19 +00:00
Joerg Wunsch
c146743160 Merge r202943: Add man pages for the gpib(4), pcii(4), and tnt4882(4)
drivers.
2010-01-27 10:42:34 +00:00
Joerg Wunsch
1f9b7387d8 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.
2010-01-27 10:32:02 +00:00
Bjoern A. Zeeb
ce77b9149a MFC r202915:
Correct a typo.

  Submitted by: kensmith
2010-01-27 09:45:07 +00:00
Doug Barton
5915044ff5 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>
2010-01-26 18:24:13 +00:00
Dag-Erling Smørgrav
aae70d8491 insta-mfh r203028 (doc update) 2010-01-26 15:07:47 +00:00
Dag-Erling Smørgrav
da4af7b6c4 MFH (r202613, r202623): HTTP digest authentication support. 2010-01-26 14:15:12 +00:00
Edwin Groothuis
8a37c82c6c 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.
2010-01-26 11:15:03 +00:00
Konstantin Belousov
179cbbba95 MFC r202884:
Document pthread_timedjoin_np.
Note implementation-defined EOPNOTSUPP error [1].
2010-01-26 09:20:33 +00:00
Maksim Yevmenkin
38cd0240f4 MFC SVN rev 198492
Fix typo in bluetooth.3
Do not use reserved C++ keyword "new"
2010-01-26 00:38:56 +00:00
Marko Zec
b83b25d7b1 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
2010-01-25 14:17:13 +00:00
Attilio Rao
93a45f0f56 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
2010-01-25 12:05:51 +00:00
Attilio Rao
aa16019d66 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
2010-01-25 11:56:53 +00:00
Michael Tuexen
b93b253dc6 MFC 202449:
Get rid of support of an old version of the SCTP-AUTH draft.
Get rid of unused MD5 code.
2010-01-24 22:17:08 +00:00
Gavin Atkinson
7ac856b829 Merge r202000 from head:
Don't panic on attach if we can't allocate ifp

Approved by:	ed (mentor, implicit)
2010-01-24 22:01:04 +00:00
David Schultz
903d5593ab 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.
2010-01-24 20:15:59 +00:00
Ed Schouten
eb63bf5c83 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
2010-01-24 14:30:57 +00:00
Konstantin Belousov
2af4053ea7 Bump __FreeBSD_version for scandir(3) and alphasort(3) interface changes. 2010-01-24 12:37:30 +00:00
Konstantin Belousov
b3c4be736e 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.
2010-01-24 12:35:36 +00:00
Bjoern A. Zeeb
be6797dde8 MFC r202469:
Garbage collect references to the no longer implemented tcp_fasttimo().
2010-01-24 12:22:38 +00:00
Max Khon
3dd81e0306 MFC: Send link state change control messages to "orphans" hook as well. 2010-01-24 08:59:33 +00:00
Bjoern A. Zeeb
3bcceea40e 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]
2010-01-23 16:40:35 +00:00
Robert Noland
c79d8f1fb5 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.
2010-01-23 16:29:04 +00:00
Christian Brueffer
9a12033088 MFC: r202162
Various fixes.
2010-01-23 14:12:40 +00:00
Navdeep Parhar
c78cb5e4f1 MFC r202863
Don't forget to release the adapter lock for a no-op.
2010-01-23 08:37:04 +00:00
Marcel Moolenaar
5a183eb8e4 MFC rev 202552:
Add command-line option -dev to set the default value of the currdev
variable.
2010-01-23 06:29:34 +00:00
Xin LI
11ad45c9ce 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.
2010-01-23 01:25:09 +00:00
Xin LI
aa0cab0517 MFC r202709:
Give the right value when complaining it being wrong.

Reported by:	danfe
2010-01-23 00:52:32 +00:00
Xin LI
7d230b5ceb MFC r201894:
Fix formatting.
2010-01-23 00:49:10 +00:00
Xin LI
deacfb8431 MFC r201892:
Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).

Reviewed by:	davidxu
2010-01-23 00:43:44 +00:00
Xin LI
bd277cec42 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.
2010-01-23 00:32:19 +00:00
Florent Thoumie
aa780fe9b5 Synchronize pkg_install with HEAD. 2010-01-22 23:13:46 +00:00
Brooks Davis
2ca586a5ac MFC r201261:
Add missing `void' keywords.
2010-01-22 20:24:55 +00:00
Gavin Atkinson
2be621faba 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)
2010-01-22 20:02:22 +00:00
Brooks Davis
52c240aaf4 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.
2010-01-22 19:51:34 +00:00
Doug Barton
8374d905b6 MFC r202582:
Update named.conf for documentation IP addresses and domains
2010-01-22 17:30:36 +00:00
Christian Brueffer
7468bbeaea MFC: r201848
Free allocated sbufs before returning ENOMEM.
2010-01-22 17:03:49 +00:00
Alexander Motin
e6b95cac7d MFC r202798:
Add "MIXER CONTROLS" chapter.
2010-01-22 11:42:23 +00:00
Alexander Motin
3af7dcdafa MFC r202160:
Update, reflecting added multichannel playback support.
2010-01-22 11:40:55 +00:00
Alexander Motin
320cdf733e 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.
2010-01-22 11:37:19 +00:00
Alexander Motin
858bc163b7 MFC r202267:
Hide from default sndstat some information not used on daily basis,
to make it readable by average user with average screen size.
2010-01-22 11:31:49 +00:00
Alexander Motin
c6ce452791 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.
2010-01-22 11:30:32 +00:00
Alexander Motin
d871d872fa MFC r197420:
Lock bus scan.
2010-01-22 11:16:46 +00:00
Andriy Gapon
83279a93f5 MFC r202567: acpi_ec: remove redundant acpi_disabled check 2010-01-22 09:41:09 +00:00
Andriy Gapon
773425fade MFC r202558: acpi_ec: clean up 'private' ivar when freeing memory 2010-01-22 09:34:57 +00:00