yongari [Wed, 20 Aug 2008 04:51:09 +0000 (04:51 +0000)]
MFC r181619:
Restore link state handling which was broken in rev 1.69.
Also report current link state while auto-negotiation is in
progress.
With this change link loss should be reported within a second
and drivers that rely on link state should work.
jhb [Fri, 15 Aug 2008 20:17:08 +0000 (20:17 +0000)]
MFC: If the kernel fails to allocate resources for the initial value of a
PCI BAR, then zero the BAR and clear the resource list entry so that a
new resource will be allocated by the device driver.
edwin [Fri, 15 Aug 2008 01:18:05 +0000 (01:18 +0000)]
MFC of r181413, r181418, r181421, r181424
Set magic fbsd:nokeywords property
Remove Theory, which isn't part of the zoneinfo module but came out
of /head/usr.sbin/zic (and isn't installed from there neither).
MFC of tzdata2008c
- Africa/Morocco will have DST in 2008.
- Asia/Choibalsan should be GMT+08:00.
- Asia/Pakistan will have DST in 2008.
MFC of tzdata2008d
- Mauritius will have a DST experiment between 2008-11-01 and 2009-03-31.
- Add/Fix historical data for C-Eur, the SovietZone, Germany,
Bahamas, San Luis.
- Add information about West Para (America/Santarem)
- America/Eirunepe and America/Rio_Branco go to UTC-4
MFC on tzdata2008e:
- Fix dates in 2008/2009 for Africa/Mauritius.
- Leap second notification for the end of 2008.
kib [Thu, 14 Aug 2008 12:33:40 +0000 (12:33 +0000)]
MFC r176431 by marcel:
Don't check the bpbSecPerTrack and bpbHeads fields of the BPB. They
are typically 0 on new ia64 systems. Since we don't use either field,
there's no harm in not checking.
edwin [Thu, 14 Aug 2008 01:47:42 +0000 (01:47 +0000)]
MFC of r181352
Update the units library file.
- Merge changes from NetBSD and OpenBSD.
- Add the Euro as a primitive unit, add old converted currency and
pegged currency (Obtained from Wikipedia)
- Rename "dollar" to "usdollar" as primitive unit, remove non-pegged
currency and add pegged currency (Obtained from Wikipedia)
- Updated the accuracy of a lot of constants (Obtained from Wikipedia)
kientzle [Wed, 13 Aug 2008 05:39:33 +0000 (05:39 +0000)]
MFC r178717:
* Doc fix: --format can be used with -r or -u
* Remove an erroneous check that suppressed the
above combo, even though lower-level code supports it
* Doc fix: -o is a synonym for --format=ustar when used with -c/-r/-u
kientzle [Wed, 13 Aug 2008 05:02:43 +0000 (05:02 +0000)]
Fixup the mergeinfo slightly; record that libarchive/archive.h and
libarchive/archive_read_support_format_iso9660.c are up-to-date wrt
the other MFCs to this dir.
kientzle [Wed, 13 Aug 2008 04:11:22 +0000 (04:11 +0000)]
MFC r180016,180027-180028,180122-180123,181489: Implement CRC validation
when reading Zip archives. Update the test suite to check that the CRC
actually fails for damaged entries.
kientzle [Wed, 13 Aug 2008 04:03:36 +0000 (04:03 +0000)]
MFC r179679,179799,179915: Various fixes to the mtree reader:
* Parsing of malformed device specifications
* Be more careful about closing file descriptors
* Handle quoted newlines and C-style escapes
kientzle [Wed, 13 Aug 2008 03:27:33 +0000 (03:27 +0000)]
MFC r179321,179349,179790,179797,179801-179802
This brings in all of the updates from libarchive 2.5.4b plus
the most critical of the fixes from 2.5.5. Note the internal
version is 1.9.25 to mark the fact that it still uses the
libarchive 1.x API in order to preserve API/ABI compatibility
with previous FreeBSD 6 releases.
ed [Tue, 12 Aug 2008 08:56:19 +0000 (08:56 +0000)]
MFC of SVN r181466:
Delete unused files in the window(1) directory that contain a colon.
During the import of the 4.4BSD Lite sources, four files got added to
the repository called :tt, :tty, :var and :ww. They seem to contain some
kind of debug information. These files aren't used/installed anywhere.
Unfortunately the colons in the filenames prevents us from checking out
the source tree on file systems that don't support colons (such as FAT).
Just remove these unneeded files to keep SVN happy.
kientzle [Mon, 11 Aug 2008 05:05:29 +0000 (05:05 +0000)]
MFC r177201, r177212: Implement /PaxHeader.<pid>/ as the fake directory
used to store the pax extended headers, per SUS, but disable it because
it mucks up testing.
kientzle [Mon, 11 Aug 2008 03:00:44 +0000 (03:00 +0000)]
MFC r177193, r177199: If the locale of the filename on disk doesn't
match the locale in effect when the archiver is run, then attempts
to convert filenames to UTF-8 can fail and result in truncated filenames
in pax format archives. Detect such failures and fall back on storing
the filename as a binary string in such cases. Read the log message
for r177199 for more details about this problem.
On FreeBSD, using "C" locale is a good workaround.
kientzle [Mon, 11 Aug 2008 02:42:08 +0000 (02:42 +0000)]
MFC r177192: The default block size actually should not be published
as a public constant. Just hardcode the numeric value for now
until we can do something more clever.
kientzle [Mon, 11 Aug 2008 02:36:45 +0000 (02:36 +0000)]
MFC r177188: Allow archive_entry_clear() (and hence, archive_entry_free()) to
graciously accept a NULL argument. This makes archive_entry_free() parallel
with free(3).
kientzle [Mon, 11 Aug 2008 02:31:07 +0000 (02:31 +0000)]
MFC r177185,r177186,r177187: Rework the versioning interface again.
The new interface has fewer elements and seems to be easier to use.
Of course, I'm retaining the old interface until libarchive 3.x.
kientzle [Mon, 11 Aug 2008 02:15:12 +0000 (02:15 +0000)]
Don't MFC r177122. It's nice to be able to read very large
'ar' archives, but it changes the API, so it is inappropriate
for a stable branch. 'ar' support is new enough in this branch
that the lack of support for GNU/SVR4 filename tables over 64k is not
a problem.
kientzle [Mon, 11 Aug 2008 02:00:37 +0000 (02:00 +0000)]
MFC r176432: sanity-check the compression buffer size for gzip.
This should be overhauled to allow the compression buffer to be
larger than the output block size, but the check is better than
nothing.
kientzle [Mon, 11 Aug 2008 01:57:42 +0000 (01:57 +0000)]
MFC ISO9660 improvements from r176403 and r179321:
* More portable substitute for platforms that lack timegm()
* detect buffer allocation overflow
* don't be confused by zero-length files (such as symlinks or device nodes)
with garbage offsets; this seems to fix most instances of "Ignoring
out-of-order file"
kientzle [Sun, 10 Aug 2008 21:57:23 +0000 (21:57 +0000)]
MFC r176396-176400,176405: various portability fixes: Don't use
non-portable symbolic constants when portable numbers will do,
use O_BINARY on platforms that define it, accomodate systems
that lack device nodes.
kientzle [Sun, 10 Aug 2008 21:35:28 +0000 (21:35 +0000)]
MFC r175422: Reconnect the progress callback that got disconnected
in the 2.0 refactoring of the write-to-disk logic. This isn't
used by bsdtar, but is used by other libarchive-based applications.
Always accept -l with the SUSv2 meaning. GNU tar finally
adopted this usage a few years ago so there's no need
to recognize the old GNU behavior nor to error out if
we think someone is requesting it.
* prototypes for optarg/optind on platforms that don't already have them
* Disambiguate version number macros
* Remove unnecessary PACKAGE_NAME macro
* Hook for forthcoming bsdtar test suite