dragonfly.git
4 years agortld: Implement Interpose DSO flag
John Marino [Sat, 30 Nov 2013 09:47:20 +0000 (10:47 +0100)]
rtld: Implement Interpose DSO flag

This implementation was sponsored by FreeBSD Foundation.

Taken from:
SVN 256101 (07 OCT 2013)

4 years agoUse less(1) as default pager
François Tigeot [Sat, 30 Nov 2013 08:34:00 +0000 (09:34 +0100)]
Use less(1) as default pager

4 years agoFix some typos (duplicate words) in messages.
Sascha Wildner [Sat, 30 Nov 2013 07:56:38 +0000 (08:56 +0100)]
Fix some typos (duplicate words) in messages.

4 years agomdocml: Dx needs ARGS_DELIM
Franco Fichtner [Thu, 28 Nov 2013 21:37:29 +0000 (21:37 +0000)]
mdocml: Dx needs ARGS_DELIM

The macro, unlike its siblings, did not terminate the
sentence if a dot was given as an argument, and thus
produced only one space instead of two.

4 years ago{pstat,swapinfo}(8): Add -g/-m to swapinfo, fix warnings, raise WARNS to 6.
Sascha Wildner [Thu, 28 Nov 2013 18:49:37 +0000 (19:49 +0100)]
{pstat,swapinfo}(8): Add -g/-m to swapinfo, fix warnings, raise WARNS to 6.

-g and -m will use a BLOCKSIZE of 1G and 1M to display swap size in
gigabytes or megabytes, respectively.

Suggested-by: marino
4 years agokernel: Fix missing 'pcidevs.h' in a Makefile.
Sascha Wildner [Thu, 28 Nov 2013 12:00:50 +0000 (13:00 +0100)]
kernel: Fix missing 'pcidevs.h' in a Makefile.

4 years agonsdispatch.3: Fix excessive quotation marks.
Sascha Wildner [Thu, 28 Nov 2013 10:06:45 +0000 (11:06 +0100)]
nsdispatch.3: Fix excessive quotation marks.

4 years agogetopt.3: Fix excessive quotation marks.
Sascha Wildner [Thu, 28 Nov 2013 09:57:53 +0000 (10:57 +0100)]
getopt.3: Fix excessive quotation marks.

4 years ago/usr/Makefile: Fix obsolete references to Github
John Marino [Wed, 27 Nov 2013 18:43:36 +0000 (19:43 +0100)]
/usr/Makefile: Fix obsolete references to Github

Only the tarball comes from Github.  The git repository comes from
git.dragonflybsd.org.  Change some of the descriptions to match what
is in place for the src repository.

4 years ago/usr/Makefile: Switch to DragonFlyBSD repo on GitHub
John Marino [Wed, 27 Nov 2013 18:14:15 +0000 (19:14 +0100)]
/usr/Makefile: Switch to DragonFlyBSD repo on GitHub

I transferred the ownership of both the DPorts and the DeltaPorts
repositories from the jrmarino account to the DragonFlyBSD account.

All references to the jrmarino account still work, but updating the
makefile to reflect the DragonFlyBSD account looks more official.

4 years agokernel/i386: Remove two Makefiles used for tag generation.
Sascha Wildner [Wed, 27 Nov 2013 08:06:51 +0000 (09:06 +0100)]
kernel/i386: Remove two Makefiles used for tag generation.

4 years agokernel: Clean up sys/kern/Makefile and sys/emulation/linux/i386/Makefile
Sascha Wildner [Wed, 27 Nov 2013 07:58:16 +0000 (08:58 +0100)]
kernel: Clean up sys/kern/Makefile and sys/emulation/linux/i386/Makefile

* Move generation of syscall related files from Makefile.misc to
  Makefile.

* Remove Makefile.misc, since the rest of its content (in sys/kern at
  at least) is inactive code for tags and links generation.

