dragonfly.git
10 years agocron(8): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Thu, 5 Dec 2013 03:10:35 +0000 (04:10 +0100)]
cron(8): Raise WARNS to 2 and fix warnings.

10 years agobootparamd/callbootd(8): Raise WARNS to 2.
Sascha Wildner [Thu, 5 Dec 2013 03:10:09 +0000 (04:10 +0100)]
bootparamd/callbootd(8): Raise WARNS to 2.

10 years agoidr: fix bounds checks
Johannes Hofmann [Wed, 4 Dec 2013 20:55:50 +0000 (21:55 +0100)]
idr: fix bounds checks

10 years agotbridge: fix include paths in sample/testk1.c
Johannes Hofmann [Wed, 4 Dec 2013 19:35:54 +0000 (20:35 +0100)]
tbridge: fix include paths in sample/testk1.c

10 years ago<sys/time.h>: setitimer() and utimes() are not BSD specific.
Sascha Wildner [Wed, 4 Dec 2013 18:17:48 +0000 (19:17 +0100)]
<sys/time.h>: setitimer() and utimes() are not BSD specific.

10 years agovgrind(1): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:15:20 +0000 (19:15 +0100)]
vgrind(1): Raise WARNS to 3 and fix warnings.

10 years agotelnet(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:14:42 +0000 (19:14 +0100)]
telnet(1): Raise WARNS to 2 and fix warnings.

10 years agotcopy(1): Raise WARNS to 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:14:13 +0000 (19:14 +0100)]
tcopy(1): Raise WARNS to 3 and fix warnings.

10 years agosymorder(1): Raise WARNS to 2.
Sascha Wildner [Wed, 4 Dec 2013 18:13:40 +0000 (19:13 +0100)]
symorder(1): Raise WARNS to 2.

10 years agordist(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:12:45 +0000 (19:12 +0100)]
rdist(1): Raise WARNS to 2 and fix warnings.

10 years agoopie{info,key,passwd}(1): Raise WARNS to 2 or 3 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:11:10 +0000 (19:11 +0100)]
opie{info,key,passwd}(1): Raise WARNS to 2 or 3 and fix warnings.

10 years agonfsstat(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:09:11 +0000 (19:09 +0100)]
nfsstat(1): Raise WARNS to 2 and fix warnings.

10 years agomt(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:08:31 +0000 (19:08 +0100)]
mt(1): Raise WARNS to 2 and fix warnings.

10 years agomail(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:07:54 +0000 (19:07 +0100)]
mail(1): Raise WARNS to 2 and fix warnings.

10 years agoldd(1): Raise WARNS to 2 and fix warnings.
Sascha Wildner [Wed, 4 Dec 2013 18:06:46 +0000 (19:06 +0100)]
ldd(1): Raise WARNS to 2 and fix warnings.

10 years agodrill(1): Raise WARNS to 2.
Sascha Wildner [Wed, 4 Dec 2013 18:04:57 +0000 (19:04 +0100)]
drill(1): Raise WARNS to 2.

10 years agohammer2 - stabilization
Matthew Dillon [Wed, 4 Dec 2013 17:44:59 +0000 (09:44 -0800)]
hammer2 - stabilization

* Fix the hammer2_chain_assert_not_present() call in hammer2_chain_insert()
  to avoid SMP races that could cause it to trigger falsely.  Also fix a
  case where inserting a deleted chain was improperly calling it.

* Fix bugs in hammer2_combined_find().  It is possible for a deleted
  chain from a prior synchronization point to cover a matching media
  blockref from a later synchronization point.  When both a media block
  and an in-memory chain are found, do not just blindly choose the
  in-memory chain.  Choose based on the synchronization points.

* Refactor part of the hardlink code.  Do not create a dummy chain
  to place-hold the target when a hardlink has to be shifted up to
  a parent directory.  Allow hammer2_chain_duplicate() to do it.

10 years agomail(1): Fix an over 9 years old typo/bug.
Sascha Wildner [Wed, 4 Dec 2013 17:19:57 +0000 (18:19 +0100)]
mail(1): Fix an over 9 years old typo/bug.

