55966 Commits

Author SHA1 Message Date
ume
e12fa4aebe MFC: Enable NLS catalog of csh(1).
The tcsh 6.14 uses libiconv to convert catalogs to appropriate charset
dynamically.  However, we don't have libiconv in our tree.  So, I made
some hack to load libiconv dynamically.  If libiconv is available, you
can use catalogs for more locales than the locales which catalog is
actually installed.
To use this feature, you need to symlink catalogs to appropriate
locales.  You can do this by installing ports/shells/tcsh_nls.

	bin/csh/Makefile:			1.38
	bin/csh/config.h:			1.13
	bin/csh/iconv.h:			1.1
	bin/csh/iconv_stub.c:			1.1
	contrib/tcsh/nls/C/charset:		1.1.1.1
	contrib/tcsh/nls/et/charset		1.1.1.1
	contrib/tcsh/nls/finnish/charset	1.1.1.1
	contrib/tcsh/nls/french/charset		1.1.1.1
	contrib/tcsh/nls/german/charset		1.1.1.1
	contrib/tcsh/nls/greek/charset		1.1.1.1
	contrib/tcsh/nls/italian/charset	1.1.1.1
	contrib/tcsh/nls/ja/charset		1.1.1.1
	contrib/tcsh/nls/pl/charset		1.1.1.1
	contrib/tcsh/nls/russian/charset	1.1.1.1
	contrib/tcsh/nls/spanish/charset	1.1.1.1
	contrib/tcsh/nls/ukrainian/charset	1.1.1.1

Approved by:	re (hrs)
2006-02-26 06:17:59 +00:00
sam
432e74cd3f MFC 1.36: use s/w bmiss facility
Approved by:	re (scottl)
2006-02-25 00:51:11 +00:00
sam
c6b7af70b3 MFC 1.25: use s/w bmiss facility
Approved by:	re (scottl)
2006-02-25 00:50:19 +00:00
sam
091e4102fd MFC 1.24: stop device so we don't panic on card eject
Approved by:	re (scottl)
2006-02-25 00:48:01 +00:00
sam
1e9460c68f MFC ath changes up to and including the v0.9.16.16 hal import
Approved by:	re (scottl, mux)
2006-02-24 19:51:11 +00:00
sam
ec3349e71e MFC v0.9.16.16 hal
Approved by:	re (mux)
2006-02-24 19:49:50 +00:00
nyan
64225abab5 MFC: revision 1.26
- Initialize the port_bst and port_bsh variables.

Approved by:	re (mux)
2006-02-24 14:36:22 +00:00
ru
0095d3270c MFC: 1.58: Clear csum_flags after reading from the socket buffer.
Approved by:	re (scottl)
2006-02-24 11:23:05 +00:00
dwmalone
ab251f7d8e MFC: Print Virtual Machine Extensions feature and remove stale comment.
Approved by: re (scottl)
2006-02-23 15:03:42 +00:00
ume
aae4aa6779 MFC: Obey opt_inet6.h in kernel build directory.
sys/modules/dummynet/Makefile:	1.5
	sys/netinet/ip_dummynet.c:	1.100

Approved by:	re (scottl)
2006-02-23 08:28:15 +00:00
mlaier
91f5858c74 MFC:
firmware(9) is a subsystem to load binary data into the kernel via a
  specially crafted module.  There are several handrolled sollutions to this
  problem in the tree already which will be replaced with this.  They
  include iwi(4), ipw(4), ispfw(4) and digi(4).

Approved by: re(scottl)
2006-02-23 02:13:32 +00:00
sam
a41d57c7a0 MFC 1.28: correct check for whether wpa is enabled
Approved by:	re (scottl)
2006-02-23 02:06:46 +00:00
sam
44cbc2ce07 MFC 1.44: treat setting the optional ie to a zero-length datum to
mean "delete the ie"

Approved by:	re (scottl)
2006-02-23 02:03:39 +00:00
cvs2svn
34436ebdd7 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-02-22 21:51:10 +00:00
yar
e9d04fa8d8 MFC rev. 1.6: This module would be meaningless w/o CODA_COMPAT_5.
Approved by:	re (mux)
2006-02-22 11:55:26 +00:00
sam
95557001c5 MFC 1.128: close race between ath_tx_start and ath_tx_processq
Approved by:	re (scottl)
2006-02-22 01:17:12 +00:00
yar
fab469029a MFC rev. 1.32:
Work around the fact that nfsclient SRCS must include
  nfs_diskless.c if NFS_ROOT is in effect, e.g., present
  in the kernel config file.  Otherwise the built module
  won't load due to an undefined reference to nfs_setup_diskless.

