diff options
| author | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
| commit | 86d60bb0ceb277e500a8daabd995bc713bbdadc9 (patch) | |
| tree | 3e439f92d5a3fec2546d526579cc85e98f066e40 /include | |
| parent | b30c60a9786a1608211a96755996bd6c02951a27 (diff) | |
| parent | 69be994de69d794f038f10a3e7a67519b2006581 (diff) | |
| download | busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.gz busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.bz2 busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
| -rw-r--r-- | include/bb_archive.h | 4 | ||||
| -rw-r--r-- | include/platform.h | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h index 9bbf59bb8..c118fa7ec 100644 --- a/include/bb_archive.h +++ b/include/bb_archive.h | |||
| @@ -74,6 +74,9 @@ typedef struct archive_handle_t { | |||
| 74 | /* Currently processed file's header */ | 74 | /* Currently processed file's header */ |
| 75 | file_header_t *file_header; | 75 | file_header_t *file_header; |
| 76 | 76 | ||
| 77 | /* List of symlink placeholders */ | ||
| 78 | llist_t *symlink_placeholders; | ||
| 79 | |||
| 77 | /* Process the header component, e.g. tar -t */ | 80 | /* Process the header component, e.g. tar -t */ |
| 78 | void FAST_FUNC (*action_header)(const file_header_t *); | 81 | void FAST_FUNC (*action_header)(const file_header_t *); |
| 79 | 82 | ||
| @@ -198,6 +201,7 @@ char get_header_ar(archive_handle_t *archive_handle) FAST_FUNC; | |||
| 198 | char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; | 201 | char get_header_cpio(archive_handle_t *archive_handle) FAST_FUNC; |
| 199 | char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; | 202 | char get_header_tar(archive_handle_t *archive_handle) FAST_FUNC; |
| 200 | char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; | 203 | char get_header_tar_gz(archive_handle_t *archive_handle) FAST_FUNC; |
| 204 | char get_header_tar_xz(archive_handle_t *archive_handle) FAST_FUNC; | ||
| 201 | char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; | 205 | char get_header_tar_bz2(archive_handle_t *archive_handle) FAST_FUNC; |
| 202 | char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; | 206 | char get_header_tar_lzma(archive_handle_t *archive_handle) FAST_FUNC; |
| 203 | char get_header_tar_xz(archive_handle_t *archive_handle) FAST_FUNC; | 207 | char get_header_tar_xz(archive_handle_t *archive_handle) FAST_FUNC; |
diff --git a/include/platform.h b/include/platform.h index 5ae82427a..9633fc725 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -54,6 +54,13 @@ | |||
| 54 | 54 | ||
| 55 | #define UNUSED_PARAM __attribute__ ((__unused__)) | 55 | #define UNUSED_PARAM __attribute__ ((__unused__)) |
| 56 | #define NORETURN __attribute__ ((__noreturn__)) | 56 | #define NORETURN __attribute__ ((__noreturn__)) |
| 57 | |||
| 58 | #if __GNUC_PREREQ(4,5) | ||
| 59 | # define bb_unreachable(altcode) __builtin_unreachable() | ||
| 60 | #else | ||
| 61 | # define bb_unreachable(altcode) altcode | ||
| 62 | #endif | ||
| 63 | |||
| 57 | /* "The malloc attribute is used to tell the compiler that a function | 64 | /* "The malloc attribute is used to tell the compiler that a function |
| 58 | * may be treated as if any non-NULL pointer it returns cannot alias | 65 | * may be treated as if any non-NULL pointer it returns cannot alias |
| 59 | * any other pointer valid when the function returns. This will often | 66 | * any other pointer valid when the function returns. This will often |
| @@ -416,6 +423,7 @@ typedef unsigned smalluint; | |||
| 416 | #define HAVE_MNTENT_H 1 | 423 | #define HAVE_MNTENT_H 1 |
| 417 | #define HAVE_NET_ETHERNET_H 1 | 424 | #define HAVE_NET_ETHERNET_H 1 |
| 418 | #define HAVE_SYS_STATFS_H 1 | 425 | #define HAVE_SYS_STATFS_H 1 |
| 426 | #define HAVE_PRINTF_PERCENTM 1 | ||
| 419 | 427 | ||
| 420 | #if defined(__UCLIBC__) | 428 | #if defined(__UCLIBC__) |
| 421 | # if UCLIBC_VERSION < KERNEL_VERSION(0, 9, 32) | 429 | # if UCLIBC_VERSION < KERNEL_VERSION(0, 9, 32) |
| @@ -490,6 +498,7 @@ typedef unsigned smalluint; | |||
| 490 | # undef HAVE_DPRINTF | 498 | # undef HAVE_DPRINTF |
| 491 | # undef HAVE_UNLOCKED_STDIO | 499 | # undef HAVE_UNLOCKED_STDIO |
| 492 | # undef HAVE_UNLOCKED_LINE_OPS | 500 | # undef HAVE_UNLOCKED_LINE_OPS |
| 501 | # undef HAVE_PRINTF_PERCENTM | ||
| 493 | #endif | 502 | #endif |
| 494 | 503 | ||
| 495 | #if defined(__dietlibc__) | 504 | #if defined(__dietlibc__) |
| @@ -512,6 +521,7 @@ typedef unsigned smalluint; | |||
| 512 | # undef HAVE_STRVERSCMP | 521 | # undef HAVE_STRVERSCMP |
| 513 | # undef HAVE_XTABS | 522 | # undef HAVE_XTABS |
| 514 | # undef HAVE_UNLOCKED_LINE_OPS | 523 | # undef HAVE_UNLOCKED_LINE_OPS |
| 524 | # undef HAVE_PRINTF_PERCENTM | ||
| 515 | # include <osreldate.h> | 525 | # include <osreldate.h> |
| 516 | # if __FreeBSD_version < 1000029 | 526 | # if __FreeBSD_version < 1000029 |
| 517 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ | 527 | # undef HAVE_STRCHRNUL /* FreeBSD added strchrnul() between 1000028 and 1000029 */ |
| @@ -546,6 +556,7 @@ typedef unsigned smalluint; | |||
| 546 | # undef HAVE_STRVERSCMP | 556 | # undef HAVE_STRVERSCMP |
| 547 | # undef HAVE_UNLOCKED_LINE_OPS | 557 | # undef HAVE_UNLOCKED_LINE_OPS |
| 548 | # undef HAVE_NET_ETHERNET_H | 558 | # undef HAVE_NET_ETHERNET_H |
| 559 | # undef HAVE_PRINTF_PERCENTM | ||
| 549 | #endif | 560 | #endif |
| 550 | 561 | ||
| 551 | /* | 562 | /* |
