dragonfly.git
16 years agoAdd missing LIBRARY sections and extend mdoc.local accordingly.
Sascha Wildner [Fri, 14 Sep 2007 19:47:03 +0000 (19:47 +0000)]
Add missing LIBRARY sections and extend mdoc.local accordingly.

16 years agoRemove several mann/catn directories in /usr/share.
Sascha Wildner [Fri, 14 Sep 2007 19:08:59 +0000 (19:08 +0000)]
Remove several mann/catn directories in /usr/share.

It seems they were added for Tcl originally in FreeBSD but nothing gets
installed there anymore for a long time.

In-discussion-with: hasso

16 years agoFix path.
Sascha Wildner [Fri, 14 Sep 2007 06:41:07 +0000 (06:41 +0000)]
Fix path.

Spotted-by: Noah Yan <noah.yan@gmail.com>
16 years agotesting, 123
Chris Turner [Thu, 13 Sep 2007 23:40:24 +0000 (23:40 +0000)]
testing, 123
check, check, check.
sibilance, sibilance.

16 years agoAdd a skeletal kernconf(5) manual page for documenting the structure
Sascha Wildner [Thu, 13 Sep 2007 20:02:52 +0000 (20:02 +0000)]
Add a skeletal kernconf(5) manual page for documenting the structure
of a kernel configuration file.

It only documents the keywords for now but can (and will eventually)
be extended to document our numerous kernel options.

It's kinda based on NetBSD's options(4).