4 years agoRemove old {pccard,pci,usb}devs.h via 'make upgrade'.
Sascha Wildner [Wed, 27 Nov 2013 04:58:28 +0000 (05:58 +0100)]
Remove old {pccard,pci,usb}devs.h via 'make upgrade'.

4 years agokernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.
Sascha Wildner [Wed, 27 Nov 2013 04:43:05 +0000 (05:43 +0100)]
kernel: Generate miidevs.h, pccarddevs.h and pcidevs.h on the fly.

It removes the need to regenerate those header file after first editing
the associated list of IDs (miidevs, pccarddevs or pcidevs). After this
commit, editing the list alone is enough to add IDs.

We already did it like that for usb4bsd's usbdevs.h before. This commit
adjusts things for the remaining ID lists.

4 years agoRemove the <sys/syscall-hide.h> header file.
Sascha Wildner [Tue, 26 Nov 2013 18:24:37 +0000 (19:24 +0100)]
Remove the <sys/syscall-hide.h> header file.

Nothing includes it, nor are the HIDE_BSD() and HIDE_POSIX() macros
actually defined anywhere.

Also, remove support for the associated POSIX, BSD and NOHIDE keywords
from the syscalls.master files. It makes the patch quite large due to
touching most lines in the syscalls.master files but it results in
zero changes in the generated files.

4 years agobsd-family-tree: Sync with FreeBSD (for DragonFly 3.6.0).
Sascha Wildner [Tue, 26 Nov 2013 18:05:32 +0000 (19:05 +0100)]
bsd-family-tree: Sync with FreeBSD (for DragonFly 3.6.0).

4 years agorpc_soc.3: Remove unneeded Xo/Xc.
Sascha Wildner [Tue, 26 Nov 2013 14:20:05 +0000 (15:20 +0100)]
rpc_soc.3: Remove unneeded Xo/Xc.

4 years agoigb: Remove unused header files
Sepherosa Ziehau [Tue, 26 Nov 2013 11:40:19 +0000 (19:40 +0800)]
igb: Remove unused header files

4 years agoato{f,i}.3: Grr, fix typos.
Sascha Wildner [Tue, 26 Nov 2013 02:18:05 +0000 (03:18 +0100)]
ato{f,i}.3: Grr, fix typos.

4 years agoato{f,i,l}.3: Fix ato{f,i,l,ll}_l() prototypes.
Sascha Wildner [Tue, 26 Nov 2013 02:15:57 +0000 (03:15 +0100)]
ato{f,i,l}.3: Fix ato{f,i,l,ll}_l() prototypes.

4 years agoiwn.4: add missing support cards.
Eitan Adler [Mon, 25 Nov 2013 20:06:50 +0000 (15:06 -0500)]
iwn.4: add missing support cards.

The recent import of iwn supports many more cards.  Not all of these
were tested on DragonFly (only 2200 and 2230) but they should all be
similarly functional.

Obtained-from:   FreeBSD r258585

4 years agoiwn.4: Mention that the Intel Centrino Wireless-N 2230 is supported.
Sascha Wildner [Mon, 25 Nov 2013 19:29:32 +0000 (20:29 +0100)]
iwn.4: Mention that the Intel Centrino Wireless-N 2230 is supported.

4 years agokernel/iwn: Put some finishing touches to the recent upgrade.
Sascha Wildner [Mon, 25 Nov 2013 18:58:16 +0000 (19:58 +0100)]
kernel/iwn: Put some finishing touches to the recent upgrade.

* Adjust 'files' to unbreak LINT.

* Add IWN_DEBUG option.

* Update manual pages.

* Update SVN IDs.

Taken-from: FreeBSD

4 years agols(1): Add missing flags to usage()
Eitan Adler [Mon, 25 Nov 2013 04:27:42 +0000 (23:27 -0500)]
ls(1): Add missing flags to usage()

L and p were missing.

4 years agonewgrp(1): Add warning when running newgrp without SETUID
Eitan Adler [Mon, 25 Nov 2013 04:22:46 +0000 (23:22 -0500)]
newgrp(1): Add warning when running newgrp without SETUID

