dragonfly.git
11 years agotest/debug/fdpassing: Correct a typo.
Sascha Wildner [Wed, 16 May 2012 20:06:47 +0000 (22:06 +0200)]
test/debug/fdpassing: Correct a typo.

11 years agotcp: Use TAILQ for segments reassemble queue
Sepherosa Ziehau [Wed, 16 May 2012 01:15:28 +0000 (09:15 +0800)]
tcp: Use TAILQ for segments reassemble queue

So the last segment of the reassemble queue could be peeked w/ minimal cost

11 years agokgdb: Add TUI mode as an option
John Marino [Tue, 15 May 2012 21:50:11 +0000 (23:50 +0200)]
kgdb: Add TUI mode as an option

Now that -tui mode is fixed for gdb, let's allow kgdb to use it.  This
commit adds the -t (--tui-mode) option to kgdb to allow debugging core
files with gdb's Text User Interface terminal interface.

The -q (--quiet) option had to set when --tui-mode option is set due
to the initial verbosity destroying the curses window otherwise.

11 years agogdb: Fix gdb -tui mode
John Marino [Tue, 15 May 2012 20:56:24 +0000 (22:56 +0200)]
gdb: Fix gdb -tui mode

The gdbtui (aka gdb -tui) mode has been nonfunctional for a long time
due to the replacement of readline with libedit.  After speaking with
Cristos Zoulas, it was confirmed that libedit can't support gdbtui now
and is not envisioned to support it in the future.

The tui mode is fixed by building the readline library internally and
linking against that instead of libedit.

The README files were updated to reflected additional imported sources
for readline and the removal of libedit-caused local modications to
tui-io.c file.

11 years agoMerge branch 'vendor/GDB'
John Marino [Tue, 15 May 2012 22:29:55 +0000 (00:29 +0200)]
Merge branch 'vendor/GDB'

11 years agogdb vendor branch: Bring in additional source files
John Marino [Tue, 15 May 2012 19:15:22 +0000 (21:15 +0200)]
gdb vendor branch: Bring in additional source files

The tui mode of gdb will not function when the readline library is
replaced with libedit.  Bring in readline sources to build gdb
properly.  The readline library will be used internally to gdb only.

11 years agopci: Update several bits for PCI Express 2.0
Sepherosa Ziehau [Tue, 15 May 2012 05:48:54 +0000 (13:48 +0800)]
pci: Update several bits for PCI Express 2.0

11 years agopci: Support PCI Express Configuration Space memory-mapped access mechanism
Sepherosa Ziehau [Mon, 14 May 2012 09:13:17 +0000 (17:13 +0800)]
pci: Support PCI Express Configuration Space memory-mapped access mechanism

Also remove the outdated type 2 Configuration Space access mechanism;
it should never been seen on platforms w/ AMD64 capable CPUs.

Obtained-from: FreeBSD

11 years agopci: Introduce PCIE_REGMAX
Sepherosa Ziehau [Tue, 15 May 2012 04:58:20 +0000 (12:58 +0800)]
pci: Introduce PCIE_REGMAX

Obtained-from: FreeBSD

11 years agoUnbreak world (tic)
John Marino [Mon, 14 May 2012 16:11:51 +0000 (18:11 +0200)]
Unbreak world (tic)

The tic utility should be built with the ncursesw library, but that one
is not available on any system with more than 2 days since the last
build.  On those systems, the world will break pretty quickly.

The Makefile was updated to use the available ncurses library.  After
the release of DragonFly 3.2, the makefile on the master branch can
be updated to take the wide version of the ncurses library since we
only guarantee upwards compatibility for one release.

11 years agotic(1): Add man page for new tic utility
John Marino [Mon, 14 May 2012 13:57:57 +0000 (15:57 +0200)]
tic(1): Add man page for new tic utility

11 years agoterminfo: Add terminfo database creation to world build
John Marino [Mon, 14 May 2012 09:50:56 +0000 (11:50 +0200)]
terminfo: Add terminfo database creation to world build

1) add tic to bootstrap tools
2) pre-populate /usr/share/terminal subdirectories
3) Add share/terminfo subdir to share Makefile

11 years agoAdd share/terminfo: This constructs terminfo database
John Marino [Mon, 14 May 2012 09:44:45 +0000 (11:44 +0200)]
Add share/terminfo: This constructs terminfo database

This is not tied into buildworld yet, it requires /usr/bin/tic to be
set up as a bootstrap tool first.

11 years agoAdd /usr.bin/tic: terminfo entry-description compiler
John Marino [Mon, 14 May 2012 08:38:29 +0000 (10:38 +0200)]
Add /usr.bin/tic: terminfo entry-description compiler

The tic program is required to create the terminfo database.

11 years agoncurses: move USE_GETCAP, update README files
John Marino [Mon, 14 May 2012 07:38:53 +0000 (09:38 +0200)]
ncurses: move USE_GETCAP, update README files

The ncurses headers were generated with additional configuration switches
documented on README.DRAGONFLY.  One outcome is the USE_GETCAP should
be in the configuration header rather than in the Makefile, so that
was updated.

New files were imported to support building the terminfo database, and
the path for that will be /usr/share/terminfo.  Accordingly, the man
page and configuration header have been updated.

11 years agoMerge branch 'vendor/NCURSES'
John Marino [Mon, 14 May 2012 10:24:19 +0000 (12:24 +0200)]
Merge branch 'vendor/NCURSES'

11 years agoncurses vendor branch: Bring in additional source files
John Marino [Mon, 14 May 2012 07:20:26 +0000 (09:20 +0200)]
ncurses vendor branch: Bring in additional source files

In order to support the building of the terminfo database, additional
source files from the ncurses 5.9 tarball are needed.

11 years agoiwn: Add Intel(R) Centrino Wireless-N 100
Sepherosa Ziehau [Mon, 14 May 2012 08:26:24 +0000 (16:26 +0800)]
iwn: Add Intel(R) Centrino Wireless-N 100

Submitted-by: Francis GUDIN
DragonFly-bug: http://bugs.dragonflybsd.org/issues/2366

11 years agoUpdate files for OpenSSL-1.0.1c import.
Peter Avalos [Sun, 13 May 2012 19:55:08 +0000 (12:55 -0700)]
Update files for OpenSSL-1.0.1c import.

11 years agoMerge branch 'vendor/OPENSSL'
Peter Avalos [Sun, 13 May 2012 19:52:19 +0000 (12:52 -0700)]
Merge branch 'vendor/OPENSSL'

11 years agoImport OpenSSL-1.0.1c.
Peter Avalos [Sun, 13 May 2012 19:47:02 +0000 (12:47 -0700)]
Import OpenSSL-1.0.1c.

  o Fix TLS/DTLS record length checking bug CVE-2012-2333

11 years agoarcmsr(4): Disable MSI support on the 1880 models.
Sascha Wildner [Sun, 13 May 2012 13:40:53 +0000 (15:40 +0200)]
arcmsr(4): Disable MSI support on the 1880 models.

