Lines Matching refs:fh
61 iwrc iwp_fdatasync(HANDLE fh) { in iwp_fdatasync() argument
62 return iwp_fsync(fh); in iwp_fdatasync()
83 iwrc iwp_ftruncate(HANDLE fh, off_t len) { in iwp_ftruncate() argument
86 if (!SetFilePointerEx(fh, size, NULL, FILE_BEGIN)) { in iwp_ftruncate()
89 if (!SetEndOfFile(fh)) { in iwp_ftruncate()
95 iwrc iwp_fallocate(HANDLE fh, off_t len) { in iwp_fallocate() argument
96 return iwp_ftruncate(fh, len); in iwp_fallocate()
130 iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *fs) { in iwp_fstath() argument
133 if (INVALIDHANDLE(fh)) { in iwp_fstath()
136 if (!GetFileInformationByHandle(fh, &info)) { in iwp_fstath()
159 iwrc iwp_closefh(HANDLE fh) { in iwp_closefh() argument
160 if (INVALIDHANDLE(fh)) { in iwp_closefh()
163 if (!CloseHandle(fh)) { in iwp_closefh()
169 iwrc iwp_flock(HANDLE fh, iwp_lockmode lmode) { in iwp_flock() argument
170 if (INVALIDHANDLE(fh)) { in iwp_flock()
180 if (!LockFileEx(fh, type, 0, ULONG_MAX, ULONG_MAX, &offset)) { in iwp_flock()
186 iwrc iwp_unlock(HANDLE fh) { in iwp_unlock() argument
187 if (INVALIDHANDLE(fh)) { in iwp_unlock()
191 if (!UnlockFileEx(fh, 0, ULONG_MAX, ULONG_MAX, &offset)) { in iwp_unlock()
198 iwrc iwp_pread(HANDLE fh, off_t off, void *buf, size_t siz, size_t *sp) { in iwp_pread() argument
199 if (INVALIDHANDLE(fh)) { in iwp_pread()
211 if (!ReadFile(fh, buf, siz, &rdb, &offset)) { in iwp_pread()
224 iwrc iwp_read(HANDLE fh, void *buf, size_t siz, size_t *sp) { in iwp_read() argument
225 if (INVALIDHANDLE(fh)) { in iwp_read()
232 if (!ReadFile(fh, buf, siz, &rdb, NULL)) { in iwp_read()
245 iwrc iwp_pwrite(HANDLE fh, off_t off, const void *buf, size_t siz, size_t *sp) { in iwp_pwrite() argument
246 if (INVALIDHANDLE(fh)) { in iwp_pwrite()
258 if (!WriteFile(fh, buf, siz, &wrb, &offset)) { in iwp_pwrite()
266 iwrc iwp_write(HANDLE fh, const void *buf, size_t size) { in iwp_write() argument
267 if (INVALIDHANDLE(fh)) { in iwp_write()
271 if (!WriteFile(fh, buf, size, &written, NULL)) { in iwp_write()
277 iwrc iwp_lseek(HANDLE fh, off_t offset, iwp_seek_origin origin, off_t *pos) { in iwp_lseek() argument
278 if (INVALIDHANDLE(fh)) { in iwp_lseek()
294 if (!SetFilePointerEx(fh, loff, &noff, w)) { in iwp_lseek()