newgrp is 'disabled' by default due to security concerns.  However,
trying to use it does not explain the problem.

4 years agonewgrp(1): update newgrp's man page to explain why it does not work by
Eitan Adler [Fri, 22 Nov 2013 02:57:16 +0000 (21:57 -0500)]
newgrp(1): update newgrp's man page to explain why it does not work by
default.  Discourage its use even further.

4 years agoAdd proper const keywords to sysctl(3) parameters.
Alexandre Perrin [Fri, 22 Nov 2013 18:48:23 +0000 (19:48 +0100)]
Add proper const keywords to sysctl(3) parameters.

  Import some sysctl(3) patches from FreeBSD.

  - r204170 change the sysctl(3) and sysctlbyname(3) interfaces so they
    are in sync with FreeBSD and NetBSD.
  - r240176 Avoid a potential segfault in libc when the `name' argument
    is invalid.
  - r204172 & r244153 are cosmetics changes.

  Here follow the commit message from r204170 and r240176:

  - r204170: Add proper const keywords to sysctl(3) parameters.

  The `name' and `newp' arguments can be marked const, because the
  buffers
  they refer to are never changed. While there, perform some other
  cleanups:

  * Implement sysctlbyname() using sysctlnametomib() to prevent
    duplication of an undocumented kernel interface.
  * Fix some whitespace nits.

  - r240176: Avoid segfault if name is invalid.

  Basically, only check for CTL_USER if the sysctl fails with ENOENT.

4 years agoMy first commit is completely useless. Typical.
Eitan Adler [Sun, 24 Nov 2013 21:58:26 +0000 (16:58 -0500)]
My first commit is completely useless.  Typical.

4 years agoiwn - Resync from FreeBSD 2/2
Matthew Dillon [Sun, 24 Nov 2013 07:42:52 +0000 (23:42 -0800)]
iwn - Resync from FreeBSD 2/2

* Do a manual run-through and make all DragonFly-specific adjustments
  from the FreeBSD rebase of iwn.

* Tested on a system 76 laptop, basically works (inasmuch as FreeBSD's
  current iwn work works).

* Adds tons of new chips with varying degrees of support relative to the
  original port.

4 years agokernel - minor netproto/802_11 stuff to support iwn re-port
Matthew Dillon [Sun, 24 Nov 2013 07:41:06 +0000 (23:41 -0800)]
kernel - minor netproto/802_11 stuff to support iwn re-port

* Bring in some minor changes from FreeBSD which iwn needs.

4 years agoiwn - Resync from FreeBSD 1/2
Matthew Dillon [Sun, 24 Nov 2013 05:44:35 +0000 (21:44 -0800)]
iwn - Resync from FreeBSD 1/2

* Resync all files except the build infrastructure from FreeBSD.
  Next commit will re-port the files.

4 years agoRemove various unneeded .Pp macro in manual pages (all before .It).
Sascha Wildner [Sun, 24 Nov 2013 05:14:06 +0000 (06:14 +0100)]
Remove various unneeded .Pp macro in manual pages (all before .It).

4 years agoSync environ.7 and nls.7.
Sascha Wildner [Sun, 24 Nov 2013 03:21:43 +0000 (04:21 +0100)]
Sync environ.7 and nls.7.

Taken-from: FreeBSD & NetBSD

4 years agosyncache: Use lwkt_sendmsg_oncpu to schedule timeouts
Sepherosa Ziehau [Fri, 15 Nov 2013 15:44:11 +0000 (23:44 +0800)]
syncache: Use lwkt_sendmsg_oncpu to schedule timeouts

4 years agocarp: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:39:48 +0000 (23:39 +0800)]
carp: Utilize lwkt_sendmsg_oncpu

4 years agoroute/ip4: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:38:04 +0000 (23:38 +0800)]
route/ip4: Utilize lwkt_sendmsg_oncpu

4 years agoarp: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:36:19 +0000 (23:36 +0800)]
arp: Utilize lwkt_sendmsg_oncpu