There is definitely MSI related breakage here (resulting in ccb
command timeout issues). It was verified with an ARC-1880i that
was kindly provided by ftigeot.

On the other hand, my ARC-1210 works like a charm using MSI.

Reported-by: ftigeot
11 years agoncurses: Add wide-character support
John Marino [Sun, 13 May 2012 10:09:32 +0000 (12:09 +0200)]
ncurses: Add wide-character support

The man pages already indicated wide-character support, but the
libraries weren't properly implemented.  Also removed unneeded
libmytinfo.  It was an alias for libncurses and four makefiles
referenced both.

11 years agotermcap: Adjust for new ncurses
John Marino [Sun, 13 May 2012 00:33:41 +0000 (02:33 +0200)]
termcap: Adjust for new ncurses

The new ncurses 5.9 library is emitting warnings during the scanning of some of the terminal
entries, which require updates to silence.

Terminal entry updates provided by:
jaydg
ftigeot

11 years agoncurses: Block warning about "older tic versions"
John Marino [Sun, 13 May 2012 00:20:20 +0000 (02:20 +0200)]
ncurses: Block warning about "older tic versions"

The /etc/termcap file should have a space between the last "|" character and the alias per
format rules.  ncurses can still interpret the alias of the termcap entries correctly, but by
default will emit the warning, "older tic versions may treat the description field as an alias"
whenver it encounters such an entry (e.g. the common cons25).

Rather than update hundreds of entries, just silence the warning.  This is what FreeBSD does.

11 years ago/usr/Makefile: Adjust for our sys-src archive now coming bzip2'd.
Sascha Wildner [Sat, 12 May 2012 22:52:58 +0000 (00:52 +0200)]
/usr/Makefile: Adjust for our sys-src archive now coming bzip2'd.

Reported-by: Francis Gudin <fgudin@nerim.net>
11 years agore(4): Add support for the 8105E found in the Acer Aspire One D257.
Sascha Wildner [Sat, 12 May 2012 22:29:53 +0000 (00:29 +0200)]
re(4): Add support for the 8105E found in the Acer Aspire One D257.

Submitted-by: Francis Gudin <fgudin@nerim.net>
11 years agoncurses: Fix ncurses-caused segfault
John Marino [Sat, 12 May 2012 22:29:14 +0000 (00:29 +0200)]
ncurses: Fix ncurses-caused segfault

11 years agoncurses: Fix bad paths, convert 3X to 3 on man pages
John Marino [Sat, 12 May 2012 20:35:20 +0000 (22:35 +0200)]
ncurses: Fix bad paths, convert 3X to 3 on man pages

11 years agomount_ufs.8: Change manpage title and name.
Sascha Wildner [Sat, 12 May 2012 18:51:46 +0000 (20:51 +0200)]
mount_ufs.8: Change manpage title and name.

11 years agotermcap: Sync with FreeBSD
John Marino [Sat, 12 May 2012 15:20:54 +0000 (17:20 +0200)]
termcap: Sync with FreeBSD

FreeBSD removed map3270 7 years ago...
The last termcap sync was 3 DEC 2008

11 years agolibgmp: Update from version 5.0.2 to 5.0.5
John Marino [Sat, 12 May 2012 08:18:42 +0000 (10:18 +0200)]
libgmp: Update from version 5.0.2 to 5.0.5

===============================
 CHANGES SINCE PREVIOUS UPDATE
===============================
Changes between GMP version 5.0.2 and 5.0.3
[BUGS FIXED]
* A few minor bugs related to portability fixed.
* A slight timing leak of the powm_sec functions have been sealed.
  (This leak could possibly be used to extract the most significant
  few bits of the exponent.  "Few" here means at most 10.)
* The mpz_nextprime function now runs a safer number of pseudo-random
  prime tests.
* A bug in division code possibly causing incorrect computation was
  fixed.
[SPEEDUPS]
* None, except indirectly through recognition of new CPUs, and through
  better tuning parameters.
[FEATURES]
* New CPUs recognised.
* IBM S/390 are now supported in both 31/32-bit and 64-bit mode.  (We
  have not been able to fully test this on any multilib machine, since
  IBM expired our guest account a few days before our release.)

Changes between GMP version 5.0.3 and 5.0.4
[BUGS FIXED]
* Thresholds in mpn_powm_sec for both fat and non-fat builds are now
  used safely, plugging a one-word buffer overrun introduced in the
  5.0.3 release (for non-fat) and a multi-word buffer overrun that
  existed since 5.0 (for fat).  (We have not been able to provoke malign
  stack smashing in any of the ~100 configurations explored by the GMP
  nightly builds, but the bug should be assumed to be exploitable.)
* Two bugs in multiplication code causing incorrect computation with
  extremely low probability have been fixed.
* A bug in the test suite causing buffer overruns during "make check",
  sometimes leading to subsequent malloc crashes, has been fixed.
* Two bugs in the gcd code have been fixed.  They could lead to incorrect
  results, but for uniformly distributed random operands, the likelihood
  for that is infinitesimally small.  (There was also a third bug, but
  that was an incorrect ASSERT, which furthermore was not enabled by
  default.)
* A bug affecting 32-bit PowerPC division has been fixed.  The bug caused
  miscomputation for certain divisors in the range 2^32 ... 2^64-1
  (about 1 in 2^30 of these).
[SPEEDUPS]
* None, except indirectly through recognition of new CPUs, and through
  better tuning parameters.
[FEATURES]
* Some more tests added to the self-check suite.
* The AMD "Bulldozer" CPU is now recognised.

Changes between GMP version 5.0.4 and 5.0.5
[BUGS FIXED]
* A bug causing AMD 11h processors to be treated like AMD 10h has been
  fixed.  The 11h processors do not correctly handle all 10h (aka K10)
  instructions, and GMP's use of these instructions results in major
  miscomputations (not as one would have hoped CPU traps of some
  'illegal instruction' sort).
* A bug affecting recent Intel Sandy Bridge CPUs resulting in
  configuration failures has been fixed,
[FEATURES]
* A couple of tests added to the self-check suite.

11 years agogmplib: Update README files after vendor branch merge
John Marino [Sat, 12 May 2012 07:23:52 +0000 (09:23 +0200)]
gmplib: Update README files after vendor branch merge

11 years agoMerge branch 'vendor/GMP'
John Marino [Sat, 12 May 2012 10:57:51 +0000 (12:57 +0200)]
Merge branch 'vendor/GMP'

11 years agoUpgrade GMP from 5.0.2 to 5.0.5 on the vendor branch gitea/vendor/GMP origin/vendor/GMP
John Marino [Sat, 12 May 2012 07:22:30 +0000 (09:22 +0200)]
Upgrade GMP from 5.0.2 to 5.0.5 on the vendor branch

