32#ifdef HAVE_SYS_TYPES_H
57#define TIFF_IO_MAX 2147483647U
79 for (bytes_read=0; bytes_read < bytes_total; bytes_read+=
count)
81 char *buf_offset = (
char *)
buf+bytes_read;
82 size_t io_size = bytes_total-bytes_read;
107 for (bytes_written=0; bytes_written < bytes_total; bytes_written+=
count)
109 const char *buf_offset = (
char *)
buf+bytes_written;
110 size_t io_size = bytes_total-bytes_written;
128 if ((
uint64) off_io != off)
165 if ((
uint64)sizem==size64) {
169 mmap(0, (
size_t)sizem, PROT_READ, MAP_SHARED, fdh.
fd, 0);
170 if (*pbase != (
void*) -1) {
225 static const char module[] =
"TIFFOpen";
262 static const char module[] =
"TIFFOpenW";
289 "Can't allocate space for filename conversion buffer");
312 return ((
void *)
NULL);
319 if( nmemb == 0 || siz == 0 )
320 return ((
void *)
NULL);
322 return calloc((
size_t) nmemb, (
size_t)siz);
352 return (
memcmp(p1, p2, (
size_t)
c));
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define WideCharToMultiByte
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
#define memcpy(s1, s2, n)
const char * strerror(int err)
_Must_inspect_result_ _Out_ LPSIZE psize
_CRTIMP int __cdecl _wopen(const wchar_t *_Filename, int _OpenFlag,...)
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
TIFF * TIFFClientOpen(const char *name, const char *mode, thandle_t clientdata, TIFFReadWriteProc readproc, TIFFReadWriteProc writeproc, TIFFSeekProc seekproc, TIFFCloseProc closeproc, TIFFSizeProc sizeproc, TIFFMapFileProc mapproc, TIFFUnmapFileProc unmapproc)
int _TIFFgetMode(const char *mode, const char *module)
static tmsize_t _tiffReadProc(thandle_t fd, void *buf, tmsize_t size)
static void unixErrorHandler(const char *module, const char *fmt, va_list ap)
TIFFErrorHandler _TIFFwarningHandler
TIFF * TIFFOpen(const char *name, const char *mode)
union fd_as_handle_union fd_as_handle_union_t
static void _tiffUnmapProc(thandle_t fd, void *base, toff_t size)
static tmsize_t _tiffWriteProc(thandle_t fd, void *buf, tmsize_t size)
static uint64 _tiffSeekProc(thandle_t fd, uint64 off, int whence)
void * _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)
void _TIFFmemset(void *p, int v, tmsize_t c)
void * _TIFFmalloc(tmsize_t s)
TIFF * TIFFFdOpen(int fd, const char *name, const char *mode)
static int _tiffCloseProc(thandle_t fd)
int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c)
static void unixWarningHandler(const char *module, const char *fmt, va_list ap)
static int _tiffMapProc(thandle_t fd, void **pbase, toff_t *psize)
TIFFErrorHandler _TIFFerrorHandler
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
static uint64 _tiffSizeProc(thandle_t fd)
void * _TIFFrealloc(void *p, tmsize_t s)
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
#define _TIFF_fstat_f(fildes, stat_buff)
#define _TIFF_lseek_f(fildes, offset, whence)
void int int ULONGLONG int va_list * ap