4 years agoipflow: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:34:27 +0000 (23:34 +0800)]
ipflow: Utilize lwkt_sendmsg_oncpu

4 years agoipfw: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:29:58 +0000 (23:29 +0800)]
ipfw: Utilize lwkt_sendmsg_oncpu

4 years agobridge: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 15:15:41 +0000 (23:15 +0800)]
bridge: Utilize lwkt_sendmsg_oncpu

4 years agodummynet: Utilize lwkt_sendmsg_oncpu
Sepherosa Ziehau [Fri, 15 Nov 2013 13:53:52 +0000 (21:53 +0800)]
dummynet: Utilize lwkt_sendmsg_oncpu

4 years agotcp: Use lwkt_sendmsg_oncpu to run TCP timers in the current CPU's netisr
Sepherosa Ziehau [Fri, 15 Nov 2013 13:37:47 +0000 (21:37 +0800)]
tcp: Use lwkt_sendmsg_oncpu to run TCP timers in the current CPU's netisr

4 years agobmake: Update READMEs and makefiles
Alexandre Perrin [Sat, 23 Nov 2013 10:13:48 +0000 (11:13 +0100)]
bmake: Update READMEs and makefiles

4 years agobmake: new local modifications.
Alexandre Perrin [Fri, 22 Nov 2013 15:47:44 +0000 (16:47 +0100)]
bmake: new local modifications.

4 years agoMerge branch 'vendor/BMAKE'
John Marino [Sat, 23 Nov 2013 11:32:57 +0000 (12:32 +0100)]
Merge branch 'vendor/BMAKE'

4 years agobmake: Revert local modification patches.
Alexandre Perrin [Fri, 22 Nov 2013 15:42:54 +0000 (16:42 +0100)]
bmake: Revert local modification patches.

  Preparing a clean vendor branch merge.

4 years agoUpdate to bmake-20131001 on the vendor branch
Alexandre Perrin [Thu, 21 Nov 2013 12:34:06 +0000 (13:34 +0100)]
Update to bmake-20131001 on the vendor branch

4 years agokernel: Remove NULL checks after kmalloc(..., M_INTWAIT).
Alexandre Perrin [Fri, 22 Nov 2013 17:19:22 +0000 (18:19 +0100)]
kernel: Remove NULL checks after kmalloc(..., M_INTWAIT).

  M_INTWAIT will not return NULL unless M_NULLOK is passed too.

4 years agokernel - Fix bug in ehci port reset code
Matthew Dillon [Fri, 22 Nov 2013 00:57:29 +0000 (16:57 -0800)]
kernel - Fix bug in ehci port reset code

* Fix a bug when the port reset fails where the port locks up and no longer
  works.  The reset code was returning without disposing of the transfer
  request.

* Some devices (usually smart phones) won't reset on the first attempt.
  Try at least twice before reporting an error.

* Change the PR clear test to wait up to one second, instead of 250ms.

4 years agokernel: Remove random_poll().
Sascha Wildner [Thu, 21 Nov 2013 21:36:09 +0000 (22:36 +0100)]
kernel: Remove random_poll().

It is no longer used since device polling was torn out in favor of
kq filters in 163625b9bf04f32ec3cbbaef7e6b242aeb8a152c.

4 years agoFix indentation from the previous commit.
Antonio Huete Jimenez [Thu, 21 Nov 2013 18:50:04 +0000 (10:50 -0800)]
Fix indentation from the previous commit.

4 years agohammer - Ignore privilege check for HAMMERIOC_PFS_ITERATE.
Antonio Huete Jimenez [Thu, 21 Nov 2013 18:33:09 +0000 (10:33 -0800)]
hammer - Ignore privilege check for HAMMERIOC_PFS_ITERATE.

* This caused 'hammer info' to display an empty list of PFSes
  when run by non-root.

