Lines Matching refs:fd
106 static int ts_close(int fd);
110 static int ts_fstat(int fd, struct stat *p);
111 static int ts_ftruncate(int fd, off_t n);
112 static int ts_fcntl(int fd, int cmd, ... );
113 static int ts_read(int fd, void *aBuf, size_t nBuf);
114 static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off);
118 static int ts_pread64(int fd, void *aBuf, size_t nBuf, sqlite3_uint64 off);
119 static int ts_write(int fd, const void *aBuf, size_t nBuf);
120 static int ts_pwrite(int fd, const void *aBuf, size_t nBuf, off_t off);
121 static int ts_pwrite64(int fd, const void *aBuf, size_t nBuf, sqlite3_uint64 off);
122 static int ts_fchmod(int fd, mode_t mode);
123 static int ts_fallocate(int fd, off_t off, off_t len);
236 static int ts_close(int fd){ in ts_close() argument
243 orig_close(fd); in ts_close()
246 return orig_close(fd); in ts_close()
282 static int ts_fstat(int fd, struct stat *p){ in ts_fstat() argument
286 return orig_fstat(fd, p); in ts_fstat()
292 static int ts_ftruncate(int fd, off_t n){ in ts_ftruncate() argument
296 return orig_ftruncate(fd, n); in ts_ftruncate()
302 static int ts_fcntl(int fd, int cmd, ... ){ in ts_fcntl() argument
310 return orig_fcntl(fd, cmd, pArg); in ts_fcntl()
316 static int ts_read(int fd, void *aBuf, size_t nBuf){ in ts_read() argument
320 return orig_read(fd, aBuf, nBuf); in ts_read()
326 static int ts_pread(int fd, void *aBuf, size_t nBuf, off_t off){ in ts_pread() argument
330 return orig_pread(fd, aBuf, nBuf, off); in ts_pread()
336 static int ts_pread64(int fd, void *aBuf, size_t nBuf, sqlite3_uint64 off){ in ts_pread64() argument
340 return orig_pread64(fd, aBuf, nBuf, off); in ts_pread64()
346 static int ts_write(int fd, const void *aBuf, size_t nBuf){ in ts_write() argument
348 if( tsErrno("write")==EINTR ) orig_write(fd, aBuf, nBuf/2); in ts_write()
351 return orig_write(fd, aBuf, nBuf); in ts_write()
357 static int ts_pwrite(int fd, const void *aBuf, size_t nBuf, off_t off){ in ts_pwrite() argument
361 return orig_pwrite(fd, aBuf, nBuf, off); in ts_pwrite()
367 static int ts_pwrite64(int fd, const void *aBuf, size_t nBuf, sqlite3_uint64 off){ in ts_pwrite64() argument
371 return orig_pwrite64(fd, aBuf, nBuf, off); in ts_pwrite64()
377 static int ts_fchmod(int fd, mode_t mode){ in ts_fchmod() argument
381 return orig_fchmod(fd, mode); in ts_fchmod()
393 static int ts_fallocate(int fd, off_t off, off_t len){ in ts_fallocate() argument
397 return orig_fallocate(fd, off, len); in ts_fallocate()
405 int fd, in ts_mmap() argument
411 return orig_mmap(pAddr, nByte, prot, flags, fd, iOff); in ts_mmap()