30 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(_MSC_VER) 39 return (
read((
int) fd, buf, size));
45 return (
write((
int) fd, buf, size));
51 return (
lseek((
int) fd, (off_t) off, whence));
57 return (
close((
int) fd));
66 return (fstat((
int) fd, &sb) < 0 ? 0 : sb.st_size);
90 _tiffReadProc, _tiffWriteProc, _tiffSeekProc, _tiffCloseProc,
91 _tiffSizeProc, _tiffMapProc, _tiffUnmapProc);
103 static const char module[] =
"TIFFOpen";
109 fd =
open(name, m|O_BINARY, 0666);
119 extern char* realloc();
127 return (
malloc((
size_t) s));
139 return (realloc(p, (
size_t) s));
145 memset(p, v, (
size_t) c);
151 memcpy(d, s, (
size_t) c);
157 return (memcmp(p1, p2, (
size_t) c));
161 msdosWarningHandler(
const char* module,
const char* fmt, va_list ap)
164 fprintf(stderr,
"%s: ", module);
165 fprintf(stderr,
"Warning, ");
166 vfprintf(stderr, fmt, ap);
167 fprintf(stderr,
".\n");
172 msdosErrorHandler(
const char* module,
const char* fmt, va_list ap)
175 fprintf(stderr,
"%s: ", module);
176 vfprintf(stderr, fmt, ap);
177 fprintf(stderr,
".\n");
TIFF * TIFFFdOpen(int fd, const char *name, const char *mode)
int write(int fd, const char *buf, int nbytes)
int read(int fd, char *buf, int nbytes)
int _TIFFmemcmp(const tdata_t p1, const tdata_t p2, tsize_t c)
void(* TIFFErrorHandler)(const char *, const char *, va_list)
TIFFErrorHandler _TIFFerrorHandler
void _TIFFmemcpy(tdata_t d, const tdata_t s, tsize_t c)
tdata_t _TIFFmalloc(tsize_t s)
tdata_t _TIFFrealloc(tdata_t p, tsize_t s)
GLenum GLuint GLenum GLsizei const GLchar * buf
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)
off_t lseek(int fd, off_t offset, int whence)
void _TIFFfree(tdata_t p)
TIFF * TIFFOpen(const char *name, const char *mode)
TIFFErrorHandler _TIFFwarningHandler
void TIFFErrorExt(thandle_t fd, const char *module, const char *fmt,...)
GLuint const GLchar * name
int open(const char *name, int flags, int mode)
int _TIFFgetMode(const char *mode, const char *module)
void _TIFFmemset(tdata_t p, int v, tsize_t c)