dragonfly.git
12 years agoinstallkernel: Copy /boot/kernel/initrd.img to /boot/kernel.old too.
Sascha Wildner [Mon, 2 May 2011 23:11:36 +0000 (01:11 +0200)]
installkernel: Copy /boot/kernel/initrd.img to /boot/kernel.old too.

Reported-by: Tim Darby <t+dfbsd@timdarby.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2059>

12 years agogcc44: provide pragma pack(push) & pragma pack(pop) support
John Marino [Sun, 1 May 2011 19:12:37 +0000 (21:12 +0200)]
gcc44: provide pragma pack(push) & pragma pack(pop) support

12 years agoAdd a LINT64 kernel config.
Sascha Wildner [Sun, 1 May 2011 17:09:07 +0000 (19:09 +0200)]
Add a LINT64 kernel config.

12 years agokernel: Make ep(4) and ie(4) compilable into the x86_64 kernel.
Sascha Wildner [Sun, 1 May 2011 16:54:12 +0000 (18:54 +0200)]
kernel: Make ep(4) and ie(4) compilable into the x86_64 kernel.

12 years agoinfokey(1): Add new Texinfo man page for infokey
John Marino [Sun, 1 May 2011 15:40:37 +0000 (17:40 +0200)]
infokey(1): Add new Texinfo man page for infokey

12 years agoTexinfo: Upgrade version from 4.8 to 4.13
John Marino [Sun, 1 May 2011 11:07:06 +0000 (13:07 +0200)]
Texinfo: Upgrade version from 4.8 to 4.13

This is the first upgrade of Texinfo in nearly 6 years.
There are 3 new executables:
  * texi2dvi
  * texi2pdf
  * pdftexi2dvi
As the host version 4.8 can not build the tex.info file, a full buildworld
is required to obtain this upgrade.

====================
 4.9 (29 June 2007)