Pointed-out-by: dillon
4 years agokernel: Fix two typos, _KERNRL -> _KERNEL and ALTQ_unLOCK -> ALTQ_UNLOCK.
Sascha Wildner [Thu, 21 Nov 2013 00:45:27 +0000 (01:45 +0100)]
kernel: Fix two typos, _KERNRL -> _KERNEL and ALTQ_unLOCK -> ALTQ_UNLOCK.

4 years agobnx: Only 5718 chip family use PCI_BAR4 as MSI-X table; rest use PCI_BAR2
Sepherosa Ziehau [Thu, 21 Nov 2013 00:43:57 +0000 (08:43 +0800)]
bnx: Only 5718 chip family use PCI_BAR4 as MSI-X table; rest use PCI_BAR2

DragonFly-bug: http://bugs.dragonflybsd.org/issues/2605

4 years agopcidevs: Add VMware vendor id
François Tigeot [Wed, 20 Nov 2013 21:44:26 +0000 (22:44 +0100)]
pcidevs: Add VMware vendor id

4 years agoboot: switch limits check and usage of the index in two for()s.
Sascha Wildner [Wed, 20 Nov 2013 19:40:22 +0000 (20:40 +0100)]
boot: switch limits check and usage of the index in two for()s.

4 years agoboot: Remove an unused variable.
Sascha Wildner [Wed, 20 Nov 2013 19:38:58 +0000 (20:38 +0100)]
boot: Remove an unused variable.

4 years agoboot: Adjust some printfs which take unsigned but had %d.
Sascha Wildner [Wed, 20 Nov 2013 19:38:13 +0000 (20:38 +0100)]
boot: Adjust some printfs which take unsigned but had %d.

4 years ago<sys/types.h>: Remove wrong #include guard check.
Sascha Wildner [Wed, 20 Nov 2013 19:33:57 +0000 (20:33 +0100)]
<sys/types.h>: Remove wrong #include guard check.

4 years agoNote on ABI change requiring rebuild of third-party software.
Justin C. Sherrill [Wed, 20 Nov 2013 05:03:41 +0000 (00:03 -0500)]
Note on ABI change requiring rebuild of third-party software.

(cherry picked from commit ac04afc3258dcdbfc2072a1df56803905e8bbbad)

4 years agoAdd note about reboot before 'make upgrade' step.
Justin C. Sherrill [Wed, 20 Nov 2013 05:01:21 +0000 (00:01 -0500)]
Add note about reboot before 'make upgrade' step.

Based on:

http://lists.dragonflybsd.org/pipermail/users/2013-September/090163.html
(cherry picked from commit 43f7fa4fcaec7f2308a0442cf485b180de7b3c1a)

4 years agokernel/isp: Remove two checks which were never true.
Sascha Wildner [Wed, 20 Nov 2013 04:03:27 +0000 (05:03 +0100)]
kernel/isp: Remove two checks which were never true.

4 years agomemcpy.3: Bring back mempcpy() docs which were removed by mistake.
Sascha Wildner [Tue, 19 Nov 2013 11:34:00 +0000 (12:34 +0100)]
memcpy.3: Bring back mempcpy() docs which were removed by mistake.

4 years agoRevert "da: Independant read/write bioqs are used, so no need to use bioqdisksort"
Sepherosa Ziehau [Tue, 19 Nov 2013 02:43:31 +0000 (10:43 +0800)]
Revert "da: Independant read/write bioqs are used, so no need to use bioqdisksort"

This reverts commit 3f9f5f9aaf14daa1f014ab9c4780f90b4c17bd6d.

bioqdisksort may be augmented later to support read-read or write-write
reordering.  At least currently it does not hurt, so leave it there.

Pointed-out-by: dillon@
4 years agocmp(1): Take latest changes from FreeBSD's implementation.
Eitan Adler [Mon, 18 Nov 2013 23:13:24 +0000 (18:13 -0500)]
cmp(1): Take latest changes from FreeBSD's implementation.

In particular handle symbolic links more correctly, add a
signal handler, and other misc changes.

4 years agoRemove advertising clause from extern.h header.
Eitan Adler [Mon, 18 Nov 2013 23:04:45 +0000 (18:04 -0500)]
Remove advertising clause from extern.h header.