10 years agoFix some mandoc warnings (tab in non-literal context).
Sascha Wildner [Wed, 4 Dec 2013 13:09:40 +0000 (14:09 +0100)]
Fix some mandoc warnings (tab in non-literal context).

10 years agobge: Move BCM5906 VCPU reset before global reset
Sepherosa Ziehau [Wed, 4 Dec 2013 12:13:24 +0000 (20:13 +0800)]
bge: Move BCM5906 VCPU reset before global reset

According to the datasheet, the VCPU of BCM5906 should set
BGE_VCPU_STATUS_DRV_RESET bit *before* VCPU reset or global reset.

Obtained-from: FreeBSD 241392

10 years agobge: Add delays after enable RX/TX MAC
Sepherosa Ziehau [Wed, 4 Dec 2013 12:07:30 +0000 (20:07 +0800)]
bge: Add delays after enable RX/TX MAC

Follows Broadcom's datasheet recommendation

Obtained-from: FreeBSD 241220

10 years agobge: Add 40us delay after updating MAC_MODE
Sepherosa Ziehau [Wed, 4 Dec 2013 12:04:33 +0000 (20:04 +0800)]
bge: Add 40us delay after updating MAC_MODE

As recommended by Broadcom data sheet.

Obtained-from: FreeBSD 241219

10 years agobge: Keep MAC_MODE accesses atomic
Sepherosa Ziehau [Wed, 4 Dec 2013 12:00:25 +0000 (20:00 +0800)]
bge: Keep MAC_MODE accesses atomic

APE firmware also touches MAC_MODE to keep the MAC connected to the
outside world, so keep the accesses atomic

Obtained-from: FreeBSD 241216

10 years agobge/bnx: Remove duplicated register names; keep names consistent w/ FreeBSD
Sepherosa Ziehau [Wed, 4 Dec 2013 09:43:05 +0000 (17:43 +0800)]
bge/bnx: Remove duplicated register names; keep names consistent w/ FreeBSD

10 years agohammer2 - stabilization, improvements
Matthew Dillon [Wed, 4 Dec 2013 01:52:24 +0000 (17:52 -0800)]
hammer2 - stabilization, improvements

* Improve hammer2_io hysteresis by keeping track of a simple activity
  metric when figuring out what to free.  Instead of cleaning out all
  free hammer2_io structures the code now tries to clean out only half
  of them when the hysteresis limit is reached.

* Remove some debug fields, add some debug fields.

* Refactor the memory load flush/wait code.  Instead of tracking the number
  of chain structures we track the number of MODIFIED chain structures,
  and stage early flushes and resource memory use waits based on that.

* Add temporary debug procedure hammer2_chain_assert_not_present() which
  asserts that a chain being created will not collide with a chain already
  present.

* Fix a bug related to freeing non-stale chains that could corrupt the
  flush algorithm.

* Fix bugs related to races between lookups and delete-duplicate operations.
  Races can occur because a delete-duplicate does not lock the chain->above
  core.

  This was a nasty one.  A delete-duplicate race can cause a lookup to
  find a DELETE+DUPLICATED chain, but just testing the DUPLICATED bit
  doesn't detect the race.  Instead we have to test whether the bit has
  changed between the spin-locked layer/RBTREE search and the locking of
  the chain that was found.

* Fix a bug in h2ignore_deleted().  When a chain is DUPLICATED, the
  delete_tid must be tested for any bref type.  Not testing this was
  allowing delete-duplicates on inodes to cause chains with the MOVED
  flag set to be left dangling in the in-memory topology and never
  get freed.

* Refactor the flush core a bit, in particular handle a case where
  we were improperly clearing the MOVED bit for a chain which had
  flush-deferred children.

* Remove some unused flags.

* Handle a hardlink shifted-upward race in hammer2_inode_lock_ex().

10 years agokernel - Fix SMP races with vnode cluster fields
Matthew Dillon [Wed, 4 Dec 2013 01:42:46 +0000 (17:42 -0800)]
kernel - Fix SMP races with vnode cluster fields