====================
* GPLv3.
* texi2dvi:
  . new mode --build=tidy which supports compilation in a separate
    directory, where intermediate files are preserved.
  . new option --build-dir, to specify where the tidy build will take
    place, either locally or globally.  This allows avoiding the clutter
    while preserving auxiliary files.
  . new support for AUC-TeX: texi2dvi (weakly) supports arguments a la
    TeX such as `\nonstopmode\input{file.tex}'.
  . new options --ps and --dvipdf, useful especially for pstricks docs.
  . new option --src-specials, passed to TeX.
* texinfo.tex:
  . Latin1, Latin2, Latin9, and UTF-8 are supported -- only as well as
    the Computer Modern fonts can manage, which means primarily English
    and western European languages, to a limited extent.
  . png and jpg images supported in pdf output.
  . new Russian, Serbian, and Ukrainian translations for texinfo.tex:
    txi-ru.tex, txi-sr.tex, txi-uk.tex.
  . section names with \ characters work properly in pdf outlines.
  . have .toc files use @ as the escape character, instead of \.

==============
 Version 4.10
==============
Never published.

=========================
 4.11 (9 September 2007)
=========================
* Language:
  . @documentlanguage now supports an optional country code
    specification after the language code, a la gettext.
  . new command @allowcodebreaks controls breaks at _ and - within @code.
  . new command @frenchspacing controls spacing after sentences.
  . new command @fonttextsize allows changing body text font size to 10pt.
  . new command @textdegree{} produces the normal degrees symbol.
  . new command @thischapternum can be used in TeX headers/footers.
  . new commands for quotes: @quotedblleft @quotedblright
     @quoteleft @quoteright  @quotedblbase @quotesinglbase
     @guillemetleft @guillemetright @guilsinglleft @guilsinglright.
  . new option @set txicodequoteundirected produces an undirected quote
    in code and example output, instead of the regular right quote.
  . new option @set txicodequotebacktick produces a grave accent in
    code and example output, instead of the regular left quote.
* makeinfo:
  . The @documentlanguage locale is used to translate various doc strings.
  . --enable-encoding is now the default, meaning Info and plain text
    output use 8-bit characters given a supported @documentencoding.
  . new option --css-ref=URL for creating a stylesheet <link> in HTML.
  . new option --transliterate-file-names to use a reduction-to-ASCII
    algorithm for split HTML file names, useful for non-Latin-based langs.
  . @enddots{} outputs three dots instead of four, for consistency with
    texinfo.tex.
  . the Local Variables coding: setting written by --enable-encoding now
    comes at the very end, after the tags table, so that Emacs can find
    it in more cases.
  . @allow-recursion (not documented) is deprecated and produces a warning.
  . @quote-args (not documented) is now the default behavior.
  . centering and such take account of character widths.
  . the --reference-limit option is now a no-op.
  . improvements to XML and Docbook output and the DTD.
* texinfo.tex:
  . @thissection can now be used in custom headings, and @thischapter
    works reliably even without @set chapternewpage.  Custom headings
    have additional flexibility as well.
* texi2dvi:
  . pdftexi2dvi is a new wrapper to `texi2dvi --pdf', equal to texi2pdf,
    for the sake of AUC-TeX which prepends `pdf' to the compilation
    command when requested to produce PDF.
* info:
  . look for info files in the current directory first, by default.
  . when calling man, use -a if no explicit section is found.
  . avoid showing the top(1) man page for nonexistent info files.
* install-info:
  . new options --section-regex, --remove-exactly, --debug, --test.
* Distribution:
  . autoconf 2.60, automake 1.10, gettext 0.16.1.
  . gettext support now [external].
  . new translations: hu (Hungarian), rw (Kinyarwandan), vi (Vietnamese).
  . most common sources imported from gnulib.

======================
 4.12 (20 April 2008)
======================
* Language:
  . new commands @clicksequence, @click, and @clickstyle for documenting
    GUI sequences, and @arrow for the default glyph used.
  . new commands @geq{} and @leq{} for the normal >= and <= relations.
* install-info:
  . lzma compression supported.
  . Much work towards compatibility with Debian's independent
    implementation.  Changes in behavior:
    - new entries are formatted to start at column 34 by default.
    - existing entries are replaced by default.
    - new sections are alphabetized among existing sections.
    - if an entry being removed is the last one in a section, the
      section is also removed.
  . Also many new options:
    --section REGEX TITLE.
    --no-indent: disable formatting of new entries.
    --menuentry, --name: specify left-hand side of an entry.
    --dry-run: alias for --test.
    --regex REGEX: renamed from --section regex, adds to all sections
      matching REGEX by default.
    --add-once: add only to first specified or matching section.
    --align COL: start description at column COL.
    --calign COL: start continuation lines in description at COL.
    --max-width COL: wrap the description at COL.
  . New section in the Texinfo manual describing all this.
* info:
  Our goal with these changes to the default interface is to make Info
  documents more easily and quickly readable, especially by non-experts.
  . the PageUp and PageDown keys move through the whole document by
    default, instead of just the current node.
  . the h command shows the basic help, and H starts the Info tutorial.
  . the newly-bound x command deletes the current window, e.g. within help.
  . the scroll-step variable is set to 1 by default, for smooth scrolling.
  . the cursor-movement-scrolls-p variable is set to 1 by default, so
    link searches look through the whole document.
  . regular expression searches are supported, and are the default for
    both regular and incremental searches.
  . the new R command toggles between regexp and literal-string searches.
  . the new variable scroll-last-node controls scrolling at the end of
    the last node; by default, it now simply reports there are no more
    nodes.  To restore the old behavior, set scroll-last-node=Scroll.
  . the precise line number specified in index entries is used if avail.
  . --usage=info shows usage for standalone Info.
  . lzma compression supported.
* Distribution:
  . lang support for no removed/renamed to nb, per Norwegian translators.
  . new translation: es.
  . bug fixes in make check (and elsewhere).
  . gettext 0.17, automake 1.10.1, autoconf 2.62.

==========================
 4.13 (18 September 2008)
==========================
* A reference card for Texinfo is now available, in doc/refcard.  For
  convenience, preformatted PDFs for letter-size and A4 paper are included.
* makeinfo:
  . new option --internal-links for HTML output, to write a tsv file
    mapping indexed/toc terms to links, for easy reference from external
    documents.
  . - as an input file name reads standard input.
* info:
  . support for multibyte encodings such as UTF-8.
  . new option --show-malformed-multibytes, to display malformed multibyte
  sequences.
  . new environment variable INFO_MAN_COMMAND sets the name of man binary
  (use it if you a need to override PATH settings).
* install-info:
  . bug fix: support names w/ embedded periods (e.g., config.status) again.
* Distribution:
  . autoconf 2.63.

12 years agoMerge branch 'vendor/TEXINFO'
John Marino [Sun, 1 May 2011 14:20:09 +0000 (16:20 +0200)]
Merge branch 'vendor/TEXINFO'

12 years agoUpgrade Texinfo from 4.8 to 4.13 on the vendor branch avalon/vendor/TEXINFO
John Marino [Sat, 30 Apr 2011 21:52:02 +0000 (23:52 +0200)]
Upgrade Texinfo from 4.8 to 4.13 on the vendor branch

12 years agoRename texinfo-4 directory to "texinfo" in vendor branch
John Marino [Sat, 30 Apr 2011 21:34:10 +0000 (23:34 +0200)]
Rename texinfo-4 directory to "texinfo" in vendor branch

12 years agokernel: Move fe(4) to i386.
Sascha Wildner [Sun, 1 May 2011 12:51:42 +0000 (14:51 +0200)]
kernel: Move fe(4) to i386.

12 years agokernel: Fix some x86_64 warnings.
Sascha Wildner [Sun, 1 May 2011 10:36:39 +0000 (12:36 +0200)]
kernel: Fix some x86_64 warnings.

12 years agokernel: Move sbni(4)'s PCI attachment to i386, too.
Sascha Wildner [Sun, 1 May 2011 09:38:57 +0000 (11:38 +0200)]
kernel: Move sbni(4)'s PCI attachment to i386, too.

12 years agonetgraph: Fix some x86_64 warnings.
Sascha Wildner [Sun, 1 May 2011 09:12:10 +0000 (11:12 +0200)]
netgraph: Fix some x86_64 warnings.

12 years agoswapon(8): Fix "swapctl -l".
Sascha Wildner [Sat, 30 Apr 2011 22:27:05 +0000 (00:27 +0200)]
swapon(8): Fix "swapctl -l".

Without -s, swapctl -l would report 0 for swap size and used swap because
some variables were initialized only for the -s case. Just remove the
"if (sflag)" around the calculation.

Reported-by: Joachim de Groot <jdegroot@web.de>
Taken-from:  FreeBSD

12 years agoUpdate files for less-443 import.
Peter Avalos [Sat, 30 Apr 2011 22:13:13 +0000 (12:13 -1000)]
Update files for less-443 import.

12 years agoMerge branch 'vendor/LESS'
Peter Avalos [Sat, 30 Apr 2011 21:59:07 +0000 (11:59 -1000)]
Merge branch 'vendor/LESS'

12 years agoImport less-443.
Peter Avalos [Sat, 30 Apr 2011 21:49:52 +0000 (11:49 -1000)]
Import less-443.

* Change search behavior such that when a search is given an explicit
  pattern, the entire displayed screen is included in the search and
  not just the portion after the target line.

* Add -A option to change search behavior to the old way: only
  the portion of the screen after the target line is searched.

* Add %F formatting to prompt strings, replaced by the last component
  of the input file.

* Control-G while editing a command exits the command.

* Less now exits with status 2 if control-C is pressed and -K is in effect.

* Fix "ungetc overflow" when passing long commands via the -p option.

* Fix bug in using line filtering via the & command
  in combination with -i and -I.

* Fix bug in handling negative arguments to the -j option.

* Fix bug in handling %t in prompt strings.

* Improve handling of long option names.

* Improve percentage calculation for very large files.

12 years agokernel: Fix some printf format warnings on x86_64.
Sascha Wildner [Sat, 30 Apr 2011 20:57:06 +0000 (22:57 +0200)]
kernel: Fix some printf format warnings on x86_64.

12 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
John Marino [Sat, 30 Apr 2011 20:38:01 +0000 (22:38 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

12 years agoThis is a complete overhaul in the diffutils makefile system. The
John Marino [Sat, 30 Apr 2011 14:05:09 +0000 (16:05 +0200)]
This is a complete overhaul in the diffutils makefile system.  The
directories gnu/usr.bin/diff3 and gnu/usr.bin/sdiff have been removed
as a result.  Those directories also used the deprecated patch approach.

Like grep before it, diffutils uses its own regex library.  The
previous version used gnuregex.

The README.DELETED was woefully out of date.  It is hoped this overhaul
will make future diffutils upgrades easier.

=========================================================
 Noteworthy changes in release 2.9 (2010-02-11) [stable]
=========================================================

** New features

  New diff option --suppress-blank-empty.

  Bring back support for `diff -NUM', where NUM is a number,
  even when conforming to POSIX 1003.1-2001.  This change reverts to
  the behavior of GNU diff 2.7 and earlier.  This is a change only
  when conforming to POSIX 1003.1-2001; there is no effect when
  conforming to older POSIX versions.

  This change is in response to decisions taken in the January 2005
  Austin Group standardization meeting.  For more details, please see
  "Utility Syntax Guidelines" in the Minutes of the January 2005
  Meeting <http://www.opengroup.org/austin/docs/austin_239.html>.

  sdiff now understands '1' and '2' as synonyms for 'l' and 'r'.

