getdata.h | getdata.h | |||
---|---|---|---|---|
/* src/getdata.h. Generated from getdata.ah by configure. */ | /* src/getdata.h. Generated from getdata.ah by configure. */ | |||
/* Copyright (C) 2002-2005 C. Barth Netterfield | /* Copyright (C) 2002-2005 C. Barth Netterfield | |||
* Copyright (C) 2003-2005 Theodore Kisner | * Copyright (C) 2003-2005 Theodore Kisner | |||
* Copyright (C) 2005-2014 D. V. Wiebe | * Copyright (C) 2005-2015 D. V. Wiebe | |||
* | * | |||
************************************************************************** * | ************************************************************************** * | |||
* | * | |||
* This file is part of the GetData project. | * This file is part of the GetData project. | |||
* | * | |||
* GetData is free software; you can redistribute it and/or modify it under | * GetData is free software; you can redistribute it and/or modify it under | |||
* the terms of the GNU Lesser General Public License as published by the | * the terms of the GNU Lesser General Public License as published by the | |||
* Free Software Foundation; either version 2.1 of the License, or (at your | * Free Software Foundation; either version 2.1 of the License, or (at your | |||
* option) any later version. | * option) any later version. | |||
* | * | |||
skipping to change at line 1002 | skipping to change at line 1002 | |||
extern int gd_rename(DIRFILE *dirfile, const char *old_code, | extern int gd_rename(DIRFILE *dirfile, const char *old_code, | |||
const char *new_name, unsigned flags) gd_nonnull ((1,2,3)); | const char *new_name, unsigned flags) gd_nonnull ((1,2,3)); | |||
extern int gd_rewrite_fragment(DIRFILE *dirfile, int fragment) gd_nonnull ( (1)); | extern int gd_rewrite_fragment(DIRFILE *dirfile, int fragment) gd_nonnull ( (1)); | |||
extern int gd_sync(DIRFILE *dirfile, const char *field_code) gd_nonnull ((1 )); | extern int gd_sync(DIRFILE *dirfile, const char *field_code) gd_nonnull ((1 )); | |||
extern int gd_uninclude(DIRFILE *dirfile, int fragment_index, | extern int gd_uninclude(DIRFILE *dirfile, int fragment_index, | |||
int del) gd_nonnull ((1)); | int del) gd_nonnull ((1)); | |||
/* if required, declare the LFS transitional extension */ | ||||
#if defined _LARGEFILE64_SOURCE || (defined _FILE_OFFSET_BITS && \ | ||||
_FILE_OFFSET_BITS == 64) || (defined __CYGWIN__) || (defined __APPLE__) | ||||
#if ! defined GD_64BIT_API | ||||
#define GD_64BIT_API | ||||
#endif | ||||
#endif | ||||
/* the following functions are _FILE_OFFSET_BITS sensitive */ | /* the following functions are _FILE_OFFSET_BITS sensitive */ | |||
#if !defined _FILE_OFFSET_BITS || _FILE_OFFSET_BITS != 64 | ||||
extern int gd_alter_frameoffset(DIRFILE *dirfile, off_t offset, int fragmen t, | extern int gd_alter_frameoffset(DIRFILE *dirfile, off_t offset, int fragmen t, | |||
int recode) gd_nonnull ((1)); | int recode) gd_nonnull ((1)); | |||
extern size_t gd_getdata(DIRFILE *dirfile, const char *field_code, | extern size_t gd_getdata(DIRFILE *dirfile, const char *field_code, | |||
off_t first_frame, off_t first_sample, size_t num_frames, | off_t first_frame, off_t first_sample, size_t num_frames, | |||
size_t num_samples, gd_type_t return_type, void *data) gd_nonnull ((1, 2)); | size_t num_samples, gd_type_t return_type, void *data) gd_nonnull ((1, 2)); | |||
extern size_t gd_putdata(DIRFILE *dirfile, const char *field_code, | extern size_t gd_putdata(DIRFILE *dirfile, const char *field_code, | |||
off_t first_frame, off_t first_sample, size_t num_frames, | off_t first_frame, off_t first_sample, size_t num_frames, | |||
size_t num_samples, gd_type_t data_type, const void *data) | size_t num_samples, gd_type_t data_type, const void *data) | |||
skipping to change at line 1035 | skipping to change at line 1042 | |||
gd_nonnull ((1,2)); | gd_nonnull ((1,2)); | |||
extern off_t gd_eof(DIRFILE *dirfile, const char *field_code) | extern off_t gd_eof(DIRFILE *dirfile, const char *field_code) | |||
gd_nonnull ((1,2)); | gd_nonnull ((1,2)); | |||
extern off_t gd_seek(DIRFILE *dirfile, const char *field_code, off_t frame_ num, | extern off_t gd_seek(DIRFILE *dirfile, const char *field_code, off_t frame_ num, | |||
off_t sample_num, int whence) gd_nonnull ((1,2)); | off_t sample_num, int whence) gd_nonnull ((1,2)); | |||
extern off_t gd_tell(DIRFILE *dirfile, const char *field_code) gd_nothrow | extern off_t gd_tell(DIRFILE *dirfile, const char *field_code) gd_nothrow | |||
gd_nonnull ((1,2)); | gd_nonnull ((1,2)); | |||
#else | ||||
# ifdef __REDIRECT_NTH | ||||
extern off_t __REDIRECT_NTH (gd_bof, (DIRFILE *dirfile, const char *field_c | ||||
ode), | ||||
gd_bof64) gd_nonnull ((1,2)); | ||||
extern off_t __REDIRECT_NTH (gd_frameoffset, (DIRFILE *dirfile, int fragmen | ||||
t), | ||||
gd_frameoffset64) gd_nonnull ((1)); | ||||
extern off_t __REDIRECT_NTH (gd_tell, (DIRFILE *dirfile, | ||||
const char *field_code), gd_tell64) gd_nonnull ((1,2)); | ||||
# else | ||||
# define gd_bof gd_bof64 | ||||
# define gd_frameoffset gd_frameoffset64 | ||||
# define gd_tell gd_tell64 | ||||
# endif | ||||
# ifdef __REDIRECT | ||||
extern int __REDIRECT (gd_alter_frameoffset, (DIRFILE *dirfile, off_t offse | ||||
t, | ||||
int fragment, int recode), gd_alter_frameoffset64) gd_nonnull ((1)); | ||||
extern size_t __REDIRECT (gd_getdata, (DIRFILE *dirfile, const char *field_ | ||||
code, | ||||
off_t first_frame, off_t first_samp, size_t num_frames, size_t num_sa | ||||
mp, | ||||
gd_type_t return_type, void *data), gd_getdata64) gd_nonnull ((1, 2)) | ||||
; | ||||
extern size_t __REDIRECT (gd_putdata, (DIRFILE *dirfile, const char *field_ | ||||
code, | ||||
off_t first_frame, off_t first_sample, size_t num_frames, | ||||
size_t num_samples, gd_type_t data_type, const void *data), | ||||
gd_putdata64) gd_nonnull ((1, 2)); | ||||
extern off_t __REDIRECT (gd_nframes, (DIRFILE *dirfile), | ||||
gd_nframes64) gd_nonnull ((1)); | ||||
extern off_t __REDIRECT (gd_eof, (DIRFILE *dirfile, const char *field_code) | ||||
, | ||||
gd_eof64) gd_nonnull ((1,2)); | ||||
extern double __REDIRECT (gd_framenum_subset, (DIRFILE *dirfile, | ||||
const char *field_code, double value, off_t field_start, off_t field_ | ||||
end), | ||||
gd_framenum_subset64) gd_nonnull ((1,2)); | ||||
extern off_t __REDIRECT (gd_seek, (DIRFILE *dirfile, const char *field_code | ||||
, | ||||
off_t frame_num, off_t sample_num, int whence), gd_seek64) | ||||
gd_nonnull ((1,2)); | ||||
# else | ||||
# define gd_alter_frameoffset gd_alter_frameoffset64 | ||||
# define gd_getdata gd_getdata64 | ||||
# define gd_putdata gd_putdata64 | ||||
# define gd_nframes gd_nframes64 | ||||
# define gd_eof gd_eof64 | ||||
# define gd_framenum_subset gd_framenum_subset64 | ||||
# define gd_seek gd_seek64 | ||||
# endif | ||||
#endif | ||||
/* if required, declare the LFS transitional extension */ | ||||
#if defined _LARGEFILE64_SOURCE || (defined _FILE_OFFSET_BITS && \ | ||||
_FILE_OFFSET_BITS == 64) || (defined __CYGWIN__) || (defined __APPLE__) | ||||
#if ! defined GD_64BIT_API | ||||
#define GD_64BIT_API | ||||
#endif | ||||
#endif | ||||
#ifdef GD_64BIT_API | #ifdef GD_64BIT_API | |||
#ifdef __off64_t_defined | #ifdef __off64_t_defined | |||
typedef __off64_t gd_off64_t; | typedef __off64_t gd_off64_t; | |||
#elif (defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64) | #elif (defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64) | |||
typedef off_t gd_off64_t; | typedef off_t gd_off64_t; | |||
#else | #else | |||
typedef gd_int64_t gd_off64_t; | typedef gd_int64_t gd_off64_t; | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
72 lines changed or deleted | 9 lines changed or added | |||