11 years agoelf_common.h: Define EM_ALPHA
John Marino [Sat, 12 May 2012 09:47:14 +0000 (11:47 +0200)]
elf_common.h: Define EM_ALPHA

This commit restores the EM_ALPHA definition that was added on
13 DEC 2011 and later removed during the partial sync with
binutils 2.22 elf headers.

It is required for building OpenJDK.

11 years agolibncurses: Upgrade from version 5.7 to 5.9
John Marino [Fri, 11 May 2012 20:39:40 +0000 (22:39 +0200)]
libncurses: Upgrade from version 5.7 to 5.9

For 1100 lines of changes since the release of version 5.7, see
/usr/src/contrib/ncurses/NEWS

11 years agoncurses: Restore DragonFly README files
John Marino [Fri, 11 May 2012 21:23:05 +0000 (23:23 +0200)]
ncurses: Restore DragonFly README files

These two README files were placed on the vendor branch, and were
removed during the last source update.  The replacement README
files are being placed on the master branch.

11 years agoMerge branch 'vendor/NCURSES'
John Marino [Fri, 11 May 2012 21:22:28 +0000 (23:22 +0200)]
Merge branch 'vendor/NCURSES'

11 years agoUpdate ncurses from version 5.7 to 5.9 on vendor branch
John Marino [Fri, 11 May 2012 17:17:25 +0000 (19:17 +0200)]
Update ncurses from version 5.7 to 5.9 on vendor branch

11 years agozlib: Upgrade from version 1.2.5 to version 1.2.7
John Marino [Fri, 11 May 2012 12:52:27 +0000 (14:52 +0200)]
zlib: Upgrade from version 1.2.5 to version 1.2.7

===========================
 Changes since last update
===========================