* The better concurrency we have due to the recent buffer cache work has
  revealed a SMP race in the vfs_cluster code.  Various fields used by
  cluster_write() can race and cause the wrong buffers to be clustered to
  the wrong disk offset, resulting in disk corruption.

* Rip the v_lastw, v_cstart, v_lasta, and v_clen fields out of struct vnode
  and replace with a global cluster state cache in vfs_cluster.c.

  The cache is implemented as a 512-entry hash table, 4-way set associative,
  and is more advanced than the original implementation in that it allows
  up to four different seek zones to be tracked on each vnode, instead of
  only one.  This should make buffered device I/O (used by filesystems)
  work better.

  Cache elements are heuristically locked with an atomic_swap_int().  If
  the code is unable to instantly acquire a lock on an element it will
  simply not cluster that particular I/O (instead of blocking).  Even though
  this is a global hash table, operations will have a tendancy to be
  localized to cache elements.

* Remove some manual clearing of fields in UFS's ffs_truncate() routine.
  It should have no material effect.

10 years agosili.4: Remove leftover .El
Sascha Wildner [Wed, 4 Dec 2013 01:40:16 +0000 (02:40 +0100)]
sili.4: Remove leftover .El

10 years agosili.4: Mention the MSI tunable.
Sascha Wildner [Wed, 4 Dec 2013 01:36:17 +0000 (02:36 +0100)]
sili.4: Mention the MSI tunable.

10 years agokernel/msdos: Really fix indentation.
Sascha Wildner [Wed, 4 Dec 2013 01:22:04 +0000 (02:22 +0100)]
kernel/msdos: Really fix indentation.

10 years agomount_msdos(8): Fix indent.
Sascha Wildner [Wed, 4 Dec 2013 01:14:54 +0000 (02:14 +0100)]
mount_msdos(8): Fix indent.

10 years agoidr: access nodes array with token held
Johannes Hofmann [Tue, 3 Dec 2013 21:36:31 +0000 (22:36 +0100)]
idr: access nodes array with token held

10 years agobge: No need to call reset after stop; stop does the reset now
Sepherosa Ziehau [Tue, 3 Dec 2013 12:02:14 +0000 (20:02 +0800)]
bge: No need to call reset after stop; stop does the reset now

10 years agobge: Bring in ASF support from FreeBSD
Sepherosa Ziehau [Tue, 3 Dec 2013 11:52:54 +0000 (19:52 +0800)]
bge: Bring in ASF support from FreeBSD

This is intended to address NMI that has been observed on certain
systems, e.g. host driver and ASF firmware try to access MII register
at the same time.

10 years agofortune : convert dragonfly tips from pkgsrc to dports
Joris Giovannangeli [Tue, 3 Dec 2013 10:57:13 +0000 (11:57 +0100)]
fortune : convert dragonfly tips from pkgsrc to dports

10 years ago802_11 - Bring in some recent work
Matthew Dillon [Tue, 3 Dec 2013 07:30:31 +0000 (23:30 -0800)]
802_11 - Bring in some recent work

* Bring in a64c18c and d895e5.

* NOTE: A more comprehensive synchronization is required for the 802_11
subsystem.

10 years agoiwn - Sync with FreeBSD through today (9817dff in FBsd git repo)
Matthew Dillon [Tue, 3 Dec 2013 07:27:18 +0000 (23:27 -0800)]
iwn - Sync with FreeBSD through today (9817dff in FBsd git repo)

* Sync with FreeBSD through today (9817dff in FBsd git repo)

10 years agoidr: fix sizeof in kmalloc calls
Johannes Hofmann [Tue, 3 Dec 2013 07:02:19 +0000 (08:02 +0100)]
idr: fix sizeof in kmalloc calls

10 years agopf.os: Sync with FreeBSD
Eitan Adler [Tue, 3 Dec 2013 04:32:39 +0000 (23:32 -0500)]
pf.os: Sync with FreeBSD

Local changes already merged.

Obtained-from:   FreeBSD

