dragonfly.git
10 years agodevd: Use 'const' where possible
Eitan Adler [Mon, 6 May 2013 18:44:58 +0000 (14:44 -0400)]
devd: Use 'const' where possible

10 years agodevd: Use volatile sig_atomic_t...
Eitan Adler [Mon, 6 May 2013 18:44:27 +0000 (14:44 -0400)]
devd: Use volatile sig_atomic_t...

...for the flag set by a signal handler. Remove call to _exit() from signal
handler, which also sets a stop flag.

Obtained From: FreeBSD

10 years agodevd: Prefer the use of initializer lists to ctor assignment
Eitan Adler [Mon, 6 May 2013 18:40:17 +0000 (14:40 -0400)]
devd: Prefer the use of initializer lists to ctor assignment

10 years agodevd: Avoid the creation of a temporary object...
Eitan Adler [Mon, 6 May 2013 18:37:39 +0000 (14:37 -0400)]
devd: Avoid the creation of a temporary object...

...by using the prefix operator for non-primitive types.

Obtained From: FreeBSD (r243931)

10 years agorm(1): Some minor style and bug fixes from FreeBSD
Eitan Adler [Fri, 26 Apr 2013 17:57:15 +0000 (13:57 -0400)]
rm(1): Some minor style and bug fixes from FreeBSD

10 years agobnx: Use different TX coalesce BDs for polling and interrupt mode
Sepherosa Ziehau [Mon, 6 May 2013 03:30:28 +0000 (11:30 +0800)]
bnx: Use different TX coalesce BDs for polling and interrupt mode

10 years agoRemove advertising header from man pages.
Justin C. Sherrill [Mon, 6 May 2013 02:26:03 +0000 (22:26 -0400)]
Remove advertising header from man pages.

By: Eitan Adler <lists@eitanadler.com>

10 years agoRemove advertising clause from all that isn't contrib or userland bin.
Justin C. Sherrill [Mon, 6 May 2013 02:18:44 +0000 (22:18 -0400)]
Remove advertising clause from all that isn't contrib or userland bin.

By: Eitan Adler <lists@eitanadler.com>

10 years agoRemove advertising header from all userland binaries.
Justin C. Sherrill [Mon, 6 May 2013 02:09:38 +0000 (22:09 -0400)]
Remove advertising header from all userland binaries.

From: Eitan Adler <lists@eitanadler.com>

10 years agoahci(4): Maximum I/O size is 2MB
François Tigeot [Sun, 5 May 2013 08:30:44 +0000 (10:30 +0200)]
ahci(4): Maximum I/O size is 2MB

10 years agocpdup - add -n (not-for-real) option
Matthew Dillon [Sun, 5 May 2013 19:37:32 +0000 (12:37 -0700)]
cpdup - add -n (not-for-real) option

* Add cpdup -n, which causes cpdup to go through the motions but not
  actually make any modifications.