Suggested-by: dillon (sort of)
[http://leaf.dragonflybsd.org/mailarchive/bugs/2007-08/msg00064.html]

16 years agoRemove NO_WERROR.
Sascha Wildner [Thu, 13 Sep 2007 13:55:35 +0000 (13:55 +0000)]
Remove NO_WERROR.

16 years agoFix typo.
Sascha Wildner [Thu, 13 Sep 2007 10:55:55 +0000 (10:55 +0000)]
Fix typo.

16 years agoEscape the ' chars in the example.
Sascha Wildner [Thu, 13 Sep 2007 10:34:04 +0000 (10:34 +0000)]
Escape the ' chars in the example.

16 years agoAdd missing .El
Sascha Wildner [Thu, 13 Sep 2007 10:33:10 +0000 (10:33 +0000)]
Add missing .El

16 years agoa helloWorld ci test by yanyh
Yonghong Yan [Thu, 13 Sep 2007 04:23:59 +0000 (04:23 +0000)]
a helloWorld ci test by yanyh

16 years agoPrepare to support polling(4) on multiple cpus:
Sepherosa Ziehau [Wed, 12 Sep 2007 12:02:09 +0000 (12:02 +0000)]
Prepare to support polling(4) on multiple cpus:
- Add per-cpu polling(4) context, move global variables into it.
- Make global sysctl nodes per-cpu.  Fake original global sysctl
  nodes by creating alias to the lowest cpu's sysctl nodes, mainly
  for compatibility.

16 years agoOops, remove comma.
Hasso Tepper [Wed, 12 Sep 2007 09:26:32 +0000 (09:26 +0000)]
Oops, remove comma.

Reminded-by: swildner@
16 years agoUpdate the agp(4) manpage. General description and example based on NetBSD
Hasso Tepper [Wed, 12 Sep 2007 08:42:59 +0000 (08:42 +0000)]
Update the agp(4) manpage. General description and example based on NetBSD
agp(4) manpage, ioctl(2) interface description from FreeBSD.

Obtained from: NetBSD and FreeBSD with modifications

16 years agoUpdate the agp(4) code to the latest one from FreeBSD HEAD. This brings in
Hasso Tepper [Wed, 12 Sep 2007 08:31:44 +0000 (08:31 +0000)]
Update the agp(4) code to the latest one from FreeBSD HEAD. This brings in
a lot of newer hardware support.

Obtained-from: FreeBSD

16 years agoAdd bus_alloc_resources() and bus_release_resources() functions to allow to
Hasso Tepper [Wed, 12 Sep 2007 07:59:31 +0000 (07:59 +0000)]
Add bus_alloc_resources() and bus_release_resources() functions to allow to
simplify the code and to make it easier to port drivers (initially the
agp(4)) from FreeBSD.

Obtained-from: FreeBSD

16 years agoFix bugs in the handling of CIDR specifications such as 'route add 128/8
Matthew Dillon [Mon, 10 Sep 2007 15:13:55 +0000 (15:13 +0000)]
Fix bugs in the handling of CIDR specifications such as 'route add 128/8
<gateway>'.  Also rectify the way netmasks are deduced from the address class.

Submitted-by: "Nuno Antunes" <nuno.antunes@gmail.com>
16 years agokern_access() had the same bug kern_stat() had with regards to a
Matthew Dillon [Mon, 10 Sep 2007 15:08:43 +0000 (15:08 +0000)]
kern_access() had the same bug kern_stat() had with regards to a
vnode/namecache deadlock when dealing with stale NFS mounts.

Reported-by: elekktretterr@exemail.com.au
16 years ago- Add interrupt moderation support by only using TIMER intr; IM is not
Sepherosa Ziehau [Mon, 10 Sep 2007 14:08:28 +0000 (14:08 +0000)]
- Add interrupt moderation support by only using TIMER intr; IM is not
  possible when RX or TX intr is enabled.  With this change, my nfe(4)
  can TX at line speed finally (mtu 1500).
- Add per iface sysctl node hw.nfeX.imtime to enable, disable and set
  interrupt moderation time.  Set it to -1 will disable IM; 64-128
  seems to be a reasonable value range.  This sysctl variable is _not_
  on by default, and can be tuned when the iface is running.
- Nuke global sysctl nodes, make them per iface.

# We may consider using TIMER intr under all situations, but with larger
# imtime when IM is not enabled, since for certain type of nfe(4), TX
# interrupts may never come.

16 years agoResync patch with contrib.
Simon Schubert [Sun, 9 Sep 2007 23:32:43 +0000 (23:32 +0000)]
Resync patch with contrib.

16 years agoSwitch even more to gcc41.
Sascha Wildner [Sun, 9 Sep 2007 15:43:38 +0000 (15:43 +0000)]
Switch even more to gcc41.

16 years ago- Make fwe(4) aware of IFF_POLLING setting in its if_init().
Sepherosa Ziehau [Sun, 9 Sep 2007 09:14:38 +0000 (09:14 +0000)]
- Make fwe(4) aware of IFF_POLLING setting in its if_init().
- Allow IFF_POLLING flag to be turned on even when the interface is not
  up yet, since after above fix, all drivers that support polling(4) will
  turn on/off interrupt in their if_init() based on IFF_POLLING.

This fixes the bug reported by many people that enabling "polling" in
rc.conf's ifconfig_ifaceX does not work.

16 years agoCorrect DEVICE_POLLING support in vr_init()
Sepherosa Ziehau [Sun, 9 Sep 2007 06:21:23 +0000 (06:21 +0000)]
Correct DEVICE_POLLING support in vr_init()

16 years agoNULL should never be passed to ether_poll_deregister(). Try catching any
Sepherosa Ziehau [Sun, 9 Sep 2007 05:11:28 +0000 (05:11 +0000)]
NULL should never be passed to ether_poll_deregister().  Try catching any
brain dead caller by assertion.

16 years ago- Fix comment.
Sepherosa Ziehau [Sun, 9 Sep 2007 04:30:25 +0000 (04:30 +0000)]
- Fix comment.
- Use ifp as local variable, indirect accessing ifp through pollrec is not
  meaningful here.
- Break long lines.

16 years agoNuke the hack in vr(4) that polling(4) will be turned when watchdog times out;
Sepherosa Ziehau [Sun, 9 Sep 2007 03:51:25 +0000 (03:51 +0000)]
Nuke the hack in vr(4) that polling(4) will be turned when watchdog times out;
if interrupt does not work at all, polling(4) can be turned manually.

Approved-by: dillon@
16 years agoUse .Dv and start sentences on a new line.
Sascha Wildner [Sat, 8 Sep 2007 20:50:50 +0000 (20:50 +0000)]
Use .Dv and start sentences on a new line.

16 years agoIt does not make sense to call interface's initialization routine when
Sepherosa Ziehau [Sat, 8 Sep 2007 12:50:34 +0000 (12:50 +0000)]
It does not make sense to call interface's initialization routine when
the interface is up and only layer 3 address is to be changed.

Submitted-by: "Devon H. O'Dell" <devon.odell@coyotepoint.com> (w/ mod)
16 years agoKill token ring remainder.
Sepherosa Ziehau [Sat, 8 Sep 2007 12:35:04 +0000 (12:35 +0000)]
Kill token ring remainder.

16 years ago- Add missing header protector
Sepherosa Ziehau [Sat, 8 Sep 2007 11:20:22 +0000 (11:20 +0000)]
- Add missing header protector
- Strip blank line at the end of file

16 years agoRemove previous hack to cope with CVS IDs.
Sascha Wildner [Sat, 8 Sep 2007 10:49:00 +0000 (10:49 +0000)]
Remove previous hack to cope with CVS IDs.

It wasn't properly documented and also prevented quiz questions starting
with # from being asked. Not very likely but we shouldn't break program
semantics because of administrative reasons.

The datfiles have now been added to the exclusion list.

16 years agoSynchronize manual page installation of gcc34 and gcc41 and switch the
Sascha Wildner [Sat, 8 Sep 2007 09:48:59 +0000 (09:48 +0000)]
Synchronize manual page installation of gcc34 and gcc41 and switch the
various MLINKS to gcc41 which is default now.

16 years agoHook bwi(4)
Sepherosa Ziehau [Sat, 8 Sep 2007 06:16:27 +0000 (06:16 +0000)]
Hook bwi(4)

16 years agoAdd WIP support for Broadcom wireless chips:
Sepherosa Ziehau [Sat, 8 Sep 2007 06:15:54 +0000 (06:15 +0000)]
Add WIP support for Broadcom wireless chips:
- STA and MONITOR operation mode are supported
- WPA/WPA2 is supported (host based)
- Use V3 firmware
- 11b/g mode is supported

TODOs (AKA defects ;)
- Add the missing part of PCIe initialization (need testers)
- Hook TX rate control support in our 802.11 layer
- HOSTAP and IBSS operation mode support
- Add radio tap support
- Use V4 firmware for newer chips
- Use firmware based crypto for V4 firmware
- V3 and V4 firmware coexist
- Make LED blink
- Make my 11b only card work :]
- Correctly configure CW and MAC level acknowledge rates based on the
  characteristic of the BSS/IBSS that we are going to join