Approved by:	re (scottl)
2006-02-21 17:22:57 +00:00
yar
dbcb706f58 Work around the shortness of the size argument to
vnode_create_vobject() while preserving the binary ABI
to filesystem modules in RELENG_6: introduce a new function
vnode_create_vobject_off() that takes the size argument
as off_t; move all stock file systems to it; re-implement
the old vnode_create_vobject() using vnode_create_vobject_off()
so that old or binary-only FS modules can work w/o hitting the
bug.  The trick is to pass a size of 0 to vnode_create_vobject_off()
so that it will call VOP_GETATTR() and thus get the actual,
untruncated file size even if the calling module still uses
the old vnode_create_vobject().

PR:		kern/92243
Approved by:	re (scottl)
2006-02-20 00:53:15 +00:00
sos
a3ddb94db9 MFC:
Add support for the JMicron JMB363 dual SATA + single PATA controller.
	Add r/w support for JMicron ATA RAID metadata.
	Add a reset of the AHCI machinery to the ICH6/ICH7 support.
	Unbreak Promise SATAII/150 controllers caused by the DMA dump changes.
	Unbreak DMA dump on Intel 31224.

Approved by:	re@ (scottl)
2006-02-19 15:18:23 +00:00
yar
4af5fcaf38 MFC 1.98: Avoid toggling IFF_UP from the driver because
it's an administrative flag.

Approved by:	re (scottl)
2006-02-18 22:48:16 +00:00
ru
5787b49b31 MFC: Fix a bug that prevented passing IP fragments through a dummynet.
Approved by:	re (scottl)
2006-02-17 16:46:47 +00:00
andre
24e16bb156 MFC ip_icmp.c rev. 1.103-1.106+1.108:
Rework icmp_error() and always quote the entire TCP header, fixes
  issues in draft-gont-icmp-payload-00.txt.
 New net.inet.icmp.reply_from_interface and net.inet.icmp.quotelen.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-02-16 17:50:57 +00:00
sam
6ce8ffbd75 MFC: s/w beacon miss facility
Approved by:	re (scottl)
2006-02-16 16:57:24 +00:00
glebius
2656c27599 MFC 1.107:
Fix two important typos in watchdog handling:
  - Restart watchdog if we *did* processed any descriptors. [1]
  - Log the watchdog event if the link is *up*. [2]

  PR:		kern/92948 [1]
  Submitted by:	Mihail Balikov <mihail.balikov interbgc.com> [1]
  PR:		kern/92895 [2]
  Submitted by:	Vladimir Ivanov <wawa yandex-team.ru> [2]

Approved by:	re (kensmith)
2006-02-16 12:45:12 +00:00
glebius
719a451400 MFC 1.9:
- Increase maximum number of interfaces to 2048.
  - Regroup softc so that frequently used elements are
    grouped in the beginning, while the interfaces
    array is at the end.

Approved by:	re (kensmith)
2006-02-16 12:37:14 +00:00
rees
24c9cc5118 MFC rev 1.135:
Don't log an error on tcp connection reset, even if we don't get ECONNRESET.

Submitted by:	cel@citi.umich.edu
Approved by:	re (scottl)
2006-02-16 02:39:52 +00:00
qingli
e776a57c39 MFC: rev 1.38
Approved by:	re (scottl)
2006-02-16 01:10:44 +00:00
qingli
0e3ee9900c MFC: rev 1.40
Approved by:	re (scottl)
2006-02-16 01:08:40 +00:00
qingli
eb0d200a92 MFC: rev 1.84
Approved by:	re (scottl)
2006-02-16 01:06:22 +00:00
iedowse
fa1b09ae80 MFC: don't perform an endpoint stall clear every time a pipe is
opened.  This should not be necessary, and it is known to confuse
certain devices.

Remove the UQ_NO_OPEN_CLEARSTALL quirk, as this is now the default
behaviour for all devices.

Approved by:	re (scottl)
2006-02-15 22:51:08 +00:00
ru
832a964b08 MFC: -S option for boot2, already documented to work in boot(8).
Approved by:	re (scottl)
2006-02-15 15:08:51 +00:00
nyan
09ec09e90b MFi386: revision 1.31.2.1
Approved by:	re (kensmith)
2006-02-15 13:55:13 +00:00
nyan
ed8f6e5151 MFC: revision 1.371
> Clear carry flag in get_mcontext so that setcontext does not
> return a bogus error.

Approved by:	re (kensmith)
2006-02-15 13:54:06 +00:00
marius
d340da2e99 MFC: src/sys/dev/puc/puc_ebus.c 1.6, sys/dev/uart/uart_bus_ebus.c 1.9,
sys/dev/uart/uart_cpu_sparc64.c 1.20, 1.22

- Add support for using LOM (Lights Out Management) and RSC (Remote System
  Control) devices as console.
