]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years ago* Expand the example descriptions, fix mdoc-bugs in
Giorgos Keramidas [Sun, 11 Nov 2007 08:12:21 +0000 (08:12 +0000)]
* Expand the example descriptions, fix mdoc-bugs in
  "(-a and -t vnode are implied)"
  and reuse it near the cd9660 example.
* Spell 'backing store' as two words.

16 years agoUpdate pf examples from OpenBSD to catch up with new stateful defaults and
Max Laier [Sun, 11 Nov 2007 01:16:51 +0000 (01:16 +0000)]
Update pf examples from OpenBSD to catch up with new stateful defaults and
other syntax changes.  Move pf.conf from /etc to examples, too.

16 years agoFix segfault while running with -a option and deinstalling broken
Kirill Ponomarev [Sat, 10 Nov 2007 22:57:12 +0000 (22:57 +0000)]
Fix segfault while running with -a option and deinstalling broken
packages with incorrect plists.

PR: bin/115327
Submitted by: Michael Zhilin <mizhka@gmail.com>
MFC after: 3 days

16 years agospaces are preferred to tabs
Sam Leffler [Sat, 10 Nov 2007 22:47:46 +0000 (22:47 +0000)]
spaces are preferred to tabs

Noted by: simon

16 years agoinstall hostapd.conf and related files for folks that don't have source
Sam Leffler [Sat, 10 Nov 2007 20:27:09 +0000 (20:27 +0000)]
install hostapd.conf and related files for folks that don't have source

MFC after: 1 week

16 years agofix building w/ WITHOUT_WPA_SUPPLICANT_EAPOL
Sam Leffler [Sat, 10 Nov 2007 20:26:08 +0000 (20:26 +0000)]
fix building w/ WITHOUT_WPA_SUPPLICANT_EAPOL

MFC after: 1 week

16 years agoinstall sample wpa_supplicant.conf; not everyone has source to reference
Sam Leffler [Sat, 10 Nov 2007 20:24:28 +0000 (20:24 +0000)]
install sample wpa_supplicant.conf; not everyone has source to reference

16 years agoadd wpa_supplicant + hostapd directories to examples
Sam Leffler [Sat, 10 Nov 2007 20:23:07 +0000 (20:23 +0000)]
add wpa_supplicant + hostapd directories to examples

MFC after: 1 week

16 years agoEliminate a stale comment concerning contigmalloc(9).
Alan Cox [Sat, 10 Nov 2007 19:11:51 +0000 (19:11 +0000)]
Eliminate a stale comment concerning contigmalloc(9).

16 years agoAdd SMB support for the MCP61 chipset.
Remko Lodder [Sat, 10 Nov 2007 17:12:08 +0000 (17:12 +0000)]
Add SMB support for the MCP61 chipset.

PR: 108830
Submitted by: Edwin Mons <freebsd at edwinm dot ik dot nu>
Approbed by: imp (mentor)

16 years agoHook up rmlock(9) and its links to the build.
Robert Watson [Sat, 10 Nov 2007 16:47:38 +0000 (16:47 +0000)]
Hook up rmlock(9) and its links to the build.

16 years agoAdd private tx/rx buffer management to support large frame sizes
Sam Leffler [Sat, 10 Nov 2007 16:23:38 +0000 (16:23 +0000)]
Add private tx/rx buffer management to support large frame sizes
and update the rx code to handle multiple frames in a single usb
transfer.  AX772 parts (at least) exhibit many input errors when
operated with a 2K rx buffer and no errors w/ a 4K rx buffer (it's
unclear what the cause of the errors is for 2K so this may just be
covering up the real issue).  Larger rx buffer sizes show no
significant performance improvement for AX772.  Bypassing the common
buffer management routines also eliminates an extra context switch
on every packet which noticeably improves performance (TCP netperf
rx goes from 45 Mb/s to 85 MB/s).

Submitted by: "J.R. Oldroyd" <fbsd@opal.com>
Reviewed by: imp
Obtained from: openbsd (partly)
MFC after: 3 weeks

16 years agoAdd rm_wowned(9) function to test whether the current thread owns an
Robert Watson [Sat, 10 Nov 2007 15:06:30 +0000 (15:06 +0000)]
Add rm_wowned(9) function to test whether the current thread owns an
exclusive lock on the passed rmlock.

Reviewed by: ups