And blah, blah, blah ...

Known to work devices, i.e. tested devices:
o  BCM4318 (Linksys WPC54G ver.3, cardbus)
   BBP: id 0x4318, rev 0x2, pkg 2
   MAC: rev 9
   PHY: type 2, rev 7, ver 3
   RF: BCM2050, rev 8
o  BCM4306 (Buffalo WLI2-PCI-G54S, PCI)
   BBP: id 0x4306, rev 0x3, pkg 0
   MAC: rev 5
   PHY: type 2, rev 2, ver 2
   RF: BCM2050, rev 2
o  BCM4319 (unknown vendor, mini-PCI)
   BBP: id 0x4318, rev 0x2, pkg 2
   MAC: rev 9
   PHY: type 2, rev 7, ver 3
   RF: BCM2050, rev 8
o  BCM4309 (unknown vendor, mini-PCI)
   BBP: id 0x4306, rev 0x3, pkg 1
   MAC: rev 5
   PHY: type 2, rev 2, ver 2
   RF: BCM2050, rev 2

TX performance of above devices at different OFDM rates (unit Mbits/s):
OFDM rate  54    48    36    24    18    12   9       6
TX perf    23.x  21.x  18.x  14.x  11.x  8.x  4.x(1)  6.x(2)

(1) BCM4319/BCM4306 listed above can only do 2.xMbits/s at 9Mbits/s
(2) BCM4319 listed above has unstable TX performance, 4.x-6.xMbits/s,
    at 6Mbits/s
(3) There is a bug(to be found) in driver which reverses 9Mbits/s and 6Mbits/s

Thank folks at bcm-specs.sipsolutions.net for their reverse engineering work.
Thank johill and mb on #bcm-specs IRC channel for answering my questions.

