]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
16 years agoFix a handful of bugs in untar.c and significantly extend the opening
Tim Kientzle [Sat, 29 Aug 2009 03:42:55 +0000 (23:42 -0400)] 
Fix a handful of bugs in untar.c and significantly extend the opening
commentary, which hasn't really been updated since 2006 or so.  In
particular, I went back and rechecked the sizes on modern FreeBSD and
found that things have bloated quite a bit: statically compiled,
untar.c is now about 25% larger than hello.c, where it used to be
almost 25% smaller.

SVN-Revision: 1396

16 years agoReverse-merge r1394 from release/2.7 branch: Fix sparse
Tim Kientzle [Thu, 27 Aug 2009 04:25:42 +0000 (00:25 -0400)] 
Reverse-merge r1394 from release/2.7 branch:  Fix sparse
file handling on systems that lack ftruncate().

SVN-Revision: 1395

16 years agoOoops. Accidentally committed a local change to make VS9 happy with
Tim Kientzle [Wed, 26 Aug 2009 05:12:06 +0000 (01:12 -0400)] 
Ooops.  Accidentally committed a local change to make VS9 happy with
the assertion failure messages.

SVN-Revision: 1393

16 years agoSVN-Revision: 1392
Tim Kientzle [Wed, 26 Aug 2009 04:40:55 +0000 (00:40 -0400)] 
SVN-Revision: 1392

16 years agoUpdate to match changes to line_reader() and include_from_file() to
Tim Kientzle [Sun, 23 Aug 2009 05:08:52 +0000 (01:08 -0400)] 
Update to match changes to line_reader() and include_from_file() to
properly handle varying line termination.

SVN-Revision: 1390

16 years agobsdtar_test can't be run without bsdtar.
Tim Kientzle [Sun, 23 Aug 2009 05:01:28 +0000 (01:01 -0400)] 
bsdtar_test can't be run without bsdtar.

SVN-Revision: 1387

16 years agoTest a file with a single-character name.
Tim Kientzle [Sun, 23 Aug 2009 05:01:10 +0000 (01:01 -0400)] 
Test a file with a single-character name.

SVN-Revision: 1386

16 years agoTest various line separators in -T input, including CRLF, NL, and null.
Tim Kientzle [Sun, 23 Aug 2009 04:54:32 +0000 (00:54 -0400)] 
Test various line separators in -T input, including CRLF, NL, and null.
Fix tar to pass the test.

SVN-Revision: 1385

16 years agobsdcpio must be built before bsdcpio_test can be run.
Tim Kientzle [Sun, 23 Aug 2009 04:01:47 +0000 (00:01 -0400)] 
bsdcpio must be built before bsdcpio_test can be run.

SVN-Revision: 1382

16 years agoLocate CreateHardLink and CreateSymbolicLink dynamically, so as to not get runtime...
Tim Kientzle [Sun, 23 Aug 2009 03:36:17 +0000 (23:36 -0400)] 
Locate CreateHardLink and CreateSymbolicLink dynamically, so as to not get runtime startup errors on XP or earlier, which lack these functions.

SVN-Revision: 1381

