Commit Graph

118468 Commits

Author SHA1 Message Date
sam
b351d53260 catch up to driver changes 2006-01-24 05:35:03 +00:00
csjp
8c659df4e5 MFC revision 1.214
date: 2006/01/15 20:14:11;  author: csjp;  state: Exp;  lines: +1 -1
vfs_busy can only return something useful if MNTK_UNMOUNT has been set.
Since we are using vfs_busy() on a freshly allocated mount structure, use
(void) to show that we do not care about the return value.
2006-01-24 04:20:24 +00:00
csjp
d45534cd3e MFC revision 1.20
date: 2005/12/30 20:10:21;  author: csjp;  state: Exp;  lines: +1 -1
mkstemp(3) and friends use a combination of base 10 digits, along
with upper and lower case letters from the English alphabet. Change
the number of possible file names mktemp will return from 26**6
to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)
2006-01-24 04:13:02 +00:00
csjp
7f5dfb2022 MFC revision 1.27
date: 2006/01/15 01:02:20;  author: csjp;  state: Exp;  lines: +1 -1
Fix potential overrun of static stack allocated array which stores
the rules. If an array is N elements large, we can only access
elements 0..(N-1).
2006-01-24 04:11:45 +00:00
csjp
ad39fedd90 MFC the security.mac.biba.interfaces_equal sysctl variable 2006-01-24 04:10:25 +00:00
csjp
59c3c1b282 MFC revision 1.20
date: 2006/01/16 17:03:21;  author: csjp;  state: Exp;  lines: +6 -2
Although we check the return value of copyin(9) while determaining how
long the string is in userspace, afterwards we call malloc(M_WAITOK),
which could sleep for an unknown amount of time. Check the return
value of copyin(9) just to be sure that nothing has changed during that
time.
2006-01-24 04:08:48 +00:00
csjp
f28e8b0a6a MFC revision 1.18
date: 2005/12/30 06:16:20;  author: csjp;  state: Exp;  lines: +5 -0
Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop
in an external reference to mac_set_proc(3).
2006-01-24 04:07:07 +00:00
csjp
372a6ab7c0 MFC revision 1.28
date: 2006/01/15 20:30:13;  author: csjp;  state: Exp;  lines: +5 -0
Validate that the supplied file is not empty before trying mmap(2) it
and access the pages associated with it.
2006-01-24 04:05:47 +00:00
davidxu
b4e34cc926 MFC:
Add missing symbol pthread_set_name_np.
2006-01-24 02:04:21 +00:00
matteo
2f32b90dba MFC:
Add myself to the list (Ehi, I'm not the youngest!)

      src/usr.bin/calendar/calendars/calendar.freebsd: rev 1.173 -> 1.174

(tomorrow is my birthday..)

Approved by:	philip (mentor, implicit)
2006-01-23 21:11:23 +00:00
marius
d0fbb1b7a6 Revert the hack introduced in rev. 1.6.2.1, a fix/workaround for the
underlying problem was committed in sys/sparc64/pci/psycho.c 1.55 and
MFC'ed to RELENG_6 in 1.53.2.1.
2006-01-23 16:32:29 +00:00
marius
48dd44f076 MFC: sys/sparc64/pci/psycho.c 1.54 - 1.57,
sys/sparc64/pci/psychoreg.h 1.10 - 1.11,
     sys/sparc64/pci/psychovar.h 1.13 - 1.14

Sync psycho(4) with HEAD expect for the UPA_RANGE_* -> OFW_PCI_RANGE_*
and PCI_CS_* -> OFW_PCI_CS_* changes in order to mainly obtain the
following changes:
- Add a workaround for the incorrect interrupt map entry for the EBus
  bridge on E250 machines. [1]
- Register an interrupt handler for the spare hardware interrupt which
  according to OpenSolaris is used as the over-temperature interrupt in
  systems with Psycho bridges.

PR:		88279 [1]
2006-01-23 16:21:30 +00:00
andre
7546e01b5e MFC rev 1.185+1.186: m_getjcl() returning address of mbuf, not cluster. 2006-01-23 15:31:20 +00:00
marius
7e8d7097cf MFC: sys/sparc64/include/ktr.h 1.6, sys/sparc64/sparc64/genassym.c 1.59
Use <sys/ktr.h> directly in .S files instead of exporting the
KTR_* class macros via genassym.c. Together with sys/sys/ktr.h 1.34
(MFC'ed in 1.32.2.2) this has the desired side-effect of providing a
default value for KTR_COMPILE. Thus this fixes warnings from -Wundef
regarding KTR_COMPILE not being defined for .S files.
2006-01-23 15:04:09 +00:00
marius
37e46523d3 MFC: 1.34
Extend the scope of #ifndef LOCORE to also cover the prototype of
ktr_tracepoint() and the macros using it. This allows this header
to be included in .S files for obtaining the KTR_* class macros
directly and providing a default value for KTR_COMPILE in case it's
not specified in the kernel config file including defining it to 0
when not using 'options KTR' at all.
2006-01-23 14:56:33 +00:00
marius
a96cdae3e9 MFC: 1.3
- The inline asm in this file uses output operands before all input
  operands are consumed so use the appropriate constraint modifier.
  Before this change GCC used one register for both an input and an
  unrelated output operand of in_addword(), causing the input to be
  overwritten before it was consumed and thus breaking in_addword().
  For in_cksum_hdr() and in_pseudo() this change is more or less
  cosmetic.
- Fix a misspelling in a nearby comment.
2006-01-23 14:45:24 +00:00
marius
698213d4bb MFC: 1.26
In moduledir_readhints() cast the value returned by sizeof() to ssize_t
when checking whether it's greater than a struct stat st_size in order
to also catch the case when st_size is -1. Previously this check didn't
trigger on sparc64 when st_size is -1 (as it's the case for a file on
a bzipfs, TFTP server etc.), causing the content of the linker hints
file to be copied to memory referenced by a null-pointer.

PR:		91231
2006-01-23 14:33:53 +00:00
marius
7778ace703 MFC: 1.438
Remove the commented out entry of the old ISA-only le(4) driver which
was retired 22 months ago.
2006-01-23 14:19:36 +00:00
ceri
3defb68d59 MFC revision 1.4:
Add nofification events to the list of event types.
2006-01-23 14:13:41 +00:00
ariff
28a99d6937 MFC:
Restore old compatibility of feeding directly into /dev/dsp at 8000 hz
  while preserving the New World Order.

Discussed with: [1] Michael W. Oliver <michael at gargantuan.com>

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003562.html
2006-01-23 05:06:53 +00:00
kris
d8f86cfc13 MFC: Remove big scary warning about nullfs state 2006-01-23 00:32:03 +00:00
yar
63fce21c6d MFC rev. 1.9, 1.10:
Use a callback to set up a vlan interface so that "vlan"
and "vlandev" commands can be specified in any order.
This makes the code more compact and clear as well.

Improve error check on vlan argument.

Eliminate some unneeded code bits.
2006-01-22 19:22:53 +00:00
yar
230f1eff88 MFC manpage fixes related to make.conf(5) and, in make.1,
to included makefiles at large.

	sbin/reboot/boot_i386.8		1.56
	share/man/man5/make.conf.5	1.122
	share/man/man5/style.Makefile.5	1.16
	share/man/man7/build.7		1.37
	share/man/man7/development.7	1.16
	share/man/man7/release.7	1.55
	share/man/man8/diskless.8	1.27
	usr.bin/make/make.1		1.94-1.96
2006-01-22 16:33:46 +00:00
yar
d537a9f4ab MFC rev. 1.3:
Spotted a call to a cdev-related function not wrapped
in "#ifdef KBD_INSTALL_CDEV".
2006-01-22 14:54:24 +00:00
dds
c2d4c40d7e MFC: Return EINVAL if the tv_usec part of the utimes(2) arguments
contains incorrect fractional second values (outside the range
0-999999).
Prior to this change users could create files with values outside
that range.  Moreover, on 32-bit machines tv_usec offsets larger than
4.3s would result in an unnormalized AND wrong timestamp value,
due to overflow.
2006-01-22 13:52:10 +00:00
yar
5d748e169d MFC rev. 1.8, 1.10:
Simplify the code by making use of 'kldstat -q -m <mod>'.

Use available rc.subr features.
Reduce code duplication.
Follow the current style of rc.d scripting.
2006-01-22 13:45:28 +00:00
yar
e306830495 MFC rev. 1.6, 1.7:
Simplify the code by making use of 'kldstat -q -m <mod>'.

Use rc.subr(8) appropriately.
2006-01-22 13:40:47 +00:00
yar
b7c8cc2f5a MFC rev. 1.5:
Set $command to indicate that the script wants to use
the default rc.subr(8) methods.  This is mandatory now.
2006-01-22 13:24:58 +00:00
yar
580d72e5bb MFC rev. 1.7, 1.8:
Document that `reload' is not provided by default
yet it can be enabled when applicable.

Use consistent punctuation and vertical indenting around .Dl's.
Wrap a too long line.
2006-01-22 13:19:13 +00:00
glebius
8060d3cc2c Remove another bogus KASSERT(). Examination of mb_free_ext() shows
that RELENG_6 is not yet ready for this KASSERT.
2006-01-22 13:16:13 +00:00
yar
8cb395de80 MFC main.c#1.15, mail.1#1.46:
Minor man page and help screen fixes.
2006-01-22 12:40:06 +00:00
dds
6841008ed8 MFC change 2005-09-19 10:11:47 UTC
Setting .nofinger will not hide you from root.
2006-01-22 11:56:15 +00:00
dds
754c7c2343 MFC 1.47: Document the TMPDIR environment variable. 2006-01-22 11:41:18 +00:00
yar
9fe2d02b67 MFC:
Record renaming rc.d/ppp-user to rc.d/ppp.
2006-01-21 22:51:40 +00:00
yar
147a605f76 MFC:
Rename the rc.d script "ppp-user" to just "ppp".
2006-01-21 22:42:43 +00:00
yar
5547c58995 MFC r1.12 -- back out r1.7.2.2.
As rse@ agreed, "status" should stay in $extra_commands
if an rc.d script doesn't use $command and default methods
associated with it.  This is true since rc.subr r1.42.
With r1.42 merged to rc.subr on RELENG_6 (thanks Doug!),
it's right time to re-add "status" to $extra_commands in
this script.
2006-01-21 22:09:32 +00:00
tegge
637c08fadb MFC: Set flag in needsbuffer while still holding bqlock to avoid lost wakeup. 2006-01-21 20:41:42 +00:00
mnag
83bc9841ac MFC: share/man/man4/umass.4 1.42
Add Time DPA20B MP3 Player (1Gb) [1]
Add Qware BeatZkey! Pro [2]
Add Merlin SM300 MP3/WMA Player (256Mb)

PR:		usb/81846 [1], usb/79164 [2]
Approved by:	njl (implict)
2006-01-21 20:39:21 +00:00
wes
aa757a231f MFC r1.13: Tell nextboot to clean up after itself. 2006-01-21 17:25:00 +00:00
netchild
99856b7c9f MFC: sync with reality / add some cards to the hardware list 2006-01-21 15:00:14 +00:00
glebius
479b6a9013 This KASSERT() shouldn't have been merged. It checks the stuff done
in mb_free_ext() in HEAD, that wasn't merged.
2006-01-21 12:08:03 +00:00
glebius
9e96610e5b MFC 1.26 - 1.29:
Fix several bugs found by Coverity.
2006-01-21 10:15:00 +00:00
glebius
8ee060690d MFC 1.25:
Initialize variable.

  Found with:     Coverity Prevent(tm)
2006-01-21 10:13:03 +00:00
glebius
3920cf9b74 MFC 1.25:
Remove dead code.

  Found with:     Coverity Prevent(tm)
2006-01-21 10:12:16 +00:00
glebius
6404be1e73 MFC 1.12:
Correct off-by-one errors.

  Found with:     Coverity Prevent(tm)
2006-01-21 10:11:01 +00:00
glebius
7a6a9a7a20 MFC 1.18:
When sending export datagram from interrupt thread, use NG_QUEUE
  in flags. When sending export datagram from expiry thread, then
  use default zero flags. This removes unpleasant contention of the
  interrupt thread on mutexes (usually ng_ksocket's socket buffer
  mutex).
2006-01-21 10:09:18 +00:00
glebius
94e8073358 MFC 1.14:
Skip format flags, when parsing ktr_desc.
2006-01-21 10:08:15 +00:00
glebius
3d78d7e213 MFC 1.58:
Do not force queueing on peer hooks. This was important only for
  5.0-CURRENT. And it looks like this didn't work before Julian's
  revamp of netgraph queue code.

  Reviewed by:    julian
2006-01-21 10:07:25 +00:00
glebius
a0d17dcfa1 MFC 1.8:
Mark appropriate commands with NGM_READONLY and NGM_HASREPLY and
  bump type cookie.

  This fixes flowctl(8) exiting without any output under high load on SMP.
2006-01-21 10:06:15 +00:00
glebius
098f73d3f4 Partial MFC of NGM_HASREPLY flag. The flag is introduced, but message
codes and netgraph cookie are not altered, to preserve ABI compatibility.
2006-01-21 10:04:40 +00:00