#
# Following devices are also known to work, but have poor TX performance.
# They have same characteristic that MAC rev is less than 5.
# o  BCM4306 (Dell TrueMobile 1300 rev A01, cardbus)
#    BBP: id 0x4306, rev 0x2, pkg 0
#    MAC: rev 4
#    PHY: type 2, rev 1, ver 1
#    RF: BCM2050, rev 2
# o  BCM4306 (unknown vendor, mini-PCI)
#    BBP: id 0x4306, rev 0x2, pkg 0
#    MAC: rev 4
#    PHY: type 2, rev 1, ver 1
#    RF: BCM2050, rev 2
#
# Certain 11b only cards may work depending on the PHY rev
#

16 years agoUpgrade to OpenSSH 4.7p1.
Peter Avalos [Sat, 8 Sep 2007 05:01:18 +0000 (05:01 +0000)]
Upgrade to OpenSSH 4.7p1.

This brings some performance enhancements and bug fixes.

16 years agoMerge from vendor branch OPENSSH:
Peter Avalos [Sat, 8 Sep 2007 04:52:53 +0000 (04:52 +0000)]
Merge from vendor branch OPENSSH:
Import OpenSSH 4.7p1.

16 years agoImport OpenSSH 4.7p1.
Peter Avalos [Sat, 8 Sep 2007 04:52:53 +0000 (04:52 +0000)]
Import OpenSSH 4.7p1.

16 years agoYugoslavia split up into Serbia and Montenegro some time ago.
Simon Schubert [Sat, 8 Sep 2007 01:29:40 +0000 (01:29 +0000)]
Yugoslavia split up into Serbia and Montenegro some time ago.

16 years agoAllow comment lines in input files.
Simon Schubert [Sat, 8 Sep 2007 01:29:14 +0000 (01:29 +0000)]
Allow comment lines in input files.

16 years agoThe weekly script runs Saturday morning.
Sascha Wildner [Fri, 7 Sep 2007 23:24:20 +0000 (23:24 +0000)]
The weekly script runs Saturday morning.

Found-in: FreeBSD

16 years agoGeneral userfs fleshing out work. Abstract out construction and
Matthew Dillon [Fri, 7 Sep 2007 21:42:59 +0000 (21:42 +0000)]
General userfs fleshing out work.  Abstract out construction and
deconstruction functions and take advantage of the new getpages/putpages
support.

16 years agoRemove a bogus assertion. in_vm86call may have been set by some unrelated
Matthew Dillon [Fri, 7 Sep 2007 19:31:30 +0000 (19:31 +0000)]
Remove a bogus assertion.  in_vm86call may have been set by some unrelated
thread.  We have to check that we are in an emulated 8086 mode before we
can assert that the MP lock is held.

Reported-by: Rumko <rumcic@gmail.com>
16 years agoOops, forgot one .Dv
Sascha Wildner [Fri, 7 Sep 2007 08:14:57 +0000 (08:14 +0000)]
Oops, forgot one .Dv

16 years ago* Start sentences on a new line.
Sascha Wildner [Fri, 7 Sep 2007 08:01:29 +0000 (08:01 +0000)]
* Start sentences on a new line.

* Fix typo: depreciated -> deprecated

* Use .Dv for defined values.

16 years agoFix typo.
Peter Avalos [Fri, 7 Sep 2007 02:43:49 +0000 (02:43 +0000)]
Fix typo.

Reported-by: "Trevor Kendall" <trevorjkendall@gmail.com>
16 years agoUse >= instead of > to explicitly see which WARNS level we're dealing with.
Peter Avalos [Fri, 7 Sep 2007 00:09:02 +0000 (00:09 +0000)]
Use >= instead of > to explicitly see which WARNS level we're dealing with.

16 years agoUse bcd2bin().
Sascha Wildner [Thu, 6 Sep 2007 21:03:55 +0000 (21:03 +0000)]
Use bcd2bin().

16 years agoRemove redundant initialization.
Sascha Wildner [Thu, 6 Sep 2007 18:17:24 +0000 (18:17 +0000)]
Remove redundant initialization.

16 years agoUse .Dv
Sascha Wildner [Thu, 6 Sep 2007 11:29:30 +0000 (11:29 +0000)]
Use .Dv