10 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 5 May 2013 19:34:47 +0000 (12:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

10 years agobnx: Utilize hardware supplied RSS hash
Sepherosa Ziehau [Sun, 5 May 2013 13:56:35 +0000 (21:56 +0800)]
bnx: Utilize hardware supplied RSS hash

The IP fragments detection is done in the same fashion as:
42ad0e07a760aa29981d4650100f65e770f8f144
which may need further investigation.

10 years agokernel/scsi_da: If booting verbosely, si_iosize_max when registering.
Sascha Wildner [Sun, 5 May 2013 10:46:02 +0000 (12:46 +0200)]
kernel/scsi_da: If booting verbosely, si_iosize_max when registering.

10 years agokernel/scsi_da: Use __func__ for printing function names.
Sascha Wildner [Sun, 5 May 2013 10:31:50 +0000 (12:31 +0200)]
kernel/scsi_da: Use __func__ for printing function names.

10 years agosbp(4): Maximum I/O size is 512KB
François Tigeot [Sun, 5 May 2013 06:44:01 +0000 (08:44 +0200)]
sbp(4): Maximum I/O size is 512KB

10 years agoUse C99 __func__ instead of __FUNCTION__.
Sascha Wildner [Sat, 4 May 2013 19:58:43 +0000 (21:58 +0200)]
Use C99 __func__ instead of __FUNCTION__.

10 years agohammer2 - flush sequencing part 2
Matthew Dillon [Sat, 4 May 2013 18:14:20 +0000 (11:14 -0700)]
hammer2 - flush sequencing part 2

* API adjustments.  Add trans to setsubmod and pass &chain to
  hammer2_chain_modify() so it can (soon) modify/duplicate and
  return a different chain.

* Tentitively add flush_tid tracking to the hmp which will
  soon be used by the modify code to determine when a duplication
  is required.

10 years agohammer2 - flush sequencing part 1
Matthew Dillon [Sat, 4 May 2013 04:31:31 +0000 (21:31 -0700)]
hammer2 - flush sequencing part 1

* Rip out the jerry-rigged flush sequencer and start work on a real
  one.

* Sync and fsync calls create synchronization points and will be serialized
  against each other.

* Modifying operations occurring before a synchronization point will stall
  modifying operations occurring after the synchronization point until
  they complete.  This will need to be optimized.

* However, the synchronization points are coded such that modifying operations
  occurring after a synchronization point will be able to run concurrently
  with the disk flush related to that synchronization point.

  So if there is only one synchronization point (sync or fsync or background
  sync) active, modifying operations will generally not stall.  At least not
  for very long.

10 years agohammer2 - Major restructuring, part 6/several
Matthew Dillon [Fri, 3 May 2013 20:17:26 +0000 (13:17 -0700)]
hammer2 - Major restructuring, part 6/several

* Stabilization pass.

* Protect vfs_sync with a master lock to serialize operations, to protect
  the master volume header sequencing.  The related fsync scan will use the
  same transaction id.

* Fix a bug where races could cause SUBMODIFIED set in deep chains to not
  propagate back up to the root.

* Limit debug dumps on unmount.

* API adjustments.

10 years agohammer2 - Major restructuring, part 5/several
Matthew Dillon [Fri, 3 May 2013 17:55:39 +0000 (10:55 -0700)]
hammer2 - Major restructuring, part 5/several

* Stabilization pass.  Force VOP_WRITE operations on inode-embedded data
  to be synchronous, otherwise the asynchronous strategy code can catch
  inode->chain while it is in flux.

10 years agokernel/netgraph: Fix a 64 bit pointer issue.
Sascha Wildner [Fri, 3 May 2013 17:22:11 +0000 (19:22 +0200)]
kernel/netgraph: Fix a 64 bit pointer issue.

Previously, ng_parse_uint32_type was taken on x86_64 too.

Taken-from: FreeBSD

10 years agoUnbreak buildworld.
Sascha Wildner [Fri, 3 May 2013 16:52:18 +0000 (18:52 +0200)]
Unbreak buildworld.

10 years agobnx: Fix up some comment abount ring control blocks (RCBs)
Sepherosa Ziehau [Fri, 3 May 2013 13:21:51 +0000 (21:21 +0800)]
bnx: Fix up some comment abount ring control blocks (RCBs)

10 years agobnx: Implement multiple RX/TX rings and MSI-X support for 5718/57785
Sepherosa Ziehau [Wed, 17 Apr 2013 14:12:29 +0000 (22:12 +0800)]
bnx: Implement multiple RX/TX rings and MSI-X support for 5718/57785

BCM5718 and BCM57785 families support 4 RX rings and 5 MSI-X vectors.
Additionally BCM5719/BCM5720 support 4 TX rings, while other chips in
these two families only support 1 TX ring.  Each MSI-X vector has its
own interrupt moderation parameters.

Hardware supplied RSS hash and packet type are not utilized yet; they
will be supported in the upcoming commits.

This commit also fixes some RX standard ring refilling races introduced
in:
841cdf08263117c54b0a800440c7630b6913c21e

RX standard ring refilling scheduling may enjoy futher optimization.

10 years agohammer2 - Improve 'hammer2 show'
Matthew Dillon [Fri, 3 May 2013 08:36:27 +0000 (01:36 -0700)]
hammer2 - Improve 'hammer2 show'

* The show directive now chooses the best volume header by default
  (but will dump all four if you specify -vvv).

10 years agohammer2 - Major restructuring, part 4/several
Matthew Dillon [Fri, 3 May 2013 08:28:00 +0000 (01:28 -0700)]
hammer2 - Major restructuring, part 4/several

* Add inumber -> inode structure tracking and lookup.  This is needed to
  ensure that only a single inode structure be used to track multiple
  hardlinks to the same place.

* Continue stabilization.  Remove modify_tid/delete_tid checks in the
  flush code and (for now) only flush along the live path.

  Refactor held chains when creating new chains.  The creation of a new
  chain can move around existing chains, causing the held chain to be
  marked deleted.

  When a hardlink is consolidated in a parent directory the source chain
  used in the duplication is not deleted.  Numerous chain->duplink
  handling code was assuming that the source was always deleted.  Fix
  that.

* The shared inode lock now refactors ip->chain (the exclusive inode lock
  already did so).

* Fix most ref-counting of the chain structure, fixing most of the memory
  leakage issues on unmount.

* There are still some issues with small files not inheriting their data
  on duplication.  cpdup /usr/share works but a significant number of
  small files lose their data references on re-mount.

10 years agohammer2 - Major restructuring, part 3/several
Matthew Dillon [Thu, 2 May 2013 20:06:28 +0000 (13:06 -0700)]
hammer2 - Major restructuring, part 3/several

* Use hammer2_chain_duplicate() to move hardlinks to common parents.

* Adjust flush algorithms, particularly when it comes to figuring out
  when we can clear the MOVED bit on a chain.

* chain RBTREE sorts on delete_tid in addition to sorting on the key.
  Add ranged searches.

  The frontend no longer modifies indirect blocks.  Instead, chains in
  the RBTREE are used to placehold both insertions and deletions.

* Stabilization pass.  (still work to do on chain refs / unmount and
  optimizing the flush).

10 years agortadvd(8): Fix a typo in a message.
Sascha Wildner [Thu, 2 May 2013 17:40:23 +0000 (19:40 +0200)]
rtadvd(8): Fix a typo in a message.

10 years agotoeplitz: Return raw hash
Sepherosa Ziehau [Thu, 2 May 2013 09:19:12 +0000 (17:19 +0800)]
toeplitz: Return raw hash

Currently only 16 bits are valid, since the key is seeded with 2 bytes.

10 years agoip_demux: Save raw hash, instead of hash masked w/ ncpus2_mask, i.e. cpuid
Sepherosa Ziehau [Thu, 2 May 2013 08:57:02 +0000 (16:57 +0800)]
ip_demux: Save raw hash, instead of hash masked w/ ncpus2_mask, i.e. cpuid

10 years agoip_demux: Remove unused udp_mpsafe_thread global variable
Sepherosa Ziehau [Thu, 2 May 2013 08:42:23 +0000 (16:42 +0800)]
ip_demux: Remove unused udp_mpsafe_thread global variable

10 years agonetisr: Fix comment
Sepherosa Ziehau [Thu, 2 May 2013 08:23:10 +0000 (16:23 +0800)]
netisr: Fix comment

10 years agonetisr: Renaming, cpufn -> hashfn; no functional changes
Sepherosa Ziehau [Thu, 2 May 2013 08:07:15 +0000 (16:07 +0800)]
netisr: Renaming, cpufn -> hashfn; no functional changes

10 years agonetisr: Add netisr_hashcpu, which maps pkt hash to cpuid
Sepherosa Ziehau [Thu, 2 May 2013 07:21:10 +0000 (15:21 +0800)]
netisr: Add netisr_hashcpu, which maps pkt hash to cpuid

10 years agonetisr: Add netisr_hashport, which finds netisr msgport based on pkt hash
Sepherosa Ziehau [Thu, 2 May 2013 06:59:23 +0000 (14:59 +0800)]
netisr: Add netisr_hashport, which finds netisr msgport based on pkt hash

10 years agonetisr: Inline netisr_cpuport() and netisr_curport()
Sepherosa Ziehau [Thu, 2 May 2013 06:29:30 +0000 (14:29 +0800)]
netisr: Inline netisr_cpuport() and netisr_curport()

These two functions do nothing more than just return pointer to the
element in the array.

Per our header file naming convention, put these two functions in
net/netisr2.h

10 years ago<pthread.h>: Adjust the visibility of pthread_{get,set}stackaddr() protos.
Sascha Wildner [Tue, 30 Apr 2013 22:18:03 +0000 (00:18 +0200)]
<pthread.h>: Adjust the visibility of pthread_{get,set}stackaddr() protos.

The functions were removed from issue 7 of the specification.

http://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xsh_chap01.html

10 years agokernel - Terminate ddb backtraces at Xfast_syscall
Matthew Dillon [Mon, 29 Apr 2013 19:27:34 +0000 (12:27 -0700)]
kernel - Terminate ddb backtraces at Xfast_syscall

* Terminate ddb backtraces at Xfast_syscall to try to avoid double-faults
  from recursing into garbage.

10 years agoMerge <machine/uvparam.h> into <time.h> and remove it.
Sascha Wildner [Mon, 29 Apr 2013 16:23:11 +0000 (18:23 +0200)]
Merge <machine/uvparam.h> into <time.h> and remove it.

Its only purpose was to define separate CLK_TCK and CLOCKS_PER_SEC per
platform, all of which were 128. It also was missing for vkernel64
architecture.

FreeBSD has since merged it into <time.h>, too.

10 years agohammer2 - Major restructuring, part 2/several
Matthew Dillon [Sun, 28 Apr 2013 23:24:56 +0000 (16:24 -0700)]
hammer2 - Major restructuring, part 2/several

* Stabilization pass on hammer2_inode_connect() and
  hammer2_hardlink_consolidate().  Adjust the API to accomodate
  requirements (primarily that the caller is responsible for holding
  the inode locked and for replacing ip->chain).

* Add hammer2_inode_repoint() to handle the guts of replacing ip->chain.

* Flush code shouldn't be messing the chain->bref when deleting the chain
  as the chain may be used in a duplication operation after the call.

* basic rm/mv/ln operations now work (note: we still need to code the
  reparenting of sub-chains based on chain->duplink, and hardlinks are
  still buggy when parent directories get renamed).

10 years agosbp(4): Support MAXPHYS up to 512KB
François Tigeot [Sun, 28 Apr 2013 13:53:56 +0000 (15:53 +0200)]
sbp(4): Support MAXPHYS up to 512KB

- We need at least two OCBs with indirect pointers allocated in a 4KB page.
- SBP_MAXPHYS can increase to 1MB once we separate management OCB/ORB
  which usually does not need indirect pointers.
- We have to increase SBP_DMA_SIZE for MAXPHYS larger than 1MB.

Obtained-from: FreeBSD

10 years agosbp(4): Sync sbp.h with FreeBSD
François Tigeot [Sun, 28 Apr 2013 12:56:24 +0000 (14:56 +0200)]
sbp(4): Sync sbp.h with FreeBSD

* Change u_intXX_t to uintXX_t.

* Change a couple of 'unsigned long's to uint32_t where appropriate.

* Define Logical Unit Reset so it can be used in sbp_targ

Obtained-from: FreeBSD

10 years agousr.sbin/Makefile: Fix typo from the last commit.
Sascha Wildner [Sun, 28 Apr 2013 08:52:47 +0000 (10:52 +0200)]
usr.sbin/Makefile: Fix typo from the last commit.

10 years agoRemove pca and speaker device remains (both deleted).
Sascha Wildner [Sun, 28 Apr 2013 08:27:14 +0000 (10:27 +0200)]
Remove pca and speaker device remains (both deleted).

10 years agonetisr: Function renaming; no functional changes
Sepherosa Ziehau [Sun, 28 Apr 2013 08:12:58 +0000 (16:12 +0800)]
netisr: Function renaming; no functional changes

This cleans up code for keeping input packets' hash instead of masking
the hash with ncpus2_mask.  netisr_hashport(), which maps packet hash
to netisr port, will be added soon.

10 years agoRemove <machine/if_wl_wavelan.h>, which was for the deleted wl(4) driver.
Sascha Wildner [Sun, 28 Apr 2013 08:03:53 +0000 (10:03 +0200)]
Remove <machine/if_wl_wavelan.h>, which was for the deleted wl(4) driver.

10 years agoRemove some header files for drivers that were deleted.
Sascha Wildner [Sun, 28 Apr 2013 07:48:25 +0000 (09:48 +0200)]
Remove some header files for drivers that were deleted.

10 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 28 Apr 2013 07:49:09 +0000 (00:49 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

10 years agohammer2 - Major restructuring, part 1/several
Matthew Dillon [Sun, 28 Apr 2013 05:38:20 +0000 (22:38 -0700)]
hammer2 - Major restructuring, part 1/several

* This breaks a lot of things.  The next few commits will get it all
  working again.

* Significantly rework the data structures.  Instead of embedding the
  RBTREE for a chain's children in the chain, the chain instead points
  to a secondary structure containing the RBTREE.

  Chains can no longer be moved within the in-memory topology.  That is,
  if a file is renamed or a block is resized or a block is moved into or
  out of an indirect block, the in-memory chain representing that block
  is NOT moved.  Instead, the in-memory chain is marked deleted and a
  copy is created at the new location.  Both the old and the new chain
  reference the same secondary structure and thus share the same RBTREE,
  and reference the same media storage.

  In addition, chain->duplink points from the deleted chain to its relocated
  copy and maintains a reference on the target until the deleted chain is
  deallocated.  It is possible for the linked list to span more than one
  element.

  This link will soon be used to retarget inode->chain pointers (which can
  wind up pointing to stale data) and also eventually effect chain->parent
  traversals (real parent becomes chain->parent->[duplink*]).  A rethink
  might be needed down the line.

* This will allow the flush code to run 100% asynchronous from the
  frontend and still be able to flush to a synchronization point no
  matter how complex a set of changes have occured to the filesystem
  concurrent to the flush (but after its synchronization point).

* The change also stabilizes chain->parent, which simplifies quite a bit
  of code.

* Simplify nearly all the hammer2_chain_*() API functions, and other
  functions.

* Add a hammer2_trans (transaction) structure to keep track of modifying
  transactions.  This will be flushed out later and used to detect flush
  synchronization points.  It currently contains the transaction id.

* Start adding API infrastructure and start reworking the flush and other
  tree-modifying code to work under the new abstraction.

10 years agonetisr: Function renaming; no functional changes
Sepherosa Ziehau [Sun, 28 Apr 2013 06:53:57 +0000 (14:53 +0800)]
netisr: Function renaming; no functional changes

10 years agohammer2 - Fix compiler warnings
Matthew Dillon [Sun, 28 Apr 2013 05:36:42 +0000 (22:36 -0700)]
hammer2 - Fix compiler warnings

* Fix compiler warnings

11 years agointr: Don't embed struct thread in intr_info
Sepherosa Ziehau [Sat, 27 Apr 2013 01:54:27 +0000 (09:54 +0800)]
intr: Don't embed struct thread in intr_info

After the per-cpu IDT support, the intr_info array grows so large that
embedding struct thread in intr_info wastes too much memory.  After this
commit, the intr_info.i_thread is allocated on demand.

Noticed-by: dillon@
11 years agokernel/ng_iface: Add missing braces.
Sascha Wildner [Sat, 27 Apr 2013 01:03:29 +0000 (03:03 +0200)]
kernel/ng_iface: Add missing braces.

11 years agokernel/hptiop: Add missing braces.
Sascha Wildner [Sat, 27 Apr 2013 00:57:05 +0000 (02:57 +0200)]
kernel/hptiop: Add missing braces.

11 years agoRemove some trailing whitespace in the manpages.
Sascha Wildner [Wed, 24 Apr 2013 18:18:39 +0000 (20:18 +0200)]
Remove some trailing whitespace in the manpages.

11 years agogpio/dsched/devfs: Fix wrong lock checks.
Sascha Wildner [Tue, 23 Apr 2013 22:15:05 +0000 (00:15 +0200)]
gpio/dsched/devfs: Fix wrong lock checks.

11 years agolibmpfr: Update from version 3.1.0 to 3.1.2
John Marino [Tue, 23 Apr 2013 20:00:32 +0000 (22:00 +0200)]
libmpfr: Update from version 3.1.0 to 3.1.2

Changes from version 3.1.0 to version 3.1.1:
- Improved MPFR manual.
- Test coverage: 96.5% lines of code.
- Bug fixes, see <http://www.mpfr.org/mpfr-3.1.0/#fixed>

Changes from version 3.1.1 to version 3.1.2:
- Bug fixes, see <http://www.mpfr.org/mpfr-3.1.1/#fixed>

11 years agoMerge branch 'vendor/MPFR'
John Marino [Tue, 23 Apr 2013 20:35:58 +0000 (22:35 +0200)]
Merge branch 'vendor/MPFR'

11 years agoUpgrade MPFR from 3.1.0 to 3.1.2 on the vendor branch gitea/vendor/MPFR origin/vendor/MPFR
John Marino [Tue, 23 Apr 2013 19:48:02 +0000 (21:48 +0200)]
Upgrade MPFR from 3.1.0 to 3.1.2 on the vendor branch

11 years agodiff utils: Update from version 3.2 to 3.3
John Marino [Tue, 23 Apr 2013 19:02:49 +0000 (21:02 +0200)]
diff utils: Update from version 3.2 to 3.3

** New features
--new-file (-N) and --unidirectional-new-file now allow comparisons to
"-".  A standard input that's closed acts like a nonexistent file.

A file name containing spaces, double quotes, backslashes or control
characters is now encoded in a diff header as a double-quoted C string
literal.  The escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v and
\ooo (a three-digit octal number between 0 and 255) are used.

11 years agoMerge branch 'vendor/DIFFUTILS'
John Marino [Tue, 23 Apr 2013 19:32:32 +0000 (21:32 +0200)]
Merge branch 'vendor/DIFFUTILS'

11 years agoUpgrade diffutils from 3.2 to 3.3 on the vendor branch gitea/vendor/DIFFUTILS origin/vendor/DIFFUTILS
John Marino [Tue, 23 Apr 2013 18:22:30 +0000 (20:22 +0200)]
Upgrade diffutils from 3.2 to 3.3 on the vendor branch

11 years agogrep utils: Update from version 2.12 to 2.14
John Marino [Tue, 23 Apr 2013 17:04:18 +0000 (19:04 +0200)]
grep utils: Update from version 2.12 to 2.14

=== 2.14 Bug fixes ===
* grep -i '^$' could exit 0 (i.e., report a match) in a multi-byte locale,
  even though there was no match, and the command generated no output.
  E.g., seq 2 | LC_ALL=en_US.utf8 grep -il '^$' would mistakenly print
  "(standard input)".  Related, seq 9 | LC_ALL=en_US.utf8 grep -in '^$'
  would print "2:4:6:8:10:12:14:16" and exit 0.  Now it prints nothing
  and exits with status of 1.  [bug introduced in grep-2.6]
* 'grep' no longer falsely reports text files as being binary on file
  systems that compress contents or that store tiny contents in metadata.

=== 2.13 Bug fixes  ===
* grep -i, in a multi-byte locale, when matching a line containing a character
  like the UTF-8 Turkish I-with-dot (U+0130) (whose lower-case representation
  occupies fewer bytes), would print an incomplete output line.
  Similarly, with a matched line containing a character (e.g., the Latin
  capital I in a Turkish UTF-8 locale), where the lower-case representation
  occupies more bytes, grep could print garbage.
  [bug introduced in grep-2.6]
* --include and --exclude can again be combined, and again apply to
  the command line, e.g., "grep --include='*.[ch]' --exclude='system.h'
  PATTERN *" again reads all *.c and *.h files except for system.h.
  [bug introduced in grep-2.6]

=== New 2.13 features ===
* 'grep' without -z now treats a sparse file as binary, if it can
  easily determine that the file is sparse.

11 years agoMerge branch 'vendor/GREP'
John Marino [Tue, 23 Apr 2013 17:53:14 +0000 (19:53 +0200)]
Merge branch 'vendor/GREP'

11 years agoUpgrade grep from 2.12 to 2.14 on the vendor branch
John Marino [Tue, 23 Apr 2013 14:44:50 +0000 (16:44 +0200)]
Upgrade grep from 2.12 to 2.14 on the vendor branch

11 years agolibexpat: remove local modification
John Marino [Tue, 23 Apr 2013 14:19:27 +0000 (16:19 +0200)]
libexpat: remove local modification

This was a modification added to implement CVE-2009-3720.
That CVE is included in 2.1.0, and this change was left over.
Remove the modification; there are now no differences from the
vendor branch.

11 years agolibexpat (libbsdxml): Upgrade from version 2.0.1 to 2.1.0
John Marino [Tue, 23 Apr 2013 11:38:06 +0000 (13:38 +0200)]
libexpat (libbsdxml): Upgrade from version 2.0.1 to 2.1.0

This is a security update.  Bug fixes since Release 2.0.1:
  #1742315: Harmful XML_ParserCreateNS suggestion.
  #2895533: CVE-2012-1147 - Resource leak in readfilemap.c.
  #1785430: Expat build fails on linux-amd64 with gcc version>=4.1 -O3.
  #1983953, 2517952, 2517962, 2649838:
            Build modifications using autoreconf instead of buildconf.sh.
  #2815947, #2884086: OBJEXT and EXEEXT support while building.
  #1990430: CVE-2009-3720 - Parser crash with special UTF-8 sequences.
  #2517938: xmlwf should return non-zero exit status if not well-formed.
  #2517946: Wrong statement about XMLDecl in xmlwf.1 and xmlwf.sgml.
  #2855609: Dangling positionPtr after error.
  #2894085: CVE-2009-3560 - Buffer over-read and crash in big2_toUtf8().
  #2958794: CVE-2012-1148 - Memory leak in poolGrow.
  #2990652: CMake support.
  #3010819: UNEXPECTED_STATE with a trailing "%" in entity value.
  #3206497: Unitialized memory returned from XML_Parse.
  #3287849: make check fails on mingw-w64.
  #3496608: CVE-2012-0876 - Hash DOS attack.

New Features / API changes:
  Added new API member XML_SetHashSalt() that allows setting an intial
    value (salt) for hash calculations. This is part of the fix for
    bug #3496608 to randomize hash parameters.
  When compiled with XML_ATTR_INFO defined, adds new API member
    XML_GetAttributeInfo() that allows retrieving the byte
    offsets for attribute names and values (patch #3446384).
  Added CMake build system.
    See bug #2990652 and patch #3312568.
  Added run-benchmark target to Makefile.in - relies on testdata module
    present in the same relative location as in the repository.

11 years agoMerge branch 'vendor/EXPAT'
John Marino [Tue, 23 Apr 2013 13:56:15 +0000 (15:56 +0200)]
Merge branch 'vendor/EXPAT'

11 years agoUpgrade Expat from 2.0.1 to 2.1.0 on the vendor branch gitea/vendor/EXPAT origin/vendor/EXPAT
John Marino [Tue, 23 Apr 2013 13:54:59 +0000 (15:54 +0200)]
Upgrade Expat from 2.0.1 to 2.1.0 on the vendor branch

11 years agobuildworld - Reorder libcrypto to before libradius
Matthew Dillon [Tue, 23 Apr 2013 05:29:41 +0000 (22:29 -0700)]
buildworld - Reorder libcrypto to before libradius

* Reorder libcrypto to build it before libradius.  A future libradius
  may wind up depending on it, so get this out of the way now.

11 years agoSync zoneinfo database with tzdata2013c from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Mon, 22 Apr 2013 18:08:50 +0000 (20:08 +0200)]
Sync zoneinfo database with tzdata2013c from ftp://ftp.iana.org/tz/releases

* antarctica/australasia/zone.tab: Fix times of habitation for Macquarie
    to agree with the Tasmania Parks & Wildlife Service history, which
    indicates that permanent habitation was 1899-1919 and 1948 on. It is
    politically part of Australia, not Antarctica. (Thanks to Tobias
    Conradi.) Also, sort Macquarie more consistently with other parts of
    Australia. (Thanks to Tim Parenti.)

* asia: Palestine observed DST starting March 29, 2013. (Thanks to
    Steffen Thorsen.)  From 2013 on, Gaza and Hebron both observe DST,
    with the predicted rules being the last Thursday in March at 24:00
    to the first Friday on or after September 21 at 01:00. Also, fix
    some historical data for Palestine to agree with that of
    timeanddate.com.

* southamerica: Assume that the recent change to Paraguay's DST rules is
    permanent, by moving the end of DST to the 4th Sunday in March every
    year. (Thanks to Carlos Raul Perasso.)

11 years agonrelease: Handle dports' /usr/distfiles better and remove /usr/dports.
Sascha Wildner [Sun, 21 Apr 2013 11:27:29 +0000 (13:27 +0200)]
nrelease: Handle dports' /usr/distfiles better and remove /usr/dports.

11 years agonrelease: Add pkg(8) to our images and ISOs.
Sascha Wildner [Sun, 21 Apr 2013 09:15:06 +0000 (11:15 +0200)]
nrelease: Add pkg(8) to our images and ISOs.

'make release' now requires an additional directory with the dports tree.

This commit adds some more steps (such as running 'pkg autoremove').

In-discussion-with: marino

11 years agonrelease: Remove an unused variable.
Sascha Wildner [Sat, 20 Apr 2013 11:33:16 +0000 (13:33 +0200)]
nrelease: Remove an unused variable.

11 years agoUpdate the pciconf(8) database.
Sascha Wildner [Fri, 19 Apr 2013 16:22:36 +0000 (18:22 +0200)]
Update the pciconf(8) database.

April 4, 2013 snapshot from http://pciids.sourceforge.net/

11 years agonrelease: Don't install the git meta-pkg (it will pull in gitk).
Sascha Wildner [Fri, 19 Apr 2013 15:53:25 +0000 (17:53 +0200)]
nrelease: Don't install the git meta-pkg (it will pull in gitk).

11 years agopowerd - Fix load factor calculation bug for niced processes
Matthew Dillon [Thu, 18 Apr 2013 17:17:49 +0000 (10:17 -0700)]
powerd - Fix load factor calculation bug for niced processes

* A type-o in the load calculation code was not counting niced
  processes at all, so if you have a lot of niced processes
  (like ffmpeg's which nice themselves down), powerd can wind
  up restricting them all to a single cpu.  Doh!

11 years agoinstaller: Make it possible to start the installer from a running system.
Sascha Wildner [Wed, 17 Apr 2013 20:57:04 +0000 (22:57 +0200)]
installer: Make it possible to start the installer from a running system.

Also clean up a little and add a small manual page.

Note that the installer isn't hooked into the normal build/install per
this commit. These changes are mainly to help with testing and debugging.

11 years agoMakefile.inc: Rework automatic backup (bug 2527)
John Marino [Tue, 16 Apr 2013 00:42:13 +0000 (02:42 +0200)]
Makefile.inc: Rework automatic backup (bug 2527)

There were three main problems with the recently added backup feature:
1. It didn't work over NFS
2. It didn't work when a non-root built world the second time
3. It didn't use DESTDIR which had potential to conflict backups

It also previously featured "NO_BACKUP" which turned off the automatic
backup feature.  To fix the #2 problem, the install timestamp has been
removed, so to avoid unwanted backups for multiple installworlds after
one buildworld, the user needs to pass NO_BACKUP in the command line.

This patch was contributed by Thomas Nikolajsen with minor modifications
added by John Marino.

http://bugs.dragonflybsd.org/issues/2527

11 years agokernel/checkpoint: Fix wrong sizeof (p_sigacts is a pointer).
Sascha Wildner [Tue, 16 Apr 2013 17:13:19 +0000 (19:13 +0200)]
kernel/checkpoint: Fix wrong sizeof (p_sigacts is a pointer).

11 years agokernel/isa: Remove redundant check. Already depends on isa per 'files'.
Sascha Wildner [Tue, 16 Apr 2013 17:01:01 +0000 (19:01 +0200)]
kernel/isa: Remove redundant check. Already depends on isa per 'files'.

11 years agokernel: Use NULL for pointers in DRIVER_MODULE()s.
Sascha Wildner [Tue, 16 Apr 2013 16:48:30 +0000 (18:48 +0200)]
kernel: Use NULL for pointers in DRIVER_MODULE()s.

11 years agokernel/ndis: Fix typo in DRIVER_MODULE().
Sascha Wildner [Tue, 16 Apr 2013 16:37:19 +0000 (18:37 +0200)]
kernel/ndis: Fix typo in DRIVER_MODULE().

11 years agolibc: Fix some warnings.
Sascha Wildner [Tue, 16 Apr 2013 16:22:22 +0000 (18:22 +0200)]
libc: Fix some warnings.

11 years agomandoc.3: Some small fixes.
Sascha Wildner [Mon, 15 Apr 2013 21:39:28 +0000 (23:39 +0200)]
mandoc.3: Some small fixes.

11 years agomandoc(1): Adjust Makefile for 1.12.1.
Sascha Wildner [Sun, 14 Apr 2013 09:55:10 +0000 (11:55 +0200)]
mandoc(1): Adjust Makefile for 1.12.1.

11 years agoAdd libmandoc.
Sascha Wildner [Sun, 14 Apr 2013 09:49:23 +0000 (11:49 +0200)]
Add libmandoc.

11 years agoMerge branch 'vendor/MDOCML'
Sascha Wildner [Mon, 15 Apr 2013 20:19:59 +0000 (22:19 +0200)]
Merge branch 'vendor/MDOCML'

11 years agorm(1): Add -x option to prevent recursive rm crossing mount points.
Sascha Wildner [Mon, 15 Apr 2013 20:11:00 +0000 (22:11 +0200)]
rm(1): Add -x option to prevent recursive rm crossing mount points.

Submitted-by: Joris Giovannangeli <joris@giovannangeli.fr>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2546>

11 years agobnx: Save inetrrupt mailbox register in bnx_intr_data
Sepherosa Ziehau [Mon, 15 Apr 2013 14:27:47 +0000 (22:27 +0800)]
bnx: Save inetrrupt mailbox register in bnx_intr_data

11 years agobnx: There is no non-oneshot MSI interrupt handler now
Sepherosa Ziehau [Mon, 15 Apr 2013 14:09:47 +0000 (22:09 +0800)]
bnx: There is no non-oneshot MSI interrupt handler now

11 years agobnx: Chips supported by this driver always support "one shot" MSI
Sepherosa Ziehau [Mon, 15 Apr 2013 13:34:43 +0000 (21:34 +0800)]
bnx: Chips supported by this driver always support "one shot" MSI

11 years agobnx: Move status block related fields into bnx_intr_data
Sepherosa Ziehau [Mon, 15 Apr 2013 13:21:18 +0000 (21:21 +0800)]
bnx: Move status block related fields into bnx_intr_data

For MSI-X support, each MSI-X vector needs one status block.

11 years agobnx: Properly setup RX return ring cons index position
Sepherosa Ziehau [Sun, 14 Apr 2013 12:46:08 +0000 (20:46 +0800)]
bnx: Properly setup RX return ring cons index position

11 years agobnx: Use pre-configured array to setup TX ring's mailbox register
Sepherosa Ziehau [Sun, 14 Apr 2013 10:51:56 +0000 (18:51 +0800)]
bnx: Use pre-configured array to setup TX ring's mailbox register

11 years agobnx: Create dedicated thread for RX standard ring refilling
Sepherosa Ziehau [Sun, 14 Apr 2013 08:29:06 +0000 (16:29 +0800)]
bnx: Create dedicated thread for RX standard ring refilling

The RX standard ring descriptors and RX standard producer index register
are updated only in the dedicated thread.  The RX standard ring software
ring data are shared between RX return rings' processing threads and the
dedicated thread.  The RX standard ring software ring data are updated in
lockless fashion, since only one RX return ring could be the owner of the
entry of RX standard ring software ring data.

The RX standard ring refilling thread scheduling is optimized that only
when certain amount of packets are received by the RX return ring, the
RX standard ring refiling thread will be scheduled.

This prepares for the multiple RX rings support.

11 years agotouch(1): Constify where appropriate
Eitan Adler [Sat, 13 Apr 2013 20:37:10 +0000 (16:37 -0400)]
touch(1): Constify where appropriate

Reported-by: emaste@FreeBSD.org
11 years agoImport mdocml-1.12.1
Sascha Wildner [Sun, 14 Apr 2013 08:03:58 +0000 (10:03 +0200)]
Import mdocml-1.12.1

11 years agopathconf.2: Mention lpathconf() in the ERRORS section.
Sascha Wildner [Sat, 13 Apr 2013 07:31:42 +0000 (09:31 +0200)]
pathconf.2: Mention lpathconf() in the ERRORS section.