Sascha Wildner [Mon, 10 Jul 2006 23:07:45 +0000 (23:07 +0000)]
Match revision separator only if preceded by a newline.
This prevents the script from choking on
CVS ----------------------------------------------------------------------
lines accidentally left in commit messages.
perl-clue: corecode
Matthew Dillon [Mon, 10 Jul 2006 22:52:31 +0000 (22:52 +0000)]
Update the manual pages for the kernel random number generator.
Matthew Dillon [Mon, 10 Jul 2006 22:19:14 +0000 (22:19 +0000)]
Turn on the new kern.seedenable sysctl when seeding the PRNG.
Matthew Dillon [Mon, 10 Jul 2006 21:06:09 +0000 (21:06 +0000)]
Change the seeder array from a modulo to a logical AND, improving performance
and allowing us to overflow the index variable without overflowing the
array.
Implement seeding via writes to /dev/random. Seeding is only allowed
if the kern.seedenable sysctl is set to 1 (defaults to 0), and the securelevel
is less then or equal to 0. Note that the random number generator also
self-seeds to some degree.
Writing to /dev/random is no longer a sink null. Writing to /dev/urandom
is no longer allowed at all.
Modify the seeding code to mix a few of the bits with PNG feedback to reduce
the possibility of seeding-based attacks.
Intentionally feed /dev/urandom back into /dev/random for a bit, then run
DIEHARD to test for any obvious screwups. Passes DIEHARD.
Sascha Wildner [Mon, 10 Jul 2006 20:34:47 +0000 (20:34 +0000)]
Sync with FreeBSD (makes it actually work).
Matthew Dillon [Mon, 10 Jul 2006 20:33:36 +0000 (20:33 +0000)]
Cleanup, no functional changes.
Matthew Dillon [Mon, 10 Jul 2006 04:42:56 +0000 (04:42 +0000)]
Disassociate the VM object after calling VOP_INACTIVE instead of before.
VOP_INACTIVE may have to do some work on the vnode that requires a
functional buffer cache. For example, UFS may have to truncate a removed
file.
Simon Schubert [Sun, 9 Jul 2006 22:55:45 +0000 (22:55 +0000)]
Don't use B_PAGING with geteblk() bufs
Simon Schubert [Sun, 9 Jul 2006 01:38:57 +0000 (01:38 +0000)]
Correctly handle dumping kernel threads
Matthew Dillon [Sat, 8 Jul 2006 18:12:05 +0000 (18:12 +0000)]
Use bzip instead of gzip, rename the tar file to make it more obvious that
only kernel sources are included, and allow WITHOUT_SRCS to be defined to
prevent inclusion of the kernel sources in the ISO.
Suggested-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Matthew Dillon [Sat, 8 Jul 2006 03:19:30 +0000 (03:19 +0000)]
Include kernel sources on the release CD.
Sascha Wildner [Sat, 8 Jul 2006 01:20:29 +0000 (01:20 +0000)]
Remove obsolete worm(4) ioctl definitions.
Sascha Wildner [Sat, 8 Jul 2006 01:04:28 +0000 (01:04 +0000)]
Remove unnecessary check (u_int8_t is 0-255).
Sascha Wildner [Fri, 7 Jul 2006 17:14:34 +0000 (17:14 +0000)]
Sort by chapter.
Sepherosa Ziehau [Fri, 7 Jul 2006 16:12:45 +0000 (16:12 +0000)]
missing ','
Sepherosa Ziehau [Fri, 7 Jul 2006 15:11:46 +0000 (15:11 +0000)]
- Add back references to wpa_cli(8)
- Don't mention devd, which does not exist in DragonFly currently
Noticed-by: swildner
Sepherosa Ziehau [Fri, 7 Jul 2006 15:05:18 +0000 (15:05 +0000)]
Add build infrastructure for wpa_cli(8), which can be used to interact with
wpa_supplicant(8) to query current status or change configure etc.
Obtained-from: FreeBSD
Manpage-reviewed-by: swildner
Sepherosa Ziehau [Fri, 7 Jul 2006 14:16:29 +0000 (14:16 +0000)]
- Replace lnc(4) driver with NetBSD's le(4), which gives us better performance,
especially for VMWare users.
- Sync lnc(4) manpage.
Submitted-by: Bill Marquette <bill.marquette@gmail.com>
Manpage-reviewed-and-adjusted-by: swildner
Simon Schubert [Fri, 7 Jul 2006 13:00:37 +0000 (13:00 +0000)]
Correct typo in comment
Simon Schubert [Thu, 6 Jul 2006 23:36:29 +0000 (23:36 +0000)]
Copy b_cmd into new buf
Sascha Wildner [Thu, 6 Jul 2006 16:17:20 +0000 (16:17 +0000)]
Remove the old wormcontrol(8) command and the worm(4) man page.
Matthew Dillon [Wed, 5 Jul 2006 22:46:42 +0000 (22:46 +0000)]
Add a missing initbufbio() to fix a panic when vinum tries to issue a
read or write.
Reported-by: Rumko, "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Sascha Wildner [Wed, 5 Jul 2006 18:32:20 +0000 (18:32 +0000)]
Add a manual page for the crit_enter()/crit_exit() family of functions.
Helped-by: corecode, dillon
Matthew Dillon [Wed, 5 Jul 2006 17:20:37 +0000 (17:20 +0000)]
If we hit the file hardlink limit try to copy the file instead of hardlinking
it. This is most likely to occur when using the new -H option, in particular
when copying CVS trees whos "CVS/Root" files are all hardlinked together.
Document the issue in the manual page.
YONETANI Tomokazu [Wed, 5 Jul 2006 15:43:50 +0000 (15:43 +0000)]
Sync with Osd/OsdDebug.c rev1.9 in FreeBSD:
Don't enter the debugger when executing an AML breakpoint instruction
unless ACPI_DEBUG is defined. Users don't typically care about errant
breakpoint instructions.
Reported-by: Petr Janda (originally reported by Martin P. Hellwig,
but completely slipped off of my memory)
Joerg Sonnenberger [Wed, 5 Jul 2006 15:04:54 +0000 (15:04 +0000)]
Add wide char support for printf and friends. Fix a possible
underallocation.
Obtained-from: FreeBSD
Tested-by: swildner
Matthew Dillon [Tue, 4 Jul 2006 19:54:08 +0000 (19:54 +0000)]
Do not attempt to read the slice table or disk label when accessing a raw
disk device such as /dev/ad0. Otherwise a read failure of sector 0 during
the open will cause the open to fail and prevent the recovery of other
potentially readable data.
Sascha Wildner [Tue, 4 Jul 2006 18:02:11 +0000 (18:02 +0000)]
Comment out empty sections.
Sascha Wildner [Tue, 4 Jul 2006 17:35:30 +0000 (17:35 +0000)]
1) Hook pctrack into the build.
2) Add DEBUG_PCTRACK to LINT.
3) Perform some minor mdoc cleanup on the manual page.
Sascha Wildner [Tue, 4 Jul 2006 04:38:29 +0000 (04:38 +0000)]
Remove ancient module.
Matthew Dillon [Tue, 4 Jul 2006 00:32:03 +0000 (00:32 +0000)]
Add a new option -H <path> to cpdup. This option allows cpdup to be used
to create incremental backups.
cpdup operates per normal. However, if the -H option is specified with a
path to some prior (read-only) backup of the source tree, cpdup will
check whether the file in the source tree matches ethe file in the
prior backup and if it does it will create a hardlink from the prior backup
to the target tree instead of copying the file.
Warning: due to the way cpdup handles hardlinks, it must record the file
paths for all hardlinks it encounters while it is traversing the directory
tree. If copying a very large tree with lots (e.g. millions) of files it
is possible to run the process out of memory.
Sascha Wildner [Sun, 2 Jul 2006 16:24:02 +0000 (16:24 +0000)]
Remove obsolete documentation regarding usbd/kernel interaction.
Submitted-by: Steve O'Hara-Smith <steve@sohara.org>
Sascha Wildner [Sun, 2 Jul 2006 16:03:42 +0000 (16:03 +0000)]
Bring etc/defaults/make.conf closer to reality:
* Add WITH_BSDTAR
* NOSHARE -> NO_SHARE
* Fix ports related comment.
Sascha Wildner [Sun, 2 Jul 2006 13:04:35 +0000 (13:04 +0000)]
Fix wording.
Sascha Wildner [Sun, 2 Jul 2006 12:55:44 +0000 (12:55 +0000)]
Remove unused SCTP_TCP_MODEL_SUPPORT option.
Sepherosa Ziehau [Sun, 2 Jul 2006 10:03:17 +0000 (10:03 +0000)]
segments total size is (MCLBYTES * RT2661_MAX_SCATTER), not MCLBYTES
Sascha Wildner [Sun, 2 Jul 2006 08:13:07 +0000 (08:13 +0000)]
Remove ports related documentation and adjust disk usage.
Simon Schubert [Sun, 2 Jul 2006 00:57:14 +0000 (00:57 +0000)]
Set limits for inlining functions.
Obtained-from: FreeBSD
Simon Schubert [Sun, 2 Jul 2006 00:55:08 +0000 (00:55 +0000)]
Restructure kernel makefiles and factor out MI and MD parts.
FreeBSD seems to have done the same thing some time ago.
Simon Schubert [Sun, 2 Jul 2006 00:49:46 +0000 (00:49 +0000)]
remove long gone makefile
Simon Schubert [Sun, 2 Jul 2006 00:49:38 +0000 (00:49 +0000)]
use ${MACHINE_ARCH} instead of ${MACHINE}
Simon Schubert [Sun, 2 Jul 2006 00:49:31 +0000 (00:49 +0000)]
only compile function in the SMP case
Simon Schubert [Sun, 2 Jul 2006 00:49:22 +0000 (00:49 +0000)]
Delete unused variable
Sascha Wildner [Sun, 2 Jul 2006 00:42:25 +0000 (00:42 +0000)]
fix case
Sascha Wildner [Sun, 2 Jul 2006 00:30:08 +0000 (00:30 +0000)]
Ports -> pkgsrc
Sascha Wildner [Sun, 2 Jul 2006 00:23:38 +0000 (00:23 +0000)]
Fix comments:
* ncvs -> dcvs
* Remove ports reference.
Sascha Wildner [Sat, 1 Jul 2006 19:34:43 +0000 (19:34 +0000)]
Replace /usr/ports with /usr/pkgsrc in the list of dirs to search.
Eirik Nygaard [Sat, 1 Jul 2006 10:47:39 +0000 (10:47 +0000)]
Add locale(1).
It provides locale information. Nice for debugging locale specific problems.
Obtained from: NetBSD, FreeBSD
Originally written by: Alexey Zelkin <phantom@FreeBSD.org>
Sascha Wildner [Sat, 1 Jul 2006 09:10:35 +0000 (09:10 +0000)]
Remove portsinfo.
Sascha Wildner [Sat, 1 Jul 2006 08:52:40 +0000 (08:52 +0000)]
Remove ports specific portsinfo script.
Eirik Nygaard [Fri, 30 Jun 2006 20:41:08 +0000 (20:41 +0000)]
Remove syscall-args. It is not needed now that libcr has been removed.
Scott Ullrich [Fri, 30 Jun 2006 16:50:01 +0000 (16:50 +0000)]
Bring if_bridge up to date with FreeBSD.
New features / improvements:
* better handling of fragmented packets
* newer spanning tree support
* txcsum fixes
* monitor mode (multiplex bpf)
* spanports
* Use bit operations to get a locally administered address
* GIF interfaces can now be used as span port members
Patch originally adapted from a version done by Andrew Thompson
With-help-from: @corecode, @sephe, thompsa@freebsd.org
YONETANI Tomokazu [Fri, 30 Jun 2006 07:34:59 +0000 (07:34 +0000)]
Port EST driver from NetBSD, as it has better support for newer CPUs
than the current one. This version also contains an extra table
pentium_m_n740_2[] for Thomas' Pentium M 740.
Note: this is an interim solution, and we need to modify the driver
to import operating points from ACPI if available.
Testers: Johannes Hofmann (who also found a bug in my initial port)
Thomas Schlesinger
Sascha Wildner
Sascha Wildner [Thu, 29 Jun 2006 19:56:19 +0000 (19:56 +0000)]
Sync with reality:
* lockinit() no longer takes a prio argument.
* lockmgr() no longer takes a thread pointer argument.
Submitted-by: Bill Marquette <bill.marquette@gmail.com>
Simon Schubert [Wed, 28 Jun 2006 23:14:43 +0000 (23:14 +0000)]
Handle return values correctly, don't treat ssize_t return val as errno
Sascha Wildner [Wed, 28 Jun 2006 21:37:37 +0000 (21:37 +0000)]
Remove ports and dfports specific include files.
Sascha Wildner [Wed, 28 Jun 2006 21:21:35 +0000 (21:21 +0000)]
Remove some ports specific references.
Sascha Wildner [Wed, 28 Jun 2006 21:14:52 +0000 (21:14 +0000)]
Adjust for pkgsrc and fix a supfile name.
Sascha Wildner [Wed, 28 Jun 2006 21:03:51 +0000 (21:03 +0000)]
s/ieee80211_attach/ieee80211_ifattach/ in comment.
Sascha Wildner [Wed, 28 Jun 2006 19:41:59 +0000 (19:41 +0000)]
Sync our ieee80211*.9 manual pages with the recent upgrade.
Submitted-by: sephe
Minor spelling/grammar fixes and MLINKS/make upgrade stuff by me.
Matthew Dillon [Tue, 27 Jun 2006 20:32:39 +0000 (20:32 +0000)]
Swap out FAT12 for NTFS so the boot0 prompt says 'DOS' instead of '??' for
the filesystem. More people are likely to be using NTFS then FAT12 these
days.
Taken-from: FreeBSD/boot0.S/1.14 by DES
Submitted-by: "Bill Marquette" <bill.marquette@gmail.com>
Matthew Dillon [Tue, 27 Jun 2006 16:38:42 +0000 (16:38 +0000)]
/dev/[k]mem was not allowing access to the CPU globaldata area, because it
is not part of kernel_map. This prevented kgdb from operating properly
on a live kernel. Add code to allow the case.
Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Simon Schubert [Tue, 27 Jun 2006 13:30:24 +0000 (13:30 +0000)]
Invoke recvfrom with MSG_FNONBLOCK
Sascha Wildner [Mon, 26 Jun 2006 17:08:27 +0000 (17:08 +0000)]
Remove old bridge module...
YONETANI Tomokazu [Mon, 26 Jun 2006 03:11:53 +0000 (03:11 +0000)]
Cleanup variables so that you don't need to maintain two variables.
This also fixes some fortunes for which only .dat files are installed
(such fortunes are not displayed because fortune(6) requires both).
Scott Ullrich [Mon, 26 Jun 2006 00:13:37 +0000 (00:13 +0000)]
Rename freebsd-tips to dragonfly-tips to eliminate a No such file or
directory error on login.
Subbmitted-by: Bill Marquette
Sascha Wildner [Sun, 25 Jun 2006 11:30:57 +0000 (11:30 +0000)]
Remove oldbridge manpage, too :)
Simon Schubert [Sun, 25 Jun 2006 11:16:18 +0000 (11:16 +0000)]
Remove outdated headers of OLDBRIDGE
Simon Schubert [Sun, 25 Jun 2006 11:02:40 +0000 (11:02 +0000)]
Remove OLDBRIDGE
Simon Schubert [Sun, 25 Jun 2006 10:55:51 +0000 (10:55 +0000)]
Document that only sockaddr_storage sized parameters can hold
the address in every case.
Sepherosa Ziehau [Sat, 24 Jun 2006 07:51:37 +0000 (07:51 +0000)]
Nuke redundant 'MIN' macro definition
Sepherosa Ziehau [Sat, 24 Jun 2006 07:29:44 +0000 (07:29 +0000)]
- Add usr.sbin/802_11 to hold wpa_supplicant and other 802.11 related
programs' building infrastructures
- Add build infrastructure for wpa_supplicant-0.4.9 under newly added
usr.sbin/802_11
- Hook 802_11/wpa_supplicant building
Obtained-from: FreeBSD (mainly sam@freebsd.org)
Sepherosa Ziehau [Sat, 24 Jun 2006 06:59:49 +0000 (06:59 +0000)]
Merge from vendor branch WPA_SUPPLICANT:
Import of WPA supplicant 0.4.9
Sepherosa Ziehau [Sat, 24 Jun 2006 06:59:49 +0000 (06:59 +0000)]
Import of WPA supplicant 0.4.9
Sepherosa Ziehau [Sat, 24 Jun 2006 06:31:30 +0000 (06:31 +0000)]
In bfe_ifmedia_upd(), setup LED after mii_mediachg(). This makes bfe(4)'s
LED work as expected. It seems that writing to certain MII registers will
leave LED in incorrect state.
Obtained-from: Mikko Tyolajarvi <mbsd@pacbell.net>
Tested-by: swildner
Sepherosa Ziehau [Sat, 24 Jun 2006 00:04:18 +0000 (00:04 +0000)]
Avoid possible double fclose()
Obtained via OpenBSD from coverity/NetBSD
Eirik Nygaard [Fri, 23 Jun 2006 17:26:12 +0000 (17:26 +0000)]
Add SCTP to LINT.
Eirik Nygaard [Fri, 23 Jun 2006 17:20:14 +0000 (17:20 +0000)]
Make SCTP compile when IPSEC is enabled.
Sascha Wildner [Thu, 22 Jun 2006 20:44:46 +0000 (20:44 +0000)]
Add xref to sysctl(9).
Sascha Wildner [Thu, 22 Jun 2006 20:40:23 +0000 (20:40 +0000)]
Avoid line break before author name.
Sascha Wildner [Thu, 22 Jun 2006 20:10:54 +0000 (20:10 +0000)]
1) Add the sysctl(9) manual page from FreeBSD with the following
changes:
* Add documentation for SYSCTL_QUAD, SYSCTL_UQUAD, CTLTYPE_UQUAD,
CTLFLAG_NOLOCK and lwkt (name space).
* Remove documentation for CTLFLAG_TUN, CTLFLAG_RDTUN, regression
(name space) and security (name space).
* Adjust examples a bit.
2) Add SYSCTL_ADD_{QUAD,UQUAD} to the sysctl_add_oid(9) manual page.
3) Add MLINKS for all functions/macros.
Simon Schubert [Thu, 22 Jun 2006 08:22:27 +0000 (08:22 +0000)]
Add CanoScan N676U and D660U
Submitted-by: Petr Janda <elekktretterr@exemail.com.au>
Simon Schubert [Thu, 22 Jun 2006 08:21:26 +0000 (08:21 +0000)]
regen
Simon Schubert [Thu, 22 Jun 2006 08:21:07 +0000 (08:21 +0000)]
Add entry for CanoScan D660U
Submitted-by: Petr Janda <elekktretterr@exemail.com.au>
YONETANI Tomokazu [Wed, 21 Jun 2006 22:25:43 +0000 (22:25 +0000)]
Add Enhanced SpeedStep driver(EST), based on Colin Percival's early
work available at http://www.daemonology.net/freebsd-est/ . sysctl node
names are adjusted to be used from pkgsrc/sysutils/estd.
Port-done-by: Johannes Hofmann <Johannes.Hofmann (at) gmx.de>
with additional patch for Pentium M 710 by: Tom Hummel <tom@bluespice.org>
Matthew Dillon [Tue, 20 Jun 2006 18:44:32 +0000 (18:44 +0000)]
Fix a case where RTP_PRIO_FIFO was not being handled properly. The bug led
to a scheduler assertion and panic and caused programs trying to use the
priority (KDE primarily) to panic the machine.
Reported-by: Thomas Schlesinger <schlesinger@netcologne.de>
Simon Schubert [Mon, 19 Jun 2006 12:08:25 +0000 (12:08 +0000)]
Coverity CID 1670: Call fts_close() at the end of rm_tree().
Taken from: NetBSD via Coverity Prevent
Submitted by: Gary <gary@velocity-servers.net>
Simon Schubert [Mon, 19 Jun 2006 12:07:50 +0000 (12:07 +0000)]
Coverity CID 1754: Call fts_close() after we're done copying.
Taken from: NetBSD via Coverity Prevent
Submitted by: Gary <gary@velocity-servers.net>
Simon Schubert [Mon, 19 Jun 2006 12:06:47 +0000 (12:06 +0000)]
Coverity CID 1755: Add fts_close() in traverse.
Taken from: NetBSD via Coverity Prevent
Submitted by: Gary <gary@velocity-servers.net>
Simon Schubert [Mon, 19 Jun 2006 12:06:07 +0000 (12:06 +0000)]
Coverity CID 890: Possible NULL pointer deref.
Taken from: NetBSD via Coverity Prevent
Submitted by: Gary <gary@velocity-servers.net>
Simon Schubert [Mon, 19 Jun 2006 12:05:43 +0000 (12:05 +0000)]
Coverity CID 3384: Don't close -1.
Coverity CID 2479: Clarify confusion about uninitialized variable in the
presence of setjmp/vfork.
Taken from: NetBSD via Coverity Prevent
Submitted by: Gary <gary@velocity-servers.net>
Matthew Dillon [Sun, 18 Jun 2006 01:34:59 +0000 (01:34 +0000)]
Replace the random number generator with an IBAA generator for /dev/random
and a L15 generator for /dev/urandom.
Submitted-by: Robin J Carey
Modified-from-original: Syntax adjusted to DragonFly kernel norms, and I
integrated the original code into the DragonFly kernel random number
generator API. Also added a TSC-based seed on top of nanouptime.
Matthew Dillon [Sun, 18 Jun 2006 01:33:31 +0000 (01:33 +0000)]
Replace the random number generator with an IBAA generator for /dev/random
and a L15 generator for /dev/urandom.
Submitted-by: Robin J Carey
Modified-from-original: Syntax adjusted to DragonFly kernel norms, and I
integrated the original code into the DragonFly kernel random number
generator API. Also added a TSC-based seed on top of nanouptime.
Simon Schubert [Sun, 18 Jun 2006 01:00:35 +0000 (01:00 +0000)]
Fix C++ linkage: use __BEGIN_DECL/__END_DECL for the select prototype
Sepherosa Ziehau [Sat, 17 Jun 2006 10:31:59 +0000 (10:31 +0000)]
For acx111:
- Rename ACX111_DATAFLOW_SNIFFER to ACX111_DF_NO_RXDECRYPT (after testing every
bits of acx111_conf_option.dataflow, it turns out: ACX111_DATAFLOW_SNIFFER
_is_ ACX111_DF_NO_RXDECRYPT :(
- Disable hardware WEP encrypt/decrypt (actually hardware WEP encrypt is used
only with older firmware)
- Add WPA2 support
# I didn't figure out how to turn off hardware WEP encrypt/decrypt for acx100,
# so it still only has WEP support.
Jeremy C. Reed [Sat, 17 Jun 2006 01:15:18 +0000 (01:15 +0000)]
Fix typo or mispelling.
Sascha Wildner [Sat, 17 Jun 2006 00:44:08 +0000 (00:44 +0000)]
Reword since mdoc does a line break before .Nm in SYNOPSIS.
Sascha Wildner [Fri, 16 Jun 2006 12:30:41 +0000 (12:30 +0000)]
Add an entry for rxvt-unicode (pkgsrc/x11/rxvt-unicode).
It doesn't seem to make a difference whether a @7 definition is
present (as suggested by the rxvt-mono comments) or not, so we'll
not include one for the moment.
Taken-from: rxvt.7 manual page
Tested-by: Andreas Hauser <andy@splashground.de>
Sascha Wildner [Fri, 16 Jun 2006 09:58:32 +0000 (09:58 +0000)]
Add us.dvorakl.kbd and us.dvorakr.kbd.
Sascha Wildner [Thu, 15 Jun 2006 14:00:40 +0000 (14:00 +0000)]
regen