16 years agoDocument some ATM media settings.
Sascha Wildner [Thu, 6 Sep 2007 11:11:19 +0000 (11:11 +0000)]
Document some ATM media settings.

16 years agoDescribe CCVER's default as gcc41.
Peter Avalos [Wed, 5 Sep 2007 22:11:01 +0000 (22:11 +0000)]
Describe CCVER's default as gcc41.

16 years agoAdd a build option (NO_GCC34) to prevent building gcc version 3.4.
Peter Avalos [Wed, 5 Sep 2007 21:40:10 +0000 (21:40 +0000)]
Add a build option (NO_GCC34) to prevent building gcc version 3.4.

This does not attempt to remove gcc-3.4, only to prevent it from building.

16 years agoBetter setpgid(2) documentation.
Hasso Tepper [Wed, 5 Sep 2007 08:23:43 +0000 (08:23 +0000)]
Better setpgid(2) documentation.

Obtained-from: NetBSD with modifications

16 years agoSet si_iosize_max to silence run-time warnings.
Matthew Dillon [Wed, 5 Sep 2007 05:28:32 +0000 (05:28 +0000)]
Set si_iosize_max to silence run-time warnings.

Reported-by: Vincent Stemen <vs1@crel.us>
16 years agoChange the virtual kernel's default hz to 20, because the kqueue timers we
Matthew Dillon [Tue, 4 Sep 2007 22:07:54 +0000 (22:07 +0000)]
Change the virtual kernel's default hz to 20, because the kqueue timers we
use can't really go much higher.  This fixes sleep intervals.

Reported-by: Multiple People
16 years agoUse gnuregex.h instead of a private header whose declarations are wrong.
Simon Schubert [Tue, 4 Sep 2007 17:08:38 +0000 (17:08 +0000)]
Use gnuregex.h instead of a private header whose declarations are wrong.

This private header declares the return type of re_search to be off_t,
i.e. 64 bit.  Our (old) gnu regex library however only returns ints.  As a
result, the generated opcode erroneously only looked at the sign of %edx,
which happened to contain a random value.

DragonFly-bug:  <http://bugs.dragonflybsd.org/issue801>
Reported-by: Vincent Stemen <vs1@crel.us>
16 years agoConsolidate all local CVS patches into the contrib sources.
Simon Schubert [Tue, 4 Sep 2007 16:53:57 +0000 (16:53 +0000)]
Consolidate all local CVS patches into the contrib sources.

Include file prefix ordering is a horror when patching header files,
so get over this once and for all and put the patches where they belong.

16 years agoForce an over-the-wire transaction when resolving the root of an NFS mount
Matthew Dillon [Tue, 4 Sep 2007 00:48:18 +0000 (00:48 +0000)]
Force an over-the-wire transaction when resolving the root of an NFS mount
point.  The namecache will cache the mount point for us so this should not
reduce performance.   We need to know that the mount point is good or
things like the namecache resolver could end up looping forever trying to
resolve a stale NFS mount.

Reported-by: elekktretterr@exemail.com.au (Petr)
16 years agoRemove options that don't make sense for a vkernel, and make SMP default.
Peter Avalos [Mon, 3 Sep 2007 19:24:53 +0000 (19:24 +0000)]
Remove options that don't make sense for a vkernel, and make SMP default.

16 years agoUpdate for libarchive 2.2.7.
Peter Avalos [Mon, 3 Sep 2007 18:48:12 +0000 (18:48 +0000)]
Update for libarchive 2.2.7.