** Changes in behavior

  sdiff and diff3 now invoke diff, not $(bindir)/diff

** Administrivia

  New discussion and bug-reporting address: bug-diffutils@gnu.org

  updated gnulib support

=========================================================
 Noteworthy changes in release 3.0 (2010-05-03) [stable]
=========================================================

** Bug fixes

  diff once again prints the required "\ No newline at end of file" line
  when at least one input lacks a newline-at-EOF and the final hunk plus
  context-length aligns exactly with the end of the newline-lacking file.
  [bug introduced between 2.8.7 and 2.9]

** Changes in behavior

  In context-style diffs, diff prints a portion of a preceding "function"
  line for each hunk, with --show-function-line=RE (-F) or
  --show-c-function (-p).  Now, it trims leading blanks from such lines
  before extracting a prefix.  This is useful especially when a function
  line is so far indented that the name itself would be truncated or not
  included in the limited-width substring that diff appends.

  diff once again reports a difference with the diagnostic
  "Binary files A and B differ" when at least one of the files
  appears to be binary.  From 2.8.4 through diffutils-2.9, it printed
  "Files A and B differ".

12 years agomxge(4): Fix a compilation warning on x86_64 (inlining a function failed).
Sascha Wildner [Sat, 30 Apr 2011 20:09:24 +0000 (22:09 +0200)]
mxge(4): Fix a compilation warning on x86_64 (inlining a function failed).

