]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
9 years agoIssue 686: Correctly retry if the buffer needs to be grown
Tim Kientzle [Thu, 28 Apr 2016 05:48:20 +0000 (22:48 -0700)] 
Issue 686: Correctly retry if the buffer needs to be grown

9 years agoIssue 675: SIGRTMAX can be non-constant, so allocate the signal tracking array at...
Tim Kientzle [Wed, 23 Mar 2016 03:28:42 +0000 (20:28 -0700)] 
Issue 675: SIGRTMAX can be non-constant, so allocate the signal tracking array at runtime

9 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Wed, 23 Mar 2016 02:29:26 +0000 (19:29 -0700)] 
Merge branch 'master' of github.com:libarchive/libarchive

9 years agoMerge pull request #617 from chenxiaolong/ifdef-statvfs-usage
Tim Kientzle [Tue, 22 Mar 2016 03:33:21 +0000 (20:33 -0700)] 
Merge pull request #617 from chenxiaolong/ifdef-statvfs-usage

Avoid statvfs/fstatvfs calls on systems where it is not available

9 years agoMerge pull request #663 from vapier/master
Tim Kientzle [Tue, 22 Mar 2016 03:27:16 +0000 (20:27 -0700)] 
Merge pull request #663 from vapier/master

add missing _PC_NAME_MAX checks

9 years agoMerge pull request #672 from ericvw/nsig_sigrtmax
Tim Kientzle [Tue, 22 Mar 2016 03:24:43 +0000 (20:24 -0700)] 
Merge pull request #672 from ericvw/nsig_sigrtmax

Replace usage of _NSIG with SIGRTMAX

9 years agoMerge pull request #655 from flandr/fully-sparse
Tim Kientzle [Tue, 22 Mar 2016 03:23:37 +0000 (20:23 -0700)] 
Merge pull request #655 from flandr/fully-sparse

Support efficient creation of fully-sparse files

9 years agoReplace usage of _NSIG with SIGRTMAX 672/head
Eric N. Vander Weele [Fri, 18 Mar 2016 21:31:12 +0000 (14:31 -0700)] 
Replace usage of _NSIG with SIGRTMAX

POSIX specification defines SIGRTMAX.  _NSIG is not defined on all
platforms (e.g, AIX).

Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
9 years agoUpdate MSDOS file attribute test
Tim Kientzle [Mon, 14 Mar 2016 03:10:24 +0000 (20:10 -0700)] 
Update MSDOS file attribute test

9 years agoIssue 422: Add archive_xxx_version() calls so tests can more accurately query libarc...
Tim Kientzle [Sun, 13 Mar 2016 01:38:21 +0000 (17:38 -0800)] 
Issue 422:  Add archive_xxx_version() calls so tests can more accurately query libarchive support

Rework some of the Zip, Cab, and LZ4 tests to use these
to determine what behavior they should expect.

9 years agoMerge pull request #668 from dosomder/android-compile
Tim Kientzle [Sat, 12 Mar 2016 21:09:44 +0000 (13:09 -0800)] 
Merge pull request #668 from dosomder/android-compile

Add api level check for android config

9 years agoAdd api level check for android config 668/head
dosomder [Sat, 12 Mar 2016 10:34:01 +0000 (11:34 +0100)] 
Add api level check for android config

Some features are only included since api level 21

9 years agoMerge pull request #666 from dosomder/android-compile
Tim Kientzle [Sat, 12 Mar 2016 05:26:18 +0000 (21:26 -0800)] 
Merge pull request #666 from dosomder/android-compile

Fix compiling for android

9 years agoAdd ST_MTIME_NSEC case to archive_entry_copy_stat 666/head 667/head
dosomder [Fri, 11 Mar 2016 19:06:17 +0000 (20:06 +0100)] 
Add ST_MTIME_NSEC case to archive_entry_copy_stat

Android uses st_mtime_nsec

9 years agoFix android intmax compiler warnings
dosomder [Fri, 11 Mar 2016 19:02:37 +0000 (20:02 +0100)] 
Fix android intmax compiler warnings

9 years agoadd missing _PC_NAME_MAX checks 663/head
Mike Frysinger [Sun, 28 Feb 2016 18:10:16 +0000 (13:10 -0500)] 
add missing _PC_NAME_MAX checks

This file looks for _PC_NAME_MAX in a few places, but not all.
Add some ifdefs in setup_current_filesystem too.

