Lines Matching refs:fd

59 _tiffReadProc(thandle_t fd, void* buf, tmsize_t size)  in _tiffReadProc()  argument
67 return ((tmsize_t) read((int)(intptr_t) fd, buf, size_io)); in _tiffReadProc()
71 _tiffWriteProc(thandle_t fd, void* buf, tmsize_t size) in _tiffWriteProc() argument
79 return ((tmsize_t) write((int)(intptr_t) fd, buf, size_io)); in _tiffWriteProc()
83 _tiffSeekProc(thandle_t fd, uint64 off, int whence) in _tiffSeekProc() argument
91 return((uint64)lseek((int)(intptr_t)fd,off_io,whence)); in _tiffSeekProc()
95 _tiffCloseProc(thandle_t fd) in _tiffCloseProc() argument
97 return(close((int)(intptr_t)fd)); in _tiffCloseProc()
101 _tiffSizeProc(thandle_t fd) in _tiffSizeProc() argument
104 if (fstat((int)(intptr_t)fd,&sb)<0) in _tiffSizeProc()
114 _tiffMapProc(thandle_t fd, void** pbase, toff_t* psize) in _tiffMapProc() argument
116 uint64 size64 = _tiffSizeProc(fd); in _tiffMapProc()
120 mmap(0, (size_t)sizem, PROT_READ, MAP_SHARED, (int)(intptr_t) fd, 0); in _tiffMapProc()
130 _tiffUnmapProc(thandle_t fd, void* base, toff_t size) in _tiffUnmapProc() argument
132 (void) fd; in _tiffUnmapProc()
137 _tiffMapProc(thandle_t fd, void** pbase, toff_t* psize) in _tiffMapProc() argument
139 (void) fd; (void) pbase; (void) psize; in _tiffMapProc()
144 _tiffUnmapProc(thandle_t fd, void* base, toff_t size) in _tiffUnmapProc() argument
146 (void) fd; (void) base; (void) size; in _tiffUnmapProc()
154 TIFFFdOpen(int fd, const char* name, const char* mode) in TIFFFdOpen() argument
159 (thandle_t)(intptr_t) fd, in TIFFFdOpen()
164 tif->tif_fd = fd; in TIFFFdOpen()
175 int m, fd; in TIFFOpen() local
187 fd = open(name, m, 0666); in TIFFOpen()
188 if (fd < 0) { in TIFFOpen()
197 tif = TIFFFdOpen((int)fd, name, mode); in TIFFOpen()
199 close(fd); in TIFFOpen()
212 int m, fd; in TIFFOpenW() local
226 fd = _wopen(name, m, 0666); in TIFFOpenW()
227 if (fd < 0) { in TIFFOpenW()
246 tif = TIFFFdOpen((int)fd, (mbname != NULL) ? mbname : "<unknown>", in TIFFOpenW()
252 close(fd); in TIFFOpenW()