|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Implement descriptor-based resource callbacks and pathname opening. More...
#include "tif_config.h"#include <sys/types.h>#include <errno.h>#include <stdarg.h>#include <stdlib.h>#include <sys/stat.h>#include <unistd.h>#include <fcntl.h>#include "tiffiop.h"#include <sys/mman.h>Go to the source code of this file.
Data Structures | |
| union | fd_as_handle_union |
| Carry descriptor bits through the opaque client-handle representation. More... | |
Macros | |
| #define | TIFF_IO_MAX 2147483647U |
| Limit one descriptor read/write request to 2147483647 bytes. | |
Typedefs | |
| typedef union fd_as_handle_union | fd_as_handle_union_t |
| Carry descriptor bits through the opaque client-handle representation. | |
Functions | |
| static tmsize_t | _tiffReadProc (thandle_t fd, void *buf, tmsize_t size) |
| Read bytes from the descriptor with read(). | |
| static tmsize_t | _tiffWriteProc (thandle_t fd, void *buf, tmsize_t size) |
| Write bytes to the descriptor with write(). | |
| static uint64_t | _tiffSeekProc (thandle_t fd, uint64_t off, int whence) |
| Seek the platform resource and return its reported position. | |
| static int | _tiffCloseProc (thandle_t fd) |
| Release the backend OS resource. | |
| static uint64_t | _tiffSizeProc (thandle_t fd) |
| Query the backend resource length in bytes. | |
| static int | _tiffMapProc (thandle_t fd, void **pbase, toff_t *psize) |
| Create a read-only view of the entire backend resource. | |
| static void | _tiffUnmapProc (thandle_t fd, void *base, toff_t size) |
| Release a read-only backend mapping. | |
| TIFF * | TIFFFdOpen (int fd, const char *name, const char *mode) |
| Attach a TIFF handle to an already-open platform resource. | |
| TIFF * | TIFFFdOpenExt (int fd, const char *name, const char *mode, TIFFOpenOptions *opts) |
| Attach a TIFF handle to an already-open platform resource. | |
| TIFF * | TIFFOpen (const char *name, const char *mode) |
| Open a TIFF file by pathname. | |
| TIFF * | TIFFOpenExt (const char *name, const char *mode, TIFFOpenOptions *opts) |
| Open a TIFF file by pathname. | |
| void * | _TIFFmalloc (tmsize_t s) |
| Allocate an uninitialised block through the public allocator. | |
| void * | _TIFFcalloc (tmsize_t nmemb, tmsize_t siz) |
| Allocate a zero-filled array through the public allocator. | |
| void | _TIFFfree (void *p) |
| Release a block allocated by the public allocation family. | |
| void * | _TIFFrealloc (void *p, tmsize_t s) |
| Resize a public-allocator block using platform realloc semantics. | |
| void | _TIFFmemset (void *p, int v, tmsize_t c) |
| Fill a byte range with one repeated byte. | |
| void | _TIFFmemcpy (void *d, const void *s, tmsize_t c) |
| Copy a non-overlapping byte range. | |
| int | _TIFFmemcmp (const void *p1, const void *p2, tmsize_t c) |
| Compare two byte ranges lexicographically. | |
| static void | unixWarningHandler (const char *module, const char *fmt, va_list ap) |
| Print a default warning diagnostic to stderr. | |
| static void | unixErrorHandler (const char *module, const char *fmt, va_list ap) |
| Print a default error diagnostic to stderr. | |
Variables | |
| TIFFErrorHandler | _TIFFwarningHandler = unixWarningHandler |
| Store the global warning callback. | |
| TIFFErrorHandler | _TIFFerrorHandler = unixErrorHandler |
| Store the global error callback. | |
Implement descriptor-based resource callbacks and pathname opening.
Definition in file tif_unix.c.