9 years agoMerge pull request #645 from andrewgregory/check_symlinks
Tim Kientzle [Fri, 26 Feb 2016 03:01:33 +0000 (19:01 -0800)] 
Merge pull request #645 from andrewgregory/check_symlinks

fix check_symlinks

9 years agoAdd more sample zip files to the fuzz test
Tim Kientzle [Wed, 24 Feb 2016 04:36:37 +0000 (20:36 -0800)] 
Add more sample zip files to the fuzz test

9 years agoadd test for SECURE_SYMLINKS with absolute path 645/head
Andrew Gregory [Tue, 23 Feb 2016 02:17:20 +0000 (21:17 -0500)] 
add test for SECURE_SYMLINKS with absolute path

9 years agoSkip root directory symlink check
Andrew Gregory [Fri, 15 Jan 2016 07:39:41 +0000 (02:39 -0500)] 
Skip root directory symlink check

The first time check_symlinks is called on an absolute path it will use
the entry pathname directly, blanking the leading slash.  This leads to
calling lstat on an empty string, which returns ENOENT, terminating the
loop early and falsely marking the path as safe.

9 years agoadd test for SECURE_SYMLINKS for first child
Andrew Gregory [Tue, 23 Feb 2016 02:18:02 +0000 (21:18 -0500)] 
add test for SECURE_SYMLINKS for first child

9 years agoRestore modified path after lstat
Andrew Gregory [Fri, 15 Jan 2016 07:40:00 +0000 (02:40 -0500)] 
Restore modified path after lstat

check_symlinks is intended to check each component of a path, but failed
to restore the stripped trailing components after each iteration,
leaving a NUL byte in the middle of the path.

9 years agoFix for issue #623.
Tim Kientzle [Sun, 21 Feb 2016 20:34:57 +0000 (12:34 -0800)] 
Fix for issue #623.

Apparently, people have come to expect that the following
is sufficient to get bit-for-bit identical output from tar:
   * Same filenames
   * Same contents
   * Same uid, gid
   * Same mtime (forced via "touch -t <timestamp>")
   * Sorting entries

Bsdtar's "restricted pax" format violated this by including
ctime, atime, and birthtime (which are not updated by
'touch -t).  So we should only emit those additional time
values in the full pax format.

People who are really serious about generating bit-for-bit
identical archives should really build their own command-line
interface: You can still use libarchive to build the output,
but your custom CLI could sort the entries and strip everything
except a bare minimum of basic metadata.

9 years agoClarify the limit on number of filters
Tim Kientzle [Sun, 21 Feb 2016 19:43:03 +0000 (11:43 -0800)] 
Clarify the limit on number of filters

9 years agoFix globbing error v3.1.900a
Tim Kientzle [Sun, 21 Feb 2016 16:51:18 +0000 (08:51 -0800)] 
Fix globbing error

9 years agoSupport fully-sparse files 655/head
Nate Rosenblum [Sat, 6 Feb 2016 01:39:03 +0000 (17:39 -0800)] 
Support fully-sparse files

Avoids an edge condition where fully-sparse files would not trigger
sparse file handling, leading to large tar files full of zeros.

9 years agoFix -c test: we forced uid/gid to 1000, so we should not compare against the current...
Tim Kientzle [Sun, 14 Feb 2016 06:13:22 +0000 (22:13 -0800)] 
Fix -c test:  we forced uid/gid to 1000, so we should not compare against the current user

9 years agoFix stringification here
Tim Kientzle [Sun, 14 Feb 2016 06:06:09 +0000 (22:06 -0800)] 
Fix stringification here

9 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Sat, 19 Mar 2016 18:34:03 +0000 (11:34 -0700)] 
Merge branch 'master' of github.com:libarchive/libarchive

9 years agoIssue #377: Help cpio tests pass on systems with large UIDs
Tim Kientzle [Sat, 19 Mar 2016 18:29:37 +0000 (11:29 -0700)] 
Issue #377: Help cpio tests pass on systems with large UIDs

9 years agoMerge pull request #630 from bjacke/vv-verbose-write
Tim Kientzle [Sat, 19 Mar 2016 18:19:11 +0000 (11:19 -0700)] 
Merge pull request #630 from bjacke/vv-verbose-write

Vv verbose mode for write write

9 years agoComment fileno() usage
Tim Kientzle [Sat, 19 Mar 2016 18:18:16 +0000 (11:18 -0700)] 
Comment fileno() usage

