1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183 |
- #ifndef ARCHIVE_H_INCLUDED
- #define ARCHIVE_H_INCLUDED
- #define ARCHIVE_VERSION_NUMBER 3002002
- #include <sys/stat.h>
- #include <stddef.h> /* for wchar_t */
- #include <stdio.h> /* For FILE * */
- #include <time.h> /* For time_t */
- #if defined(__BORLANDC__) && __BORLANDC__ >= 0x560
- # include <stdint.h>
- #elif !defined(__WATCOMC__) && !defined(_MSC_VER) && !defined(__INTERIX) && !defined(__BORLANDC__) && !defined(_SCO_DS) && !defined(__osf__)
- # include <inttypes.h>
- #endif
- #if !defined(__LA_INT64_T_DEFINED)
- # if ARCHIVE_VERSION_NUMBER < 4000000
- #define __LA_INT64_T la_int64_t
- # endif
- #define __LA_INT64_T_DEFINED
- # if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
- typedef __int64 la_int64_t;
- # else
- # include <unistd.h> /* ssize_t */
- # if defined(_SCO_DS) || defined(__osf__)
- typedef long long la_int64_t;
- # else
- typedef int64_t la_int64_t;
- # endif
- # endif
- #endif
- #if !defined(__LA_SSIZE_T_DEFINED)
- # if ARCHIVE_VERSION_NUMBER < 4000000
- #define __LA_SSIZE_T la_ssize_t
- # endif
- #define __LA_SSIZE_T_DEFINED
- # if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__WATCOMC__)
- # if defined(_SSIZE_T_DEFINED) || defined(_SSIZE_T_)
- typedef ssize_t la_ssize_t;
- # elif defined(_WIN64)
- typedef __int64 la_ssize_t;
- # else
- typedef long la_ssize_t;
- # endif
- # else
- # include <unistd.h> /* ssize_t */
- typedef ssize_t la_ssize_t;
- # endif
- #endif
- #ifdef __ANDROID__
- #include "android_lf.h"
- #endif
- #if ((defined __WIN32__) || (defined _WIN32) || defined(__CYGWIN__)) && (!defined LIBARCHIVE_STATIC)
- # ifdef __LIBARCHIVE_BUILD
- # ifdef __GNUC__
- # define __LA_DECL __attribute__((dllexport)) extern
- # else
- # define __LA_DECL __declspec(dllexport)
- # endif
- # else
- # ifdef __GNUC__
- # define __LA_DECL
- # else
- # define __LA_DECL __declspec(dllimport)
- # endif
- # endif
- #else
- # define __LA_DECL
- #endif
- #if defined(__GNUC__) && __GNUC__ >= 3 && !defined(__MINGW32__)
- #define __LA_PRINTF(fmtarg, firstvararg) \
- __attribute__((__format__ (__printf__, fmtarg, firstvararg)))
- #else
- #define __LA_PRINTF(fmtarg, firstvararg) /* nothing */
- #endif
- #if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
- # define __LA_DEPRECATED __attribute__((deprecated))
- #else
- # define __LA_DEPRECATED
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- __LA_DECL int archive_version_number(void);
- #define ARCHIVE_VERSION_ONLY_STRING "3.2.2"
- #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
- __LA_DECL const char * archive_version_string(void);
- __LA_DECL const char * archive_version_details(void);
- __LA_DECL const char * archive_zlib_version(void);
- __LA_DECL const char * archive_liblzma_version(void);
- __LA_DECL const char * archive_bzlib_version(void);
- __LA_DECL const char * archive_liblz4_version(void);
- struct archive;
- struct archive_entry;
- #define ARCHIVE_EOF 1 /* Found end of archive. */
- #define ARCHIVE_OK 0 /* Operation was successful. */
- #define ARCHIVE_RETRY (-10) /* Retry might succeed. */
- #define ARCHIVE_WARN (-20) /* Partial success. */
- #define ARCHIVE_FAILED (-25) /* Current operation cannot complete. */
- #define ARCHIVE_FATAL (-30) /* No more operations are possible. */
- typedef la_ssize_t archive_read_callback(struct archive *,
- void *_client_data, const void **_buffer);
- typedef la_int64_t archive_skip_callback(struct archive *,
- void *_client_data, la_int64_t request);
- typedef la_int64_t archive_seek_callback(struct archive *,
- void *_client_data, la_int64_t offset, int whence);
- typedef la_ssize_t archive_write_callback(struct archive *,
- void *_client_data,
- const void *_buffer, size_t _length);
- typedef int archive_open_callback(struct archive *, void *_client_data);
- typedef int archive_close_callback(struct archive *, void *_client_data);
- typedef int archive_switch_callback(struct archive *, void *_client_data1,
- void *_client_data2);
- typedef const char *archive_passphrase_callback(struct archive *,
- void *_client_data);
- #define ARCHIVE_FILTER_NONE 0
- #define ARCHIVE_FILTER_GZIP 1
- #define ARCHIVE_FILTER_BZIP2 2
- #define ARCHIVE_FILTER_COMPRESS 3
- #define ARCHIVE_FILTER_PROGRAM 4
- #define ARCHIVE_FILTER_LZMA 5
- #define ARCHIVE_FILTER_XZ 6
- #define ARCHIVE_FILTER_UU 7
- #define ARCHIVE_FILTER_RPM 8
- #define ARCHIVE_FILTER_LZIP 9
- #define ARCHIVE_FILTER_LRZIP 10
- #define ARCHIVE_FILTER_LZOP 11
- #define ARCHIVE_FILTER_GRZIP 12
- #define ARCHIVE_FILTER_LZ4 13
- #if ARCHIVE_VERSION_NUMBER < 4000000
- #define ARCHIVE_COMPRESSION_NONE ARCHIVE_FILTER_NONE
- #define ARCHIVE_COMPRESSION_GZIP ARCHIVE_FILTER_GZIP
- #define ARCHIVE_COMPRESSION_BZIP2 ARCHIVE_FILTER_BZIP2
- #define ARCHIVE_COMPRESSION_COMPRESS ARCHIVE_FILTER_COMPRESS
- #define ARCHIVE_COMPRESSION_PROGRAM ARCHIVE_FILTER_PROGRAM
- #define ARCHIVE_COMPRESSION_LZMA ARCHIVE_FILTER_LZMA
- #define ARCHIVE_COMPRESSION_XZ ARCHIVE_FILTER_XZ
- #define ARCHIVE_COMPRESSION_UU ARCHIVE_FILTER_UU
- #define ARCHIVE_COMPRESSION_RPM ARCHIVE_FILTER_RPM
- #define ARCHIVE_COMPRESSION_LZIP ARCHIVE_FILTER_LZIP
- #define ARCHIVE_COMPRESSION_LRZIP ARCHIVE_FILTER_LRZIP
- #endif
- #define ARCHIVE_FORMAT_BASE_MASK 0xff0000
- #define ARCHIVE_FORMAT_CPIO 0x10000
- #define ARCHIVE_FORMAT_CPIO_POSIX (ARCHIVE_FORMAT_CPIO | 1)
- #define ARCHIVE_FORMAT_CPIO_BIN_LE (ARCHIVE_FORMAT_CPIO | 2)
- #define ARCHIVE_FORMAT_CPIO_BIN_BE (ARCHIVE_FORMAT_CPIO | 3)
- #define ARCHIVE_FORMAT_CPIO_SVR4_NOCRC (ARCHIVE_FORMAT_CPIO | 4)
- #define ARCHIVE_FORMAT_CPIO_SVR4_CRC (ARCHIVE_FORMAT_CPIO | 5)
- #define ARCHIVE_FORMAT_CPIO_AFIO_LARGE (ARCHIVE_FORMAT_CPIO | 6)
- #define ARCHIVE_FORMAT_SHAR 0x20000
- #define ARCHIVE_FORMAT_SHAR_BASE (ARCHIVE_FORMAT_SHAR | 1)
- #define ARCHIVE_FORMAT_SHAR_DUMP (ARCHIVE_FORMAT_SHAR | 2)
- #define ARCHIVE_FORMAT_TAR 0x30000
- #define ARCHIVE_FORMAT_TAR_USTAR (ARCHIVE_FORMAT_TAR | 1)
- #define ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE (ARCHIVE_FORMAT_TAR | 2)
- #define ARCHIVE_FORMAT_TAR_PAX_RESTRICTED (ARCHIVE_FORMAT_TAR | 3)
- #define ARCHIVE_FORMAT_TAR_GNUTAR (ARCHIVE_FORMAT_TAR | 4)
- #define ARCHIVE_FORMAT_ISO9660 0x40000
- #define ARCHIVE_FORMAT_ISO9660_ROCKRIDGE (ARCHIVE_FORMAT_ISO9660 | 1)
- #define ARCHIVE_FORMAT_ZIP 0x50000
- #define ARCHIVE_FORMAT_EMPTY 0x60000
- #define ARCHIVE_FORMAT_AR 0x70000
- #define ARCHIVE_FORMAT_AR_GNU (ARCHIVE_FORMAT_AR | 1)
- #define ARCHIVE_FORMAT_AR_BSD (ARCHIVE_FORMAT_AR | 2)
- #define ARCHIVE_FORMAT_MTREE 0x80000
- #define ARCHIVE_FORMAT_RAW 0x90000
- #define ARCHIVE_FORMAT_XAR 0xA0000
- #define ARCHIVE_FORMAT_LHA 0xB0000
- #define ARCHIVE_FORMAT_CAB 0xC0000
- #define ARCHIVE_FORMAT_RAR 0xD0000
- #define ARCHIVE_FORMAT_7ZIP 0xE0000
- #define ARCHIVE_FORMAT_WARC 0xF0000
- #define ARCHIVE_READ_FORMAT_CAPS_NONE (0) /* no special capabilities */
- #define ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_DATA (1<<0) /* reader can detect encrypted data */
- #define ARCHIVE_READ_FORMAT_CAPS_ENCRYPT_METADATA (1<<1) /* reader can detect encryptable metadata (pathname, mtime, etc.) */
- #define ARCHIVE_READ_FORMAT_ENCRYPTION_UNSUPPORTED -2
- #define ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW -1
- __LA_DECL struct archive *archive_read_new(void);
- #if ARCHIVE_VERSION_NUMBER < 4000000
- __LA_DECL int archive_read_support_compression_all(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_bzip2(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_compress(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_gzip(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_lzip(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_lzma(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_none(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_program(struct archive *,
- const char *command) __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_program_signature
- (struct archive *, const char *,
- const void * , size_t) __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_rpm(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_uu(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_read_support_compression_xz(struct archive *)
- __LA_DEPRECATED;
- #endif
- __LA_DECL int archive_read_support_filter_all(struct archive *);
- __LA_DECL int archive_read_support_filter_bzip2(struct archive *);
- __LA_DECL int archive_read_support_filter_compress(struct archive *);
- __LA_DECL int archive_read_support_filter_gzip(struct archive *);
- __LA_DECL int archive_read_support_filter_grzip(struct archive *);
- __LA_DECL int archive_read_support_filter_lrzip(struct archive *);
- __LA_DECL int archive_read_support_filter_lz4(struct archive *);
- __LA_DECL int archive_read_support_filter_lzip(struct archive *);
- __LA_DECL int archive_read_support_filter_lzma(struct archive *);
- __LA_DECL int archive_read_support_filter_lzop(struct archive *);
- __LA_DECL int archive_read_support_filter_none(struct archive *);
- __LA_DECL int archive_read_support_filter_program(struct archive *,
- const char *command);
- __LA_DECL int archive_read_support_filter_program_signature
- (struct archive *, const char * ,
- const void * , size_t);
- __LA_DECL int archive_read_support_filter_rpm(struct archive *);
- __LA_DECL int archive_read_support_filter_uu(struct archive *);
- __LA_DECL int archive_read_support_filter_xz(struct archive *);
- __LA_DECL int archive_read_support_format_7zip(struct archive *);
- __LA_DECL int archive_read_support_format_all(struct archive *);
- __LA_DECL int archive_read_support_format_ar(struct archive *);
- __LA_DECL int archive_read_support_format_by_code(struct archive *, int);
- __LA_DECL int archive_read_support_format_cab(struct archive *);
- __LA_DECL int archive_read_support_format_cpio(struct archive *);
- __LA_DECL int archive_read_support_format_empty(struct archive *);
- __LA_DECL int archive_read_support_format_gnutar(struct archive *);
- __LA_DECL int archive_read_support_format_iso9660(struct archive *);
- __LA_DECL int archive_read_support_format_lha(struct archive *);
- __LA_DECL int archive_read_support_format_mtree(struct archive *);
- __LA_DECL int archive_read_support_format_rar(struct archive *);
- __LA_DECL int archive_read_support_format_raw(struct archive *);
- __LA_DECL int archive_read_support_format_tar(struct archive *);
- __LA_DECL int archive_read_support_format_warc(struct archive *);
- __LA_DECL int archive_read_support_format_xar(struct archive *);
- __LA_DECL int archive_read_support_format_zip(struct archive *);
- __LA_DECL int archive_read_support_format_zip_streamable(struct archive *);
- __LA_DECL int archive_read_support_format_zip_seekable(struct archive *);
- __LA_DECL int archive_read_set_format(struct archive *, int);
- __LA_DECL int archive_read_append_filter(struct archive *, int);
- __LA_DECL int archive_read_append_filter_program(struct archive *,
- const char *);
- __LA_DECL int archive_read_append_filter_program_signature
- (struct archive *, const char *, const void * , size_t);
- __LA_DECL int archive_read_set_open_callback(struct archive *,
- archive_open_callback *);
- __LA_DECL int archive_read_set_read_callback(struct archive *,
- archive_read_callback *);
- __LA_DECL int archive_read_set_seek_callback(struct archive *,
- archive_seek_callback *);
- __LA_DECL int archive_read_set_skip_callback(struct archive *,
- archive_skip_callback *);
- __LA_DECL int archive_read_set_close_callback(struct archive *,
- archive_close_callback *);
- __LA_DECL int archive_read_set_switch_callback(struct archive *,
- archive_switch_callback *);
- __LA_DECL int archive_read_set_callback_data(struct archive *, void *);
- __LA_DECL int archive_read_set_callback_data2(struct archive *, void *,
- unsigned int);
- __LA_DECL int archive_read_add_callback_data(struct archive *, void *,
- unsigned int);
- __LA_DECL int archive_read_append_callback_data(struct archive *, void *);
- __LA_DECL int archive_read_prepend_callback_data(struct archive *, void *);
- __LA_DECL int archive_read_open1(struct archive *);
- __LA_DECL int archive_read_open(struct archive *, void *_client_data,
- archive_open_callback *, archive_read_callback *,
- archive_close_callback *);
- __LA_DECL int archive_read_open2(struct archive *, void *_client_data,
- archive_open_callback *, archive_read_callback *,
- archive_skip_callback *, archive_close_callback *);
- __LA_DECL int archive_read_open_filename(struct archive *,
- const char *_filename, size_t _block_size);
- __LA_DECL int archive_read_open_filenames(struct archive *,
- const char **_filenames, size_t _block_size);
- __LA_DECL int archive_read_open_filename_w(struct archive *,
- const wchar_t *_filename, size_t _block_size);
- __LA_DECL int archive_read_open_file(struct archive *,
- const char *_filename, size_t _block_size) __LA_DEPRECATED;
- __LA_DECL int archive_read_open_memory(struct archive *,
- const void * buff, size_t size);
- __LA_DECL int archive_read_open_memory2(struct archive *a, const void *buff,
- size_t size, size_t read_size);
- __LA_DECL int archive_read_open_fd(struct archive *, int _fd,
- size_t _block_size);
- __LA_DECL int archive_read_open_FILE(struct archive *, FILE *_file);
- __LA_DECL int archive_read_next_header(struct archive *,
- struct archive_entry **);
- __LA_DECL int archive_read_next_header2(struct archive *,
- struct archive_entry *);
- __LA_DECL la_int64_t archive_read_header_position(struct archive *);
- __LA_DECL int archive_read_has_encrypted_entries(struct archive *);
- __LA_DECL int archive_read_format_capabilities(struct archive *);
- __LA_DECL la_ssize_t archive_read_data(struct archive *,
- void *, size_t);
- __LA_DECL la_int64_t archive_seek_data(struct archive *, la_int64_t, int);
- __LA_DECL int archive_read_data_block(struct archive *a,
- const void **buff, size_t *size, la_int64_t *offset);
- __LA_DECL int archive_read_data_skip(struct archive *);
- __LA_DECL int archive_read_data_into_fd(struct archive *, int fd);
- __LA_DECL int archive_read_set_format_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_read_set_filter_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_read_set_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_read_set_options(struct archive *_a,
- const char *opts);
- __LA_DECL int archive_read_add_passphrase(struct archive *, const char *);
- __LA_DECL int archive_read_set_passphrase_callback(struct archive *,
- void *client_data, archive_passphrase_callback *);
- #define ARCHIVE_EXTRACT_OWNER (0x0001)
- #define ARCHIVE_EXTRACT_PERM (0x0002)
- #define ARCHIVE_EXTRACT_TIME (0x0004)
- #define ARCHIVE_EXTRACT_NO_OVERWRITE (0x0008)
- #define ARCHIVE_EXTRACT_UNLINK (0x0010)
- #define ARCHIVE_EXTRACT_ACL (0x0020)
- #define ARCHIVE_EXTRACT_FFLAGS (0x0040)
- #define ARCHIVE_EXTRACT_XATTR (0x0080)
- #define ARCHIVE_EXTRACT_SECURE_SYMLINKS (0x0100)
- #define ARCHIVE_EXTRACT_SECURE_NODOTDOT (0x0200)
- #define ARCHIVE_EXTRACT_NO_AUTODIR (0x0400)
- #define ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER (0x0800)
- #define ARCHIVE_EXTRACT_SPARSE (0x1000)
- #define ARCHIVE_EXTRACT_MAC_METADATA (0x2000)
- #define ARCHIVE_EXTRACT_NO_HFS_COMPRESSION (0x4000)
- #define ARCHIVE_EXTRACT_HFS_COMPRESSION_FORCED (0x8000)
- #define ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS (0x10000)
- #define ARCHIVE_EXTRACT_CLEAR_NOCHANGE_FFLAGS (0x20000)
- __LA_DECL int archive_read_extract(struct archive *, struct archive_entry *,
- int flags);
- __LA_DECL int archive_read_extract2(struct archive *, struct archive_entry *,
- struct archive * );
- __LA_DECL void archive_read_extract_set_progress_callback(struct archive *,
- void (*_progress_func)(void *), void *_user_data);
- __LA_DECL void archive_read_extract_set_skip_file(struct archive *,
- la_int64_t, la_int64_t);
- __LA_DECL int archive_read_close(struct archive *);
- __LA_DECL int archive_read_free(struct archive *);
- #if ARCHIVE_VERSION_NUMBER < 4000000
- __LA_DECL int archive_read_finish(struct archive *) __LA_DEPRECATED;
- #endif
- __LA_DECL struct archive *archive_write_new(void);
- __LA_DECL int archive_write_set_bytes_per_block(struct archive *,
- int bytes_per_block);
- __LA_DECL int archive_write_get_bytes_per_block(struct archive *);
- __LA_DECL int archive_write_set_bytes_in_last_block(struct archive *,
- int bytes_in_last_block);
- __LA_DECL int archive_write_get_bytes_in_last_block(struct archive *);
- __LA_DECL int archive_write_set_skip_file(struct archive *,
- la_int64_t, la_int64_t);
- #if ARCHIVE_VERSION_NUMBER < 4000000
- __LA_DECL int archive_write_set_compression_bzip2(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_compress(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_gzip(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_lzip(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_lzma(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_none(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_program(struct archive *,
- const char *cmd) __LA_DEPRECATED;
- __LA_DECL int archive_write_set_compression_xz(struct archive *)
- __LA_DEPRECATED;
- #endif
- __LA_DECL int archive_write_add_filter(struct archive *, int filter_code);
- __LA_DECL int archive_write_add_filter_by_name(struct archive *,
- const char *name);
- __LA_DECL int archive_write_add_filter_b64encode(struct archive *);
- __LA_DECL int archive_write_add_filter_bzip2(struct archive *);
- __LA_DECL int archive_write_add_filter_compress(struct archive *);
- __LA_DECL int archive_write_add_filter_grzip(struct archive *);
- __LA_DECL int archive_write_add_filter_gzip(struct archive *);
- __LA_DECL int archive_write_add_filter_lrzip(struct archive *);
- __LA_DECL int archive_write_add_filter_lz4(struct archive *);
- __LA_DECL int archive_write_add_filter_lzip(struct archive *);
- __LA_DECL int archive_write_add_filter_lzma(struct archive *);
- __LA_DECL int archive_write_add_filter_lzop(struct archive *);
- __LA_DECL int archive_write_add_filter_none(struct archive *);
- __LA_DECL int archive_write_add_filter_program(struct archive *,
- const char *cmd);
- __LA_DECL int archive_write_add_filter_uuencode(struct archive *);
- __LA_DECL int archive_write_add_filter_xz(struct archive *);
- __LA_DECL int archive_write_set_format(struct archive *, int format_code);
- __LA_DECL int archive_write_set_format_by_name(struct archive *,
- const char *name);
- __LA_DECL int archive_write_set_format_7zip(struct archive *);
- __LA_DECL int archive_write_set_format_ar_bsd(struct archive *);
- __LA_DECL int archive_write_set_format_ar_svr4(struct archive *);
- __LA_DECL int archive_write_set_format_cpio(struct archive *);
- __LA_DECL int archive_write_set_format_cpio_newc(struct archive *);
- __LA_DECL int archive_write_set_format_gnutar(struct archive *);
- __LA_DECL int archive_write_set_format_iso9660(struct archive *);
- __LA_DECL int archive_write_set_format_mtree(struct archive *);
- __LA_DECL int archive_write_set_format_mtree_classic(struct archive *);
- __LA_DECL int archive_write_set_format_pax(struct archive *);
- __LA_DECL int archive_write_set_format_pax_restricted(struct archive *);
- __LA_DECL int archive_write_set_format_raw(struct archive *);
- __LA_DECL int archive_write_set_format_shar(struct archive *);
- __LA_DECL int archive_write_set_format_shar_dump(struct archive *);
- __LA_DECL int archive_write_set_format_ustar(struct archive *);
- __LA_DECL int archive_write_set_format_v7tar(struct archive *);
- __LA_DECL int archive_write_set_format_warc(struct archive *);
- __LA_DECL int archive_write_set_format_xar(struct archive *);
- __LA_DECL int archive_write_set_format_zip(struct archive *);
- __LA_DECL int archive_write_set_format_filter_by_ext(struct archive *a, const char *filename);
- __LA_DECL int archive_write_set_format_filter_by_ext_def(struct archive *a, const char *filename, const char * def_ext);
- __LA_DECL int archive_write_zip_set_compression_deflate(struct archive *);
- __LA_DECL int archive_write_zip_set_compression_store(struct archive *);
- __LA_DECL int archive_write_open(struct archive *, void *,
- archive_open_callback *, archive_write_callback *,
- archive_close_callback *);
- __LA_DECL int archive_write_open_fd(struct archive *, int _fd);
- __LA_DECL int archive_write_open_filename(struct archive *, const char *_file);
- __LA_DECL int archive_write_open_filename_w(struct archive *,
- const wchar_t *_file);
- __LA_DECL int archive_write_open_file(struct archive *, const char *_file)
- __LA_DEPRECATED;
- __LA_DECL int archive_write_open_FILE(struct archive *, FILE *);
- __LA_DECL int archive_write_open_memory(struct archive *,
- void *_buffer, size_t _buffSize, size_t *_used);
- __LA_DECL int archive_write_header(struct archive *,
- struct archive_entry *);
- __LA_DECL la_ssize_t archive_write_data(struct archive *,
- const void *, size_t);
- __LA_DECL la_ssize_t archive_write_data_block(struct archive *,
- const void *, size_t, la_int64_t);
- __LA_DECL int archive_write_finish_entry(struct archive *);
- __LA_DECL int archive_write_close(struct archive *);
- __LA_DECL int archive_write_fail(struct archive *);
- __LA_DECL int archive_write_free(struct archive *);
- #if ARCHIVE_VERSION_NUMBER < 4000000
- __LA_DECL int archive_write_finish(struct archive *) __LA_DEPRECATED;
- #endif
- __LA_DECL int archive_write_set_format_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_write_set_filter_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_write_set_option(struct archive *_a,
- const char *m, const char *o,
- const char *v);
- __LA_DECL int archive_write_set_options(struct archive *_a,
- const char *opts);
- __LA_DECL int archive_write_set_passphrase(struct archive *_a, const char *p);
- __LA_DECL int archive_write_set_passphrase_callback(struct archive *,
- void *client_data, archive_passphrase_callback *);
- __LA_DECL struct archive *archive_write_disk_new(void);
- __LA_DECL int archive_write_disk_set_skip_file(struct archive *,
- la_int64_t, la_int64_t);
- __LA_DECL int archive_write_disk_set_options(struct archive *,
- int flags);
- __LA_DECL int archive_write_disk_set_standard_lookup(struct archive *);
- __LA_DECL int archive_write_disk_set_group_lookup(struct archive *,
- void * ,
- la_int64_t (*)(void *, const char *, la_int64_t),
- void (* )(void *));
- __LA_DECL int archive_write_disk_set_user_lookup(struct archive *,
- void * ,
- la_int64_t (*)(void *, const char *, la_int64_t),
- void (* )(void *));
- __LA_DECL la_int64_t archive_write_disk_gid(struct archive *, const char *, la_int64_t);
- __LA_DECL la_int64_t archive_write_disk_uid(struct archive *, const char *, la_int64_t);
- __LA_DECL struct archive *archive_read_disk_new(void);
- __LA_DECL int archive_read_disk_set_symlink_logical(struct archive *);
- __LA_DECL int archive_read_disk_set_symlink_physical(struct archive *);
- __LA_DECL int archive_read_disk_set_symlink_hybrid(struct archive *);
- __LA_DECL int archive_read_disk_entry_from_file(struct archive *,
- struct archive_entry *, int , const struct stat *);
- __LA_DECL const char *archive_read_disk_gname(struct archive *, la_int64_t);
- __LA_DECL const char *archive_read_disk_uname(struct archive *, la_int64_t);
- __LA_DECL int archive_read_disk_set_standard_lookup(struct archive *);
- __LA_DECL int archive_read_disk_set_gname_lookup(struct archive *,
- void * ,
- const char *(* )(void *, la_int64_t),
- void (* )(void *));
- __LA_DECL int archive_read_disk_set_uname_lookup(struct archive *,
- void * ,
- const char *(* )(void *, la_int64_t),
- void (* )(void *));
- __LA_DECL int archive_read_disk_open(struct archive *, const char *);
- __LA_DECL int archive_read_disk_open_w(struct archive *, const wchar_t *);
- __LA_DECL int archive_read_disk_descend(struct archive *);
- __LA_DECL int archive_read_disk_can_descend(struct archive *);
- __LA_DECL int archive_read_disk_current_filesystem(struct archive *);
- __LA_DECL int archive_read_disk_current_filesystem_is_synthetic(struct archive *);
- __LA_DECL int archive_read_disk_current_filesystem_is_remote(struct archive *);
- __LA_DECL int archive_read_disk_set_atime_restored(struct archive *);
- #define ARCHIVE_READDISK_RESTORE_ATIME (0x0001)
- #define ARCHIVE_READDISK_HONOR_NODUMP (0x0002)
- #define ARCHIVE_READDISK_MAC_COPYFILE (0x0004)
- #define ARCHIVE_READDISK_NO_TRAVERSE_MOUNTS (0x0008)
- #define ARCHIVE_READDISK_NO_XATTR (0x0010)
- __LA_DECL int archive_read_disk_set_behavior(struct archive *,
- int flags);
- __LA_DECL int archive_read_disk_set_matching(struct archive *,
- struct archive *_matching, void (*_excluded_func)
- (struct archive *, void *, struct archive_entry *),
- void *_client_data);
- __LA_DECL int archive_read_disk_set_metadata_filter_callback(struct archive *,
- int (*_metadata_filter_func)(struct archive *, void *,
- struct archive_entry *), void *_client_data);
- __LA_DECL int archive_free(struct archive *);
- __LA_DECL int archive_filter_count(struct archive *);
- __LA_DECL la_int64_t archive_filter_bytes(struct archive *, int);
- __LA_DECL int archive_filter_code(struct archive *, int);
- __LA_DECL const char * archive_filter_name(struct archive *, int);
- #if ARCHIVE_VERSION_NUMBER < 4000000
- __LA_DECL la_int64_t archive_position_compressed(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL la_int64_t archive_position_uncompressed(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL const char *archive_compression_name(struct archive *)
- __LA_DEPRECATED;
- __LA_DECL int archive_compression(struct archive *)
- __LA_DEPRECATED;
- #endif
- __LA_DECL int archive_errno(struct archive *);
- __LA_DECL const char *archive_error_string(struct archive *);
- __LA_DECL const char *archive_format_name(struct archive *);
- __LA_DECL int archive_format(struct archive *);
- __LA_DECL void archive_clear_error(struct archive *);
- __LA_DECL void archive_set_error(struct archive *, int _err,
- const char *fmt, ...) __LA_PRINTF(3, 4);
- __LA_DECL void archive_copy_error(struct archive *dest,
- struct archive *src);
- __LA_DECL int archive_file_count(struct archive *);
- __LA_DECL struct archive *archive_match_new(void);
- __LA_DECL int archive_match_free(struct archive *);
- __LA_DECL int archive_match_excluded(struct archive *,
- struct archive_entry *);
- __LA_DECL int archive_match_path_excluded(struct archive *,
- struct archive_entry *);
- __LA_DECL int archive_match_exclude_pattern(struct archive *, const char *);
- __LA_DECL int archive_match_exclude_pattern_w(struct archive *,
- const wchar_t *);
- __LA_DECL int archive_match_exclude_pattern_from_file(struct archive *,
- const char *, int _nullSeparator);
- __LA_DECL int archive_match_exclude_pattern_from_file_w(struct archive *,
- const wchar_t *, int _nullSeparator);
- __LA_DECL int archive_match_include_pattern(struct archive *, const char *);
- __LA_DECL int archive_match_include_pattern_w(struct archive *,
- const wchar_t *);
- __LA_DECL int archive_match_include_pattern_from_file(struct archive *,
- const char *, int _nullSeparator);
- __LA_DECL int archive_match_include_pattern_from_file_w(struct archive *,
- const wchar_t *, int _nullSeparator);
- __LA_DECL int archive_match_path_unmatched_inclusions(struct archive *);
- __LA_DECL int archive_match_path_unmatched_inclusions_next(
- struct archive *, const char **);
- __LA_DECL int archive_match_path_unmatched_inclusions_next_w(
- struct archive *, const wchar_t **);
- __LA_DECL int archive_match_time_excluded(struct archive *,
- struct archive_entry *);
- #define ARCHIVE_MATCH_MTIME (0x0100)
- #define ARCHIVE_MATCH_CTIME (0x0200)
- #define ARCHIVE_MATCH_NEWER (0x0001)
- #define ARCHIVE_MATCH_OLDER (0x0002)
- #define ARCHIVE_MATCH_EQUAL (0x0010)
- __LA_DECL int archive_match_include_time(struct archive *, int _flag,
- time_t _sec, long _nsec);
- __LA_DECL int archive_match_include_date(struct archive *, int _flag,
- const char *_datestr);
- __LA_DECL int archive_match_include_date_w(struct archive *, int _flag,
- const wchar_t *_datestr);
- __LA_DECL int archive_match_include_file_time(struct archive *,
- int _flag, const char *_pathname);
- __LA_DECL int archive_match_include_file_time_w(struct archive *,
- int _flag, const wchar_t *_pathname);
- __LA_DECL int archive_match_exclude_entry(struct archive *,
- int _flag, struct archive_entry *);
- __LA_DECL int archive_match_owner_excluded(struct archive *,
- struct archive_entry *);
- __LA_DECL int archive_match_include_uid(struct archive *, la_int64_t);
- __LA_DECL int archive_match_include_gid(struct archive *, la_int64_t);
- __LA_DECL int archive_match_include_uname(struct archive *, const char *);
- __LA_DECL int archive_match_include_uname_w(struct archive *,
- const wchar_t *);
- __LA_DECL int archive_match_include_gname(struct archive *, const char *);
- __LA_DECL int archive_match_include_gname_w(struct archive *,
- const wchar_t *);
- __LA_DECL int archive_utility_string_sort(char **);
- #ifdef __cplusplus
- }
- #endif
- #undef __LA_DECL
- #endif /* !ARCHIVE_H_INCLUDED */
|