8131 Commits
Author SHA1 Message Date
Tim Kientzle b5b5ee12d4 IFC
SVN-Revision: 232
2008-10-21 18:23:06 -04:00
Tim Kientzle bbd79cd157 Recent changes to the read-ahead semantics require a
a slight change to the look ahead strategy for SFX ZIP archives.
The new code repeatedly extends the look-ahead window in small
increments.

SVN-Revision: 231
2008-10-21 18:17:25 -04:00
Tim Kientzle a4a57059af Don't use getopt_long() anymore, so don't need to check for it.
SVN-Revision: 230
2008-10-21 18:14:07 -04:00
Tim Kientzle 948548dcca Implement a custom command-line parser for cpio. In return for
these 80 extra lines of code, we get consistent argument
handling on all platforms which in turn will simplify the test
harness.  I did try importing a "standard" getopt_long()
implementation but those tend to be 600+ lines of code and
provoke some awkward namespace conflicts with platform getopt().

SVN-Revision: 229
2008-10-21 18:13:29 -04:00
Tim Kientzle a17c3730b3 Remove a defunct reference to getopt_long()
SVN-Revision: 228
2008-10-21 18:08:41 -04:00
Tim Kientzle d66153e743 Return ARCHIVE_FATAL instead of -1 for read failures here.
Make end-of-file persistent; don't call the client again.
Comment the upcoming change to the end-of-file semantics for now,
since I still need to do a little more groundwork.

SVN-Revision: 227
2008-10-19 18:40:55 -04:00
Tim Kientzle b5287f5793 Make the end-of-archive detection work properly with the new
strict read_ahead() semantics, which return a failure instead of
a short read at end-of-file.  This seems to be one of the very
few cases where the short read is actually informative.

SVN-Revision: 226
2008-10-19 18:38:35 -04:00
Tim Kientzle 8fe4366762 Don't read ahead more than necessary when scanning cpio headers.
SVN-Revision: 225
2008-10-19 18:01:45 -04:00
Tim Kientzle ff42af1a32 Make a couple of tests a bit more informative and a bit more robust.
SVN-Revision: 224
2008-10-19 17:59:19 -04:00
Tim Kientzle 605402d015 Tighten up the semantics of read_ahead(): It will now never
return a short read except at end-of-file (and I think that should
probably return an error as well).  The old loose semantics
resulted in a lot of extra checks throughout the library to verify
the size of the returned data; this is a step towards removing
most such checks.

N.B.: I've only made this change to compression_none for
now since I'm planning to refactor a lot of the compression pipeline
very soon anyway.

SVN-Revision: 223
2008-10-19 14:57:16 -04:00
Tim Kientzle 3c700f83cd Add a couple of new test files to the portable Makefile.am
SVN-Revision: 222
2008-10-19 14:36:23 -04:00
Tim Kientzle d583bb4ed5 IFC
SVN-Revision: 221
2008-10-19 13:20:47 -04:00
Tim Kientzle fa9a301ccc __LA_DEAD is a private convention; don't publicize it.
Also, clean up leaks of a few other __LA_ symbols that
were introduced to make the public headers more portable.

SVN-Revision: 220
2008-10-19 13:17:29 -04:00
Tim Kientzle 27a6ba7d05 Custom from-scratch command-line parser for bsdtar. This is
both more portable and more straightforward than the earlier
getopt()/getopt_long() wrapper approach, requires no fancy
configure/make glue to choose a platform implementation, and
gives me consistent command line parsing on every platform,
which should greatly simplify my attempts at building a robust
test suite.

I should have done this years ago.

SVN-Revision: 219
2008-10-06 18:55:16 -04:00
Tim Kientzle fe412875fc Fix bsdtar building on platforms that already have an older
libarchive installed.

SVN-Revision: 218
2008-10-06 18:39:07 -04:00
Joerg Sonnenberger 5486b51d7d Introduce __LA_DEAD to replace current unportable use of
__dead2 as discussed in August.

SVN-Revision: 217
2008-10-01 10:07:50 -04:00
Joerg Sonnenberger 1f427f0a58 Merge inline hacks into a single conditional. Add MIPSpro based
on report from Stuart Shelton in NetBSD PR 39628.

SVN-Revision: 216
2008-10-01 10:06:08 -04:00
Tim Kientzle 22e53db05a Make formatting consistent with source in SVN.
SVN-Revision: 215
2008-09-29 17:09:56 -04:00
Tim Kientzle 2d70f057f9 FreeBSD does have birthtimespec.tv_nsec
SVN-Revision: 214
2008-09-29 17:09:37 -04:00
Tim Kientzle 5807a54143 Test file was accidentally omitted from change 150414
SVN-Revision: 213
2008-09-29 17:03:23 -04:00
Tim Kientzle 82e3bb2a51 On FreeBSD, we know how to write birthtime to disk.
Add a new test to exercise different time specifications and
make sure that omitted timestamps, high-res timestamps are
all handled correctly.