9 years agoMerge pull request #670 from dosomder/665-android-lf-support
Tim Kientzle [Sat, 19 Mar 2016 18:15:10 +0000 (11:15 -0700)] 
Merge pull request #670 from dosomder/665-android-lf-support

Add large file support for android

9 years agoMerge pull request #669 from dosomder/639-lz4-update
Tim Kientzle [Sat, 19 Mar 2016 18:10:42 +0000 (11:10 -0700)] 
Merge pull request #669 from dosomder/639-lz4-update

Update LZ4 support to track 1.7 API changes.

9 years agoMerge pull request #673 from ericvw/dynamic_compile_flags
Tim Kientzle [Sat, 19 Mar 2016 17:11:16 +0000 (10:11 -0700)] 
Merge pull request #673 from ericvw/dynamic_compile_flags

Dynamically determine supported compiler flags during configure

9 years agoDynamically determine supported compiler flags during configure 673/head
Eric N. Vander Weele [Fri, 18 Mar 2016 22:51:25 +0000 (18:51 -0400)] 
Dynamically determine supported compiler flags during configure

Some compilers (e.g., `xlc` on AIX) don't support GCC compiler flags.
This change dynamically tests for supported `COMMON_FLAGS`, which get
appended to `CFLAGS`.

Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
9 years agoAdd large file support for android 670/head
dosomder [Sun, 13 Mar 2016 16:52:24 +0000 (17:52 +0100)] 
Add large file support for android

Android doesn't support the macro _FILE_OFFSET_BITS=64 however it does
support a few file64 functions

9 years agoFix lz4 compression_level check 669/head
dosomder [Sat, 12 Mar 2016 22:40:36 +0000 (23:40 +0100)] 
Fix lz4 compression_level check

Match this check with the rest of the file where HC is level 3 and up

9 years agoUse LZ4_loadDict
dosomder [Sat, 12 Mar 2016 22:37:04 +0000 (23:37 +0100)] 
Use LZ4_loadDict

dict was saved but never loaded. Gave a minor compression improvement
with a 8868100 bytes test file and compression-level 1

9 years agoUse updated lz4 compression functions
dosomder [Sat, 12 Mar 2016 22:35:22 +0000 (23:35 +0100)] 
Use updated lz4 compression functions

A few functions in the lz4 library are deprecated, some are obsolete.

9 years agoMake LZ4 HC optional
dosomder [Sat, 12 Mar 2016 19:35:06 +0000 (20:35 +0100)] 
Make LZ4 HC optional

9 years agoUse LZ4_decompress_safe_usingDict for reading
dosomder [Sat, 12 Mar 2016 17:52:33 +0000 (18:52 +0100)] 
Use LZ4_decompress_safe_usingDict for reading

This function was added on May 4, 2014

https://github.com/Cyan4973/lz4/blob/7bcb3b2e9f36ad6adef2cb43858a8f3adb39c527/lz4.h

The old function LZ4_decompress_safe_withPrefix64k is deprecated since
April 11, 2015

https://github.com/Cyan4973/lz4/blob/973e385fa332485f4617cf16406a8c8ef631a555/lib/lz4.h

9 years agoUpdate NEWS with highlights from last two years of work
Tim Kientzle [Sun, 14 Feb 2016 06:03:35 +0000 (22:03 -0800)] 
Update NEWS with highlights from last two years of work

9 years agoMinor adjustments to DEBUG messages
Tim Kientzle [Sun, 14 Feb 2016 06:02:54 +0000 (22:02 -0800)] 
Minor adjustments to DEBUG messages

9 years agoIssue #659: Fix xar parsing of archives with appleextended ACLs
Tim Kientzle [Sun, 14 Feb 2016 05:52:24 +0000 (21:52 -0800)] 
Issue #659:  Fix xar parsing of archives with appleextended ACLs

The parser treated the <appleextended> tag as both known and
unknown, leaving the parser in a state that prevented it
from reading any further attributes.  Depending on the
order of attributes, this could result in a file with no
name, for instance.

9 years agoMake assertions explicit in sparse tests
Nate Rosenblum [Fri, 5 Feb 2016 17:15:14 +0000 (09:15 -0800)] 
Make assertions explicit in sparse tests

Instead of trying to special-case sparse data vs dense data detection
in verify_sparse_file (by resetting the `data_blocks` if no holes are
found), make the expected number of data blocks an explicit parameter.

Simplifies a subsequently introduced test case; no functional changes.

9 years agoadd vv option details in bsdtar man page 630/head
Bjoern Jacke [Mon, 11 Jan 2016 14:25:03 +0000 (15:25 +0100)] 
add vv option details in bsdtar man page