16 years agoSome code cleanups, including removing of stale getopt argument and
Kirill Ponomarev [Sat, 10 Nov 2007 10:21:29 +0000 (10:21 +0000)]
Some code cleanups, including removing of stale getopt argument and
hardcoded +CONTENTS defines.

PR: bin/117855
Submitted by: Beat Gaetzi <beat@chruetertee.ch>
MFC after: 14 days

16 years agoAdd -i option for package installation without fetching and
Kirill Ponomarev [Sat, 10 Nov 2007 09:40:39 +0000 (09:40 +0000)]
Add -i option for package installation without fetching and
installing its dependencies.

PR: bin/117065
Submitted by: Vladimir Ermakov <samflanker@gmail.com>
MFC after: 14 days

16 years agoClean up the rmlock(9) manual page:
Hiten Pandya [Sat, 10 Nov 2007 06:04:46 +0000 (06:04 +0000)]
Clean up the rmlock(9) manual page:

    * Correct spelling and grammar
    * Re-structure sentences in BUGS section for legibility
    * Break long lines appropriately
    * Break lines at full stops
    * Add mdoc(9) commands where applicable
    * Remove superfluous .Ft in the SYNOPSIS section
    * Various other mdoc(9) fixes

16 years agoLimit total playback channels to just 1, for ALi M5451.
Ariff Abdullah [Sat, 10 Nov 2007 04:32:50 +0000 (04:32 +0000)]
Limit total playback channels to just 1, for ALi M5451.
The reliability of it's multi DAC / playback channels is
not that good. Enabling vchans make the bug more visible
since playback allocation will look for possible free
hardware channels first (i.e: the next DAC, the very first
has been consumed by vchan mixer) which in this case has
been proven faulty.

Reported / Tested by: Sascha Klauder
MFC after: 3 days

16 years agoxorg-printserver still exists in the ports tree but it's marked as
Ken Smith [Sat, 10 Nov 2007 04:01:41 +0000 (04:01 +0000)]
xorg-printserver still exists in the ports tree but it's marked as
depreciated and scheduled to be removed.

Confirmed by: kris
MFC after: 3 days

16 years ago- Fix a bug in sctp_calc_rwnd() which resulted in wrong rwnd predictions.
Randall Stewart [Sat, 10 Nov 2007 00:47:14 +0000 (00:47 +0000)]
- Fix a bug in sctp_calc_rwnd() which resulted in wrong rwnd predictions.
- Fix a signedness problem that shows up in some 64 bit platforms (macos).

MFC after: 1 week

16 years agoInstead of hardcoding md10 as the device node in the cd9660 example,
Giorgos Keramidas [Fri, 9 Nov 2007 18:02:51 +0000 (18:02 +0000)]
Instead of hardcoding md10 as the device node in the cd9660 example,
use a trick submitted by Ruslan.

MFC after: 1 day

16 years agoFix a typo.
Ruslan Ermilov [Fri, 9 Nov 2007 16:31:47 +0000 (16:31 +0000)]
Fix a typo.

16 years ago- Fix documentation to match code. Specifically, -c doesn't have
Ruslan Ermilov [Fri, 9 Nov 2007 16:02:10 +0000 (16:02 +0000)]
- Fix documentation to match code.  Specifically, -c doesn't have
  to be specified together with either -u or -t to have an effect,
  and exit status of 2 is not possible after a Perl->C conversion.

- While here, fix markup.

16 years agopccard.conf is gone.
Yoshihiro Takahashi [Fri, 9 Nov 2007 15:32:04 +0000 (15:32 +0000)]
pccard.conf is gone.

16 years agoFix numerous bugs when parsing options and arguments.
Ruslan Ermilov [Fri, 9 Nov 2007 15:14:08 +0000 (15:14 +0000)]
Fix numerous bugs when parsing options and arguments.

16 years agoFix build without INVARIANTS and update a comment to match
Ruslan Ermilov [Fri, 9 Nov 2007 11:04:36 +0000 (11:04 +0000)]
Fix build without INVARIANTS and update a comment to match
a change made in previous revision.

16 years agoClean up after last commit.
Ruslan Ermilov [Fri, 9 Nov 2007 09:25:36 +0000 (09:25 +0000)]
Clean up after last commit.

16 years agoTeach source installation shell script and sysinstall(8) about
Ruslan Ermilov [Fri, 9 Nov 2007 08:50:02 +0000 (08:50 +0000)]
Teach source installation shell script and sysinstall(8) about
the 'scompat' source dist that holds src/compat/.

Reported by: Mars G Miro