Add a comment explaining how and why.

In-discussion-with: aggelos

12 years agoMerge branch 'vendor/DIFFUTILS'
John Marino [Sat, 30 Apr 2011 19:58:06 +0000 (21:58 +0200)]
Merge branch 'vendor/DIFFUTILS'

12 years agoUpgrade diffutils from 2.8.7 to 3.0 on the vendor branch
John Marino [Sat, 30 Apr 2011 11:56:40 +0000 (13:56 +0200)]
Upgrade diffutils from 2.8.7 to 3.0 on the vendor branch

12 years agokernel: Make the COMPAT_OLDISA kernel option i386 only.
Sascha Wildner [Sat, 30 Apr 2011 18:34:56 +0000 (20:34 +0200)]
kernel: Make the COMPAT_OLDISA kernel option i386 only.

It is not used in x86_64.

12 years agokernel/x86_64: Separate some i386 only drivers better.
Sascha Wildner [Sat, 30 Apr 2011 12:30:17 +0000 (14:30 +0200)]
kernel/x86_64: Separate some i386 only drivers better.

The following drivers are listed in sys/platform/pc32/conf/files only,
so remove anything that has to do with them from x86_64.

asc ctx cy dgb el gp gsc labpc le rc rdp spigot stl stli tw wt

12 years agogcc44: remove my copyright from dragonfly-unwind.h
John Marino [Sat, 30 Apr 2011 01:09:58 +0000 (03:09 +0200)]
gcc44: remove my copyright from dragonfly-unwind.h

This file was copied from the gnat-aux repository and I didn't notice that
it contained my copyright before committing.

12 years agoGCC: Upgrade to 4.4.6; improved exception handling
John Marino [Fri, 29 Apr 2011 21:04:59 +0000 (23:04 +0200)]
GCC: Upgrade to 4.4.6; improved exception handling

In addition to 70 bug fixes provided by GNU, this version handles
exceptions through the new rtld, which is important to C++.  This
compiler also now incorporates MD_UNWIND_SUPPORT from gnat-aux, but
it's not clear if C++ utilizes this frame unwinding or not yet.

12 years agoMerge branch 'vendor/GCC44'
John Marino [Sat, 30 Apr 2011 00:55:58 +0000 (02:55 +0200)]
Merge branch 'vendor/GCC44'

12 years agoUpgrade GCC from 4.4.5 to 4.4.6 on the vendor branch
John Marino [Fri, 29 Apr 2011 14:17:27 +0000 (16:17 +0200)]
Upgrade GCC from 4.4.5 to 4.4.6 on the vendor branch

12 years agoAdd an nsclpcsio(4) manual page (from OpenBSD).
Sascha Wildner [Fri, 29 Apr 2011 21:51:55 +0000 (23:51 +0200)]
Add an nsclpcsio(4) manual page (from OpenBSD).

12 years agobsd-family-tree: Sync with FreeBSD.
Sascha Wildner [Fri, 29 Apr 2011 09:03:17 +0000 (11:03 +0200)]
bsd-family-tree: Sync with FreeBSD.

12 years agodm(4): Fix a typo in the code.
Sascha Wildner [Fri, 29 Apr 2011 06:23:47 +0000 (08:23 +0200)]
dm(4): Fix a typo in the code.

12 years agodlvsym manpage: cleanup
John Marino [Fri, 29 Apr 2011 04:53:44 +0000 (06:53 +0200)]
dlvsym manpage: cleanup

12 years agodlerror.3: Oops, fix wrong change I did.
Sascha Wildner [Fri, 29 Apr 2011 04:35:45 +0000 (06:35 +0200)]
dlerror.3: Oops, fix wrong change I did.

12 years agosysv_msg: Fix a typo in the code.
Sascha Wildner [Fri, 29 Apr 2011 02:27:17 +0000 (04:27 +0200)]
sysv_msg: Fix a typo in the code.

12 years agolibutil: Create a <util.h> symlink.
Sascha Wildner [Fri, 29 Apr 2011 01:32:53 +0000 (03:32 +0200)]
libutil: Create a <util.h> symlink.

As stuff from NetBSD goes into our libutil, pkgsrc starts detecting that
and assumes we have a <util.h> header, too. But ours is named <libutil.h>
due to FreeBSD heritage.

In an attempt to make life easier and not have to patch packages for this
every time, symlink <util.h> to <libutil.h> for now.

However, it could well be that other packages test for the existence of
<util.h> and (upon finding it) assume we have some NetBSD function in
libutil which we don't have. But we'll see.