16 years agoMerge from vendor branch LIBARCHIVE:
Peter Avalos [Mon, 3 Sep 2007 18:47:14 +0000 (18:47 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive-2.2.7.

This brings support for mtree files, gtar 1.17 sparse files, and
refines suid/sgid restore handling.

16 years agoImport libarchive-2.2.7.
Peter Avalos [Mon, 3 Sep 2007 18:47:14 +0000 (18:47 +0000)]
Import libarchive-2.2.7.

This brings support for mtree files, gtar 1.17 sparse files, and
refines suid/sgid restore handling.

16 years agoBring in FreeBSD/1.177 - fix a bug in a call made to useracc(). This
Matthew Dillon [Mon, 3 Sep 2007 17:32:32 +0000 (17:32 +0000)]
Bring in FreeBSD/1.177 - fix a bug in a call made to useracc().  This
permissions check is redundant since copyin/copyout also perform a
validation so there is no known security issue.

Reported-by: "Constantine A. Murenin" <cnst@FreeBSD.org>
Obtained-from: FreeBSD

16 years agoAdd a MNTK_ flag to the mount structure allowing a VFS to specify that
Matthew Dillon [Mon, 3 Sep 2007 17:06:24 +0000 (17:06 +0000)]
Add a MNTK_ flag to the mount structure allowing a VFS to specify that
no submounts under the VFS are to be allowed.  Adjust procfs and linprocfs
to use the feature.

Submitted-by: "Nicolas Thery" <nthery@gmail.com>
16 years agoUse .Pa
Sascha Wildner [Sun, 2 Sep 2007 19:30:48 +0000 (19:30 +0000)]
Use .Pa

16 years agoSwitch ipfw from ipfw1 to ipfw2.
Sepherosa Ziehau [Sun, 2 Sep 2007 13:27:23 +0000 (13:27 +0000)]
Switch ipfw from ipfw1 to ipfw2.

Approved-by: dillon@
Submitted-by: Gary Allan <dragonfly@gallan.plus.com> (w/ modification)
16 years agoTAILQ_FOREACH to enhance readability.
Peter Avalos [Sat, 1 Sep 2007 20:43:24 +0000 (20:43 +0000)]
TAILQ_FOREACH to enhance readability.

16 years agoSync with OpenBSD.
Peter Avalos [Sat, 1 Sep 2007 18:42:08 +0000 (18:42 +0000)]
Sync with OpenBSD.

- Save and restore not only scale, but ibase as well.

- Interchange roles: bc becomes parent, dc child. This leads to saner
tty handling.

- Avoid segv when a syntax error occurs while reading from command line.

- Various whitespace, warns cleanup, etc.

16 years agoHandle baudrate requests algorithmically with newer chips (not old SIO),
Hasso Tepper [Fri, 31 Aug 2007 13:39:35 +0000 (13:39 +0000)]
Handle baudrate requests algorithmically with newer chips (not old SIO),
allowing all sorts of strange rates one might need.

Obtained-from: OpenBSD

16 years agoSimplify the way how chip type is determined. Instead of managing insane
Hasso Tepper [Fri, 31 Aug 2007 13:25:32 +0000 (13:25 +0000)]
Simplify the way how chip type is determined. Instead of managing insane
case constructs with info what vendor/product ids combinations have which
chip, use the info device descriptors provide.

  - FT2232 dual UART chips have bNumInterfaces set to 2 (obviously).
  - Original SIO have bcdDevice set to 0x0100.

16 years agoGC even more remains of the recent old driver removal.
Sascha Wildner [Fri, 31 Aug 2007 11:26:44 +0000 (11:26 +0000)]
GC even more remains of the recent old driver removal.

16 years agoRemove leftover nv(4) remains.
Sascha Wildner [Fri, 31 Aug 2007 10:52:03 +0000 (10:52 +0000)]
Remove leftover nv(4) remains.

16 years agoSync with FreeBSD and add an entry for git.
Peter Avalos [Thu, 30 Aug 2007 22:52:39 +0000 (22:52 +0000)]
Sync with FreeBSD and add an entry for git.

16 years agoManual page update for waitpid's new WCONTINUED option and the
Peter Avalos [Thu, 30 Aug 2007 20:58:35 +0000 (20:58 +0000)]
Manual page update for waitpid's new WCONTINUED option and the
WIFCONTINUED() macro.

Obtained-from: FreeBSD

16 years agoAdd WCONTINUED option for waitpid(2).
Peter Avalos [Thu, 30 Aug 2007 20:41:00 +0000 (20:41 +0000)]
Add WCONTINUED option for waitpid(2).

P_CONTINUED is set when a stopped process receives a SIGCONT and
cleared after it has notified a parent process that has requested
notification via waitpid(2) with WCONTINUED specified in its options
operand.  The status value can be checked with the new WIFCONTINUED()
macro.

Obtained-from: FreeBSD, OpenBSD
Reviewed-by: corecode
16 years agoRemove leftover .Dx and add a reference to setcontext(3).
Sascha Wildner [Thu, 30 Aug 2007 17:47:08 +0000 (17:47 +0000)]
Remove leftover .Dx and add a reference to setcontext(3).

Submitted-by: Francis Gudin <fgudin@nerim.net>
16 years agoFix LINT: Remove cm(4) and fla(4) remains.
Sascha Wildner [Wed, 29 Aug 2007 15:42:05 +0000 (15:42 +0000)]
Fix LINT: Remove cm(4) and fla(4) remains.

16 years agoDon't use \*[Px] since it will change the font size permanently.
Sascha Wildner [Wed, 29 Aug 2007 12:02:16 +0000 (12:02 +0000)]
Don't use \*[Px] since it will change the font size permanently.
Use .Tn POSIX instead.

16 years agoSync with FreeBSD.
Peter Avalos [Tue, 28 Aug 2007 15:36:44 +0000 (15:36 +0000)]
Sync with FreeBSD.

Make it possible to have this (basename(1)) perform basename(3) on multiple
files.  The traditional behaviour, 'basename string .suffix', is preserved,
however a suffix may now also be specified via a getopt(3) option, -s, such
that if it is specified in that way, all string arguments follow.  There is
also a new flag, -a, which allows a user to say "yes, please basename(3) on
all arguments".

Add EXIT STATUS.

Cross-reference basename(3) and dirname(3).

Obtained-from:  FreeBSD

16 years agoFix a bug in vnode_pager_generic_getpages(). This function was improperly
Matthew Dillon [Tue, 28 Aug 2007 01:09:24 +0000 (01:09 +0000)]
Fix a bug in vnode_pager_generic_getpages().  This function was improperly
setting m->valid to 0 and was also improperly trying to free the page after
it had potentially become wired by the buffer cache.

Add a sysctl to UFS that allows us to force it to call vop_stdgetpages()
for debugging purposes.

16 years agoAdd vop_stdgetpages() and vop_stdputpages() and replace those filesystem
Matthew Dillon [Tue, 28 Aug 2007 01:04:33 +0000 (01:04 +0000)]
Add vop_stdgetpages() and vop_stdputpages() and replace those filesystem
getpages and putpages routines which were doing the same thing.

16 years agoMissed this file in previous commit.
Hasso Tepper [Mon, 27 Aug 2007 22:03:19 +0000 (22:03 +0000)]
Missed this file in previous commit.

16 years agoNuke nv(4), we have nfe(4) which replaces it.
Hasso Tepper [Mon, 27 Aug 2007 21:51:41 +0000 (21:51 +0000)]
Nuke nv(4), we have nfe(4) which replaces it.

16 years agoRemove fla(4) manpage during upgrade.
Hasso Tepper [Mon, 27 Aug 2007 20:51:11 +0000 (20:51 +0000)]
Remove fla(4) manpage during upgrade.

16 years agoNuke fla(4). It's known to be buggy, supports very limited set of obsolete
Hasso Tepper [Mon, 27 Aug 2007 20:40:53 +0000 (20:40 +0000)]
Nuke fla(4). It's known to be buggy, supports very limited set of obsolete
devices with limited set of firmware versions, is removed from FreeBSD more
than 3 years ago and is not supported any more more than 4 years:

http://www.daemonnews.org/mailinglists/FreeBSD/freebsd-small/msg03526.html

And it's based on blob.

16 years agoRemove remainings of the oltr(4).
Hasso Tepper [Mon, 27 Aug 2007 20:08:55 +0000 (20:08 +0000)]
Remove remainings of the oltr(4).

16 years agoNuke ARCnet, Token Ring and FDDI related headers and manpages during upgrade.
Hasso Tepper [Mon, 27 Aug 2007 17:47:15 +0000 (17:47 +0000)]
Nuke ARCnet, Token Ring and FDDI related headers and manpages during upgrade.

16 years agoPull WARNS6 into usr.bin/Makefile.inc.
Peter Avalos [Mon, 27 Aug 2007 16:51:02 +0000 (16:51 +0000)]
Pull WARNS6 into usr.bin/Makefile.inc.

Most of usr.bin is marked as WARNS6, so add exceptions in individual
Makefiles.  Also, remove any warning flags from CFLAGS in those Makefiles.

16 years agoNuke FDDI support.
Hasso Tepper [Mon, 27 Aug 2007 16:15:42 +0000 (16:15 +0000)]
Nuke FDDI support.

16 years agoNuke token ring support. This also means one blob less in DragonFly.
Hasso Tepper [Mon, 27 Aug 2007 14:56:00 +0000 (14:56 +0000)]
Nuke token ring support. This also means one blob less in DragonFly.

16 years agoNuke ARCnet support.
Hasso Tepper [Mon, 27 Aug 2007 13:15:14 +0000 (13:15 +0000)]
Nuke ARCnet support.

16 years agoCorrect off-by-one error.
Simon Schubert [Sun, 26 Aug 2007 20:40:55 +0000 (20:40 +0000)]
Correct off-by-one error.

When comparing the command names, we might wind up behind the array,
later dereferencing a dangling pointer.  Terminate the array correctly
and stop processing soon enough.  Additionally, correct the error
output to use errx(), as there is no meaningful errno available.

Differing behavior spotted by use of tinycc.

16 years agoGC unused sources.
Peter Avalos [Sun, 26 Aug 2007 20:27:36 +0000 (20:27 +0000)]
GC unused sources.

16 years agoUse the argument as a file name only if no section was specified.
Sascha Wildner [Sun, 26 Aug 2007 19:42:26 +0000 (19:42 +0000)]
Use the argument as a file name only if no section was specified.

16 years agoRe-order alphabetically.
Peter Avalos [Sun, 26 Aug 2007 18:20:49 +0000 (18:20 +0000)]
Re-order alphabetically.

16 years agoFix a misleading error message when the device specified at the mountroot
Matthew Dillon [Sun, 26 Aug 2007 16:54:51 +0000 (16:54 +0000)]
Fix a misleading error message when the device specified at the mountroot
prompt cannot be found.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Submitted-by: Nicolas Thery <nthery@gmail.com>
16 years agoThe function's name should begin a new line.
Peter Avalos [Sun, 26 Aug 2007 16:52:01 +0000 (16:52 +0000)]
The function's name should begin a new line.

16 years agoCheck that -w width is not above maximum. Use DWIDTH instead of hardcoded
Peter Avalos [Sun, 26 Aug 2007 16:44:32 +0000 (16:44 +0000)]
Check that -w width is not above maximum.  Use DWIDTH instead of hardcoded
constant.

Obtained-from: FreeBSD

16 years agoDocument message length limit.
Peter Avalos [Sun, 26 Aug 2007 16:41:54 +0000 (16:41 +0000)]
Document message length limit.

Obtained-from:  FreeBSD

16 years agoFix a bugaboo in the last commit. Pages are hard-busied for getpages,
Matthew Dillon [Sun, 26 Aug 2007 16:22:31 +0000 (16:22 +0000)]
Fix a bugaboo in the last commit.  Pages are hard-busied for getpages,
but only soft-busied for putpages.

Reported-by: Sascha Wildner <saw@online.de>
16 years agoSync with FreeBSD:
Peter Avalos [Sun, 26 Aug 2007 16:12:27 +0000 (16:12 +0000)]
Sync with FreeBSD:

- mktime() already does daylight savings.

- Explain the format of the at.allow and at.deny files in detail.

- mdoc improvements.

- Use MAXLOGNAME - 1 instead of UT_NAMESIZE.

- Do not pretend there is something like '/etc/utmp'.

- Add the SUSv3 -l option to at.  This is an alias for atq. Allow job ids
to be specified on the command line for which information should be
reported.

- Document the fact that at(1) is run through cron(8).  This affects the
granularity of the at queue runs.

- Organize #includes.

- Remove the -V [version number] option.

- Implement the POSIX 1003.1-2001 -r and -t options in at(1).

- Warns cleanup and diff reduction from FreeBSD.

- Remove some unsafe function calls from the signal handlers.

- Fix privileges macros.

Obtained-from: FreeBSD