-#if !defined CONFIG_TAR && !defined CONFIG_DPKG_DEB && !defined CONFIG_CPIO
-/* This is simpler than data_extract_all */
-static void data_extract_regular_file(archive_handle_t *archive_handle)
-{
- file_header_t *file_header;
- int dst_fd;
-
- file_header = archive_handle->file_header;
- dst_fd = bb_xopen(file_header->name, O_WRONLY | O_CREAT);
- archive_copy_file(archive_handle, dst_fd);
- close(dst_fd);
-
- chmod(file_header->name, file_header->mode);
- chown(file_header->name, file_header->uid, file_header->gid);
-
- if (archive_handle->flags & ARCHIVE_PRESERVE_DATE) {
- struct utimbuf t;
- t.actime = t.modtime = file_header->mtime;
- utime(file_header->name, &t);
- }
-
- return;
-}
-#endif
+#define AR_CTX_PRINT 0x01
+#define AR_CTX_LIST 0x02
+#define AR_CTX_EXTRACT 0x04
+#define AR_OPT_PRESERVE_DATE 0x08
+#define AR_OPT_VERBOSE 0x10
+#define AR_OPT_CREATE 0x20
+#define AR_OPT_INSERT 0x40