16 years agoRewrite a lot of the test assertion framework.
Tim Kientzle [Sun, 23 Aug 2009 03:18:13 +0000 (23:18 -0400)] 
Rewrite a lot of the test assertion framework.
Mostly, this was done just to simplify the code, but it also brings
the file/line reporting into one place where it can be adjusted to
suit different environments (e.g., Visual Studio expects "file.c(89):
message" instead of "file.c:89: message").

SVN-Revision: 1380

16 years agoNew cmake test target: make run_all_tests
Tim Kientzle [Thu, 20 Aug 2009 02:46:31 +0000 (22:46 -0400)] 
New cmake test target: make run_all_tests
This is still experimental and subject to change.

SVN-Revision: 1379

16 years agomemset() is sufficiently ubiquitous that I don't see a need to test for it.
Tim Kientzle [Sun, 16 Aug 2009 02:20:37 +0000 (22:20 -0400)] 
memset() is sufficiently ubiquitous that I don't see a need to test for it.

SVN-Revision: 1378

16 years agoExperimenting with a new way to run tests from cmake.
Tim Kientzle [Sun, 16 Aug 2009 02:10:09 +0000 (22:10 -0400)] 
Experimenting with a new way to run tests from cmake.

SVN-Revision: 1377

16 years agoIssue 36: Fix acl probing on Linux.
Tim Kientzle [Sun, 16 Aug 2009 00:21:30 +0000 (20:21 -0400)] 
Issue 36: Fix acl probing on Linux.

I used the additional library checks directly from the patch provided.
Probing the functions properly proved a bit more challenging because
the indicated headers aren't the same on all systems.  Instead, I
generalized the existing header tests to build up a list ${INCLUDE}
of all headers present on the local system and used that.

SVN-Revision: 1376

16 years agoMinor corrections to windows run-time function detection.
Tim Kientzle [Wed, 12 Aug 2009 03:52:17 +0000 (23:52 -0400)] 
Minor corrections to windows run-time function detection.

SVN-Revision: 1365

16 years agosvn:ignore updates
Tim Kientzle [Wed, 12 Aug 2009 01:48:36 +0000 (21:48 -0400)] 
svn:ignore updates

SVN-Revision: 1364

16 years agoEncourage people not to use libarchive internal headers.
Tim Kientzle [Wed, 12 Aug 2009 01:45:49 +0000 (21:45 -0400)] 
Encourage people not to use libarchive internal headers.

SVN-Revision: 1363

16 years agoHard/symlinks aren't support on Windows XP; fail gracefully.
Tim Kientzle [Wed, 12 Aug 2009 01:44:20 +0000 (21:44 -0400)] 
Hard/symlinks aren't support on Windows XP; fail gracefully.

SVN-Revision: 1362

16 years agoStyle: fix trailing whitespace.
Tim Kientzle [Wed, 12 Aug 2009 01:43:31 +0000 (21:43 -0400)] 
Style: fix trailing whitespace.

SVN-Revision: 1361

16 years agoUse Cmake's target property "LOCATION" to locate bsdtar exe.
Tim Kientzle [Wed, 12 Aug 2009 01:42:49 +0000 (21:42 -0400)] 
Use Cmake's target property "LOCATION" to locate bsdtar exe.

SVN-Revision: 1360

16 years agoUpdate comments.
Tim Kientzle [Wed, 12 Aug 2009 01:42:04 +0000 (21:42 -0400)] 
Update comments.

SVN-Revision: 1359

16 years agoProbe acl_get_link and acl_get_link_np so that ACLs are properly
Tim Kientzle [Tue, 11 Aug 2009 15:55:52 +0000 (11:55 -0400)] 
Probe acl_get_link and acl_get_link_np so that ACLs are properly
read from symlinks.  Without this, link-related tests fail for cpio
on FreeBSD.  (Same as r1357, but for autoconf-generated builds.)

SVN-Revision: 1358

16 years agoFix cpio symlink tests on FreeBSD; the link-sensitive ACL routines
Tim Kientzle [Tue, 11 Aug 2009 15:14:32 +0000 (11:14 -0400)] 
Fix cpio symlink tests on FreeBSD; the link-sensitive ACL routines
weren't being properly configured, which was causing the regular
Posix mode bits to get overwritten.

SVN-Revision: 1357

16 years agoFix the extattr.h test; CHECK_INCLUDE_FILES() expects a
Tim Kientzle [Mon, 10 Aug 2009 03:49:32 +0000 (23:49 -0400)] 
Fix the extattr.h test; CHECK_INCLUDE_FILES() expects a
semicolon-separated list of headers.

SVN-Revision: 1356

16 years agoComment the libarchive CMakeLists.txt file
Tim Kientzle [Mon, 10 Aug 2009 03:39:32 +0000 (23:39 -0400)] 
Comment the libarchive CMakeLists.txt file

SVN-Revision: 1355

16 years agoDon't specify -q when running bsdcpio_test; it just prevents useful information from...
Tim Kientzle [Mon, 10 Aug 2009 03:35:08 +0000 (23:35 -0400)] 
Don't specify -q when running bsdcpio_test; it just prevents useful information from getting into the log files.

SVN-Revision: 1354

16 years agoUse LOCATION property to locate executable for testing purposes. It seems to actuall...
Tim Kientzle [Mon, 10 Aug 2009 03:34:27 +0000 (23:34 -0400)] 
Use LOCATION property to locate executable for testing purposes.  It seems to actually work.

SVN-Revision: 1353

16 years agoPrefer the standard CHECK_INCLUDE_FILE() and CHECK_INCLUDE_FILES(),
Tim Kientzle [Fri, 7 Aug 2009 04:42:18 +0000 (00:42 -0400)] 
Prefer the standard CHECK_INCLUDE_FILE() and CHECK_INCLUDE_FILES(),
refactor some of the header checks that rely on other headers.

SVN-Revision: 1352

16 years agoTest whether printf() supports %jd, %ju, %lld, or %llu.
Tim Kientzle [Fri, 7 Aug 2009 04:01:06 +0000 (00:01 -0400)] 
Test whether printf() supports %jd, %ju, %lld, or %llu.
This needs to be implemented in the autoconf machinery
and tar and cpio need to be taught to use it when printing
very large numbers.

SVN-Revision: 1351

16 years agoFix a compile error on MinGW build.
Tim Kientzle [Fri, 7 Aug 2009 03:34:59 +0000 (23:34 -0400)] 
Fix a compile error on MinGW build.

SVN-Revision: 1350

16 years agoFix bsdcpio build on VS9. There's still a minor build issue on MinGW that I need...
Tim Kientzle [Thu, 6 Aug 2009 05:29:00 +0000 (01:29 -0400)] 
Fix bsdcpio build on VS9.  There's still a minor build issue on MinGW that I need to track down.  I think some of the cpio_windows.c shims aren't needed and can be removed.

SVN-Revision: 1349

16 years agoClean up some build warnings in VS9.
Tim Kientzle [Thu, 6 Aug 2009 05:27:02 +0000 (01:27 -0400)] 
Clean up some build warnings in VS9.

SVN-Revision: 1348

16 years agoUse portable archive_entry services instead of S_ISBLK() and S_ISCHR() macros.
Tim Kientzle [Thu, 6 Aug 2009 05:03:38 +0000 (01:03 -0400)] 
Use portable archive_entry services instead of S_ISBLK() and S_ISCHR() macros.

SVN-Revision: 1347

16 years agoRemove major()/minor() in favor of the archive_entry functions.
Tim Kientzle [Thu, 6 Aug 2009 04:59:41 +0000 (00:59 -0400)] 
Remove major()/minor() in favor of the archive_entry functions.

SVN-Revision: 1346

16 years agoEmulated sleep() is never used here.
Tim Kientzle [Thu, 6 Aug 2009 04:56:18 +0000 (00:56 -0400)] 
Emulated sleep() is never used here.

SVN-Revision: 1345

16 years agoRemove failure message after testAssertTextFileContents().
Tim Kientzle [Thu, 6 Aug 2009 04:55:16 +0000 (00:55 -0400)] 
Remove failure message after testAssertTextFileContents().

SVN-Revision: 1344

16 years agoWhitespace cleanup.
Tim Kientzle [Thu, 6 Aug 2009 04:54:42 +0000 (00:54 -0400)] 
Whitespace cleanup.

SVN-Revision: 1343

16 years agobsdcpio_test builds cleanly on VS9 and MinGW with this revision.
Tim Kientzle [Thu, 6 Aug 2009 04:52:37 +0000 (00:52 -0400)] 
bsdcpio_test builds cleanly on VS9 and MinGW with this revision.

SVN-Revision: 1342

16 years agoConvert cpio to use archive_read_disk_entry_from_file().
Tim Kientzle [Thu, 6 Aug 2009 04:41:41 +0000 (00:41 -0400)] 
Convert cpio to use archive_read_disk_entry_from_file().
This eliminates a lot of platform knowledge from cpio.

SVN-Revision: 1341

16 years agoUpdate some more cpio tests to use new file assertions.
Tim Kientzle [Thu, 6 Aug 2009 03:21:38 +0000 (23:21 -0400)] 
Update some more cpio tests to use new file assertions.

SVN-Revision: 1340

16 years agoEnsure __USE_MINGW_ANSI_STDIO is defined for MinGW builds.
Charles Wilson [Tue, 4 Aug 2009 06:30:31 +0000 (02:30 -0400)] 
Ensure __USE_MINGW_ANSI_STDIO is defined for MinGW builds.
Use correct include paths for bsdtar_test.

SVN-Revision: 1338

16 years agoConvert most open()/read()/write()/close() to use assertMakeFile(), stdio, and slurpf...
Tim Kientzle [Tue, 4 Aug 2009 05:24:31 +0000 (01:24 -0400)] 
Convert most open()/read()/write()/close() to use assertMakeFile(), stdio, and slurpfile(), as appropriate.

SVN-Revision: 1337

16 years agoWrap an obscure bit-munging trick in a documented macro to clarify the
Tim Kientzle [Tue, 4 Aug 2009 05:11:05 +0000 (01:11 -0400)] 
Wrap an obscure bit-munging trick in a documented macro to clarify the
code (and avoid compiler warnings).

SVN-Revision: 1336

16 years agoFix a warning in Windows build, thanks to Charles Wilson.
Tim Kientzle [Tue, 4 Aug 2009 04:08:27 +0000 (00:08 -0400)] 
Fix a warning in Windows build, thanks to Charles Wilson.

SVN-Revision: 1335

16 years agoAttempt to fix some build problems with bsdtar_test on configure-based builds for...
Tim Kientzle [Tue, 4 Aug 2009 04:04:54 +0000 (00:04 -0400)] 
Attempt to fix some build problems with bsdtar_test on configure-based builds for Cygwin.

SVN-Revision: 1334

16 years agoWe can always assert that the uid is the same for all entries.
Tim Kientzle [Mon, 3 Aug 2009 03:15:27 +0000 (23:15 -0400)] 
We can always assert that the uid is the same for all entries.
On POSIX, we can assert that the stored uid matches the current user.

SVN-Revision: 1333

16 years agoWe can always assert that the uid is the same for all entries.
Tim Kientzle [Mon, 3 Aug 2009 03:12:55 +0000 (23:12 -0400)] 
We can always assert that the uid is the same for all entries.
If we are on POSIX, we can further assert that the uid is the current user.

SVN-Revision: 1332

16 years agoA crude fix for tar/test/main.c
Tim Kientzle [Mon, 3 Aug 2009 03:06:42 +0000 (23:06 -0400)] 
A crude fix for tar/test/main.c

SVN-Revision: 1331

16 years agoTry to fix cpio_windows.c
Tim Kientzle [Mon, 3 Aug 2009 03:06:15 +0000 (23:06 -0400)] 
Try to fix cpio_windows.c

SVN-Revision: 1330

16 years agoUpdate test_option_f to new infrastructure.
Tim Kientzle [Mon, 3 Aug 2009 02:58:48 +0000 (22:58 -0400)] 
Update test_option_f to new infrastructure.

SVN-Revision: 1329

16 years agoUpdate more cpio tests to new infrastructure.
Tim Kientzle [Mon, 3 Aug 2009 02:53:22 +0000 (22:53 -0400)] 
Update more cpio tests to new infrastructure.

SVN-Revision: 1328

16 years agoUpdate test_format_newc.c to new infrastructure.
Tim Kientzle [Mon, 3 Aug 2009 02:31:56 +0000 (22:31 -0400)] 
Update test_format_newc.c to new infrastructure.

SVN-Revision: 1327

16 years agoMinor FreeBSD build fix.
Tim Kientzle [Mon, 3 Aug 2009 02:23:10 +0000 (22:23 -0400)] 
Minor FreeBSD build fix.

SVN-Revision: 1326

16 years agoMore updates of cpio_test to new infrastructure.
Tim Kientzle [Mon, 3 Aug 2009 02:22:43 +0000 (22:22 -0400)] 
More updates of cpio_test to new infrastructure.

SVN-Revision: 1325

16 years agoUse assertUmask() instead of unchecked umask().
Tim Kientzle [Mon, 3 Aug 2009 01:45:31 +0000 (21:45 -0400)] 
Use assertUmask() instead of unchecked umask().

SVN-Revision: 1324

16 years agoUse assertMakeDir() instead of mkdir().
Tim Kientzle [Mon, 3 Aug 2009 01:41:29 +0000 (21:41 -0400)] 
Use assertMakeDir() instead of mkdir().

SVN-Revision: 1323

16 years agoFix minor build problem on systems with 16-bit uid_t and gid_t, such as Windows.
Tim Kientzle [Mon, 3 Aug 2009 01:39:30 +0000 (21:39 -0400)] 
Fix minor build problem on systems with 16-bit uid_t and gid_t, such as Windows.

SVN-Revision: 1322

16 years agoUse assertChdir() in cpio_test instead of assertEqualInt(0, chdir()) or unchecked...
Tim Kientzle [Mon, 3 Aug 2009 01:17:36 +0000 (21:17 -0400)] 
Use assertChdir() in cpio_test instead of assertEqualInt(0, chdir()) or unchecked chdir().

SVN-Revision: 1321

16 years agoUndo bad merge from r1314: libarchive_test cannot depend on bsdtar_windows.h
Tim Kientzle [Mon, 3 Aug 2009 01:15:31 +0000 (21:15 -0400)] 
Undo bad merge from r1314:  libarchive_test cannot depend on bsdtar_windows.h

SVN-Revision: 1320

16 years agoCmake warning fix.
Tim Kientzle [Mon, 3 Aug 2009 01:06:56 +0000 (21:06 -0400)] 
Cmake warning fix.

SVN-Revision: 1319

16 years agoConvert some cpio/test symlink/hardlink handling to new platform-independent test...
Tim Kientzle [Sun, 2 Aug 2009 21:53:44 +0000 (17:53 -0400)] 
Convert some cpio/test symlink/hardlink handling to new platform-independent test infrastructure.

SVN-Revision: 1318

16 years agoUse assertIsSymlink() instead of manual lstat()/readlink()
Tim Kientzle [Sun, 2 Aug 2009 21:47:10 +0000 (17:47 -0400)] 
Use assertIsSymlink() instead of manual lstat()/readlink()

SVN-Revision: 1317

16 years agoMinor FreeBSD build fixes.
Tim Kientzle [Sun, 2 Aug 2009 21:46:39 +0000 (17:46 -0400)] 
Minor FreeBSD build fixes.

SVN-Revision: 1316

16 years agoReduce diffs between tar/test infrastructure and cpio/test infrastructure.
Tim Kientzle [Sun, 2 Aug 2009 21:41:53 +0000 (17:41 -0400)] 
Reduce diffs between tar/test infrastructure and cpio/test infrastructure.
In particular, this makes it possible to use the new platform-independent
assertions for creating dirs, testing file attributes, etc.

SVN-Revision: 1315

16 years agoReduce diffs between libarchive/test/test.h and tar/test/test.h
Tim Kientzle [Sun, 2 Aug 2009 21:31:53 +0000 (17:31 -0400)] 
Reduce diffs between libarchive/test/test.h and tar/test/test.h

SVN-Revision: 1314

16 years agoReduce the differences between libarchive/test/main.c and tar/test/main.c.
Tim Kientzle [Sun, 2 Aug 2009 20:01:21 +0000 (16:01 -0400)] 
Reduce the differences between libarchive/test/main.c and tar/test/main.c.

SVN-Revision: 1309

16 years agoRework the style of CHECK_FUNCS() to better match
Tim Kientzle [Sun, 2 Aug 2009 20:00:46 +0000 (16:00 -0400)] 
Rework the style of CHECK_FUNCS() to better match
the style of built-in cmake tests:
 * One test per invocation
 * macro name is explicit

Convert some of the tests to CHECK_SYMBOL_EXISTS(),
which further reduces some of the magic within the
old CHECK_FUNCS.  It is now primarily an extended
version of CHECK_FUNCTION_EXISTS that understands the
glibc __stub_ convention for marking functions that
should be treated as nonexistent even though they
do exist in the local library.  I've renamed the
macro to CHECK_FUNCTION_EXISTS_GLIBC to better
reflect this.

SVN-Revision: 1308

16 years ago1. Add tests for CreateHardLink and CreateSymbolicLink
Tim Kientzle [Sun, 2 Aug 2009 19:56:26 +0000 (15:56 -0400)] 
1. Add tests for CreateHardLink and CreateSymbolicLink
2. Add test for lstat() (apparently AC_FUNC_LSTAT doesn't do this?)

SVN-Revision: 1307

16 years agoRevert r1289 and correct some of the *id_t defines:
Tim Kientzle [Sun, 2 Aug 2009 19:16:28 +0000 (15:16 -0400)] 
Revert r1289 and correct some of the *id_t defines:
 * uid_t/gid_t/id_t all default to "short" on Win32, "unsigned int" elsewhere
 * pid_t doesn't need to be probed so remove it

SVN-Revision: 1306

16 years agoAnother step towards clean Windows builds: libarchive, libarchive_test, and bsdtar_...
Tim Kientzle [Sun, 2 Aug 2009 18:34:07 +0000 (14:34 -0400)] 
Another step towards clean Windows builds:  libarchive, libarchive_test, and  bsdtar_test all build cleanly now under both Visual C++ and MinGW.

SVN-Revision: 1305

16 years agoConditionalize link, symlink, and lstat support.
Tim Kientzle [Sat, 1 Aug 2009 05:30:24 +0000 (01:30 -0400)] 
Conditionalize link, symlink, and lstat support.

SVN-Revision: 1304

16 years agoCorrect off-by-one checking for an end-of-archive marker.
Tim Kientzle [Fri, 31 Jul 2009 15:27:17 +0000 (11:27 -0400)] 
Correct off-by-one checking for an end-of-archive marker.

Thanks to: vti

SVN-Revision: 1303

16 years agoDon't crash if hardlinks can't be created.
Tim Kientzle [Thu, 30 Jul 2009 05:55:03 +0000 (01:55 -0400)] 
Don't crash if hardlinks can't be created.

SVN-Revision: 1302

16 years agoUse the new assertUmask() wrapper.
Tim Kientzle [Thu, 30 Jul 2009 05:46:18 +0000 (01:46 -0400)] 
Use the new assertUmask() wrapper.

SVN-Revision: 1301

16 years agoRevert r1295; it was well-intentioned but wrong.
Tim Kientzle [Tue, 28 Jul 2009 15:14:42 +0000 (11:14 -0400)] 
Revert r1295; it was well-intentioned but wrong.

SVN-Revision: 1300

16 years agoNeed some headers here.
Tim Kientzle [Mon, 27 Jul 2009 04:32:00 +0000 (00:32 -0400)] 
Need some headers here.

SVN-Revision: 1299

16 years agoWindows _strdup nonsense.
Tim Kientzle [Mon, 27 Jul 2009 04:29:36 +0000 (00:29 -0400)] 
Windows _strdup nonsense.

SVN-Revision: 1298

16 years agoLook for io.h
Tim Kientzle [Mon, 27 Jul 2009 04:28:57 +0000 (00:28 -0400)] 
Look for io.h

SVN-Revision: 1297

16 years agoTrim down Windows shims for tar: A lot of this has simply gone away:
Tim Kientzle [Mon, 27 Jul 2009 04:27:03 +0000 (00:27 -0400)] 
Trim down Windows shims for tar:  A lot of this has simply gone away:
  * the open/read/write/close emulations were for the test harness, which now uses stdio,
  * mkdir() was for the test harness, which has been refactored so it's no longer needed here
  * opendir/readdir/closedir are only needed by tree.c and are being pushed down into tree.c

SVN-Revision: 1296

16 years agoUse fread() for reading from console; this needs to be carefully tested.
Tim Kientzle [Mon, 27 Jul 2009 04:23:26 +0000 (00:23 -0400)] 
Use fread() for reading from console; this needs to be carefully tested.

SVN-Revision: 1295

16 years agoRemove the Windows-specific wildcard expansion layer; this is going to get reimplemen...
Tim Kientzle [Mon, 27 Jul 2009 04:22:50 +0000 (00:22 -0400)] 
Remove the Windows-specific wildcard expansion layer; this is going to get reimplemented in tree.c soon.

SVN-Revision: 1294

16 years agoDisable symlink checks on Windows for now.
Tim Kientzle [Mon, 27 Jul 2009 04:20:10 +0000 (00:20 -0400)] 
Disable symlink checks on Windows for now.

SVN-Revision: 1293

16 years agoMore Windows fudges.
Tim Kientzle [Mon, 27 Jul 2009 04:19:15 +0000 (00:19 -0400)] 
More Windows fudges.

SVN-Revision: 1292

16 years agoDisable most of this for Windows. Revisit someday.
Tim Kientzle [Mon, 27 Jul 2009 04:18:46 +0000 (00:18 -0400)] 
Disable most of this for Windows.  Revisit someday.

SVN-Revision: 1291

16 years agoWindows fixes.
Tim Kientzle [Mon, 27 Jul 2009 04:18:20 +0000 (00:18 -0400)] 
Windows fixes.

SVN-Revision: 1290

16 years agoFix the uid_t and gid_t declarations to match those of VS and MinGW.
Tim Kientzle [Mon, 27 Jul 2009 04:16:54 +0000 (00:16 -0400)] 
Fix the uid_t and gid_t declarations to match those of VS and MinGW.

SVN-Revision: 1289

16 years agoMinor compile fixes.
Tim Kientzle [Mon, 27 Jul 2009 04:09:31 +0000 (00:09 -0400)] 
Minor compile fixes.

SVN-Revision: 1288

16 years agoPrefer AE_* defines for portability.
Tim Kientzle [Mon, 27 Jul 2009 04:04:21 +0000 (00:04 -0400)] 
Prefer AE_* defines for portability.

SVN-Revision: 1287

16 years agoMore portability improvements.
Tim Kientzle [Mon, 27 Jul 2009 04:00:31 +0000 (00:00 -0400)] 
More portability improvements.

SVN-Revision: 1286

16 years agoMore portability refactoring.
Tim Kientzle [Mon, 27 Jul 2009 03:52:20 +0000 (23:52 -0400)] 
More portability refactoring.

SVN-Revision: 1285

16 years agoPortability refactoring of a few more libarchive tests.
Tim Kientzle [Mon, 27 Jul 2009 03:40:50 +0000 (23:40 -0400)] 
Portability refactoring of a few more libarchive tests.

SVN-Revision: 1284

16 years agotest_write_disk_sparse now uses stdio instead of Posix system calls.
Tim Kientzle [Mon, 27 Jul 2009 03:25:18 +0000 (23:25 -0400)] 
test_write_disk_sparse now uses stdio instead of Posix system calls.

SVN-Revision: 1283

16 years agoMerge some of the bsdtar_test refactoring into libarchive_test and
Tim Kientzle [Sun, 26 Jul 2009 23:49:56 +0000 (19:49 -0400)] 
Merge some of the bsdtar_test refactoring into libarchive_test and
start updating individual test cases.

SVN-Revision: 1282

16 years agoCleanup after last commit: bsdtar_test builds and passes again on FreeBSD.
Tim Kientzle [Sun, 26 Jul 2009 22:58:46 +0000 (18:58 -0400)] 
Cleanup after last commit: bsdtar_test builds and passes again on FreeBSD.

SVN-Revision: 1281

16 years agoRefactor the date formatting slightly.
Tim Kientzle [Sun, 26 Jul 2009 21:42:30 +0000 (17:42 -0400)] 
Refactor the date formatting slightly.

SVN-Revision: 1280

16 years agoTest refactoring to isolate Windows/Posix-specific functions.
Tim Kientzle [Sun, 26 Jul 2009 21:41:39 +0000 (17:41 -0400)] 
Test refactoring to isolate Windows/Posix-specific functions.

This almost builds completely cleanly on VS9 and MinGW; a little more fidgeting is still needed.

SVN-Revision: 1279

16 years agoAdd config.h conditional for Windows <io.h>
Tim Kientzle [Sun, 26 Jul 2009 07:47:34 +0000 (03:47 -0400)] 
Add config.h conditional for Windows <io.h>

SVN-Revision: 1278

16 years agoMerge various test framework improvements across the various
Tim Kientzle [Sun, 26 Jul 2009 04:12:29 +0000 (00:12 -0400)] 
Merge various test framework improvements across the various
test harnesses.  In particular, there have been a few spot
changes to improve Windows support.

SVN-Revision: 1277

16 years agoProvide assertMakeDir() for tests to use instead of raw mkdir(). In particular,...
Tim Kientzle [Sun, 26 Jul 2009 02:59:29 +0000 (22:59 -0400)] 
Provide assertMakeDir() for tests to use instead of raw mkdir().  In particular, this allows us to hide the difference between POSIX two-argument mkdir() and Windows single-argument version.

SVN-Revision: 1276