Taken From: FreeBSD

4 years agoAdd support for an -h flag which causes cmp(1) to not follow symlinks.
Eitan Adler [Mon, 18 Nov 2013 22:43:44 +0000 (17:43 -0500)]
Add support for an -h flag which causes cmp(1) to not follow symlinks.

4 years agocmp(1): fix some build nits (to build on FreeBSD)
Eitan Adler [Mon, 18 Nov 2013 22:36:52 +0000 (17:36 -0500)]
cmp(1): fix some build nits (to build on FreeBSD)

Add standard headers where appropriate.

Convert variable to static where appropriate.

4 years agofix the INT64_C and INTMAX_C family macro for x86_64.
Alexandre Perrin [Mon, 18 Nov 2013 22:16:22 +0000 (23:16 +0100)]
fix the INT64_C and INTMAX_C family macro for x86_64.

  This patch fix the expanding type of both the INT64_C and the INTMAX_C
  family macros to match their corresponding type:
  - INT64_C(value) to `int_least64_t`
  - UINT64_C(value) to `uint_least64_t`
  - INTMAX_C(value) to `intmax_t`
  - UINTMAX_C(value) to `uintmax_t`

4 years agoAdd MLINKS for kmalloc_cachealign() and kmalloc_raise_limit().
Sascha Wildner [Mon, 18 Nov 2013 19:11:43 +0000 (20:11 +0100)]
Add MLINKS for kmalloc_cachealign() and kmalloc_raise_limit().

4 years agokmalloc.9: Mention kmalloc_cachealign() in the NAME section, too.
Sascha Wildner [Mon, 18 Nov 2013 19:11:29 +0000 (20:11 +0100)]
kmalloc.9: Mention kmalloc_cachealign() in the NAME section, too.

4 years agokernel - Fix ESTALE handling in stat() and access()
Matthew Dillon [Mon, 18 Nov 2013 18:42:08 +0000 (10:42 -0800)]
kernel - Fix ESTALE handling in stat() and access()

* ESTALE could cause a panic due to shared namecache lock.  Relock
  the ncp exclusively when forcing re-resolution of the ncp due to
  ESTALE.

  ESTALE can occur on NFS mounts.

Reported-by: thesjg
4 years agoda: Independant read/write bioqs are used, so no need to use bioqdisksort
Sepherosa Ziehau [Mon, 18 Nov 2013 13:35:40 +0000 (21:35 +0800)]
da: Independant read/write bioqs are used, so no need to use bioqdisksort

4 years agoahci: If the "nominal rotation rate" is 1, then disk is SSD
Sepherosa Ziehau [Mon, 18 Nov 2013 12:44:05 +0000 (20:44 +0800)]
ahci: If the "nominal rotation rate" is 1, then disk is SSD

4 years agoahci: Print "Serial ATA Additional capabilities"
Sepherosa Ziehau [Mon, 18 Nov 2013 11:26:34 +0000 (19:26 +0800)]
ahci: Print "Serial ATA Additional capabilities"

The 7th bit of this field indicates whether SEND FPDMA QUEUED and
RECEIVE FPDMA QUEUED are supported or not.  SEND FPDMA QUEUED could
be used to support NCQ TRIM.

If this bit is set, following steps are needed to determine whether
NCQ TRIM could be used or not:

    READ LOG EXT (0x00, General Purpose Log Directory Log)
    if (!log8[0x26]) {
       no NCQ TRIM support
       return
    }
    READ LOG EXT (0x13, NCQ Send and Receive Log)
    if ((log32[0] & 0x1) == 0) {
       no NCQ TRIM support
       return
    }
    if ((log32[1] & 0x1) == 0) {
       no NCQ TRIM support
       return
    }
    /* NCQ TRIM is supported */

4 years agoisphonogram.3: Fix xlocale(3) reference.
Sascha Wildner [Mon, 18 Nov 2013 06:47:16 +0000 (07:47 +0100)]
isphonogram.3: Fix xlocale(3) reference.