As-proposed-by: y0netan1
12 years agodl*(3) manpages: Some cleanup.
Sascha Wildner [Fri, 29 Apr 2011 01:10:05 +0000 (03:10 +0200)]
dl*(3) manpages: Some cleanup.

12 years agompt(4): Sync with FreeBSD.
Sascha Wildner [Thu, 28 Apr 2011 23:54:29 +0000 (01:54 +0200)]
mpt(4): Sync with FreeBSD.

This fixes issues which were observed with the LSI SAS 3081E-R card.

Reported-and-tested-by: <ftigeot@wolfpond.org>
12 years agong_pppoe(4): Fix a typo in the code.
Sascha Wildner [Thu, 28 Apr 2011 23:54:12 +0000 (01:54 +0200)]
ng_pppoe(4): Fix a typo in the code.

12 years agokernel/npx: Fix ambiguous inline assembly.
Sascha Wildner [Thu, 28 Apr 2011 23:53:54 +0000 (01:53 +0200)]
kernel/npx: Fix ambiguous inline assembly.

GNU as converts fld to flds, while clang errors about the missing suffix.

Taken-from: FreeBSD

12 years agokernel: Implement ELF auxinfo entry type AT_EXECPATH
John Marino [Sat, 23 Apr 2011 19:44:10 +0000 (21:44 +0200)]
kernel: Implement ELF auxinfo entry type AT_EXECPATH

Refer to issue 2005.
The new RTLD can optionally use AT_EXECPATH for some of its new
functionality such as libmap.conf and dynamic token expansion.
In the absence of this kernel support, RTLD has a fallback
mechanism that works most of the time, but using it takes a
performance hit.

This patch was tested for some time by various people prior to
the 2.10 branch being created.

12 years agortld-elf: Sync with FreeBSD
John Marino [Wed, 13 Apr 2011 19:20:44 +0000 (21:20 +0200)]
rtld-elf: Sync with FreeBSD

The DragonFly run-time linker receives its first upgrade since TLS was
added.  Highlights include improvements to dl functionality:

dlvsym
dl_iterate_phdr
_rtld_addr_phdr
improved dlfunct

Improved security for dangerous LD environment variables were added.
Several bugs were fixed.
libmap.conf functionality was added.
utrace/ktrace support added.
Improved atexit and cxa_atexit finalization.
ELF symbol versioning using gnu semantics.
ldd and kdump improvments
significant man page updates
dynamic token expansion functionlity added.
new locking mechanism
Support for env var LD_ELF_HINTS_PATH
Support for RTLD_NODELETE and RTLD_NOLOAD flags for dlopen
dlfunc moved from libc to rtld

The next GCC upgrade will take advantage of this rtld upgrade in order
to improve exception handling.  DragonFly has never used the shared
libgcc_s which has impeded (or broke?) C++ exception handling.

This commit syncs rtld-elf to the FreeBSD cerca 16 DEC 2010.  However,
bug fixes between then and 25 March 2011 have been included, but major
functionality changes from the ELF Filter support on 25 DEC 2010 onwards
has been excluded.

12 years agogrep: Delete redundant headers
John Marino [Thu, 28 Apr 2011 05:54:40 +0000 (07:54 +0200)]
grep: Delete redundant headers

It was believed that all the headers deleted in this commit were generated
by the vendor makefile.  The commit message
<http://leaf.dragonflybsd.org/mailarchive/commits/2011-04/msg00216.html>
highlighted that they were actually part of the source tarball.  The
various makefiles have been altered to look for those instead, and
duplicate headers such as config.h, configmake.h, and arg-nonnull.h were
consolidated as well.

12 years agokernel -- vm_object locking: Add vm_object hold to per-object page cleaning.
Venkatesh Srinivas [Thu, 28 Apr 2011 05:49:53 +0000 (22:49 -0700)]
kernel -- vm_object locking: Add vm_object hold to per-object page cleaning.

12 years agoUse ${LN} from <sys.mk> in gdtoa's Makefile.
Peter Avalos [Thu, 28 Apr 2011 00:17:05 +0000 (14:17 -1000)]
Use ${LN} from <sys.mk> in gdtoa's Makefile.

12 years agoRemove unneeded diff to gdtoa vendor source.
Peter Avalos [Wed, 27 Apr 2011 23:56:08 +0000 (13:56 -1000)]
Remove unneeded diff to gdtoa vendor source.

12 years agoMerge branch 'vendor/GDTOA'
Peter Avalos [Wed, 27 Apr 2011 23:51:21 +0000 (13:51 -1000)]
Merge branch 'vendor/GDTOA'

12 years agoImport gdtoa-20110321. avalon/vendor/GDTOA
Peter Avalos [Wed, 27 Apr 2011 23:49:59 +0000 (13:49 -1000)]
Import gdtoa-20110321.

12 years agoUpdate config.h for file-5.06 import.
Peter Avalos [Wed, 27 Apr 2011 23:28:41 +0000 (13:28 -1000)]
Update config.h for file-5.06 import.

