]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoAny call of tty_close() with a tty refcount of <= 1 is wrong and we will
mbr [Sat, 30 Sep 2006 08:11:51 +0000 (08:11 +0000)]
Any call of tty_close() with a tty refcount of <= 1 is wrong and we will
free the tty in this case. This is a workaround until the underlaying
devfs/tty problems are fixed.

MFC after: 1 day

17 years agoRemove trailing spaces.
pjd [Sat, 30 Sep 2006 08:01:11 +0000 (08:01 +0000)]
Remove trailing spaces.

17 years agoo Check we have a non-NULL pointer to a super block before dereference it.
maxim [Sat, 30 Sep 2006 07:34:20 +0000 (07:34 +0000)]
o Check we have a non-NULL pointer to a super block before dereference it.

PR: misc/103822
Submitted by: Dmitry Stefankov
MFC after: 2 weeks

17 years agoNuke OSSV4_EXPERIMENT ifdefs from kludgy MIXER_SIZE definition
ariff [Sat, 30 Sep 2006 01:24:22 +0000 (01:24 +0000)]
Nuke OSSV4_EXPERIMENT ifdefs from kludgy MIXER_SIZE definition
since the exclusion of sizeof(oss_mixer_enuminfo) is the real
cause of overflow (worth of +3000 bytes).

Noticed by: tegge

17 years agoThe addition of few more 32bit integer into struct snd_mixer causing
ariff [Sat, 30 Sep 2006 01:01:18 +0000 (01:01 +0000)]
The addition of few more 32bit integer into struct snd_mixer causing
an accidental MIXER_SIZE overflow. Use 8bit integer instead of 32bit
to reduce the kludge size.

Noticed by: tegge

17 years agoMarkup nit.
ru [Fri, 29 Sep 2006 22:57:22 +0000 (22:57 +0000)]
Markup nit.

17 years agoMarkup nits.
ru [Fri, 29 Sep 2006 22:51:29 +0000 (22:51 +0000)]
Markup nits.

17 years agoSpelling.
ru [Fri, 29 Sep 2006 22:51:04 +0000 (22:51 +0000)]
Spelling.

17 years agoBack out rev. 1.152 as it was breaking vlan tag insertion when vlan tag
andre [Fri, 29 Sep 2006 21:38:12 +0000 (21:38 +0000)]
Back out rev. 1.152 as it was breaking vlan tag insertion when vlan tag
stripping was disabled due to being in promisc mode.  This is a hardware
bug.  Update comment to explicitly state the reason the manual vlan tag
insertion in this case.  See rev. 1.53 for further information as well.

Noticed by: jhb

17 years agoMarkup nit.
ru [Fri, 29 Sep 2006 21:17:10 +0000 (21:17 +0000)]
Markup nit.

17 years agoFix WARNS=2 warnings.
ru [Fri, 29 Sep 2006 20:57:38 +0000 (20:57 +0000)]
Fix WARNS=2 warnings.

17 years agoFix most of the WARNS=2 warnings.
ru [Fri, 29 Sep 2006 20:27:41 +0000 (20:27 +0000)]
Fix most of the WARNS=2 warnings.

17 years agoOops, add return values for the smap command function. We must have the
jhb [Fri, 29 Sep 2006 20:07:16 +0000 (20:07 +0000)]
Oops, add return values for the smap command function.  We must have the
warnings set weird or something because gcc didn't warn about this at all.

Submitted by: ru