Changes in 1.2.5.1 (10 Sep 2011)
- Update FAQ entry on shared builds (#13)
- Avoid symbolic argument to chmod in Makefile.in
- Fix bug and add consts in contrib/puff [Oberhumer]
- Update contrib/puff/zeros.raw test file to have all block types
- Add full coverage test for puff in contrib/puff/Makefile
- Fix static-only-build install in Makefile.in
- Fix bug in unzGetCurrentFileInfo() in contrib/minizip [Kuno]
- Add libz.a dependency to shared in Makefile.in for parallel builds
- Spell out "number" (instead of "nb") in zlib.h for total_in, total_out
- Replace $(...) with `...` in configure for non-bash sh [Bowler]
- Add darwin* to Darwin* and solaris* to SunOS\ 5* in configure [Groffen]
- Add solaris* to Linux* in configure to allow gcc use [Groffen]
- Add *bsd* to Linux* case in configure [Bar-Lev]
- Add inffast.obj to dependencies in win32/Makefile.msc
- Correct spelling error in deflate.h [Kohler]
- Change libzdll.a again to libz.dll.a (!) in win32/Makefile.gcc
- Add test to configure for GNU C looking for gcc in output of $cc -v
- Add zlib.pc generation to win32/Makefile.gcc [Weigelt]
- Fix bug in zlib.h for _FILE_OFFSET_BITS set and _LARGEFILE64_SOURCE not
- Add comment in zlib.h that adler32_combine with len2 < 0 makes no sense
- Make NO_DIVIDE option in adler32.c much faster (thanks to John Reiser)
- Make stronger test in zconf.h to include unistd.h for LFS
- Apply Darwin patches for 64-bit file offsets to contrib/minizip [Slack]
- Fix zlib.h LFS support when Z_PREFIX used
- Add updated as400 support (removed from old) [Monnerat]
- Avoid deflate sensitivity to volatile input data
- Avoid division in adler32_combine for NO_DIVIDE
- Clarify the use of Z_FINISH with deflateBound() amount of space
- Set binary for output file in puff.c
- Use u4 type for crc_table to avoid conversion warnings
- Apply casts in zlib.h to avoid conversion warnings
- Add OF to prototypes for adler32_combine_ and crc32_combine_ [Miller]
- Improve inflateSync() documentation to note indeterminancy
- Add deflatePending() function to return the amount of pending output
- Correct the spelling of "specification" in FAQ [Randers-Pehrson]
- Add a check in configure for stdarg.h, use for gzprintf()
- Check that pointers fit in ints when gzprint() compiled old style
- Add dummy name before $(SHAREDLIBV) in Makefile [Bar-Lev, Bowler]
- Delete line in configure that adds -L. libz.a to LDFLAGS [Weigelt]
- Add debug records in assmebler code [Londer]
- Update RFC references to use http://tools.ietf.org/html/... [Li]
- Add --archs option, use of libtool to configure for Mac OS X [Borstel]

Changes in 1.2.5.2 (17 Dec 2011)
- fix ld error: unable to find version dependency 'ZLIB_1.2.5'
- use relative symlinks for shared libs
- Avoid searching past window for Z_RLE strategy
- Assure that high-water mark initialization is always applied in deflate
- Add assertions to fill_window() in deflate.c to match comments
- Update python link in README
- Correct spelling error in gzread.c
- Fix bug in gzgets() for a concatenated empty gzip stream
- Correct error in comment for gz_make()
- Change gzread() and related to ignore junk after gzip streams
- Allow gzread() and related to continue after gzclearerr()
- Allow gzrewind() and gzseek() after a premature end-of-file
- Simplify gzseek() now that raw after gzip is ignored
- Change gzgetc() to a macro for speed (~40% speedup in testing)
- Fix gzclose() to return the actual error last encountered
- Always add large file support for windows
- Include zconf.h for windows large file support
- Include zconf.h.cmakein for windows large file support
- Update zconf.h.cmakein on make distclean
- Merge vestigial vsnprintf determination from zutil.h to gzguts.h
- Clarify how gzopen() appends in zlib.h comments
- Correct documentation of gzdirect() since junk at end now ignored
- Add a transparent write mode to gzopen() when 'T' is in the mode
- Update python link in zlib man page
- Get inffixed.h and MAKEFIXED result to match
- Add a ./config --solo option to make zlib subset with no libary use
- Add undocumented inflateResetKeep() function for CAB file decoding
- Add --cover option to ./configure for gcc coverage testing
- Add #define ZLIB_CONST option to use const in the z_stream interface
- Add comment to gzdopen() in zlib.h to use dup() when using fileno()
- Note behavior of uncompress() to provide as much data as it can
- Add files in contrib/minizip to aid in building libminizip
- Split off AR options in Makefile.in and configure
- Change ON macro to Z_ARG to avoid application conflicts
- Facilitate compilation with Borland C++ for pragmas and vsnprintf
- Include io.h for Turbo C / Borland C++
- Move example.c and minigzip.c to test/
- Simplify incomplete code table filling in inflate_table()
- Remove code from inflate.c and infback.c that is impossible to execute
- Test the inflate code with full coverage
- Allow deflateSetDictionary, inflateSetDictionary at any time (in raw)
- Add deflateResetKeep and fix inflateResetKeep to retain dictionary
- Fix gzwrite.c to accommodate reduced memory zlib compilation
- Have inflate() with Z_FINISH avoid the allocation of a window
- Do not set strm->adler when doing raw inflate
- Fix gzeof() to behave just like feof() when read is not past end of file
- Fix bug in gzread.c when end-of-file is reached
- Avoid use of Z_BUF_ERROR in gz* functions except for premature EOF
- Document gzread() capability to read concurrently written files
- Remove hard-coding of resource compiler in CMakeLists.txt [Blammo]

Changes in 1.2.5.3 (15 Jan 2012)
- Restore gzgetc function for binary compatibility
- Do not use _lseeki64 under Borland C++ [Truta]
- Update win32/Makefile.msc to build test/*.c [Truta]
- Remove old/visualc6 given CMakefile and other alternatives
- Update AS400 build files and documentation [Monnerat]
- Update win32/Makefile.gcc to build test/*.c [Truta]
- Permit stronger flushes after Z_BLOCK flushes
- Avoid extraneous empty blocks when doing empty flushes
- Permit Z_NULL arguments to deflatePending
- Allow deflatePrime() to insert bits in the middle of a stream
- Remove second empty static block for Z_PARTIAL_FLUSH
- Write out all of the available bits when using Z_BLOCK
- Insert the first two strings in the hash table after a flush

Changes in 1.2.6 (29 Jan 2012)
- Update the Pascal interface in contrib/pascal
- Fix function numbers for gzgetc_ in zlibvc.def files
- Fix configure.ac for contrib/minizip [Schiffer]
- Fix large-entry detection in minizip on 64-bit systems [Schiffer]
- Have ./configure use the compiler return code for error indication
- Fix CMakeLists.txt for cross compilation [McClure]
- Fix contrib/minizip/zip.c for 64-bit architectures [Dalsnes]
- Fix compilation of contrib/minizip on FreeBSD [Marquez]
- Correct suggested usages in win32/Makefile.msc [Shachar, Horvath]
- Include io.h for Turbo C / Borland C on all platforms [Truta]
- Make version explicit in contrib/minizip/configure.ac [Bosmans]
- Avoid warning for no encryption in contrib/minizip/zip.c [Vollant]
- Minor cleanup up contrib/minizip/unzip.c [Vollant]
- Fix bug when compiling minizip with C++ [Vollant]
- Protect for long name and extra fields in contrib/minizip [Vollant]
- Avoid some warnings in contrib/minizip [Vollant]
- Add -I../.. -L../.. to CFLAGS for minizip and miniunzip
- Add missing libs to minizip linker command
- Add support for VPATH builds in contrib/minizip
- Add an --enable-demos option to contrib/minizip/configure
- Add the generation of configure.log by ./configure
- Exit when required parameters not provided to win32/Makefile.gcc
- Have gzputc return the character written instead of the argument
- Use the -m option on ldconfig for BSD systems [Tobias]
- Correct in zlib.map when deflateResetKeep was added

Changes in 1.2.6.1 (12 Feb 2012)
- Avoid the use of the Objective-C reserved name "id"
- Include io.h in gzguts.h for Microsoft compilers
- Fix problem with ./configure --prefix and gzgetc macro
- Include gz_header definition when compiling zlib solo
- Put gzflags() functionality back in zutil.c
- Avoid library header include in crc32.c for Z_SOLO
- Use name in GCC_CLASSIC as C compiler for coverage testing, if set
- Minor cleanup in contrib/minizip/zip.c [Vollant]
- Update make_vms.com [Zinser]
- Remove unnecessary gzgetc_ function
- Use optimized byte swap operations for Microsoft and GNU [Snyder]
- Fix minor typo in zlib.h comments [Rzesniowiecki]

Changes in 1.2.7 (2 May 2012)
- Replace use of memmove() with a simple copy for portability
- Test for existence of strerror
- Restore gzgetc_ for backward compatibility with 1.2.6
- Fix build with non-GNU make on Solaris
- Require gcc 4.0 or later on Mac OS X to use the hidden attribute
- Include unistd.h for Watcom C
- Use __WATCOMC__ instead of __WATCOM__
- Do not use the visibility attribute if NO_VIZ defined
- Improve the detection of no hidden visibility attribute
- Avoid using __int64 for gcc or solo compilation
- Cast to char * in gzprintf to avoid warnings [Zinser]
- Fix make_vms.com for VAX [Zinser]
- Don't use library or built-in byte swaps
- Simplify test and use of gcc hidden attribute
- Fix bug in gzclose_w() when gzwrite() fails to allocate memory
- Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen()
- Fix bug in test/minigzip.c for configure --solo
- Fix contrib/vstudio project link errors [Mohanathas]
- Add ability to choose the builder in make_vms.com [Schweda]
- Add DESTDIR support to mingw32 win32/Makefile.gcc
- Fix comments in win32/Makefile.gcc for proper usage
- Allow overriding the default install locations for cmake
- Generate and install the pkg-config file with cmake
- Build both a static and a shared version of zlib with cmake
- Include version symbols for cmake builds
- If using cmake with MSVC, add the source directory to the includes
- Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc [Truta]
- Move obsolete emx makefile to old [Truta]
- Allow the use of -Wundef when compiling or using zlib
- Avoid the use of the -u option with mktemp
- Improve inflate() documentation on the use of Z_FINISH
- Recognize clang as gcc
- Add gzopen_w() in Windows for wide character path names
- Rename zconf.h in CMakeLists.txt to move it out of the way
- Add source directory in CMakeLists.txt for building examples
- Look in build directory for zlib.pc in CMakeLists.txt
- Remove gzflags from zlibvc.def in vc9 and vc10
- Fix contrib/minizip compilation in the MinGW environment
- Update ./configure for Solaris, support --64 [Mooney]
- Remove -R. from Solaris shared build (possible security issue)
- Avoid race condition for parallel make (-j) running example
- Fix type mismatch between get_crc_table() and crc_table
- Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler]
- Fix the path to zlib.map in CMakeLists.txt
- Force the native libtool in Mac OS X to avoid GNU libtool [Beebe]
- Add instructions to win32/Makefile.gcc for shared install [Torri]

11 years agozlib: Add DragonFly README files
John Marino [Fri, 11 May 2012 11:46:08 +0000 (13:46 +0200)]
zlib: Add DragonFly README files

The README.DELETED used to be located on the vendor branch.
It was deleted there, updated, and placed on the master branch instead.

11 years agoMerge branch 'vendor/ZLIB'
John Marino [Fri, 11 May 2012 14:41:18 +0000 (16:41 +0200)]
Merge branch 'vendor/ZLIB'

11 years agozlib: Remove zconf.h
John Marino [Fri, 11 May 2012 12:07:06 +0000 (14:07 +0200)]
zlib: Remove zconf.h

1) To facility merging the zlib vendor branch
2) zconf.h is generated, so it will move to the makefile framework

11 years agoUpdate zlib from version 1.2.5 to 1.2.7 on vendor branch
John Marino [Fri, 11 May 2012 11:26:44 +0000 (13:26 +0200)]
Update zlib from version 1.2.5 to 1.2.7 on vendor branch

11 years agogdb: Update makefile framework for version 7.4.1 upgrade
John Marino [Fri, 11 May 2012 06:33:02 +0000 (08:33 +0200)]
gdb: Update makefile framework for version 7.4.1 upgrade

Note that gdbtui is no longer a separate executable.  It has been
deprecated by GNU GDB and will disappear completely on GDB 7.5
It has been changed to a wrapper that calls "gdb -tui"

11 years agogdb: Update DragonFly README files
John Marino [Fri, 11 May 2012 06:13:09 +0000 (08:13 +0200)]
gdb: Update DragonFly README files

11 years agogdb: Adjust tui to use libedit rather than readline
John Marino [Fri, 11 May 2012 07:53:38 +0000 (09:53 +0200)]
gdb: Adjust tui to use libedit rather than readline

11 years agogdb: Reapply modifications post-vendor branch merge
John Marino [Fri, 11 May 2012 06:09:03 +0000 (08:09 +0200)]
gdb: Reapply modifications post-vendor branch merge

11 years agoMerge branch 'vendor/GDB'
John Marino [Fri, 11 May 2012 10:39:47 +0000 (12:39 +0200)]
Merge branch 'vendor/GDB'

11 years agogdb: Temporarily revert modifications for branch merge
John Marino [Fri, 11 May 2012 06:03:31 +0000 (08:03 +0200)]
gdb: Temporarily revert modifications for branch merge

These four files don't merge with the vendor branch cleanly, so
the plan is to:
1) revert
2) merge vendor branch
3) reapply update versions

11 years agoUpgrade GDB from 7.3 to 7.4.1 on the vendor branch
John Marino [Fri, 11 May 2012 05:55:24 +0000 (07:55 +0200)]
Upgrade GDB from 7.3 to 7.4.1 on the vendor branch

11 years agotcp: Properly count duplicated ACKs
Sepherosa Ziehau [Fri, 11 May 2012 02:00:18 +0000 (10:00 +0800)]
tcp: Properly count duplicated ACKs

11 years agotcp: Add rxt_flags for spurious retransmit detection
Sepherosa Ziehau [Thu, 10 May 2012 07:45:29 +0000 (15:45 +0800)]
tcp: Add rxt_flags for spurious retransmit detection

This saves another 5 bits in the t_flags

11 years agotcp: Add sack_flags for SACK related operations
Sepherosa Ziehau [Thu, 10 May 2012 07:30:58 +0000 (15:30 +0800)]
tcp: Add sack_flags for SACK related operations

This saves us 4 bits in the crowded t_flags

11 years agomount - Split mount into mount_ufs, auto-detect fstype from disklabel
Matthew Dillon [Fri, 11 May 2012 05:20:33 +0000 (22:20 -0700)]
mount - Split mount into mount_ufs, auto-detect fstype from disklabel

* Followup minor adjustment for compile error.

11 years agomount - Split mount into mount_ufs, auto-detect fstype from disklabel
Matthew Dillon [Fri, 11 May 2012 05:12:28 +0000 (22:12 -0700)]
mount - Split mount into mount_ufs, auto-detect fstype from disklabel

* Move the compiled-in ufs mount code from mount to a new utility called
  mount_ufs.

* When mount determines the filesystem type is ufs it now exec's mount_ufs
  instead of calling the built-in ufs code.

* When mounting a disklabeled device and the fstype is not specified
  mount will attempt to figure out the fstype from the disklabel.

  Devices matching acd%d and cd%d will default to the 'cd9660' fstype.

  It defaults to ufs if it cannot figure it out (as before).

* If your filesystems are properly labeled this allows you to specify
  the mount generically as in this example:

      mount /dev/da0s1d /mnt

  And mount will exec mount_ufs or mount_hammer (etc...) as appropriate.

* NOTE! mount cannot currently auto-detect msdosfs or extract the DOS
  slice type.  It would be cool if it were extended further to do this
  as well.  Currently it only understands DragonFly disklabels.

11 years agotmpfs - Remove size cap
Matthew Dillon [Fri, 11 May 2012 00:20:06 +0000 (17:20 -0700)]
tmpfs - Remove size cap

tmpfs normally caps manually requested filesystem sizes to available
memory and swap.  However, this messes up size specifications in /etc/fstab
during boot which mount tmpfs prior to turning on swap.

For now just disable it.

11 years agolibedit: Upgrade NetBSD version 2011-03-11
John Marino [Thu, 10 May 2012 05:03:28 +0000 (07:03 +0200)]
libedit: Upgrade NetBSD version 2011-03-11

As NetBSD has properly packaged regular releases of their libedit
library (readline replacement), a new vendor branch has been created
for it.  Libedit was last synchronized with NetBSD 4 years ago, to
the week.

During that time, a new function was added to the DragonFly version
that still doesn't exist on NetBSD.  It is necessary to support GDB
7.x, so the addition of rl_completion_word_break_hook function has
been carried over to this update.

11 years agonew libedit: Add DragonFly README files to contrib
John Marino [Thu, 10 May 2012 20:28:57 +0000 (22:28 +0200)]
new libedit: Add DragonFly README files to contrib

11 years agonew libedit: add rl_completion_word_break_hook functionality
John Marino [Thu, 10 May 2012 00:45:00 +0000 (02:45 +0200)]
new libedit: add rl_completion_word_break_hook functionality

Recreates commit:
e2624a299cd1858e0a04301d42b946851c336c37

"This follows roughly what is described in the readline manual.
 rl_completion_word_break_hook is needed by gdb-7."

11 years agonew libedit: Fix mismatch between 0 and pointers
John Marino [Thu, 10 May 2012 00:26:13 +0000 (02:26 +0200)]
new libedit: Fix mismatch between 0 and pointers

Partially recreates commit:
678e8cc6002ecd3a79cdae95ac8b454437219fc5

"For better readability, don't compare pointers with 0 or assign 0
 to them. Use NULL instead."

11 years agonew libedit: Silence -Wold-style-definition
John Marino [Thu, 10 May 2012 00:19:06 +0000 (02:19 +0200)]
new libedit: Silence -Wold-style-definition

Partially recreates commit:
9a92bb4ce6ff1ff9b84161d1e22abd74e726c553

11 years agonew libedit: Local modifications to enable build
John Marino [Thu, 10 May 2012 20:19:31 +0000 (22:19 +0200)]
new libedit: Local modifications to enable build

The unmodified libedit source doesn't build on DragonFly without
minor modifications to three files.

11 years agoMerge branch 'vendor/LIBEDIT'
John Marino [Thu, 10 May 2012 21:36:29 +0000 (23:36 +0200)]
Merge branch 'vendor/LIBEDIT'

11 years agoImport NetBSD's LibEdit version 2012-03-11 on vendor branch
John Marino [Thu, 10 May 2012 21:34:55 +0000 (23:34 +0200)]
Import NetBSD's LibEdit version 2012-03-11 on vendor branch

11 years agoRemove some AppleTalk remains.
Sascha Wildner [Thu, 10 May 2012 18:52:36 +0000 (20:52 +0200)]
Remove some AppleTalk remains.

11 years agonetstat: Move SACK rescue stats to the "packet sent" block
Sepherosa Ziehau [Thu, 10 May 2012 05:14:39 +0000 (13:14 +0800)]
netstat: Move SACK rescue stats to the "packet sent" block

11 years agotcp: Adjust early rexmit start condition for the adaptive DupThresh algorithm
Sepherosa Ziehau [Thu, 10 May 2012 05:09:58 +0000 (13:09 +0800)]
tcp: Adjust early rexmit start condition for the adaptive DupThresh algorithm

11 years agoacpi_asus(4): Bring in a small fix from FreeBSD.
Sascha Wildner [Wed, 9 May 2012 21:17:02 +0000 (23:17 +0200)]
acpi_asus(4): Bring in a small fix from FreeBSD.

Prefer correct and simpler backlight control methods for ASUS G2K laptop.

Taken-from: FreeBSD

11 years agotcp/sack: Don't reduce retransmit threshold as recommended by RFC3517bis
Sepherosa Ziehau [Wed, 9 May 2012 08:48:15 +0000 (16:48 +0800)]
tcp/sack: Don't reduce retransmit threshold as recommended by RFC3517bis

- Don't reduce byte threshold in IsLost()
- Don't retransmit if IsLost(tcpcb.snd_una) is true

They cause spurious retransmits.

Add sysctl node net.inet.tcp.rfc3517bis_rxt to enable the RFC3517bis
recommended retransmit threshold reduction.  It is disabled by default.

11 years agotcp/sack: Implement RFC3517bis
Sepherosa Ziehau [Tue, 8 May 2012 09:56:00 +0000 (17:56 +0800)]
tcp/sack: Implement RFC3517bis

http://tools.ietf.org/html/draft-ietf-tcpm-3517bis-02, which will
be become "Standards Track" soon.

net.inet.tcp.rfc3517bis sysctl node is added to enable this update.
It is off by default.

11 years agogrep: Restore modification for HAMMER FS
John Marino [Tue, 8 May 2012 16:25:35 +0000 (18:25 +0200)]
grep: Restore modification for HAMMER FS

The first version of this modification was created by Matthias Schmidt.
Unmodified, grep used on a HAMMER filesystem will emit "Invalid argument"
when scanning directories because HAMMER doesn't treat them as files.

Unmodified behavior:
> cd /usr/src
> grep test: *
Makefile:test:
grep: cat: Invalid argument
[...]

After modification:
> cd /usr/src
> grep test: *
Makefile:test:

The modification was removed because it didn't merge simply with the
grep upgrade from 2.9 to 2.12.  Now that the merge is complete, the
new version of the modification is applied to restore the correct
behavior of grep on the HAMMER filesystem.

11 years agogrep: Upgrade from version 2.9 to 2.12
John Marino [Tue, 8 May 2012 10:36:23 +0000 (12:36 +0200)]
grep: Upgrade from version 2.9 to 2.12

=====================   Version 2.10 (16 NOV 2011)   =====================

It's been nearly five months and 80 commits since 2.9, yet few big
changes in grep proper.  However, there have been many changes in gnulib,
including a few portability fixes that affect grep.   We inherited 750+
portability and robustness improvements by using gnulib.

[Bug fixes]
* grep no longer mishandles high-bit-set pattern bytes on systems
  where "char" is a signed type. [bug appears to affect only MS-Windows]

* grep now rejects a command like "grep -r pattern . > out",
  in which the output file is also one of the inputs,
  because it can result in an "infinite" disk-filling loop.
  [bug present since "the beginning"]

[Build-related]
  "make dist" no longer builds .tar.gz files.
  xz is portable enough and in wide-enough use that distributing
  only .tar.xz files is enough.

=====================   Version 2.11 (02 MAR 2012)   =====================

In just 2.5 months, we've seen more changes than in the five months
leading up to 2.10, addressing a surprising number of old bugs.
Special thanks to Paulo Bonzini and Paul Eggert for many fine patches.  We
inherited 340+ portability and robustness improvements by using gnulib.

[New features]
* If no file operand is given, and a command-line -r or equivalent
  option is given, grep now searches the working directory.  Formerly
  grep ignored the -r and searched standard input nonrecursively.
  An -r found in GREP_OPTIONS does not have this new effect.

* grep now supports color highlighting of matches on MS-Windows.

[Bug fixes]
* grep no longer dumps core on lines whose lengths do not fit in 'int'.
  (e.g., lines longer than 2 GiB on a typical 64-bit host).
  Instead, grep either works as expected, or reports an error.
  An error can occur if not enough main memory is available, or if the
  GNU C library's regular expression functions cannot handle such long
  lines. [bug present since "the beginning"]

* The -m, -A, -B, and -C options no longer mishandle context line
  counts that do not fit in 'int'.  Also, grep -c's counts are now
  limited by the type 'intmax_t' (typically less than 2**63) rather
  than 'int' (typically less than 2**31).

* grep no longer silently suppresses errors when reading a directory
  as if it were a text file.  For example, "grep x ." now reports a
  read error on most systems; formerly, it ignored the error.
  [bug introduced in grep-2.5]

* grep now exits with status 2 if a directory loop is found,
  instead of possibly exiting with status 0 or 1.
  [bug introduced in grep-2.3]

* The -s option now suppresses certain input error diagnostics that it
  formerly failed to suppress.  These include errors when closing the
  input, when lseeking the input, and when the input is also the output.
  [bug introduced in grep-2.4]

* On POSIX systems, commands like "grep PAT < FILE >> FILE"
  now report an error instead of looping.
  [bug present since "the beginning"]

* The --include, --exclude, and --exclude-dir options now handle
  command-line arguments more consistently.  --include and --exclude
  apply only to non-directories and --exclude-dir applies only to
  directories.  "-" (standard input) is never excluded, since it is
  not a file name.
  [bug introduced in grep-2.5]

* grep no longer rejects "grep -qr . > out", i.e., when run with -q
  and an input file is the same as the output file, since with -q
  grep generates no output, so there is no risk of infinite loop or
  of an output-affecting race condition.  Thus, the use of the following
  options also disables the input-equals-output failure:
    --max-count=N (-m) (for N >= 2)
    --files-with-matches (-l)
    --files-without-match (-L)
  [bug introduced in grep-2.10]

* grep no longer emits an error message and quits on MS-Windows when
  invoked with the -r option.

* grep no longer misinterprets some alternations involving anchors
  (^, $, \<  \>  \B, \b).  For example, grep -E "(^|\B)a" no
  longer reports a match for the string "x a".
  [bug present since "the beginning"]

[Changes in behavior]
* Use of the --mmap option now elicits a warning.  It has been a no-op
  since March of 2010.

* grep no longer diagnoses write errors repeatedly; it exits after
  diagnosing the first write error.  This is better behavior when
  writing to a dangling pipe.

* Syntax errors in GREP_COLORS are now ignored, instead of sometimes
  eliciting warnings.  This is more consistent with programs that
  (e.g.) ignore errors in termcap entries.

=====================   Version 2.12 (23 APR 2012)   =====================

There have been 22 commits by 3 people in the 7 weeks since 2.11.
In spite of the relatively small number of commits, this is a
significant delta, with two regression fixes, Paul's conversion,
from grep's crufty old dir-traversal code to the use of gnulib's fts
and the change to how -r (--recursive) works.

[Bug fixes]
* "echo P|grep --devices=skip P" once again prints P, as it did in 2.10
  [bug introduced in grep-2.11]

* grep no longer segfaults with -r --exclude-dir and no file operand.
  I.e., ":|grep -r --exclude-dir=D PAT" would segfault.
  [bug introduced in grep-2.11]

* Recursive grep now uses fts for directory traversal, so it can
  handle much-larger directories without reporting things like "File
  name too long", and it can run much faster when dealing with large
  directory hierarchies. [bug present since the beginning]

* grep -E 'a{1000000000}' now reports an overflow error rather than
  silently acting like grep -E 'a\{1000000000}'.

[New features]
* The -R option now has a long-option alias --dereference-recursive.

[Changes in behavior]
* The -r (--recursive) option now follows only command-line symlinks.
  Also, by default -r now reads a device only if it is named on the
  command line; this can be overridden with --devices.  -R acts as
  before, so use -R if you prefer the old behavior of following all
  symlinks and defaulting to reading all devices.

11 years agoMerge branch 'vendor/GREP'
John Marino [Tue, 8 May 2012 21:54:01 +0000 (23:54 +0200)]
Merge branch 'vendor/GREP'

11 years agogrep: remove local option --only-files permanently
John Marino [Tue, 8 May 2012 17:02:03 +0000 (19:02 +0200)]
grep: remove local option --only-files permanently

The grep option --only-files exists only on DragonFly.  It was added in
late 2005 by Simon Schubert as a quick and dirty way to search object
directories using grep rather than a complex find command.  The issue
was that some directory symlinks were created that produced recursive
loops.  There wasn't a lot of support for the suggestion, but when the
code was altered to allow non-directory symlinks to be followed by the
--only-files option, the main objection was addressed.

The problem is that this modification is making it difficult to maintain
grep.  The code that it touches changes frequently, and its unmergable
with grep 2.12.  The burden of maintaining this option is too much
considering it may only have a single user.

Discussed with: Dillon

For the purposes of merging grep 2.12, the hammer bug fix is also being
removed since it doesn't merge cleanly, but it will be restored after
the merge.

11 years agoUpgrade grep version 2.9 to 2.12 on the vendor branch
John Marino [Tue, 8 May 2012 10:48:47 +0000 (12:48 +0200)]
Upgrade grep version 2.9 to 2.12 on the vendor branch

11 years agokernel -- vn: Implement BUF_CMD_FLUSH for vn(ode) devices.
Venkatesh Srinivas [Tue, 8 May 2012 12:33:56 +0000 (05:33 -0700)]
kernel -- vn: Implement BUF_CMD_FLUSH for vn(ode) devices.

File-backed vnode devices implement BUF_CMD_FLUSH by VOP_FSYNC-ing
the backing vnode.

11 years agoAdd a small wdog(9) manual page.
Sascha Wildner [Tue, 8 May 2012 07:11:22 +0000 (09:11 +0200)]
Add a small wdog(9) manual page.

11 years agotcp/sack: Guard against ACK reordering when adding SACK blocks
Sepherosa Ziehau [Tue, 8 May 2012 05:56:07 +0000 (13:56 +0800)]
tcp/sack: Guard against ACK reordering when adding SACK blocks

The reordered ACK could carry SACK blocks which are all covered by
tcpcb.snd_una

11 years agortld: Fix gethints()
John Marino [Mon, 7 May 2012 15:56:36 +0000 (17:56 +0200)]
rtld: Fix gethints()

The function that retrieves the hints file contents had a logic flaw.
It's supposed to return either the full or filtered version of the
hints file depending if the object has the nodefaultlib flag set or
not.  The problem was that every subsequent call would return the
first call's result regardless of the nodefaultlib flag setting.

The function's API was changed to simplify the code.  The function is
never called without a valid object, so there was no need to test for
that in order the check the nodefaultlib flag.  Now the flag is passed
to gethints() directly.

Reported and submitted by: Konstantin Belousov

11 years agokernel -- ffs: Correct incorrect prototype change that snuck into last commit.
Venkatesh Srinivas [Mon, 7 May 2012 20:28:00 +0000 (13:28 -0700)]
kernel -- ffs: Correct incorrect prototype change that snuck into last commit.

11 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Venkatesh Srinivas [Mon, 7 May 2012 20:25:13 +0000 (13:25 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

11 years agokernel - Attempt to fix illegal xfer buffer in ulpt*
Matthew Dillon [Mon, 7 May 2012 18:41:27 +0000 (11:41 -0700)]
kernel - Attempt to fix illegal xfer buffer in ulpt*

Use usbd_alloc_buffer() to allocate the dummy input buffer for reading
status from the printer instead of passing a (possibly badly misaligned or
illegally addressed) buffer embedded in the softc.

This appears to fix numerous issues with ulpt on 64-bit systems.

11 years agokernel -- ffs: Softdep lock and assorted fixes
Venkatesh Srinivas [Mon, 7 May 2012 15:28:48 +0000 (08:28 -0700)]
kernel -- ffs: Softdep lock and assorted fixes

* Remove interlocked_sleep; we can just use lksleep directly

* sema_get no longer eats the interlock passed in; all of its
  callers were retaking the lock eventually or immediately.

* softdep was setting up a callout to wake itself in request_cleanup.
  Switch to directly using timeout in lksleep for this purpose.

* Do not access inodedep structure outside of softdep lock in
  softdep_update_inodeblock for buffer field.

* Remove prio field from semaphores; they were unused and the DFly
  tsleep routines do not respect priority anyway.

* Do not release softdep lock before panic()ing

11 years agodevelopment.7: Fix the git documentation URL.
Sascha Wildner [Mon, 7 May 2012 13:02:20 +0000 (15:02 +0200)]
development.7: Fix the git documentation URL.

Reported-by: Joachim de Groot <jdegroot@web.de>
11 years agopw: Sync with FreeBSD
Peter Avalos [Sun, 6 May 2012 19:11:50 +0000 (12:11 -0700)]
pw:  Sync with FreeBSD

* Spelling fixes.
* Stop hard-coding default directory mode as 0777.
* Use arc4random_uniform() to avoid "modulo bias".
* Before updating the password database, the pw(8) utility first
  performs a sanity check by invoking "pwd_mkdb -C".  However, if this
  failed it silently returned success.  Fix this so it fails the update
  operation instead.
* Increase the size of the salt in pw(8) from 8 to 32.
* Make it possible to have a '/' in the salt.
* Add the groupmod '-d' option to pw to allow the deletion of existing
  users from a group without the need to perform the same operation by
  replacing the existing list via the '-M' option.  The '-M' option
  requires someone to fetch the existing members with pw, deleting the
  undesired members from the list and sending the altered list back.
* Do the right thing with symlinks in the skeleton directory.
* Accept passwords which contain whitespace.
* Introduce the new option -M to allow to set the permissions of the
  user's newly created home directory.
* Use strlcpy(3).
* Shift file locking to source file instead of temp file.
* Add a `-H <fd>' option that is like `-h <fd>', but accepts an already
  encrypted password on the specified file descriptor.

DragonFly-bug: <http://bugs.dragonflybsd.org/issue2362>
Obtained-from:  FreeBSD

11 years agortld.1: Some mdoc improvement.
Sascha Wildner [Sun, 6 May 2012 19:23:31 +0000 (21:23 +0200)]
rtld.1: Some mdoc improvement.

11 years agoarcmsr(4): Sync with FreeBSD.
Sascha Wildner [Sun, 6 May 2012 17:18:28 +0000 (19:18 +0200)]
arcmsr(4): Sync with FreeBSD.

Updates to 1.20.00.22

Some bugfixing (mainly, better timeout handling) and cleanups.

11 years agortld(1): Add shared object search order to the man page
John Marino [Sun, 6 May 2012 12:25:20 +0000 (14:25 +0200)]
rtld(1): Add shared object search order to the man page

The shared library search order on the dynamic linker was updated a few
weeks ago, but the man page was not updated to reflect its new behavior.
DragonFly's search order is the same as Linux, but differs from FreeBSD
and other BSDs due to the recently added support for DT_RUNPATH and
-z nodefaultlib.

To clarify, FreeBSD and DragonFly *recognized* the DT_RUNPATH dynamic
tag but considered it an alias of DT_RPATH and thus wasn't handling the
tag as intended.

DragonFly is likely is the only BSD that searches shared objects like
Linux, but FreeBSD developers have patches from DragonFly in case they
want to follow suit.

11 years agoamdsbwd.4 & ichwd.4: Clean up SEE ALSO.
Sascha Wildner [Sun, 6 May 2012 10:22:24 +0000 (12:22 +0200)]
amdsbwd.4 & ichwd.4: Clean up SEE ALSO.

Also, bump the date to when it was brought in.

11 years agoisa.4: List amdsbwd(4) and ichwd(4).
Sascha Wildner [Sun, 6 May 2012 09:50:26 +0000 (11:50 +0200)]
isa.4: List amdsbwd(4) and ichwd(4).

11 years agoAdd a missing '-width' in various manpages' lists.
Sascha Wildner [Sun, 6 May 2012 09:32:52 +0000 (11:32 +0200)]
Add a missing '-width' in various manpages' lists.

11 years agoImport amdsbwd(4) from FreeBSD
Francois Tigeot [Thu, 3 May 2012 22:06:47 +0000 (00:06 +0200)]
Import amdsbwd(4) from FreeBSD

This is a device driver for the watchdog timer included in SB600
and more recent AMD south bridges.

11 years agortld: Utilize malloc capability of recently updated realpath
John Marino [Sat, 5 May 2012 16:10:56 +0000 (18:10 +0200)]
rtld: Utilize malloc capability of recently updated realpath

Now that DragonFly's realpath works like the FreeBSD version, rtld can
use the FreeBSD code without modification which is a little more
efficient.

11 years agorealpath(3): Upgrade to POSIX IEEE Std 1003.1-2008
John Marino [Sat, 5 May 2012 16:07:58 +0000 (18:07 +0200)]
realpath(3): Upgrade to POSIX IEEE Std 1003.1-2008

Recent updates to realpath implements some of the missing POSIX
functionality, but the requirement to allocate memory for the pointer
returned by the function when a null pointer is passed to the
resolved_path argument was missing.

The prototype changes in the following ways:
1.  The restrict type qualifier is added to both arguments
2.  The second argument changes from "char resolved[PATH_MAX]" to
    "char * resolved"

The new prototype is backwards-compatible with the old one.

This should bring realpath up to Open Group Specifications Issue 7
IEEE Std 1003.1-2008
http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html

Taken from:
FreeBSD SVN 206893 (20 APR 2010)
FreeBSD SVN 206898 (20 APR 2010)
FreeBSD SVN 217144 (08 JAN 2011)
FreeBSD SVN 227090 (04 NOV 2011)

11 years agokernel/crypto: Remove some unnecessary casts to the own type.
Sascha Wildner [Sat, 5 May 2012 08:25:39 +0000 (10:25 +0200)]
kernel/crypto: Remove some unnecessary casts to the own type.

11 years agokernel: Remove some unused variables.
Sascha Wildner [Sat, 5 May 2012 08:01:30 +0000 (10:01 +0200)]
kernel: Remove some unused variables.

11 years agomps(4): Use a variable.
Sascha Wildner [Sat, 5 May 2012 07:47:28 +0000 (09:47 +0200)]
mps(4): Use a variable.

11 years agortld: Add two special directives to libmap.conf
John Marino [Fri, 4 May 2012 16:54:27 +0000 (18:54 +0200)]
rtld: Add two special directives to libmap.conf

include <file>:
    Parse the contents of file before continuing with the current file.

includedir <dir>:
    Parse the contents of every file in dir that ends in .conf before
    continuing with the current file.

Any file or directory encountered while processing include or includedir
directives will be parsed exactly once, even if it is encountered multiple
times.

Taken from FreeBSD SVN 234851 (30 APR 2012) with modification:

1) DragonFly realpath works differently than FreeBSD's and doesn't
   accept a null value for the resolved_path argument.
2) FreeBSD's debug lines reflect the wrong function, lm_init, instead
   of lmc_parse_file.  lmc_parse_dir also calls lmc_parse_file, so
   the debug message is definitely wrong and was corrected.
3) FreeBSD keeps using path even after determining realpath and putting
   the result in the rpath variable.  It uses path for debug messages
   and opening a file descriptor.  DragonFly doesn't use path again and
   only uses rpath after it is determined.
4) FreeBSD's lmc_parse_file code had a bug in the linked list used to
   track which conf files had already been parsed.  Memory for the
   filename was allocated so it wouldn't get overwritten after multiple
   passes, which is standard for the includedir functionality.