12 years agoMerge branch 'vendor/FILE'
Peter Avalos [Wed, 27 Apr 2011 23:28:26 +0000 (13:28 -1000)]
Merge branch 'vendor/FILE'

12 years agosort: Remove GNU sort from base
John Marino [Tue, 26 Apr 2011 21:57:16 +0000 (23:57 +0200)]
sort: Remove GNU sort from base

12 years agosort: Replace GNU sort with NetBSD sort
John Marino [Tue, 26 Apr 2011 21:54:56 +0000 (23:54 +0200)]
sort: Replace GNU sort with NetBSD sort

12 years agosort: modifications needed for DragonFly
John Marino [Tue, 26 Apr 2011 21:48:08 +0000 (23:48 +0200)]
sort: modifications needed for DragonFly

Minor modications are needed to get NetBSD's sort to build on DragonFly
without error.  The emalloc and erealloc functions are actually now
supported on DragonFly within libutil, but they can't be used because
sort is one of the bootstrap tools.  During the bootstrap, libutil is
not available, so the original malloc and realloc function have been
used along with err() to simulate these error-checking functions without
requiring libutil.

12 years agosort: Import NetBSD sort to usr.bin/sort
John Marino [Tue, 26 Apr 2011 21:24:14 +0000 (23:24 +0200)]
sort: Import NetBSD sort to usr.bin/sort

Bring in NetBSD's unmodified version of the sort program.

12 years agoImport file-5.06.
Peter Avalos [Wed, 27 Apr 2011 23:01:23 +0000 (13:01 -1000)]
Import file-5.06.

* fixes broken troff files
* add cdf_ctime() that prints a meaningful error when time cannot
  be converted.
* fix CDF bounds checking
* add lrzip support
* Improve file.man
* fix binary tests on magic entries with masks
* Eliminate MAXPATHLEN and use dynamic allocation
* Fix cdf string buffer setting

12 years agoi386/mp_machdep.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 12:05:54 +0000 (20:05 +0800)]
i386/mp_machdep.c: Remove unused code

12 years agox86_64/mp_machdep.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:55:23 +0000 (19:55 +0800)]
x86_64/mp_machdep.c: Remove unused code

12 years agoi386/mpapic.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:53:36 +0000 (19:53 +0800)]
i386/mpapic.c: Remove unused code

12 years agox86_64/mpapic.c: Remove unused code
Sepherosa Ziehau [Sun, 24 Apr 2011 11:38:59 +0000 (19:38 +0800)]
x86_64/mpapic.c: Remove unused code

12 years agox86_64: isa/clock.c is clean enough to enable -Werror
Sepherosa Ziehau [Sat, 23 Apr 2011 11:59:48 +0000 (19:59 +0800)]
x86_64: isa/clock.c is clean enough to enable -Werror

12 years agoi386: Remove more old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 12:04:06 +0000 (20:04 +0800)]
i386: Remove more old IOAPIC code

12 years agox86_64: Remove more old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 10:59:59 +0000 (18:59 +0800)]
x86_64: Remove more old IOAPIC code

12 years agopci/compat: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 10:59:37 +0000 (18:59 +0800)]
pci/compat: Remove old IOAPIC code

12 years agoi386: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 04:06:02 +0000 (12:06 +0800)]
i386: Remove old IOAPIC code

12 years agox86_64: Remove old IOAPIC code
Sepherosa Ziehau [Sat, 23 Apr 2011 03:07:10 +0000 (11:07 +0800)]
x86_64: Remove old IOAPIC code

12 years agoAF_UNIX: Hold a reference of the unp_conn before executing blocking code
Sepherosa Ziehau [Wed, 27 Apr 2011 07:10:03 +0000 (15:10 +0800)]
AF_UNIX: Hold a reference of the unp_conn before executing blocking code

Since unp_token will be automaticly released upon execution of blocking
code, close of unp_conn could race any code paths that references unp_conn
after executing blocking code.  To fix these races, we simply increment
the reference count of the unp_conn before executig any possibly blocking
code and release the reference count of unp_conn, which may release unp_conn
itself.  This _currently_ does not suffer 0-ref race, since unp_token is
always being held.

12 years agoAF_UNIX: Allocate pcb using M_WAITOK|M_NULLOK instead of M_NOWAIT
Sepherosa Ziehau [Wed, 27 Apr 2011 05:48:48 +0000 (13:48 +0800)]
AF_UNIX: Allocate pcb using M_WAITOK|M_NULLOK instead of M_NOWAIT

So the allocation will not fail mysteriously while the system will not
panic if the system is really out of memory.