16 years agoRemove traces of vinum and replace with gvinum.
Tom Rhodes [Fri, 9 Nov 2007 00:50:08 +0000 (00:50 +0000)]
Remove traces of vinum and replace with gvinum.
Mention gstripe and gjournal.

16 years agoTeach ps(1) to parse pts TT values (i.e. '0', '1') for the -t flag.
John Baldwin [Thu, 8 Nov 2007 22:31:28 +0000 (22:31 +0000)]
Teach ps(1) to parse pts TT values (i.e. '0', '1') for the -t flag.

MFC after: 1 week
Reported by: kris

16 years agoLink wpi(4) into the build.
Benjamin Close [Thu, 8 Nov 2007 22:09:37 +0000 (22:09 +0000)]
Link wpi(4) into the build.

This includes:
    o mtree (for legal/intel_wpi)
    o manpage for i386/amd64 archs
    o module for i386/amd64 archs
    o NOTES for i386/amd64 archs

Approved by: mlaier (comentor)

16 years agoRemove an unneeded CFLAGS line
Benjamin Close [Thu, 8 Nov 2007 22:02:38 +0000 (22:02 +0000)]
Remove an unneeded CFLAGS line

Approved by: mlaier (comentor)

16 years agoTurn off debug output, its been confusing users.
Benjamin Close [Thu, 8 Nov 2007 21:57:08 +0000 (21:57 +0000)]
Turn off debug output, its been confusing users.

Approved by: mlaier (comentor)

16 years agoProvide a man page for wpi:
Benjamin Close [Thu, 8 Nov 2007 21:54:42 +0000 (21:54 +0000)]
Provide a man page for wpi:
    Intel 3945abg wireless driver

Approved by: mlaier (comentor)

16 years agoA couple of optimizations to the last commit.
John Baldwin [Thu, 8 Nov 2007 21:45:56 +0000 (21:45 +0000)]
A couple of optimizations to the last commit.

Submitted by: Christoph Mallon christoph mallon of gmx de

16 years agoWhitespace only.
Nate Lawson [Thu, 8 Nov 2007 21:20:34 +0000 (21:20 +0000)]
Whitespace only.

16 years agoUse VM_FAULT_DIRTY to fault in pages for write access in
Stephan Uphoff [Thu, 8 Nov 2007 19:35:36 +0000 (19:35 +0000)]
Use VM_FAULT_DIRTY to fault in pages for write access in
proc_rwmen.
Otherwise copy on write may create an anonymous page that is
not marked as dirty. Since  writing data to these pages
in this function also does not dirty these pages they may be
later discarded by the pagedaemon.

16 years agoetc/defaults/pccard.conf has been relegated to the scrapheap of
Warner Losh [Thu, 8 Nov 2007 17:43:13 +0000 (17:43 +0000)]
etc/defaults/pccard.conf has been relegated to the scrapheap of
history, note its newly minted obsolete status here.

16 years agoAnother vestige of OLDCARD that needs to be retired.
Warner Losh [Thu, 8 Nov 2007 17:41:35 +0000 (17:41 +0000)]
Another vestige of OLDCARD that needs to be retired.

Prodded by: jhb@

16 years agoTurn most ffs 'DIAGNOSTIC's into INVARIANTS.
David E. O'Brien [Thu, 8 Nov 2007 17:21:51 +0000 (17:21 +0000)]
Turn most ffs 'DIAGNOSTIC's into INVARIANTS.

16 years agocorrect termination check doing amsdu de-aggregation
Sam Leffler [Thu, 8 Nov 2007 17:11:40 +0000 (17:11 +0000)]
correct termination check doing amsdu de-aggregation

MFC after: 3 days

16 years agoMake it easier to add more ptys to the pty(4) driver:
John Baldwin [Thu, 8 Nov 2007 15:51:52 +0000 (15:51 +0000)]
Make it easier to add more ptys to the pty(4) driver:
- Use unit2minor() and minor2unit() to generate minor numbers to support
  unit numbers higher than 255.
- Use simple string operations on the 'names' array rather than hard-coded
  constants and switch statements so that more ptys can be added by simply
  expanding the 'names' array.

MFC after: 1 week

16 years agoUpdate X11 dists for xorg-7.3 layout.
Ken Smith [Thu, 8 Nov 2007 15:40:40 +0000 (15:40 +0000)]
Update X11 dists for xorg-7.3 layout.

X-MFC-after: Insta-MFC may be coming so this can get into 6.3-BETA2.