9 years agobsdtar: add support for "vv" verbose style when writing archives
Bjoern Jacke [Mon, 28 Dec 2015 11:58:16 +0000 (12:58 +0100)] 
bsdtar: add support for "vv" verbose style when writing archives

9 years agobsdtar: also print preceding "x" when extracting in vv mode
Bjoern Jacke [Mon, 28 Dec 2015 11:56:38 +0000 (12:56 +0100)] 
bsdtar: also print preceding "x" when extracting in vv mode

9 years agobsdtar: move list_item_verbose() into common util.c
Bjoern Jacke [Mon, 28 Dec 2015 11:19:51 +0000 (12:19 +0100)] 
bsdtar: move list_item_verbose() into common util.c

9 years agoFix sparse tests with holes at the end
Nate Rosenblum [Fri, 5 Feb 2016 14:28:58 +0000 (06:28 -0800)] 
Fix sparse tests with holes at the end

Sparse file creation in test_sparse_basic failed to create holes at
the end of files. These tests don't presently verify the existence of
holes at the end (they are concerned only with the sparse data block
entries), but this change ensures that the input file matches the
expected hole/data layout.

9 years agoMerge pull request #650 from cinience/master
Tim Kientzle [Fri, 5 Feb 2016 06:07:37 +0000 (22:07 -0800)] 
Merge pull request #650 from cinience/master

Update the remaining calls to __archive_write_program_allocate to include the new parameter.

9 years agoFix bug for __archive_write_program_allocate 650/head
cinience [Mon, 1 Feb 2016 08:54:29 +0000 (16:54 +0800)] 
Fix bug for __archive_write_program_allocate

9 years agoFix bug for __archive_write_program_allocate
cinience [Mon, 1 Feb 2016 08:52:48 +0000 (16:52 +0800)] 
Fix bug for __archive_write_program_allocate

9 years agoSet version number to 3.1.900a
Tim Kientzle [Mon, 1 Feb 2016 05:47:21 +0000 (21:47 -0800)] 
Set version number to 3.1.900a

9 years agoRead very large RAR headers incrementally
Tim Kientzle [Mon, 1 Feb 2016 05:43:23 +0000 (21:43 -0800)] 
Read very large RAR headers incrementally

Formerly, libarchive tried to read the entire header into
memory at once, which created problems for malformed RAR
files with 4GB header sizes.  This was causing occasional
crashes of the test suite on memory-limited systems.

9 years agoRework LZ4 option tests to work with various implementations of posix_spawnp
Tim Kientzle [Sun, 31 Jan 2016 21:22:47 +0000 (13:22 -0800)] 
Rework LZ4 option tests to work with various implementations of posix_spawnp

9 years agoUpdate lz4 test to watch for the reworded error messages
Tim Kientzle [Sun, 31 Jan 2016 20:33:36 +0000 (12:33 -0800)] 
Update lz4 test to watch for the reworded error messages

9 years agoImprove error messages by including the name of the external program being used
Tim Kientzle [Sun, 31 Jan 2016 20:33:03 +0000 (12:33 -0800)] 
Improve error messages by including the name of the external program being used

9 years agoBring along a trailing null when guessing the path to the program under test
Tim Kientzle [Sun, 31 Jan 2016 20:24:45 +0000 (12:24 -0800)] 
Bring along a trailing null when guessing the path to the program under test

9 years agoClarify error messages when using external compression programs
Tim Kientzle [Sun, 31 Jan 2016 19:08:59 +0000 (11:08 -0800)] 
Clarify error messages when using external compression programs

9 years agoFix LZ4 tests when liblz4 is not present
Tim Kientzle [Sat, 30 Jan 2016 19:26:02 +0000 (11:26 -0800)] 
Fix LZ4 tests when liblz4 is not present

9 years agoTrack changes in the lz4 command-line tool
Tim Kientzle [Sat, 30 Jan 2016 19:14:19 +0000 (11:14 -0800)] 
Track changes in the lz4 command-line tool

9 years agoReally sync up the test harnesses
Tim Kientzle [Fri, 29 Jan 2016 05:33:53 +0000 (21:33 -0800)] 
Really sync up the test harnesses

9 years agoFix two broken UU files
Tim Kientzle [Fri, 29 Jan 2016 05:25:42 +0000 (21:25 -0800)] 
Fix two broken UU files