12 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
John Marino [Tue, 26 Apr 2011 20:47:20 +0000 (22:47 +0200)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

12 years agorcorder: unbreak world
John Marino [Tue, 26 Apr 2011 20:30:54 +0000 (22:30 +0200)]
rcorder: unbreak world

The recent update to libutil clashed with the roll-your-own functions of
rcorder, breaking world.  This removes those rolled functions and uses
standard system headers.

12 years agoGrep: Replace grep-2.4d with grep-2.7
John Marino [Tue, 26 Apr 2011 18:49:24 +0000 (20:49 +0200)]
Grep: Replace grep-2.4d with grep-2.7

This is the first significant update of grep in DragonFly's existance.
Other BSDs have removed or will remove GNU Grep in favor of BSD Grep, but
GNU Grep is still the best performer.

12 years agoGrep: Add DragonFly README files
John Marino [Tue, 26 Apr 2011 18:24:21 +0000 (20:24 +0200)]
Grep: Add DragonFly README files

12 years agoGrep: Second modification to man page
John Marino [Tue, 26 Apr 2011 18:19:18 +0000 (20:19 +0200)]
Grep: Second modification to man page

The reference to zgrep was removed because gnu grep no longer builds the
z-variants of grep, egrep, and fgrep.  The "note" was removed because it's
just ridiculous and unprofessional.

12 years agoGrep: Reintroducing local modification: --only-files option
John Marino [Sun, 24 Apr 2011 15:50:32 +0000 (17:50 +0200)]
Grep: Reintroducing local modification: --only-files option

The previous version of grep was enhanced with a DragonFly-only custom
option --only-files.  This modification adds this customization to
grep 2.7 as well.

12 years agoGrep: Reintroducing local modification for HAMMER
John Marino [Sun, 24 Apr 2011 14:58:42 +0000 (16:58 +0200)]
Grep: Reintroducing local modification for HAMMER

This reintroduces the fix by Matthias Schmidt for the previous version of
grep.  The unmodified Grep 2.7 still displays the same directory errors as
Grep 2.4d.

12 years agoGrep: Add pregenerated files
John Marino [Tue, 26 Apr 2011 18:03:08 +0000 (20:03 +0200)]
Grep: Add pregenerated files

The grep man page has been pregenerated rather than creating it during the
make process.

12 years agoMerge branch 'vendor/GREP'
John Marino [Tue, 26 Apr 2011 17:49:26 +0000 (19:49 +0200)]
Merge branch 'vendor/GREP'

12 years agoImport grep-2.7
John Marino [Tue, 26 Apr 2011 17:48:38 +0000 (19:48 +0200)]
Import grep-2.7

12 years agomalloc.3: Add emalloc(3) reference.
Sascha Wildner [Tue, 26 Apr 2011 15:58:57 +0000 (17:58 +0200)]
malloc.3: Add emalloc(3) reference.

12 years agoefun.3: Sort sections according to mdoc(7).
Sascha Wildner [Tue, 26 Apr 2011 15:38:48 +0000 (17:38 +0200)]
efun.3: Sort sections according to mdoc(7).

12 years agolibutil: Add MLINKS for the new e* functions.
Sascha Wildner [Tue, 26 Apr 2011 15:36:34 +0000 (17:36 +0200)]
libutil: Add MLINKS for the new e* functions.

12 years agolibutil: Rearrange a bit in the Makefile.
Sascha Wildner [Tue, 26 Apr 2011 15:32:26 +0000 (17:32 +0200)]
libutil: Rearrange a bit in the Makefile.

12 years agolibutil -- Import error functions from NetBSD.
Venkatesh Srinivas [Tue, 26 Apr 2011 12:18:54 +0000 (05:18 -0700)]
libutil -- Import error functions from NetBSD.

12 years agotest from machine crawl
Sepherosa Ziehau [Tue, 26 Apr 2011 09:29:22 +0000 (17:29 +0800)]
test from machine crawl

12 years agokernel/x86_64: SC520 was 32 bit, so not needed here.
Sascha Wildner [Sun, 24 Apr 2011 09:33:10 +0000 (11:33 +0200)]
kernel/x86_64: SC520 was 32 bit, so not needed here.

12 years agokernel - Try to reduce 'busy buffers problems' during halt/reboot
Matthew Dillon [Mon, 25 Apr 2011 18:43:52 +0000 (11:43 -0700)]
kernel - Try to reduce 'busy buffers problems' during halt/reboot

* Ignore busy buffers related to TMPFS in pass 1, and busy buffers related
  to TMPFS, NFS, SMBFS, and MFS in the final check.

12 years agoSync zoneinfo database with tzdata2011g from elsie.nci.nih.gov
Sascha Wildner [Mon, 25 Apr 2011 17:16:06 +0000 (19:16 +0200)]
Sync zoneinfo database with tzdata2011g from elsie.nci.nih.gov

africa:         8.30 -> 8.31
europe:         8.28 -> 8.32
southamerica:   8.47 -> 8.49

* africa: Egypt's interim cabinet decided to cancel daylight
    saving time.

* europe: Eliminate some doubled words.

* southamerica: As a trial, the Falkland Islands will remain on
    summer time throughout 2011. Also eliminate some doubled
    words.

12 years agokernel: Remove some redundant .PATH targets.
Sascha Wildner [Mon, 25 Apr 2011 07:43:22 +0000 (09:43 +0200)]
kernel: Remove some redundant .PATH targets.

12 years agokernel: Remove some i386 code from x86_64.
Sascha Wildner [Mon, 25 Apr 2011 07:16:30 +0000 (09:16 +0200)]
kernel: Remove some i386 code from x86_64.

12 years agoaesni(4): Sync with FreeBSD.
Sascha Wildner [Sat, 23 Apr 2011 12:53:26 +0000 (14:53 +0200)]
aesni(4): Sync with FreeBSD.

* Add support for CRYPTO_AES_XTS.

* Fix some bugs in aeskeys_*.S and aesni_wrap.c

* Add support for CRD_F_KEY_EXPLICIT flag.

* Remove DEBUG sections.

* Simplify code a bit.

12 years agoinstaller: For bootblocks, only offer the disk that was installed to.
Sascha Wildner [Sat, 23 Apr 2011 10:51:20 +0000 (12:51 +0200)]
installer: For bootblocks, only offer the disk that was installed to.

In the "Disk Utilities" menu, we still offer all disks.

Requested-by: dillon
12 years agoaesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.
Sascha Wildner [Sat, 23 Apr 2011 08:56:05 +0000 (10:56 +0200)]
aesni(4): Avoid panicking when kmalloc() returns an unaligned pointer.

Instead, align it ourselves and keep the original address for kfree().
This is a bit hacky but not too hacky (and it is done the same way in
padlock(4)).

In the middle run, we probably need some kmalloc() flavor that can do
alignment.

In-discussion-with: alexh

13 years agopf(4): Fix compilation without INET6.
Sascha Wildner [Fri, 22 Apr 2011 09:10:57 +0000 (11:10 +0200)]
pf(4): Fix compilation without INET6.

13 years agokernel - enable carrier/modem-status for usb serial devices (/dev/ucomX)
Matthew Dillon [Fri, 22 Apr 2011 04:43:59 +0000 (21:43 -0700)]
kernel - enable carrier/modem-status for usb serial devices (/dev/ucomX)

* Fix an incorrect return code from umodem which was preventing
  ucom from processing TIOCMGET and other related modem control
  ioctls.

* For the moment comment out a panic condition dealing with an
  abort sent from an interrupt context.

13 years agokernel -- Slight changes to refcount_wait/_wakeup.
Venkatesh Srinivas [Thu, 21 Apr 2011 20:46:39 +0000 (13:46 -0700)]
kernel -- Slight changes to refcount_wait/_wakeup.

* Pass waitstring into refcount_wait.

* Record long waits in kernel log.

13 years agokernel - Add refcount_release_wakeup() and refcount_wait()
Matthew Dillon [Thu, 21 Apr 2011 19:02:58 +0000 (12:02 -0700)]
kernel - Add refcount_release_wakeup() and refcount_wait()

* refcount_release_wakeup() releases a reference count and wakes up
  any waiters on the 1->0 transition.

* refcount_wait() waits for the last reference to go away.  When using
  this function all release operations on the field must use
  refcount_release_wakeup().

13 years agobinutils220: Fix a copy/paste error.
Sascha Wildner [Thu, 21 Apr 2011 16:11:29 +0000 (18:11 +0200)]
binutils220: Fix a copy/paste error.

13 years agoftpd - Remove the use of GLOB_LIMIT
Matthew Dillon [Thu, 21 Apr 2011 11:11:09 +0000 (04:11 -0700)]
ftpd - Remove the use of GLOB_LIMIT

* The problem with this flag is that it currently arbitrarily limits
  stat and other operations and completely breaks anonymous ftp on
  directories with large numbers of files (like packages/All).

  Remove its use for now.

13 years agokernel - Fix a rare nfsnode destruction race
Matthew Dillon [Thu, 21 Apr 2011 09:23:49 +0000 (02:23 -0700)]
kernel - Fix a rare nfsnode destruction race

* Clear np->n_vnode atomically (w/ the token held) when removing a
  node from the hash table.  The field was previously not being
  cleared at all which could race the nfsnhash lookup code despite
  the vnode interlock and check the lookup code was performing.

* Remove unnecessary tokens around the remaining nfsnode freeing code
  in the reclaim path.

13 years agokernel - Add mtrr support for x86-64
Matthew Dillon [Thu, 21 Apr 2011 04:22:18 +0000 (21:22 -0700)]
kernel - Add mtrr support for x86-64

Taken-From: FreeBSD

13 years agoSet the DragonFly version to 2.11 for 2.11.
Sascha Wildner [Wed, 20 Apr 2011 16:29:27 +0000 (18:29 +0200)]
Set the DragonFly version to 2.11 for 2.11.