change os_trim() prototype not to use int fd
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 29 Aug 2017 21:12:16 +0000 (00:12 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Aug 2017 21:14:52 +0000 (15:14 -0600)
commit496b1f9ee8b6e18991b2dce0bd20a6fd19d6dd2c
treeee39b42e6a4928b6516dacaa9f7af7ee29cdf41d
parent2905de747b0aba7f3a5c24026f6fcaa17c88de83
change os_trim() prototype not to use int fd

This is the same as the previous commit. The offset and length are
universal regardless of platforms, but int fd is not, thus it should
take struct fio_file*.

In fact, other fd related functions under os/ don't take int fd for
portability even if some of them work fine with int fd at the moment.

(OS headers basically (should)have no dependencies on fio functions
and structures, but struct fio_file is the only exception.)

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c
os/os-android.h
os/os-dragonfly.h
os/os-freebsd.h
os/os-linux.h