- Add my copyright to uart_cpu_sparc64.c.
- Recognize the SAB82532 in USIII machines. This is MFC'ed for consistency
  as one part of the original commit, sys/dev/uart/uart_bus_ebus.c rev. 1.7,
  was already MFC'ed to RELENG_6 (in rev. 1.6.2.2).

Approved by:	re (scottl)
2006-02-15 09:16:01 +00:00
ps
f2d6dfc1f8 MFC:
Implement SIOCGIFCONF for 32bit binaries.

Approved by:	re
2006-02-15 03:37:15 +00:00
sam
9864643933 MFC 1.38: set the mgt frame tx timer before dispatching the frame to the driver
Approved by:	re (scottl)
2006-02-15 03:21:15 +00:00
jhb
c0067121bc MFC: Correctly set the MPSAFE flag based on the lower vnode's mount.
Approved by:	re (scottl)
2006-02-14 23:15:16 +00:00
jhb
35b2a57ba2 MFC: Sync up to rev 1.80 from HEAD:
- Use a dedicated kthread to call acctwatch() periodically rather than
  a callout from softclock().
- Validate new values for the kern.acct_chkfreq sysctl.
- Whitespace and include sorting.

Approved by:	re (scottl)
2006-02-14 23:13:17 +00:00
jhb
cfc4a82e66 MFC: Use the correct BAR for the UPCI 32 adapter.
Approved by:	re (scottl)
2006-02-14 23:09:10 +00:00
rwatson
6a4c2a60ce Merge in_pcb.c:1.167 from HEAD to RELENG_6:
Convert remaining functions to ANSI C function declarations; remove
  'register' where present.

Approved by:	re (scottl)
2006-02-14 22:09:27 +00:00
rwatson
1a3392858b Merge coda_vnops.c:1.67 from HEAD to RELENG_6:
Convert last four functions in coda_vnops.c to ANSI C function
  declarations.  I knew I would get to fix something in Coda
  eventually.

Approved by:	re (scottl)
2006-02-14 21:59:07 +00:00
rwatson
4b2bdfb9e4 Merge vfs_mount.c:1.213 from HEAD to RELENG_6:
Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the
  return value is intentional: this is simply an attempt to pre-cache the
  statfs state.

  Found with:     Coverity Prevent (tm)

Approved by:	re (scottl)
2006-02-14 21:57:09 +00:00
rwatson
88e317a7ac Merge ncp_conn.c:1.28 from HEAD to RELENG_6:
In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error'
  resulted in deadcode, as 'error' could never be 0.  What this logic
  was originally meant to handle is not clear -- it's been this way
  (broken) since at least RELENG_4.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:55:15 +00:00
rwatson
1a12c93e91 Merge udp_usrreq.c:1.181 from HEAD to RELENG_6:
Remove dead code: 'opts' is not used in udp_append(), only in udp_input(),
  so no need to assign it to NULL or conditionally free it.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:40:21 +00:00
rwatson
25626e8a72 Merge ip6_output.c:1.101 from HEAD to RELENG_6:
When storing the results of malloc() in a pointer to a pointer, check
  the pointer to a pointer for NULL, not the pointer for NULL.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:38:46 +00:00
rwatson
0f1480e03b Merge ipcomp_input.c:1.9 from HEAD to RELENG_6:
In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
  may be a stale pointer at this point, and we're interested in whether or
  not m_pulldown() failed.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:36:23 +00:00
rwatson
4b660c6658 Merge ipx_input.c:1.52 from HEAD to RELENG_6:
Remove dead code associated with 'mcopy' in ipx_forward(): at no point
  are the contents of the forwarded mbuf ever copied into mcopy, so there's
  no need to have mcopy, conditionally look at mcopy, or conditionally free
  it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:35:07 +00:00
rwatson
f6557302f2 Merge if_ef.c:1.38 from HEAD to RELENG_6:
Check the right ifnet pointer to see if if_alloc() failed or not in
  ef_clone(); we were testing the original ifnet, not the one allocated.

  When aborting ef_clone() due to if_alloc() failing, free the allocated
  efnet structure rather than leaking it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:11:19 +00:00
rwatson
bcc6ac0035 Merge if_ef.c:1.37 from HEAD to RELENG_6:
When freeing the chain of if_ef devices on an aborted load, use
  SLIST_FOREACH_SAFE() rather than SLIST_FOREACH(), as elements are
  freed on each iteration of the loop.  This prevents use-after-free.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:09:46 +00:00
brooks
577b28fda2 MFC syscons.c rev 1.441 and documentation:
When SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the
same behavior to be controlled by the sysctls, hw.syscons.kbd_kbdkey
and hw.syscons.kbd_reboot respectively.

PR:		kern/72728
Submitted by:	Luca Morettoni <morettoni at libero dot it>
Approved by:	re (scottl)
2006-02-14 16:41:27 +00:00