SVN-Revision: 212
2008-09-24 17:43:07 -04:00
Tim Kientzle 8b8b362c88 Solution files for building with Visual C++, thanks to Ivailo Petrov.
SVN-Revision: 211
2008-09-18 18:34:45 -04:00
Tim Kientzle f17b5830fe Read/write birthtime in pax format archives.
Start a basic test for 'pax' format:  Write entries, read them back,
make sure they are the same.  This needs to be extended.  A lot.

Submitted by:	Pedro Giffuni (birthtime)

SVN-Revision: 210
2008-09-17 18:27:56 -04:00
Tim Kientzle 8ac32d2763 archive_entry support for storing and managing birthtime data
Submitted by:	Pedro Giffuni

SVN-Revision: 209
2008-09-17 18:04:52 -04:00
Tim Kientzle c91d37e64f Compile the lzma read module on FreeBSD, even though it does nothing
without the lzmadec library.

SVN-Revision: 208
2008-09-17 17:35:14 -04:00
Tim Kientzle b1ab1b2681 LZMA support via GPL lzmadec library.
I'd be happier if there were a BSD-licensed lzma library; this
cannot be enabled in FreeBSD base system until that's resolved.

Submitted by:	Miklos Vajna

SVN-Revision: 207
2008-09-17 17:34:29 -04:00
Tim Kientzle ce16a14927 IFC
SVN-Revision: 206
2008-09-17 17:23:41 -04:00
Tim Kientzle 07be984c63 Windows compilers don't support C99 int64_t. Use __int64 on Windows
instead of 'long long' to make the size assumptions clearer.

SVN-Revision: 205
2008-09-17 17:03:33 -04:00
Tim Kientzle 9fd02e0fc8 IFC
SVN-Revision: 204
2008-09-15 18:04:09 -04:00
Tim Kientzle c5e9786e6b IFC
SVN-Revision: 203
2008-09-13 18:55:05 -04:00
Tim Kientzle 1ffff99b83 IFC
SVN-Revision: 202
2008-09-11 18:48:46 -04:00
Tim Kientzle c2c44bcb12 Style fixes: Use Unix-style line endings for consistency with
rest of source (fortunately, most Windows code editors are
agnostic about line endings).  Remove trailing spaces, tab
after #define, remove a couple of definitions that are
not actually used in the source.

SVN-Revision: 201
2008-09-11 18:46:08 -04:00
Tim Kientzle e55af97f7c IFC: Portability fixes, per Ivailo Petrov
SVN-Revision: 200
2008-09-11 18:21:39 -04:00
Tim Kientzle 4a15a5395a Updates to the Windows support files.
Submitted by:	Ivailo Petrov

SVN-Revision: 199
2008-09-11 18:20:22 -04:00
Tim Kientzle c15d8e243b A couple of extra configuration tests, inspired by missing features
on various Windows compilers.
Submitted by:	Ivailo Petrov

SVN-Revision: 198
2008-09-11 18:19:54 -04:00
Tim Kientzle 3deba4d2cd IFC
SVN-Revision: 197
2008-09-07 17:25:57 -04:00
Tim Kientzle e9c0ba8344 IFC
SVN-Revision: 196
2008-09-06 12:33:54 -04:00
Tim Kientzle 7a95be4583 IFC
SVN-Revision: 194
2008-09-04 19:17:01 -04:00
Tim Kientzle f5eb945d50 IFC
SVN-Revision: 193
2008-09-01 10:38:22 -04:00
Tim Kientzle d2322d4609 Style: sort entries
SVN-Revision: 192
2008-08-31 18:04:14 -04:00
Tim Kientzle 0d6b5cc744 Correct a couple of typos in the missing-atime and missing-mtime logic
SVN-Revision: 191
2008-08-30 19:29:46 -04:00
Tim Kientzle 8e71fa7280 IFC: Resolve different handling of missing atime/mtime in SVN vs
current P4 code (which relies on some facilities not yet in SVN).

SVN-Revision: 190
2008-08-30 18:43:15 -04:00
Tim Kientzle 9a72ef4d23 IFC
SVN-Revision: 189
2008-08-27 19:43:15 -04:00
Tim Kientzle 691997fdef IFC
SVN-Revision: 188
2008-08-24 19:41:44 -04:00
Tim Kientzle dc4231345d I've been corrected: -no-undefined is meaningful for
other platforms.

SVN-Revision: 187
2008-08-24 19:02:20 -04:00
Tim Kientzle d75f8db191 Update Makefile.am with some new reference files for bsdtar_test.
SVN-Revision: 186
2008-08-23 20:29:11 -04:00
Tim Kientzle a4095cee91 Include the new cpio tests.
SVN-Revision: 185
2008-08-23 20:19:54 -04:00
Tim Kientzle 623fd7d3ad IFC
SVN-Revision: 184
2008-08-23 19:37:23 -04:00
Tim Kientzle 171f7927e9 Update the description of -no-undefined, required by libtool on Cygwin.
SVN-Revision: 183
2008-08-23 19:33:45 -04:00
Tim Kientzle f3f868f20a IFC
SVN-Revision: 182
2008-08-19 18:33:06 -04:00