4 years agolibc: Sync strfmon() with FreeBSD (brings in strfmon_l(), too).
Sascha Wildner [Sun, 17 Nov 2013 23:24:23 +0000 (00:24 +0100)]
libc: Sync strfmon() with FreeBSD (brings in strfmon_l(), too).

4 years ago<xlocale.h>: Mark strftime_l() as __strftimelike.
Sascha Wildner [Sun, 17 Nov 2013 23:23:42 +0000 (00:23 +0100)]
<xlocale.h>: Mark strftime_l() as __strftimelike.

4 years ago<sys/cdefs.h>: Add __strfmonlike and __strftimelike (from FreeBSD).
Sascha Wildner [Sun, 17 Nov 2013 23:22:41 +0000 (00:22 +0100)]
<sys/cdefs.h>: Add __strfmonlike and __strftimelike (from FreeBSD).

4 years agoAdd localeconv_l(3) MLINK.
Sascha Wildner [Sun, 17 Nov 2013 18:33:49 +0000 (19:33 +0100)]
Add localeconv_l(3) MLINK.

4 years agodigittoint.3: Add missing whitespace.
Sascha Wildner [Sun, 17 Nov 2013 18:19:29 +0000 (19:19 +0100)]
digittoint.3: Add missing whitespace.

4 years agogroff: properly display $Mdocdate magic
Franco Fichtner [Sun, 17 Nov 2013 13:39:56 +0000 (13:39 +0000)]
groff: properly display $Mdocdate magic

OpenSSH and mdocml pages require this.  Reduces the groff/mandoc
output diff.  I heard this was suggested upstream a while ago, but
never made it into the code base.

Taken-from: OpenBSD

4 years agowscanf_l.3: Adjust wording yet again to match scanf_l.3.
Sascha Wildner [Sun, 17 Nov 2013 06:16:44 +0000 (07:16 +0100)]
wscanf_l.3: Adjust wording yet again to match scanf_l.3.

4 years agolibc: Add atof_l(), atoi_l(), atol_l() and atoll_l().
Sascha Wildner [Sun, 17 Nov 2013 06:12:02 +0000 (07:12 +0100)]
libc: Add atof_l(), atoi_l(), atol_l() and atoll_l().

4 years agoUse 'static' where appropriate
Justin C. Sherrill [Sun, 17 Nov 2013 04:27:51 +0000 (23:27 -0500)]
Use 'static' where appropriate

Patch-from: Eitan Adler <lists@eitanadler.com>

4 years agowscanf_l.3: Fix description.
Sascha Wildner [Sun, 17 Nov 2013 03:22:20 +0000 (04:22 +0100)]
wscanf_l.3: Fix description.

4 years agow{print,scan}f_l.3: Fix manual page titles.
Sascha Wildner [Sun, 17 Nov 2013 03:02:21 +0000 (04:02 +0100)]
w{print,scan}f_l.3: Fix manual page titles.

4 years agolibc: Oops, typo in the Makefile.
Sascha Wildner [Sun, 17 Nov 2013 02:56:01 +0000 (03:56 +0100)]
libc: Oops, typo in the Makefile.

4 years agoAdd a wscanf_l.3 manual page, modeled after scanf_l.3.
Sascha Wildner [Sun, 17 Nov 2013 02:47:36 +0000 (03:47 +0100)]
Add a wscanf_l.3 manual page, modeled after scanf_l.3.

4 years agolibc: Add swscanf_l() and vwscanf_l().
Sascha Wildner [Sun, 17 Nov 2013 02:46:20 +0000 (03:46 +0100)]
libc: Add swscanf_l() and vwscanf_l().

4 years agoAdd the scanf_l.3 manual page from FreeBSD.
Sascha Wildner [Sun, 17 Nov 2013 01:33:33 +0000 (02:33 +0100)]
Add the scanf_l.3 manual page from FreeBSD.

