Ed Schouten
26fac73c1c
Remove an unused variable.
2009-12-31 01:38:12 +00:00
Ed Schouten
e17aa6ff32
Add missing `void' keyword.
2009-12-31 01:37:26 +00:00
John Baldwin
bac2c9636c
Use _once() to initialize the pthread key for thread-local storage to hold
...
the results of gmtime() instead of using a pthread mutex directly.
MFC after: 1 week
2009-12-30 19:06:16 +00:00
Tim Kientzle
e02dd0d514
Remove some test files that are no longer used.
2009-12-30 06:37:58 +00:00
Tim Kientzle
8c78c2959a
Reserve constants for RPM unwrapper and XAR reader.
2009-12-30 06:28:30 +00:00
Tim Kientzle
b54f125538
Libarchive in FreeBSD is now synced up with 2.7.901a from
...
libarchive.googlecode.com
2009-12-30 06:25:19 +00:00
Tim Kientzle
8088bef24c
UU decoder. Now that libarchive can recursively taste input streams,
...
you can do things like this: tar xvf archive.tar.gz.uu
2009-12-30 06:12:03 +00:00
Tim Kientzle
0a1d787383
A raft of test changes and improvements from the Googlecode repository.
...
In particular, this includes tests for the new features I've merged
over the last few days.
2009-12-30 05:59:21 +00:00
Tim Kientzle
f124826e0d
Merge Michihiro NAKAJIMA's significant work on the ISO9660 reader
...
from googlecode:
* Support for zisofs compressed entries
* Support for relocated deep directories
* Direct calculation of link counts for accurate nlink values
even on images that lack Rockridge extensions
* Faster handling of the internal file lists.
* Better detection of ISO variants
2009-12-30 05:30:35 +00:00
Konstantin Belousov
d439b6c223
Document _FAST and _PRECISE clocks.
...
Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 3 days
2009-12-29 15:58:10 +00:00
Konstantin Belousov
5d2874abdd
Document CLOCK_SECOND, add cross-reference from time(3) to clock_gettime(2).
...
Based on submission by: pluknet gmail com
MFC after: 3 days
2009-12-29 14:29:08 +00:00
Konstantin Belousov
358ed16f75
Use clock_gettime(CLOCK_SECOND) instead of gettimeofday(2) for
...
implementation of time(3). CLOCK_SECOND is much faster.
No objections from: phk
Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 1 week
2009-12-29 12:47:47 +00:00
Tim Kientzle
24b76fe47f
Rationalize the support for cryptographic hashes.
2009-12-29 06:39:07 +00:00
Tim Kientzle
87a571f88a
Essentially eliminate problems with false hardlinks in POSIX cpio
...
archives by generating synthetic ino values and mapping values
from disk into the new values.
2009-12-29 06:34:23 +00:00
Tim Kientzle
9d7dd12525
Clear extraneous error messages.
2009-12-29 06:27:19 +00:00
Tim Kientzle
b1657eb07c
Zip write support for libarchive.
...
The initial implementation was developed by Anselm Strauss as part of
Google Summer of Code 2008, then completed by Joerg Sonnenberger.
2009-12-29 06:15:32 +00:00
Tim Kientzle
84b1d75646
If we're linking against liblzma, allow the decompressor to use up to
...
1<<30 bytes of memory, which is required for some streams.
Also, try to make the taster more discriminating about raw lzma streams.
The detection here is still really weak, though; please use xz instead
of lzma.
2009-12-29 06:06:20 +00:00
Tim Kientzle
25557ee5f4
Minor style fixes plus a fix for an obscure crash on certain malformed
...
mtree files.
2009-12-29 05:52:13 +00:00
Tim Kientzle
7f16f13149
Be a little more skeptical of dev/ino matches when reading cpio files.
...
This eliminates some false-positives in the hardlink detection logic.
2009-12-29 05:50:34 +00:00
Tim Kientzle
023a748ef3
Style and portability fixes for pax writer. Mostly very routine, except for:
...
* Use ino64 where appropriate
* Don't pass atime or nsec to ustar formatter
2009-12-29 05:47:46 +00:00
Tim Kientzle
1f8bbec2a4
Style fixes to tar reader:
...
For portability, prefer int64_t to off_t.
Improve numeric overflow handling when parsing.
Fix some variable types.
Eliminate some unused results.
2009-12-29 05:44:39 +00:00
Tim Kientzle
88f5df0d39
Various style fixes to the 'newc' cpio writer:
...
* Warn about truncation of ino
* Use a macro to hide the somewhat obscure pad-to-multiple-of-4 calculation
* Eliminate some unused variables
2009-12-29 05:41:57 +00:00
Tim Kientzle
bb8a41af51
Various fixes when creating objects on disk:
...
* Write xattrs last instead of first (required on platforms that use
system xattrs for security attributes)
* Better handling of chdir() failures
* Don't bother trying to shorten files via seek()/write()
* Fix build on systems that lack link()/symlink()/mknod()
* Prefer futimens()/utimensat() when they're present
2009-12-29 05:35:40 +00:00
Tim Kientzle
dee0ce0cbd
Catch decompression failures earlier. In particular, this gives
...
immediate feedback if we fail to fork an external decompression program.
2009-12-29 05:30:23 +00:00
Tim Kientzle
e2196d3e85
Various style and portability fixes, including:
...
* Enforce option interface can only be used before the archive is opened
* Correctly handle large skips on platforms with 32-bit off_t
* Use int64_t instead of off_t
2009-12-29 05:28:28 +00:00
Tim Kientzle
081e9a983c
64-bit ino support and discourage bad use of this header.
2009-12-29 05:20:12 +00:00
Antoine Brodin
13e403fdea
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
...
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.
PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month
2009-12-28 22:56:30 +00:00
Xin LI
31faa7deeb
Grammar fix.
...
Submitted by: Kenyon Ralph <kenyon kenyonralph com>
MFC after: 1 week
2009-12-28 18:51:26 +00:00
Luigi Rizzo
e59084e086
bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expects
...
to find it there. Unfortunately this reintroduces the dependency
on ip_fw_pfil.c
2009-12-28 12:29:13 +00:00
Luigi Rizzo
b6d33186d2
this file is also affected by the ipfw changes
2009-12-28 10:48:01 +00:00
Tim Kientzle
989f6ccc3f
Portability.
2009-12-28 06:59:35 +00:00
Tim Kientzle
0d722d6394
Remove some dead assignments, fix some declarations.
2009-12-28 03:33:05 +00:00
Tim Kientzle
e15da0400a
Clarify an example so Linux folks won't keep getting confused by this point.
2009-12-28 03:31:29 +00:00
Tim Kientzle
456bd00333
Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r.
2009-12-28 03:30:31 +00:00
Tim Kientzle
f773eba566
Fix some unused variables and dead assignments.
2009-12-28 03:28:21 +00:00
Tim Kientzle
108f9d8324
Remove an unused variable and an unreachable statement.
2009-12-28 03:25:33 +00:00
Tim Kientzle
409cc2477d
Fix line endings.
2009-12-28 03:24:56 +00:00
Tim Kientzle
354c05f65d
Discourage external use of this header.
2009-12-28 03:20:54 +00:00
Tim Kientzle
4ffba49a6f
Remove unused variable.
2009-12-28 03:14:30 +00:00
Tim Kientzle
6f1d1a5084
O_BINARY for Windows.
2009-12-28 03:13:49 +00:00
Tim Kientzle
966062dd11
Handle Zip CRC validation for uncompressed Zip archives even on
...
platforms that lack zlib.
2009-12-28 03:11:36 +00:00
Tim Kientzle
10f117ebc2
Include limits.h; remove unused variable.
2009-12-28 03:06:27 +00:00
Tim Kientzle
09bf59d4b9
Use ino64 interface.
2009-12-28 03:05:31 +00:00
Tim Kientzle
2b1f175936
Use new ino64 interface.
2009-12-28 03:03:00 +00:00
Tim Kientzle
9adedf9679
New archive_file_count() utility.
2009-12-28 02:58:14 +00:00
Tim Kientzle
042c735c81
Portability fixes.
2009-12-28 02:45:56 +00:00
Tim Kientzle
65d5426feb
Various portability fixes, plus:
...
* New "ino64" field.
* New UTF8 interfaces for hardlink/symlink updates
2009-12-28 02:41:27 +00:00
Tim Kientzle
13f322aec3
Remove an unused variable and an unnecessary increment.
2009-12-28 02:33:22 +00:00
Tim Kientzle
cc1e3ebe54
Eliminate an unused assignment.
2009-12-28 02:29:21 +00:00
Tim Kientzle
2866e9d5d0
Portability: Set the file descriptor to binary mode on Win32
2009-12-28 02:28:44 +00:00