9 years agoSync up the test harnesses; add error checks to the UUdecode utility
Tim Kientzle [Fri, 29 Jan 2016 05:25:25 +0000 (21:25 -0800)] 
Sync up the test harnesses; add error checks to the UUdecode utility

9 years agoFix test on systems without zlib
Tim Kientzle [Thu, 28 Jan 2016 05:16:01 +0000 (21:16 -0800)] 
Fix test on systems without zlib

9 years agoUpdate the version string correctly
Tim Kientzle [Sun, 24 Jan 2016 02:26:46 +0000 (18:26 -0800)] 
Update the version string correctly

9 years agoFix cmake tests for nettle and OpenSSL support
Tim Kientzle [Mon, 11 Jan 2016 13:51:28 +0000 (05:51 -0800)] 
Fix cmake tests for nettle and OpenSSL support

9 years agoMerge branch 'master' of github.com:libarchive/libarchive
Tim Kientzle [Tue, 19 Jan 2016 13:35:11 +0000 (05:35 -0800)] 
Merge branch 'master' of github.com:libarchive/libarchive

9 years agoFix nettle library probe
Tim Kientzle [Tue, 19 Jan 2016 13:32:56 +0000 (05:32 -0800)] 
Fix nettle library probe

 = Only use it if we can find the library *and* the headers
 = When probing the library, try to link a function that's
   actually in the library (not 'main')

9 years agoMerge pull request #644 from hinrichsenhans/vs2015
Tim Kientzle [Thu, 14 Jan 2016 05:34:31 +0000 (21:34 -0800)] 
Merge pull request #644 from hinrichsenhans/vs2015

Visual Studio 2015 Changes

9 years agoVisual Studio 2015 Changes 644/head
Hans Hinrichsen [Wed, 6 Jan 2016 14:58:53 +0000 (08:58 -0600)] 
Visual Studio 2015 Changes

snprintf shouldn't be defined in a macro in VS2015 and above due to its C99 changes

9 years agoInclude missing reference files for tests
Tim Kientzle [Mon, 11 Jan 2016 01:57:45 +0000 (17:57 -0800)] 
Include missing reference files for tests

9 years agoInclude overlooked header file in distro
Tim Kientzle [Mon, 11 Jan 2016 01:48:34 +0000 (17:48 -0800)] 
Include overlooked header file in distro

9 years agoRemove Zip UTF8 tests from build
Tim Kientzle [Mon, 11 Jan 2016 00:21:54 +0000 (16:21 -0800)] 
Remove Zip UTF8 tests from build

9 years agoRemove Zip UTF8 tests from master.
Tim Kientzle [Sun, 10 Jan 2016 19:29:44 +0000 (11:29 -0800)] 
Remove Zip UTF8 tests from master.

Ongoing work on Zip UTF8 support is occurring in the 'utf8' branch.

9 years agoMention V7, a few wording tweaks
Tim Kientzle [Sun, 10 Jan 2016 19:21:07 +0000 (11:21 -0800)] 
Mention V7, a few wording tweaks

9 years agoRemove an extraneous .El
Tim Kientzle [Sun, 10 Jan 2016 19:10:28 +0000 (11:10 -0800)] 
Remove an extraneous .El

9 years agoDocument the 'v7' tar format support.
Tim Kientzle [Sun, 10 Jan 2016 18:59:29 +0000 (10:59 -0800)] 
Document the 'v7' tar format support.

9 years agoMerge pull request #638 from hinrichsenhans/test_leading_slash_fix
Tim Kientzle [Fri, 8 Jan 2016 06:25:19 +0000 (22:25 -0800)] 
Merge pull request #638 from hinrichsenhans/test_leading_slash_fix

Test leading slash fix

9 years agoMerge pull request #641 from watercrossing/fixShadowTime
Tim Kientzle [Fri, 8 Jan 2016 06:22:54 +0000 (22:22 -0800)] 
Merge pull request #641 from watercrossing/fixShadowTime

Fix `time` shadowing in archive_write_set_format_warc.c

9 years agoFix `time` shadowing in archive_write_set_format_warc.c 641/head
watercrossing [Thu, 7 Jan 2016 15:32:44 +0000 (15:32 +0000)] 
Fix `time` shadowing in archive_write_set_format_warc.c

9 years agotest_leading_slash compatibility with Windows 638/head
Hans Hinrichsen [Thu, 7 Jan 2016 02:52:36 +0000 (20:52 -0600)] 
test_leading_slash compatibility with Windows

