path: root/os/windows/posix.h
AgeCommit message (Collapse)Author
2020-01-06Change off64_t into uint64_tBart Van Assche
off64_t is Linux specific while uint64_t is defined by a C standard. This change makes fio easier to port. Signed-off-by: Bart Van Assche <>
2013-02-07Windows: fix mlock, remove ftruncate and fix error handling.Bruce Cran
Functions in posix.c need to use win_to_posix_err to convert errors from Windows API calls to their equivalent POSIX error code so perror etc. work: move it into posix.c and add the prototype to posix.h. Fix error handling so -1 is always returned on error and errno is set. Fix mlock to work with sizes greater than about 1MB: the working set size needs to be increased for the new allocation. Remove ftruncate from posix.c, since MinGW already provides it. Signed-off-by: Jens Axboe <>
2013-01-23Fix compile warnings on WindowsJens Axboe
Signed-off-by: Jens Axboe <>