17 years agoMarkup fixes.
ru [Fri, 29 Sep 2006 17:57:04 +0000 (17:57 +0000)]
Markup fixes.

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:36:38 +0000 (17:36 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoLine up usage output.
ru [Fri, 29 Sep 2006 17:28:01 +0000 (17:28 +0000)]
Line up usage output.

17 years agoFix usage().
ru [Fri, 29 Sep 2006 17:23:14 +0000 (17:23 +0000)]
Fix usage().

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:17:53 +0000 (17:17 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoSync usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 17:04:03 +0000 (17:04 +0000)]
Sync usage() with manpage's SYNOPSIS.

17 years agoLanguage tweak.
ru [Fri, 29 Sep 2006 16:51:29 +0000 (16:51 +0000)]
Language tweak.

17 years agoSync usage() and SYNOPSIS.
ru [Fri, 29 Sep 2006 16:46:01 +0000 (16:46 +0000)]
Sync usage() and SYNOPSIS.

17 years agoRemove stone-aged and irrelevant "#ifndef notdef".
andre [Fri, 29 Sep 2006 16:44:45 +0000 (16:44 +0000)]
Remove stone-aged and irrelevant "#ifndef notdef".

17 years agoNits.
bms [Fri, 29 Sep 2006 16:16:41 +0000 (16:16 +0000)]
Nits.

Submitted by: ru

17 years agoWhitespace nit.
ru [Fri, 29 Sep 2006 16:10:28 +0000 (16:10 +0000)]
Whitespace nit.

17 years agoSync utility's usage() with manpage's SYNOPSIS.
ru [Fri, 29 Sep 2006 16:07:44 +0000 (16:07 +0000)]
Sync utility's usage() with manpage's SYNOPSIS.

17 years agoPush removal of mrouted down to the rest of the tree.
bms [Fri, 29 Sep 2006 15:45:11 +0000 (15:45 +0000)]
Push removal of mrouted down to the rest of the tree.

17 years agoDon't run install-info under lockf if not installing in parallel.
ru [Fri, 29 Sep 2006 15:36:19 +0000 (15:36 +0000)]
Don't run install-info under lockf if not installing in parallel.

Requested by: rwatson

17 years agoMarkup fixes.
ru [Fri, 29 Sep 2006 15:20:48 +0000 (15:20 +0000)]
Markup fixes.

17 years agoFix pointer dereference before NULL pointer checking.
ariff [Fri, 29 Sep 2006 14:08:53 +0000 (14:08 +0000)]
Fix pointer dereference before NULL pointer checking.

Noticed by: netchild
CID: 243889
Found by: Coverity Prevent (TM)

17 years agoSmall style and comment adjustments.
andre [Fri, 29 Sep 2006 13:54:04 +0000 (13:54 +0000)]
Small style and comment adjustments.

Reviewed by: jfv

17 years agoRemove manual vlan header insertion in em_encap(). It is unnecessary as the
andre [Fri, 29 Sep 2006 13:47:38 +0000 (13:47 +0000)]
Remove manual vlan header insertion in em_encap().  It is unnecessary as the
generic vlan_start() takes care of it when vlan hardware insertion is disabled.

In em_set_promisc() add a note that BPF may also be enabled without going into
promisc mode.

Reviewed by: jfv

17 years agoChange em_transmit_checksum_setup() to deal with already inserted vlan headers,
andre [Fri, 29 Sep 2006 13:37:26 +0000 (13:37 +0000)]
Change em_transmit_checksum_setup() to deal with already inserted vlan headers,
IP options and add skeleton IPv6 support.  The new code structure can also be
easily enhanced to support new/more protocols (SCTP) in the future.

Reviewed by: jfv

17 years agoChange em_tso_setup() to deal with already inserted vlan headers, IP options
andre [Fri, 29 Sep 2006 13:33:30 +0000 (13:33 +0000)]
Change em_tso_setup() to deal with already inserted vlan headers, IP options
and add skeleton IPv6 support.  The new code structure can also be easily
enhanced to support new/more protocols (SCTP) and IP fragmentation in the
future.

In em_encap() only try to do TSO if 'dotso' is true.

Reviewed by: jfv

17 years agoOnly advertize IFCAP_TSO4 capabilities. IPv6 is not yet supported.
andre [Fri, 29 Sep 2006 13:17:16 +0000 (13:17 +0000)]
Only advertize IFCAP_TSO4 capabilities.  IPv6 is not yet supported.

Reviewed by: jfv

17 years agoHandle all error cases from bus_dmamap_load_mbuf_sg(). Those are:
andre [Fri, 29 Sep 2006 13:12:38 +0000 (13:12 +0000)]
Handle all error cases from bus_dmamap_load_mbuf_sg().  Those are:

 - EFBIG means the mbuf chain was too long and bus_dma ran out of segments.
   Defragment the mbuf chain and try again. (Already existed, not changed.)
 - ENOMEM means bus_dma could not obtain enough bounce buffers at this point
   in time.  Defer sending and try again later.
 - All other errors, in particular EINVAL, are fatal and prevent the mbuf
   chain from ever going through.  Drop it and report error.
 - Checking (nsegs == 0) is unnecessary as bus_dmamap_load_mbuf_sg() always
   reports an error if it is < 1.

This prevents broken packets from clogging the interface queue indefinately.

Discussed with: scottl
Reviewed by: jfv

17 years agoRemove mrouted from -CURRENT.
bms [Fri, 29 Sep 2006 10:40:53 +0000 (10:40 +0000)]
Remove mrouted from -CURRENT.

Discussed with: fenner, net@

17 years agoRemove mrouted and its utilities from the base system.
bms [Fri, 29 Sep 2006 10:39:23 +0000 (10:39 +0000)]
Remove mrouted and its utilities from the base system.
They may now be obtained from ports.

Discussed with: fenner, net@

17 years agoBelatedly document the size change of "struct x?tcpcb".
ru [Fri, 29 Sep 2006 10:14:37 +0000 (10:14 +0000)]
Belatedly document the size change of "struct x?tcpcb".

17 years agoFree tty struct after last close. This should fix the pty-leak by numbers.
mbr [Fri, 29 Sep 2006 09:53:19 +0000 (09:53 +0000)]
Free tty struct after last close. This should fix the pty-leak by numbers.
Remove workarounds for tty_refcount beeing 0, this will be fixed differently
later.

17 years agoFree tty struct after last close. This should fix the pty-leak by numbers.
mbr [Fri, 29 Sep 2006 09:52:57 +0000 (09:52 +0000)]
Free tty struct after last close. This should fix the pty-leak by numbers.
Remove workarounds for tty_refcount beeing 0, this will be fixed differently
later.

Back out rev 1.145 since we initialize the tty struct from scratch and bad
things can't happen anymore.

17 years agoSNDCTL_TMR_{START,STOP,CONTINUE} don't take an argument.
ru [Fri, 29 Sep 2006 09:28:22 +0000 (09:28 +0000)]
SNDCTL_TMR_{START,STOP,CONTINUE} don't take an argument.

17 years agoThe SNDCTL_DSP_NONBLOCK ioctl doesn't take an argument, from
ru [Fri, 29 Sep 2006 09:10:54 +0000 (09:10 +0000)]
The SNDCTL_DSP_NONBLOCK ioctl doesn't take an argument, from
what I can tell by browsing the Internet (Linux, OSS, etc.).

17 years agoo Check for a required "pathname" argument presence.
maxim [Fri, 29 Sep 2006 08:00:40 +0000 (08:00 +0000)]
o Check for a required "pathname" argument presence.

PR: bin/95146
Submitted by: candy-sendpr@kgc.co.jp
MFC after: 3 weeks

17 years agoo Convert w/spaces to tabs in the previous commit.
maxim [Fri, 29 Sep 2006 06:46:31 +0000 (06:46 +0000)]
o Convert w/spaces to tabs in the previous commit.

17 years agoRather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5,
silby [Fri, 29 Sep 2006 06:24:26 +0000 (06:24 +0000)]
Rather than autoscaling the number of TIME_WAIT sockets to maxsockets / 5,
scale it to min(ephemeral port range / 2, maxsockets / 5) so that people
with large gobs of memory and/or large maxsockets settings will not
exhaust their entire ephemeral port range with sockets in the TIME_WAIT
state during periods of heavy load.

Those who wish to tweak the size of the TIME_WAIT zone can still do so with
net.inet.tcp.maxtcptw.

Reviewed by: glebius, ru

17 years agoMove the -l option processing to where it belongs.
ru [Fri, 29 Sep 2006 06:06:39 +0000 (06:06 +0000)]
Move the -l option processing to where it belongs.
Overall still not kosher but better matches style(9).

17 years agoDo not chdir(2) until after setuid(2), otherwise "su - username" would fail
luoqi [Fri, 29 Sep 2006 04:41:37 +0000 (04:41 +0000)]
Do not chdir(2) until after setuid(2), otherwise "su - username" would fail
when root doesn't have the permission to enter target user's home directory.
If set, PAM environment variable HOME will be used in chdir(2) instead of
pwd->pw_dir, this allows pam_chroot module to continue to function.

17 years agoFix two minor style(9) nits in v1.313 which were noticed during an
kensmith [Fri, 29 Sep 2006 00:20:56 +0000 (00:20 +0000)]
Fix two minor style(9) nits in v1.313 which were noticed during an
MFC review.  alc@ will be MFCing V1.313 plus style fix to RELENG_6.

17 years agoSet txrx_error to 1 when we reach abort. This makes the program correctly set the...
matteo [Thu, 28 Sep 2006 21:22:21 +0000 (21:22 +0000)]
Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code.
The PR has further details on this.

PR: bin/103206
Submitted by: John Hickey <jjh-freebsd@daedalian.us>
MFC after: 3 days

17 years agoTweak the code to handle intercepting BIOS calls to int 0x15 to shave
jhb [Thu, 28 Sep 2006 19:42:10 +0000 (19:42 +0000)]
Tweak the code to handle intercepting BIOS calls to int 0x15 to shave
another 16 bytes off of BTX (and thus boot2):
- Compare against the value of %eax that is saved on the stack instead of
  loading it into %eax (which requires saving the current %eax on the
  stack).
- Use %ch to examine the keyboard flag state in the BIOS to see if
  Ctrl-Alt-Del is pressed instead of %al so we don't have to save %eax on
  the stack anymore.

MFC after: 1 week

17 years agoOptimize the int 15/87 handler for space to shave another 16 bytes off of
jhb [Thu, 28 Sep 2006 19:38:02 +0000 (19:38 +0000)]
Optimize the int 15/87 handler for space to shave another 16 bytes off of
BTX (and thus boot2):
- Don't bother saving %eax, %ebx, or %ecx as it is not necessary.
- Use a more compact sequence to load the base value out of a GDT entry
  by loading the contiguous low 24 bits into the upper 24 bits of %eax,
  loading the high 8 bits into %al, and using a ror to rotate the bits
  (2 mov's and a ror) rather than loading the pieces in smaller chunks
  (3 mov's and a shl).
- Use movzwl + leal instead of movl + movw + shll + addl.
- Use 'xchgl %eax,%foo' rather than 'movl %eax,%foo' for cases where
  it's ok to trash %eax.  xchgl %eax, foo is a 1-byte opcode whereas the
  mov is a 2-byte opcode.
- Use movzwl rather than xorl + movw.

MFC after: 1 week

17 years agoAdd an 'smap' command that dumps out the BIOS SMAP.
jhb [Thu, 28 Sep 2006 19:07:13 +0000 (19:07 +0000)]
Add an 'smap' command that dumps out the BIOS SMAP.

MFC after: 1 week

17 years agoIgnore a sub-topic match if it is inside the command description.
jhb [Thu, 28 Sep 2006 19:06:20 +0000 (19:06 +0000)]
Ignore a sub-topic match if it is inside the command description.
Otherwise, merge-help can get confused by a command description that
includes a word that starts with a capital S.

MFC after: 1 week

17 years agoWhen tcp_output() receives an error upon sending a packet it reverts parts
andre [Thu, 28 Sep 2006 18:02:46 +0000 (18:02 +0000)]
When tcp_output() receives an error upon sending a packet it reverts parts
of its internal state to ignore the failed send and try again a bit later.
If the error is EPERM the packet got blocked by the local firewall and the
revert may cause the session to get stuck and retry indefinitely.  This way
we treat it like a packet loss and let the retransmit timer and timeouts
do their work over time.

The correct behavior is to drop a connection that gets an EPERM error.
However this _may_ introduce some POLA problems and a two commit approach
was chosen.

Discussed with: glebius
PR: kern/25986
PR: kern/102653

17 years agoVarious fixups, especially for the upcomming High Definition Audio
ariff [Thu, 28 Sep 2006 17:29:00 +0000 (17:29 +0000)]
Various fixups, especially for the upcomming High Definition Audio
commit.

1) sys/dev/sound/pcm/sound.h
   sys/dev/sound/pcm/channel.c
   * Be more specific: SD_F_SOFTVOL -> SD_F_SOFTPCMVOL
2) sys/dev/sound/pcm/mixer.[ch]
   * Implement
       mix_setparentchild()
       mix_setrealdev()
       mix_getparent()
       mix_getchild()
     The purpose of these functions is implement relative volume
     adjustment, such as to tie two or more mixer device into a
     single logical device. Usefull for the upcoming HDA driver
     and few AC97 codec (such as AD1981B) where the master volume
     "vol" need to be implemented using this logical manner.
3) sys/dev/sound/pcm/ac97_patch.[ch]
   * Patch for AD1981B codec to enable (automuting) headphone jack sense.