16 years agoInitial checkin for rmlock (read mostly lock) a multi reader single writer
Stephan Uphoff [Thu, 8 Nov 2007 14:47:55 +0000 (14:47 +0000)]
Initial checkin for rmlock (read mostly lock) a multi reader single writer
lock optimized for almost exclusive reader access. (see also rmlock.9)

TODO:
    Convert to per cpu variables linkerset as soon as it is available.
    Optimize UP (single processor)  case.

16 years agoAdd entries for the L2 cache-related functions for armv5.
Olivier Houchard [Thu, 8 Nov 2007 13:19:08 +0000 (13:19 +0000)]
Add entries for the L2 cache-related functions for armv5.

Spotted out by: Rafal Jaworowski

16 years agoTwo minor improvements uncovered by work on upgrading between releases:
Colin Percival [Thu, 8 Nov 2007 13:06:38 +0000 (13:06 +0000)]
Two minor improvements uncovered by work on upgrading between releases:
* When installing updates, make sure that securelevel <= 0.  Otherwise
  we can't remove the schg flag from files.
* When preparing to download updates, check to see if we already have
  them sitting in the /files/ directory.  This saves bandwidth if users
  run "freebsd-update fetch" more than once without installing updates
  in between.

While I'm here, bump the copyright date.

MFC after: 3 days

16 years agoDocument the per-arch default value of kern.maxbcache.
Ruslan Ermilov [Thu, 8 Nov 2007 11:59:38 +0000 (11:59 +0000)]
Document the per-arch default value of kern.maxbcache.

16 years agoUse static storage-class specifier where appropriate.
Diomidis Spinellis [Thu, 8 Nov 2007 11:13:03 +0000 (11:13 +0000)]
Use static storage-class specifier where appropriate.
Found by: CScout

16 years agoMake function's definition follow its declared visibility.
Diomidis Spinellis [Thu, 8 Nov 2007 09:09:02 +0000 (09:09 +0000)]
Make function's definition follow its declared visibility.
Found by: CScout

16 years agoFix visibility of "inplace".
Diomidis Spinellis [Thu, 8 Nov 2007 08:57:51 +0000 (08:57 +0000)]
Fix visibility of "inplace".
Found by: CScout

16 years ago- Remove magic number and fit max rx buffer size accurately.
Ariff Abdullah [Thu, 8 Nov 2007 08:25:58 +0000 (08:25 +0000)]
- Remove magic number and fit max rx buffer size accurately.
- Patch registers CR47 and CR157 on devices that require it.
- Fix power calibration setting on ZD1211B.

Obtained from: OpenBSD

- Fix multicast transfer by properly reprogram multicast global
  hash table, which in turns fix promiscuous mode and IPv6
  autoconfiguration / local networking.

Reviewed by: sam, Weongyo Jeong
Tested using: Aztech WL230 , Belkin F5D7050, Unicorn WL-54G,
              3COM 3CRUSB10075
MFC after: 1 week

16 years agosetenv(3) sets errno on failure, use warn() instead
Kevin Lo [Thu, 8 Nov 2007 01:24:31 +0000 (01:24 +0000)]
setenv(3) sets errno on failure, use warn() instead

Pointed out by: ru

16 years agoPut back devstat support that was lost during GEOM transition. Initially,
Maxim Sobolev [Wed, 7 Nov 2007 22:47:41 +0000 (22:47 +0000)]
Put back devstat support that was lost during GEOM transition. Initially,
I've tried to move md(4) to use geom_disk class, like real disks do, but
this requires major rework of some of the existing features such as
configuration dumping for example. Therefore just putting devstat support
directly into md(4) seems to be optimal solution.