Add '.exe' to the binary name to ensure the text matching works

9 years agoMerge pull request #634 from scfarley/master
Tim Kientzle [Sun, 3 Jan 2016 23:05:43 +0000 (15:05 -0800)] 
Merge pull request #634 from scfarley/master

Apply global flag in substitution

9 years agoApply global flag in substitution 634/head
Sean Farley [Sun, 3 Jan 2016 21:42:00 +0000 (16:42 -0500)] 
Apply global flag in substitution

Add loop to move through a path name looking for additional matches if
the global flag is provided for a substitution.  The loop breaks when no
more matches are found for the rule.  Previously, the global flag would
end up advancing to the next rule instead of searching farther into the
path for another match.

9 years agoMerge pull request #607 from betafive/pbarker/issue578
Tim Kientzle [Sun, 3 Jan 2016 19:01:19 +0000 (11:01 -0800)] 
Merge pull request #607 from betafive/pbarker/issue578

Issue 578: Close temp_fd in 7zip and xar writers

9 years agoIssue #631: Move 'r' into an inner scope to fix shadowing
Tim Kientzle [Fri, 1 Jan 2016 22:25:16 +0000 (14:25 -0800)] 
Issue #631:  Move 'r' into an inner scope to fix shadowing

9 years agoMerge pull request #1 from libarchive/master
Hans Hinrichsen [Thu, 31 Dec 2015 03:36:12 +0000 (21:36 -0600)] 
Merge pull request #1 from libarchive/master

Updating with current libarchive development

9 years agoMerge pull request #628 from obache/neatsrc/issue-627
Tim Kientzle [Sun, 27 Dec 2015 20:00:12 +0000 (12:00 -0800)] 
Merge pull request #628 from obache/neatsrc/issue-627

Ensure to declare UINTMAX_MAX, INTMAX_MAX and INTMAX_MIN

9 years agoEnsure to declare UINTMAX_MAX, INTMAX_MAX and INTMAX_MIN 628/head
OBATA Akio [Sun, 27 Dec 2015 06:54:20 +0000 (15:54 +0900)] 
Ensure to declare UINTMAX_MAX, INTMAX_MAX and INTMAX_MIN

9 years agoFix typo
Joerg Sonnenberger [Sat, 19 Dec 2015 15:20:02 +0000 (16:20 +0100)] 
Fix typo

9 years agoAdd in two missing test cases.
Tim Kientzle [Fri, 20 Nov 2015 05:09:08 +0000 (21:09 -0800)] 
Add in two missing test cases.

9 years agoRework to avoid some C99-isms. <sigh>
Tim Kientzle [Fri, 20 Nov 2015 05:07:56 +0000 (21:07 -0800)] 
Rework to avoid some C99-isms.  <sigh>

9 years agoAvoid statvfs/fstatvfs calls on systems where it is not available 617/head
Xiao-Long Chen [Thu, 29 Oct 2015 21:17:31 +0000 (17:17 -0400)] 
Avoid statvfs/fstatvfs calls on systems where it is not available

9 years agoUse CommonCrypto APIs on OS X only when available 612/head
Brad King [Wed, 21 Oct 2015 18:46:37 +0000 (14:46 -0400)] 
Use CommonCrypto APIs on OS X only when available

Use each CommonCrypto API only when using an OS X SDK version new enough
to provide it.

9 years agoDo not use pthread.h API without header
Brad King [Mon, 26 Oct 2015 14:13:24 +0000 (10:13 -0400)] 
Do not use pthread.h API without header

9 years agoDefine O_CLOEXEC when missing in archive_random.c
Brad King [Wed, 21 Oct 2015 18:16:21 +0000 (14:16 -0400)] 
Define O_CLOEXEC when missing in archive_random.c

We do this several other sources already.

9 years agoForward declare __archive_get_date in a dedicated internal header
Brad King [Wed, 21 Oct 2015 16:02:43 +0000 (12:02 -0400)] 
Forward declare __archive_get_date in a dedicated internal header

Avoid repeating the signature declaration in every source that uses it.
While at it, constify internal __archive_get_date implementation to
keep signatures consistent.

9 years agoUse macros for ZIP format integer constants
Brad King [Wed, 21 Oct 2015 15:56:28 +0000 (11:56 -0400)] 
Use macros for ZIP format integer constants

Define ZIP_4GB_MAX and ZIP_4GB_MAX_UNCOMPRESSED macros to hold the "LL"
integer literals.  This improves readability and improves portability of
the integer literals.