4) sys/dev/sound/pcm/ac97.c
   * Implement proper logical master volume for AD9181B codec
     through various mix_set{parentchild,realdev}(). Tie both
     "ogain" (headphone volume) and "phone" (speaker/lineout) to
     a logical "vol".
5) sys/dev/sound/pcm/usb/uaudio_pcm.c
   * ditto, for "vol" -> { "pcm" }.

MFC after: 1 month

17 years agoA couple of simple tweaks that trim BTX by 6 bytes. Since BTX is
jhb [Thu, 28 Sep 2006 16:30:36 +0000 (16:30 +0000)]
A couple of simple tweaks that trim BTX by 6 bytes.  Since BTX is
16-byte aligned within boot2 however, this actually trims boot2 by 16
bytes.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162735,
roberto [Thu, 28 Sep 2006 16:02:34 +0000 (16:02 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162735,
which included commits to RCS files with non-trunk default branches.

17 years agoFix compilation with gcc 4.1. This is imported on the vendor branch as it
roberto [Thu, 28 Sep 2006 16:02:34 +0000 (16:02 +0000)]
Fix compilation with gcc 4.1.  This is imported on the vendor branch as it
was applied in the mainstream source and a later complete import of
4.2.2p3 will complete the fix.

Submitted by: kan

17 years agoNew release notes: SA-06:21.gzip, SA-06:23.openssl.
bmah [Thu, 28 Sep 2006 15:36:59 +0000 (15:36 +0000)]
New release notes:  SA-06:21.gzip, SA-06:23.openssl.

17 years agoNew release notes: id(1) -a (+MFC), tcpslice removed, ARM binary
bmah [Thu, 28 Sep 2006 14:44:16 +0000 (14:44 +0000)]
New release notes:  id(1) -a (+MFC), tcpslice removed, ARM binary
generation.

Updated release notes:  KDE 3.5.4.

17 years agoWhen doing TSO correctly do the check to prevent a maximum sized IP packet
andre [Thu, 28 Sep 2006 13:59:26 +0000 (13:59 +0000)]
When doing TSO correctly do the check to prevent a maximum sized IP packet
from overflowing.

17 years agoNote the removal of tcpslice
bms [Thu, 28 Sep 2006 13:00:50 +0000 (13:00 +0000)]
Note the removal of tcpslice

17 years agoInitializate "offset" variable to zero; otherwise, if not using
ru [Thu, 28 Sep 2006 12:33:36 +0000 (12:33 +0000)]
Initializate "offset" variable to zero; otherwise, if not using
the -o option, it might contain garbage.

MFC after: 1 day

17 years agoFix the IPv4 multicast routing detach path. On interface detach whilst
bms [Thu, 28 Sep 2006 12:21:08 +0000 (12:21 +0000)]
Fix the IPv4 multicast routing detach path. On interface detach whilst
the MROUTER is running, the system would panic as described in the PR.

The fix in the PR is a good start, however, the other state associated
with the multicast forwarding cache has to be freed in order to avoid
leaking memory and other possible panics.

More care and attention is needed in this area.

PR: kern/82882
MFC after: 1 week

17 years agoThe IPv4 code should clean up multicast group state when an interface
bms [Thu, 28 Sep 2006 10:04:07 +0000 (10:04 +0000)]
The IPv4 code should clean up multicast group state when an interface
goes away. Without this change, it leaks in_multi (and often ether_multi
state) if many clonable interfaces are created and destroyed in quick
succession.

The concept of this fix is borrowed from KAME. Detailed information about
this behaviour, as well as test cases, are available in the PR.

PR: kern/78227
MFC after: 1 week

17 years agoAdd -march=i386 to fix amd64 build by generating the same code
ru [Thu, 28 Sep 2006 10:02:04 +0000 (10:02 +0000)]
Add -march=i386 to fix amd64 build by generating the same code
as i386 would do.

17 years agoRemove 120.clean-kvmdb.
delphij [Thu, 28 Sep 2006 09:32:22 +0000 (09:32 +0000)]
Remove 120.clean-kvmdb.

MFC After: 1 day

17 years agoRetire macros for the old kernel memory allocator.
ru [Thu, 28 Sep 2006 08:36:08 +0000 (08:36 +0000)]
Retire macros for the old kernel memory allocator.

Submitted by: bde

17 years agoExtend comment explaining why code is conditional at !defined(SCHED_ULE).
sobomax [Wed, 27 Sep 2006 22:09:35 +0000 (22:09 +0000)]
Extend comment explaining why code is conditional at !defined(SCHED_ULE).

Suggested by: ru

17 years agoRevert my previous change as it does not seem to be entirely correct and
danger [Wed, 27 Sep 2006 21:28:44 +0000 (21:28 +0000)]
Revert my previous change as it does not seem to be entirely correct and
popular.

17 years agoFix our ioctl(2) implementation when the argument is "int". New
ru [Wed, 27 Sep 2006 19:57:02 +0000 (19:57 +0000)]
Fix our ioctl(2) implementation when the argument is "int".  New
ioctls passing integer arguments should use the _IOWINT() macro.
This fixes a lot of ioctl's not working on sparc64, most notable
being keyboard/syscons ioctls.

Full ABI compatibility is provided, with the bonus of fixing the
handling of old ioctls on sparc64.

Reviewed by: bde (with contributions)
Tested by: emax, marius
MFC after: 1 week

17 years agoEmulate moving cr0, cr2, cr3, or cr4 into any i386 general register
jhb [Wed, 27 Sep 2006 19:32:26 +0000 (19:32 +0000)]
Emulate moving cr0, cr2, cr3, or cr4 into any i386 general register
rather than just emulating mov cr0, eax.  This fixes some Compaq/HP BIOS
with DMA (as the BIOS tried to read cr3 so it could translate addresses
if paging was enabled).

MFC after: 1 week

17 years agoCorrect typo.
schweikh [Wed, 27 Sep 2006 19:20:43 +0000 (19:20 +0000)]
Correct typo.

17 years agoSince ULE doesn't honor hlt_cpus_mask don't compile code that prevents
sobomax [Wed, 27 Sep 2006 18:51:19 +0000 (18:51 +0000)]
Since ULE doesn't honor hlt_cpus_mask don't compile code that prevents
timer interrupt servicing for disabled HTT cores in ULE case. Should be
probably fixed in ULE code instead, but we have no real maintainer for
ULE to do it.

PR: 103697

17 years agoMove Giant up even further since P_CONTROLT isn't really fully locked
mbr [Wed, 27 Sep 2006 16:42:10 +0000 (16:42 +0000)]
Move Giant up even further since P_CONTROLT isn't really fully locked
yet (p_flag is, but P_CONTROLT isn't really).

Submitted by: jhb

17 years agoUse ctty instead of just returning. ctty just has a simple open that
mbr [Wed, 27 Sep 2006 16:41:15 +0000 (16:41 +0000)]
Use ctty instead of just returning. ctty just has a simple open that
returns ENXIO.

Submitted by: jhb

17 years agoBump MAX_INITIATORS to 1024- the LSI-Logic can go even higher than
mjacob [Wed, 27 Sep 2006 15:38:13 +0000 (15:38 +0000)]
Bump MAX_INITIATORS to 1024- the LSI-Logic can go even higher than
this for 'initiator id'- this is a stopgap until a sparse map is
added.

Make compat defines for offset format (FreeBSD 5 or less).

Add no-asyncio flag. There's some breakage with ASYNC I/O that every
now and then drops us into an infinite loop. This also then does
a fallback to no-asyncio if the AIO option isn't loaded/compiled into
the kernel.

A number of other chanes to try and track some breakage.

17 years ago- Removed a copyright from makefile.
ru [Wed, 27 Sep 2006 12:30:27 +0000 (12:30 +0000)]
- Removed a copyright from makefile.
- Added ${.CURDIR} to .include "...".
- Whitespace fixes.

OK'ed by: piso

17 years agoPut back NO_WERROR= to fix sparc64 build.
ru [Wed, 27 Sep 2006 10:30:17 +0000 (10:30 +0000)]
Put back NO_WERROR= to fix sparc64 build.

17 years ago- Use existing functions mtx_lock() and mtx_unlock().
pjd [Wed, 27 Sep 2006 08:39:00 +0000 (08:39 +0000)]
- Use existing functions mtx_lock() and mtx_unlock().
- Change variable name to 'error', as this is what is mostly used for
  functions that return an error.
- Add mutex(9) to the SEE ALSO section.
- Bump the date.

I don't really like the example code. I'd prefer symmetry where possible, eg.

mtx_lock(&example_lock);
error = example(NULL, EXAMPLE_ONE);
mtx_unlock(&example_lock);
if (error != 0)
return (error);

But I'll leave it as it is for now.

Reviewed by: simon

17 years ago- Add my birthday entry to the chronicle.
stas [Wed, 27 Sep 2006 08:25:53 +0000 (08:25 +0000)]
- Add my birthday entry to the chronicle.

Approved by: sem (mentor)

17 years agoAdd support for 945G/GM AGP chipsets.
anholt [Wed, 27 Sep 2006 06:38:54 +0000 (06:38 +0000)]
Add support for 945G/GM AGP chipsets.

The key problem was that the aperture size detection using the MSAC bit
doesn't work -- the bit appears to be set even when it shouldn't be.  Linux
takes a different approach, testing for a bit of the GMADR (PCIR_BAR(2)) being
set.  However, as I don't think that's a safe way to test aperture size, we
just allocate the resource and check its size.  This also pointed out that
agp_generic_attach hadn't been allocating our aperture resource, which may
have caused problems in some cases.

Also corrected is a minor copy-and-pasteo in an error case.

PR: kern/103079
Submitted by: mnag
Tested on: i945GM, i915GM
MFC after: 2 weeks

17 years agoExplicitly say which gid do we use as a fallback, when operator
delphij [Wed, 27 Sep 2006 05:49:21 +0000 (05:49 +0000)]
Explicitly say which gid do we use as a fallback, when operator
is not found.

Suggested by: kensmith

17 years agoSkip the AEN event command that is always hanging out on the card.
scottl [Wed, 27 Sep 2006 05:00:10 +0000 (05:00 +0000)]
Skip the AEN event command that is always hanging out on the card.

Submitted by: Doug Ambrisko

17 years agoFix a bad #include statment
scottl [Wed, 27 Sep 2006 04:54:23 +0000 (04:54 +0000)]
Fix a bad #include statment

17 years agoCompilation.
piso [Wed, 27 Sep 2006 02:08:44 +0000 (02:08 +0000)]
Compilation.

17 years agoSummer of Code 2005: improve libalias - part 1 of 2
piso [Tue, 26 Sep 2006 23:26:53 +0000 (23:26 +0000)]
Summer of Code 2005: improve libalias - part 1 of 2

With the first part of my previous Summer of Code work, we get:

-made libalias modular:

 -support for 'particular' protocols (like ftp/irc/etcetc) is no more
  hardcoded inside libalias, but it's available through external
  modules loadable at runtime

 -modules are available both in kernel (/boot/kernel/alias_*.ko) and
  user land (/lib/libalias_*)

 -protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp,
  skinny and smedia

-added logging support for kernel side

-cleanup

After a buildworld, do a 'mergemaster -i' to install the file libalias.conf
in /etc or manually copy it.

During startup (and after every HUP signal) user land applications running
the new libalias will try to read a file in /etc called libalias.conf:
that file contains the list of modules to load.

User land applications affected by this commit are ppp and natd:
if libalias.conf is present in /etc you won't notice any difference.

The only kernel land bit affected by this commit is ng_nat:
if you are using ng_nat, and it doesn't correctly handle
ftp/irc/etcetc sessions anymore, remember to kldload
the correspondent module (i.e. kldload alias_ftp).

General information and details about the inner working are available
in the libalias man page under the section 'MODULAR ARCHITECTURE
(AND ipfw(4) SUPPORT)'.

NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat
support will be part of the next libalias-related commit.

Approved by: glebius
Reviewed by: glebius, ru

17 years agoThe need to run a filter also implies that bouncing could be possible, so
scottl [Tue, 26 Sep 2006 23:14:42 +0000 (23:14 +0000)]
The need to run a filter also implies that bouncing could be possible, so
just use the COULD_BOUNCE flag for both and retire the USE_FILTER flag.
This fixes the problem that rev 1.81 introduced with the if_bfe driver
(and possibly others).

17 years agoAdd a -a option as a no-op for Solaris compatibility, as briefly
ceri [Tue, 26 Sep 2006 22:28:12 +0000 (22:28 +0000)]
Add a -a option as a no-op for Solaris compatibility, as briefly
discussed on src-committers.  This is intentionally not included in the
usage() function as it would confuse the output too much.

Approved by: jhb
MFC after: 1 week

17 years agoRemove bogus casts of valid integer ioctl() arguments.
ru [Tue, 26 Sep 2006 21:46:12 +0000 (21:46 +0000)]
Remove bogus casts of valid integer ioctl() arguments.

17 years agoRemove second person from the sentece and rephrase a bit.
danger [Tue, 26 Sep 2006 19:59:52 +0000 (19:59 +0000)]
Remove second person from the sentece and rephrase a bit.

Approved by: trhodes (mentor), keramida (mentor)

17 years agoBehave as documented when reading fields saying "X/Y" where X != *
brian [Tue, 26 Sep 2006 18:06:09 +0000 (18:06 +0000)]
Behave as documented when reading fields saying "X/Y" where X != *
rather than mis-parsing them as "X".

MFC after: 1 day

17 years agoFix a memory leak in ipmi_unload().
jhb [Tue, 26 Sep 2006 15:48:13 +0000 (15:48 +0000)]
Fix a memory leak in ipmi_unload().

CID: 1542
Found by: Coverity Prevent

17 years agoOops. Catch up on the last couple of releases and prepare for the next
kensmith [Tue, 26 Sep 2006 14:51:33 +0000 (14:51 +0000)]
Oops.  Catch up on the last couple of releases and prepare for the next
one.

17 years agoOnly support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] is
jhb [Tue, 26 Sep 2006 14:38:56 +0000 (14:38 +0000)]
Only support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] is
defined.

17 years agoPC98 would also like a trademark.
rwatson [Tue, 26 Sep 2006 12:45:47 +0000 (12:45 +0000)]
PC98 would also like a trademark.

Who would have thought that getting a kernel printf right would be so
tricky?

MFC after: 3 days
Submitted by: Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk>

17 years agoAdd a value to the define I forgot, for the purity's sake.
ru [Tue, 26 Sep 2006 12:44:20 +0000 (12:44 +0000)]
Add a value to the define I forgot, for the purity's sake.

17 years agoNow that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h.
ru [Tue, 26 Sep 2006 12:41:13 +0000 (12:41 +0000)]
Now that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h.

17 years agoAdded COMPAT_FREEBSD6 option.
ru [Tue, 26 Sep 2006 12:36:34 +0000 (12:36 +0000)]
Added COMPAT_FREEBSD6 option.

17 years agoFix typo
vd [Tue, 26 Sep 2006 09:47:46 +0000 (09:47 +0000)]
Fix typo

PR: docs/103666
Submitted by: vd
Approved by: maxim