Now you can see md(4) stats in `systat -vm' again.

MFC after: 2 weeks

16 years agoChange unused 'user_wait' argument to 'timo' argument, which will be
Pawel Jakub Dawidek [Wed, 7 Nov 2007 21:56:58 +0000 (21:56 +0000)]
Change unused 'user_wait' argument to 'timo' argument, which will be
used to specify timeout for msleep(9).

Discussed with: alc
Reviewed by: alc

16 years agoasmc build infrastructure.
Rui Paulo [Wed, 7 Nov 2007 20:12:21 +0000 (20:12 +0000)]
asmc build infrastructure.

Approved by: njl (mentor)
Reviewed by: njl (mentor)

16 years agoConnect asmc to the build infrastructure.
Rui Paulo [Wed, 7 Nov 2007 20:08:15 +0000 (20:08 +0000)]
Connect asmc to the build infrastructure.

Approved by:  njl (mentor)
Reviewed by: njl (mentor)

16 years agoDriver for the Apple System Management Console (SMC). This hardware is
Rui Paulo [Wed, 7 Nov 2007 20:05:13 +0000 (20:05 +0000)]
Driver for the Apple System Management Console (SMC). This hardware is
present on the MacBook, MacBook Pro, and Intel MacMini.

This driver exports information via sysctl in its private sysctl tree
dev.asmc.*. You can get information about temperatures, fan speeds, the
keyboard light sensor and the Sudden Motion Sensor (SMS).
The SMS is very useful to park the disk heads when the laptop is
moved. Basically, the SMS is setup so that, under movement, we get an
interrupt on irq 6 and a devd notification is sent.

Sponsored by:  Google Summer of Code 2007
Approved by:  njl (mentor)
Reviewed by:  attilio (previous version, but very similar), jhb (interrupt
   specific review)

16 years agoImplement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.
Konstantin Belousov [Wed, 7 Nov 2007 16:42:52 +0000 (16:42 +0000)]
Implement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.

LINUX_SIOCGIFCOUNT just returns 0 since it is not implemented in the
Linux 2.6.16.

LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX are mapped to the FreeBSD native
SIOCGIFINDEX.

Tested by: Peter Kostouros <kpeter@melbpc.org.au>
Reviewed by: brooks, rpaulo (on net@)
Submitted by: rdivacky
MFC after: 1 week

16 years ago- Include runefile.h for _CACHED_RUNES
Rong-En Fan [Wed, 7 Nov 2007 14:46:22 +0000 (14:46 +0000)]
- Include runefile.h for _CACHED_RUNES

16 years ago- Include runetype.h for _RuneLocale_
Rong-En Fan [Wed, 7 Nov 2007 14:45:48 +0000 (14:45 +0000)]
- Include runetype.h for _RuneLocale_

16 years agoWarn if kmem_map size is set to less than 512MB. Previous warning was a bit
Pawel Jakub Dawidek [Wed, 7 Nov 2007 14:44:31 +0000 (14:44 +0000)]
Warn if kmem_map size is set to less than 512MB. Previous warning was a bit
pointless, because default is set to something around 300MB and also
insufficient.

MFC after: 3 days

16 years agodevinfo(8) manual page refers to pciconfr(8). Add back reference for
Dmitry Morozovsky [Wed, 7 Nov 2007 12:55:51 +0000 (12:55 +0000)]
devinfo(8) manual page refers to pciconfr(8).  Add back reference for
completeness.

MFC After: 2 weeks

16 years agoRevise the markup.
Ruslan Ermilov [Wed, 7 Nov 2007 12:08:03 +0000 (12:08 +0000)]
Revise the markup.

16 years agoAdd missing <stdlib.h> for exit()
Kevin Lo [Wed, 7 Nov 2007 10:57:35 +0000 (10:57 +0000)]
Add missing <stdlib.h> for exit()

16 years agoCleanup of userland __P use
Kevin Lo [Wed, 7 Nov 2007 10:53:41 +0000 (10:53 +0000)]
Cleanup of userland __P use

16 years agoCheck the correct variables for malloc failures.
Matteo Riondato [Wed, 7 Nov 2007 10:21:36 +0000 (10:21 +0000)]
Check the correct variables for malloc failures.

Submitted by: Michiel Boland <michiel@boland.org>

16 years agoCatch up to changes in the ports tree since last release
Kris Kennaway [Wed, 7 Nov 2007 09:11:45 +0000 (09:11 +0000)]
Catch up to changes in the ports tree since last release

16 years agoMarkup nits.
Ruslan Ermilov [Wed, 7 Nov 2007 07:59:38 +0000 (07:59 +0000)]
Markup nits.

16 years agoFix markup.
Ruslan Ermilov [Wed, 7 Nov 2007 07:56:57 +0000 (07:56 +0000)]
Fix markup.

16 years agoUpdate after import
Andrey A. Chernov [Wed, 7 Nov 2007 04:44:11 +0000 (04:44 +0000)]
Update after import

16 years agoMerge after importing official patches 3-7
Andrey A. Chernov [Wed, 7 Nov 2007 04:42:20 +0000 (04:42 +0000)]
Merge after importing official patches 3-7

16 years agoThis commit was generated by cvs2svn to compensate for changes in r173403,
Andrey A. Chernov [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r173403,
which included commits to RCS files with non-trunk default branches.

16 years agoOfficial patches 3-7
Andrey A. Chernov [Wed, 7 Nov 2007 04:34:03 +0000 (04:34 +0000)]
Official patches 3-7

16 years agoAfter discussions with grog@ (mentor):
Edwin Groothuis [Wed, 7 Nov 2007 01:14:28 +0000 (01:14 +0000)]
After discussions with grog@ (mentor):

- When none of the directories in FORTUNE_PATH exist, abort instead
  of using the default FORTDIR.
- Little stylify changes.
- Add documentation about the FORTUNE_PATH variable.

MFC after: 1 week

16 years agos/maybe/may be/
Daniel Gerzo [Tue, 6 Nov 2007 23:12:53 +0000 (23:12 +0000)]
s/maybe/may be/

MFC after: 3 days

16 years ago1) dummynet_io() declaration has changed.
Oleg Bulyzhin [Tue, 6 Nov 2007 23:01:42 +0000 (23:01 +0000)]
1) dummynet_io() declaration has changed.
2) Alter packet flow inside dummynet: allow certain packets to bypass
dummynet scheduler. Benefits are:

- lower latency: if packet flow does not exceed pipe bandwidth, packets
  will not be (up to tick) delayed (due to dummynet's scheduler granularity).
- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter ip
  stack later. Such packets can be fastforwarded.
- recursion (which can lead to kernel stack exhaution) eliminated. This fix
  long existed panic, which can be triggered this way:
   kldload dummynet
sysctl net.inet.ip.fw.one_pass=0
ipfw pipe 1 config bw 0
for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done
ping -c 1 localhost

3) Three new sysctl nodes are added:
net.inet.ip.dummynet.io_pkt - packets passed to dummynet
net.inet.ip.dummynet.io_pkt_fast -  packets avoided dummynet scheduler
net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet

P.S. Above comments are true only for layer 3 packets. Layer 2 packet flow
     is not changed yet.

MFC after: 3 month

16 years agostyle(9) cleanup.
Oleg Bulyzhin [Tue, 6 Nov 2007 22:53:41 +0000 (22:53 +0000)]
style(9) cleanup.

MFC after: 3 month

16 years agoAnother typo in the previous commited fix. That makes four typos
Edwin Groothuis [Tue, 6 Nov 2007 22:40:16 +0000 (22:40 +0000)]
Another typo in the previous commited fix. That makes four typos
in one fortune of only 32 words. Based on that single ratio, there
are 50453 more typos in the rest of the fortunes file....

Noticed by: Nate Lawson <nate@root.org>
MFC after: 1 week

16 years agogames/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely
Edwin Groothuis [Tue, 6 Nov 2007 22:03:24 +0000 (22:03 +0000)]
games/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely

This patch adds an environment variable FORTUNE_PATH, which
works like PATH for fortune files.

PR: bin/36867
Submitted by: Alan Eldridge <ports@geeksrus.net>

[patch] fortune -e implementation bug

Fix the behaviour of "-e file1 file2" to equally pick them
instead of only picking the first one.

PR: bin/70182
Submitted by: Martin Kulas <coolaz@web.de>

MFC after: 1 week
Approved by: grog (mentor)

16 years ago[patch] Fortune typos, around line 57346 of fortunes datfile
Edwin Groothuis [Tue, 6 Nov 2007 21:55:56 +0000 (21:55 +0000)]
[patch] Fortune typos, around line 57346 of fortunes datfile

Small typos -- saw in a fortune today that 'equipped' is
spelled 'equpped'. Also, 'vacuum' is spelled 'vaccuum'.
Corrected diff provided below.

PR: misc/112049
Submitted by: Seth Hieronymus <shieronymus@speakeasy.net>
MFC after: 1 week

16 years agoIn _pthread_key_create() ensure that libthr is initialized. This
Marius Strobl [Tue, 6 Nov 2007 21:50:43 +0000 (21:50 +0000)]
In _pthread_key_create() ensure that libthr is initialized. This
fixes a NULL-dereference of curthread when libstdc+ initializes
the exception handling globals on archs we can't use GNU TLS due
to lack of support in binutils 2.15 (i.e. arm and sparc64), yet,
thus making threaded C++ programs compiled with GCC 4.2.1 work
again on these archs.

Reviewed by: davidxu
MFC after: 3 days

16 years agoCheck return value for setenv()
Kevin Lo [Tue, 6 Nov 2007 10:35:50 +0000 (10:35 +0000)]
Check return value for setenv()

16 years agoCheck wep flag in *_tx_mgt since we need to encrypt some management frame
Kevin Lo [Tue, 6 Nov 2007 07:30:12 +0000 (07:30 +0000)]
Check wep flag in *_tx_mgt since we need to encrypt some management frame
in case of shared authentification.

Obtained from: NetBSD

16 years agoCorrect typo.
Greg Lehey [Tue, 6 Nov 2007 02:42:00 +0000 (02:42 +0000)]
Correct typo.

MFC after: 2 weeks

16 years agoApparently some NVIDIA NICs store ethernet address in reverse order
Pyun YongHyeon [Tue, 6 Nov 2007 01:01:38 +0000 (01:01 +0000)]
Apparently some NVIDIA NICs store ethernet address in reverse order
while other variants have inorder ethernet address for the same
chipset. Override ethernet address ordering if we already know how
it was stored. This fixes the use of inversed ethernet address on
MCP67.

Submitted by: ariff
MFC after: 3 days

16 years ago- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
Ulf Lilleengen [Mon, 5 Nov 2007 23:15:03 +0000 (23:15 +0000)]
- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
  the open file-listing. It is added as a separate source file, so it can
  respect WITH_/WITHOUT_CDDL as compile-flags.
- The warnlevel of the Makefile was decreased to quell solaris #pragma
  warnings.
- Expect that fstat(1) doesn't work with kernel compiled with
  DEBUG_VFS_LOCKS/DEBUG_LOCKS for now.

Approved by: pjd (mentor)

16 years agoSwitch arm to -O until the -O2 issues are resolved.
Olivier Houchard [Mon, 5 Nov 2007 23:08:34 +0000 (23:08 +0000)]
Switch arm to -O until the -O2 issues are resolved.

MFC After: 3 days

16 years agoRemove unused header.
Pawel Jakub Dawidek [Mon, 5 Nov 2007 22:18:34 +0000 (22:18 +0000)]
Remove unused header.

MFC after: 3 days

16 years agoIf setting a state to anything but open state, close access to vdev.
Pawel Jakub Dawidek [Mon, 5 Nov 2007 21:30:48 +0000 (21:30 +0000)]
If setting a state to anything but open state, close access to vdev.
This fixes replacing drive in place, eg. zpool replace tank da1 da1.
Before it complained that device is already open.

MFC after: 1 week

16 years agoDo not pass an address to local stack variable to usbd_set_report_async.
Alexander Kabaev [Mon, 5 Nov 2007 19:51:12 +0000 (19:51 +0000)]
Do not pass an address to local stack variable to usbd_set_report_async.
Allocate space in keyboard state structure instead to prevent random byte
from possibly overwritten stack location frombeing shoved into USB device
when transfer actually takes place.

This fixes at least one instance of LEDs not working with USB keyboards.

16 years agoRemove "zfs:" prefix from lock and condvar names and also skip non-letter
Pawel Jakub Dawidek [Mon, 5 Nov 2007 18:40:55 +0000 (18:40 +0000)]
Remove "zfs:" prefix from lock and condvar names and also skip non-letter
characters (mostly "&"). Because top(1) shows only first six characters of
wait channel, without this change we saw only one meaningful character.

Requested by: kris & others
MFC after: 1 week

16 years agoAdd comments explaining why all stores updating a non-kernel page table
Alan Cox [Mon, 5 Nov 2007 18:13:34 +0000 (18:13 +0000)]
Add comments explaining why all stores updating a non-kernel page table
must be globally performed before calling any of the TLB invalidation
functions.

With one exception, on amd64, this requirement was already met.  Fix this
one case.  Also, as a clarification, change an existing atomic op into a
release.  (Suggested by: jhb)

Reported and reviewed by: ups
MFC after: 3 days

16 years agoCorrect handling of off-channel frames:
Sam Leffler [Mon, 5 Nov 2007 17:24:28 +0000 (17:24 +0000)]
Correct handling of off-channel frames:
o do not override the home channel recorded for the sta when the frame is
  received off-channel; this fixes a problem where we might think the sta
  was operating on the channel the frame was received on causing association
  requests to be ignored/rejected (likely cause of kern/99036)
o don't include rssi of off-channel frames in the avg rssi used to select
  a bss; this gives us a better estimate of the signal we will see for the
  station when on-channel

PR: kern/99036
Found by: Yubin Gong
Reviewed by: sephe
MFC after: 1 week

16 years agoFix NOP message sending in ciss_periodic() which causes panic with
Mitsuru IWASAKI [Mon, 5 Nov 2007 13:54:23 +0000 (13:54 +0000)]
Fix NOP message sending in ciss_periodic() which causes panic with
option INVARIANTS.

Reviewed by: simokawa
Tested by: noriyosi_kawano
MFC after: 1 week

16 years agoRemove unused variable td from sched_idletd().
Robert Watson [Mon, 5 Nov 2007 12:01:12 +0000 (12:01 +0000)]
Remove unused variable td from sched_idletd().

MFC after: 3 days
Found with: Coverity Prevent(tm)
CID: 3561

16 years agoInitial Import of wpi driver based on p4 changeset 128641.
Benjamin Close [Mon, 5 Nov 2007 11:47:19 +0000 (11:47 +0000)]
Initial Import of wpi driver based on p4 changeset 128641.

This import includes:
   o wpi Wireless driver for the Intel 3945 Wireless Lan Controller (802.11abg) (sys/dev/wpi)
   o Intel firmware revision 2.14.4 & associated LICENSE (sys/dev/contrib/wpi, sys/contrib/dev/wpi/LICENSE)
   o wpifw Firmware driver (sys/modules/wpifw)

Approved by: mlaier, sam (co-mentors)

16 years agoFix for the panic("vm_thread_new: kstack allocation failed") and
Konstantin Belousov [Mon, 5 Nov 2007 11:36:16 +0000 (11:36 +0000)]
Fix for the panic("vm_thread_new: kstack allocation failed") and
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit()
when the kmem_alloc_nofault() failed to allocate address space. Both
functions now return error instead of panicing or dereferencing NULL.

As consequence, vmspace_exec() and vmspace_unshare() returns the errno
int. struct vmspace arg was added to vm_forkproc() to avoid dealing
with failed allocation when most of the fork1() job is already done.

The kernel stack for the thread is now set up in the thread_alloc(),
that itself may return NULL. Also, allocation of the first process
thread is performed in the fork1() to properly deal with stack
allocation failure. proc_linkup() is separated into proc_linkup()
called from fork1(), and proc_linkup0(), that is used to set up the
kernel process (was known as swapper).

In collaboration with: Peter Holm
Reviewed by: jhb

16 years agoAdd missing locking for SBus controllers.
Scott Long [Mon, 5 Nov 2007 11:22:18 +0000 (11:22 +0000)]
Add missing locking for SBus controllers.

16 years agoThe intent of the freeing the (zeroed) page in vm_page_cache() for
Konstantin Belousov [Mon, 5 Nov 2007 10:25:12 +0000 (10:25 +0000)]
The intent of the freeing the (zeroed) page in vm_page_cache() for
default object rather than cache it was to have
vm_pager_has_page(object, pindex, ...) == FALSE to imply that there is
no cached page in object at pindex. This allows to avoid explicit
checks for cached pages in vm_object_backing_scan().

For now, we need the same bandaid for the swap object, otherwise both
the vm_page_lookup() and the pager can report that there is no page at
offset, while page is stored in the cache. Also, this fixes another
instance of the KASSERT("object type is incompatible") failure in the
vm_page_cache_transfer().

Reported and tested by: Peter Holm
Reviewed by: alc
MFC after: 3 days

16 years agoChange wpa_supplicant to down the interface at the start of the init routine.
Andrew Thompson [Mon, 5 Nov 2007 06:13:07 +0000 (06:13 +0000)]
Change wpa_supplicant to down the interface at the start of the init routine.
wpa_supplicant expects that it has exclusive access to the net80211 state so
when its starts poking in the WEP/WPA settings and the card is already
scanning it can cause net80211 to try and associate incorrectly with a
protected AP.

This is an inconvenience for firmware based cards such as iwi where it can be
sent an auth instruction with incomplete security info and cause a firmware
error.

Remove the 'ifconfig up' from network.subr since wpa_supplicant will
immediately down the interface again.

Reported by: Guy Helmer (and others)
Reviewed by: sam, brooks, avatar
MFC after: 3 days

16 years agosendmail 8.14.2 has been imported.
Gregory Neil Shapiro [Mon, 5 Nov 2007 00:24:05 +0000 (00:24 +0000)]
sendmail 8.14.2 has been imported.