10 years agoregdomain.xml: sync from FreeBSD
Eitan Adler [Tue, 3 Dec 2013 04:20:56 +0000 (23:20 -0500)]
regdomain.xml: sync from FreeBSD

No local changes were found.

10 years agogettytab: sync changes from FreeBSD.
Eitan Adler [Tue, 3 Dec 2013 04:14:15 +0000 (23:14 -0500)]
gettytab: sync changes from FreeBSD.

Local changes were merged to FreeBSD's gettytab already
Obtained-from:   FreeBSD r258864

10 years agoSync with latest FreeBSD changes. Local changes were merged into
Eitan Adler [Tue, 3 Dec 2013 04:04:22 +0000 (23:04 -0500)]
Sync with latest FreeBSD changes.  Local changes were merged into
FreeBSD's version.

Obtained-from:   FreeBSD

10 years agoidr : fix error in previous commit
Joris Giovannangeli [Tue, 3 Dec 2013 01:02:09 +0000 (02:02 +0100)]
idr : fix error in previous commit

10 years agoidr : Fix logic error in binary tree allocation
Joris Giovannangeli [Tue, 3 Dec 2013 00:55:27 +0000 (01:55 +0100)]
idr : Fix logic error in binary tree allocation

 * A complete binary tree has 2^n - 1 nodes, not 2^n. Changes default size
   to be 2^n - 1.

 * While here, also add proper locking directives to idr_grow and idr_remove_all

10 years agolibc/stdtime: Sync with tzcode2013h from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 1 Dec 2013 20:39:23 +0000 (21:39 +0100)]
libc/stdtime: Sync with tzcode2013h from ftp://ftp.iana.org/tz/releases

This also reverts most of the changes from the "locale megapatch".
While well-meant, this threw us back to being in sync with upstream's
tzcode2010m, while before we were in sync with tzcode2012c.

Leave those FreeBSD changes which make sense.

10 years agolibc: fix incorrect error handling in shm_open
Nicolas Thery [Mon, 2 Dec 2013 12:52:46 +0000 (13:52 +0100)]
libc: fix incorrect error handling in shm_open

10 years agosili: Add MSI support; not enabled by default
Sepherosa Ziehau [Mon, 2 Dec 2013 12:07:05 +0000 (20:07 +0800)]
sili: Add MSI support; not enabled by default

MSI does not seem to work at all on 3132, sigh

10 years agolibc/xprintf: Fix namespace.h/un-namespace.h inclusion.
Sascha Wildner [Sun, 1 Dec 2013 09:36:46 +0000 (10:36 +0100)]
libc/xprintf: Fix namespace.h/un-namespace.h inclusion.

10 years agoumtx.2: fix typos
Nicolas Thery [Thu, 28 Nov 2013 16:14:16 +0000 (17:14 +0100)]
umtx.2: fix typos

10 years agolibmap.conf: Update man page
John Marino [Sat, 30 Nov 2013 10:50:51 +0000 (11:50 +0100)]
libmap.conf: Update man page

Bring in DES' recent overhaul of the libmap.conf man page

Partially taken from:
FreeBSD SVN 255765 (21 SEP 2013)

10 years agortld: Add directory mapping functionality
John Marino [Sat, 30 Nov 2013 10:23:00 +0000 (11:23 +0100)]
rtld: Add directory mapping functionality

Partially taken from:
FreeBSD SVN 255765 (21 SEP 2013)

10 years agortld: dl_iterate_phdr change
John Marino [Sat, 30 Nov 2013 09:55:19 +0000 (10:55 +0100)]
rtld: dl_iterate_phdr change

The dynamic linker needs to include itself when iterating over loaded
ELF objects in dl_iterate_phdr(3).

Taken by:
FreeBSD SVN 257811 (07 NOV 2013)

10 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)

10 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

10 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.

10 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.

10 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
10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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'.

10 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.

10 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.

10 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).

10 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.

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

10 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.

10 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.

10 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

10 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.

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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).

10 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

10 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

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

10 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

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

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

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

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

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

10 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

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

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

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

10 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.

10 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

10 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.

10 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.