4 years agoAdd a wprintf_l.3 manual page, modeled after printf_l.3.
Sascha Wildner [Sun, 17 Nov 2013 00:59:20 +0000 (01:59 +0100)]
Add a wprintf_l.3 manual page, modeled after printf_l.3.

4 years agowprintf.3: Add a missing argument name.
Sascha Wildner [Sun, 17 Nov 2013 00:58:15 +0000 (01:58 +0100)]
wprintf.3: Add a missing argument name.

4 years agolibc: Add swprintf_l() and vwprintf_l().
Sascha Wildner [Sun, 17 Nov 2013 00:57:33 +0000 (01:57 +0100)]
libc: Add swprintf_l() and vwprintf_l().

4 years agoAdd the printf_l.3 manual page from FreeBSD.
Sascha Wildner [Sat, 16 Nov 2013 22:10:01 +0000 (23:10 +0100)]
Add the printf_l.3 manual page from FreeBSD.

4 years agolibc: Add vprintf_l(), which somehow was missed.
Sascha Wildner [Sat, 16 Nov 2013 22:09:27 +0000 (23:09 +0100)]
libc: Add vprintf_l(), which somehow was missed.

4 years agoFix some typos in manual page references.
Sascha Wildner [Sat, 16 Nov 2013 03:49:00 +0000 (04:49 +0100)]
Fix some typos in manual page references.

4 years agoUpdate the pciconf(8) database.
Sascha Wildner [Fri, 15 Nov 2013 13:31:12 +0000 (14:31 +0100)]
Update the pciconf(8) database.

November 14, 2013 snapshot from http://pciids.sourceforge.net/

4 years agohammer2 - Stabilization
Matthew Dillon [Fri, 15 Nov 2013 08:21:23 +0000 (00:21 -0800)]
hammer2 - Stabilization

Yet more stabilization.  Generally speaking the code is starting to look
pretty good, but finding the corner cases for the in-memory chain state
has taken more time than I had hoped.  All of this complexity exists solely
in order to allow flushes to run concurrently with modifying operations by
the front-end (which is a pretty significant performance feature).

* Fix a bug in the hammer2_chain_get() race detection code.

* Refactor hammer2_freemap_alloc() a bit.

* Save debug info in dead block array fields (temporary), and add some
  debugging field to the chain structure.

* Refactor the flush code that checks whether a deleted chain should be
  ignored or not, fixing a bug at the same time.

* Refactor the transaction sequencing.  Flushes now allocate an extra
  transaction id so a distinction can be made between chains whos block
  arrays have not been updated and chains whos block arrays have been
  updated.

* Refactor the MOVED flag removal algorithm a little, fixing a bug or two.

* Adjust the freemap to detect forked chains and ensure that a different
  reserved block is calculated for the two possible forks.

* Fix a few mount fail cases that were panicing.

* Update bref.mirror_tid in scan1 skip cases.

* Do not update bref.mirror_tid in the skip case as this can confuse
  how a child's block array is interpreted in a future flush.

* Augment chain code with maxloops counters for debugging infinite
  loops.

* Remove the CHAIN_DUPLICATED tests in hammer2_chain_find() as this can
  catch a delete-duplicate in-progress and incorrectly cause the search
  to fail.

* Remove looping on CHAIN_DUPLICATED detection.  Instead what we do now
  is lock the chain before testing the CHAIN_DELETED bit.  Locking the
  chain will resolve delete-duplicate races and place the chain in a
  deterministic state.  The CHAIN_DELETED test is then sufficient.

4 years agokernel - Performance tuning (4)
Matthew Dillon [Fri, 15 Nov 2013 08:19:02 +0000 (00:19 -0800)]
kernel - Performance tuning (4)

* Fix another bug in the new buf/bio code.  The flushing state can
  inadvertently become active and cause an endless loop due to a
  64-bit optimization (when BKVASIZE == MAXBSIZE) which is not properly
  conditionalized.

* Fix the endless loop.

* Add some debug variables and a sysctl to control it (temporary).