30#ifdef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
31#undef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
186 if (hMapFile ==
NULL)
252 static const char module[] =
"TIFFOpen";
308 static const char module[] =
"TIFFOpenW";
359 "Can't allocate space for filename conversion buffer");
367 (mbname !=
NULL) ? mbname :
"<unknown>",
mode, opts);
381 return ((
void *)
NULL);
388 if (nmemb == 0 || siz == 0)
389 return ((
void *)
NULL);
391 return calloc((
size_t)nmemb, (
size_t)siz);
407 return (
memcmp(p1, p2, (
size_t)
c));
#define INVALID_SET_FILE_POINTER
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define FILE_ATTRIBUTE_NORMAL
#define WideCharToMultiByte
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
int WINAPIV fprintf(FILE *file, const char *format,...)
int CDECL vfprintf(FILE *file, const char *format, va_list valist)
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define memcpy(s1, s2, n)
#define FILE_ATTRIBUTE_READONLY
_Must_inspect_result_ _Out_ LPSIZE psize
void _TIFFErrorEarly(TIFFOpenOptions *opts, thandle_t clientdata, const char *module, const char *fmt,...)
TIFF * TIFFClientOpenExt(const char *name, const char *mode, thandle_t clientdata, TIFFReadWriteProc readproc, TIFFReadWriteProc writeproc, TIFFSeekProc seekproc, TIFFCloseProc closeproc, TIFFSizeProc sizeproc, TIFFMapFileProc mapproc, TIFFUnmapFileProc unmapproc, TIFFOpenOptions *opts)
int _tiffDummyMapProc(thandle_t fd, void **pbase, toff_t *psize)
int _TIFFgetMode(TIFFOpenOptions *opts, thandle_t clientdata, const char *mode, const char *module)
void _tiffDummyUnmapProc(thandle_t fd, void *base, toff_t size)
static tmsize_t _tiffReadProc(thandle_t fd, void *buf, tmsize_t size)
TIFF * TIFFFdOpen(int ifd, const char *name, const char *mode)
static void Win32WarningHandler(const char *module, const char *fmt, va_list ap)
TIFFErrorHandler _TIFFwarningHandler
TIFF * TIFFOpenExt(const char *name, const char *mode, TIFFOpenOptions *opts)
TIFF * TIFFOpen(const char *name, const char *mode)
static int thandle_to_int(thandle_t fd)
static void _tiffUnmapProc(thandle_t fd, void *base, toff_t size)
static tmsize_t _tiffWriteProc(thandle_t fd, void *buf, tmsize_t size)
static thandle_t thandle_from_int(int ifd)
static void Win32ErrorHandler(const char *module, const char *fmt, va_list ap)
void * _TIFFcalloc(tmsize_t nmemb, tmsize_t siz)
TIFF * TIFFOpenW(const wchar_t *name, const char *mode)
void _TIFFmemset(void *p, int v, tmsize_t c)
void * _TIFFmalloc(tmsize_t s)
static uint64_t _tiffSeekProc(thandle_t fd, uint64_t off, int whence)
static int _tiffCloseProc(thandle_t fd)
static uint64_t _tiffSizeProc(thandle_t fd)
int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c)
TIFF * TIFFFdOpenExt(int ifd, const char *name, const char *mode, TIFFOpenOptions *opts)
static int _tiffMapProc(thandle_t fd, void **pbase, toff_t *psize)
TIFFErrorHandler _TIFFerrorHandler
TIFF * TIFFOpenWExt(const wchar_t *name, const char *mode, TIFFOpenOptions *opts)
void _TIFFmemcpy(void *d, const void *s, tmsize_t c)
void * _TIFFrealloc(void *p, tmsize_t s)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
DWORD WINAPI GetLastError(void)
#define CreateFileMapping
void int int ULONGLONG int va_list * ap