whose the size of off_t is four bytes.
SVN-Revision: 1966
static int file_close(struct archive *, void *);
static ssize_t file_read(struct archive *, void *, const void **buff);
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t file_skip(struct archive *, void *, off_t request);
+#else
+static int64_t file_skip(struct archive *, void *, int64_t request);
+#endif
int
archive_read_open_fd(struct archive *a, int fd, size_t block_size)
return (bytes_read);
}
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
file_skip(struct archive *a, void *client_data, off_t request)
+#else
+static int64_t
+file_skip(struct archive *a, void *client_data, int64_t request)
+#endif
{
struct read_fd_data *mine = (struct read_fd_data *)client_data;
off_t old_offset, new_offset;
static int file_close(struct archive *, void *);
static ssize_t file_read(struct archive *, void *, const void **buff);
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t file_skip(struct archive *, void *, off_t request);
+#else
+static int64_t file_skip(struct archive *, void *, int64_t request);
+#endif
int
archive_read_open_FILE(struct archive *a, FILE *f)
return (bytes_read);
}
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
file_skip(struct archive *a, void *client_data, off_t request)
+#else
+static int64_t
+file_skip(struct archive *a, void *client_data, int64_t request)
+#endif
{
struct read_FILE_data *mine = (struct read_FILE_data *)client_data;
static int file_close(struct archive *, void *);
static ssize_t file_read(struct archive *, void *, const void **buff);
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t file_skip(struct archive *, void *, off_t request);
+#else
+static int64_t file_skip(struct archive *, void *, int64_t request);
+#endif
static off_t file_skip_lseek(struct archive *, void *, off_t request);
int
* accelerate operation on tape drives.
*/
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
file_skip(struct archive *a, void *client_data, off_t request)
+#else
+static int64_t
+file_skip(struct archive *a, void *client_data, int64_t request)
+#endif
{
struct read_file_data *mine = (struct read_file_data *)client_data;
static int memory_read_close(struct archive *, void *);
static int memory_read_open(struct archive *, void *);
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t memory_read_skip(struct archive *, void *, off_t request);
+#else
+static int64_t memory_read_skip(struct archive *, void *, int64_t request);
+#endif
static ssize_t memory_read(struct archive *, void *, const void **buff);
int
* necessary in order to better exercise internal code when used
* as a test harness.
*/
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
memory_read_skip(struct archive *a, void *client_data, off_t skip)
+#else
+static int64_t
+memory_read_skip(struct archive *a, void *client_data, int64_t skip)
+#endif
{
struct read_memory_data *mine = (struct read_memory_data *)client_data;
static int memory_read_close(struct archive *, void *);
static int memory_read_open(struct archive *, void *);
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t memory_read_skip(struct archive *, void *, off_t request);
+#else
+static int64_t memory_read_skip(struct archive *, void *, int64_t request);
+#endif
static ssize_t memory_read(struct archive *, void *, const void **buff);
static int read_open_memory_internal(struct archive *a, void *buff,
size_t size, size_t read_size, int fullapi);
/*
* How mean can a skip() routine be? Let's try to find out.
*/
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
memory_read_skip(struct archive *a, void *client_data, off_t skip)
+#else
+static int64_t
+memory_read_skip(struct archive *a, void *client_data, int64_t skip)
+#endif
{
struct read_memory_data *mine = (struct read_memory_data *)client_data;
#define GB ((int64_t)1024 * MB)
#define TB ((int64_t)1024 * GB)
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t memory_read_skip(struct archive *, void *, off_t request);
+#else
+static int64_t memory_read_skip(struct archive *, void *, int64_t request);
+#endif
static ssize_t memory_read(struct archive *, void *, const void **buff);
static ssize_t memory_write(struct archive *, void *, const void *, size_t);
}
+#if ARCHIVE_VERSION_NUMBER < 3000000
static off_t
memory_read_skip(struct archive *a, void *_private, off_t skip)
+#else
+static int64_t
+memory_read_skip(struct archive *a, void *_private, int64_t skip)
+#endif
{
struct memdata *private = _private;