History log of /external/fio/os/windows/posix.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
70a61165b46f210407bcac839b4f0ffe7b4e009f 01-Nov-2013 Bruce Cran <bcran@fusionio.com> Implement writev on Windows

The network code depends on writev(), so implement it for Windows.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
f16b7405fff7c3fc1da421b6bdf8552cc99c3156 08-Oct-2013 Bruce Cran <bcran@fusionio.com> Update Windows code to fix build breakage

MinGW has been updated: this causes problems due to changes in header
files, including COM stuff being pulled in resulting in 'interface' being
a reserved keyword, and changes to a few POSIX definitions.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
3899da22920c2ac1b30080f915189eb77c94cf8a 29-May-2013 Bruce Cran <bruce@cran.org.uk> posix_fadvise is now provided in helpers.c: remove it from the Windows posix.c

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
5aa23eb8d6ae67c5a5e31737164307675b36518e 23-Apr-2013 Bruce Cran <bruce@cran.org.uk> Fix Windows build warnings.

winsock2.h needs to be included before windows.h.
Separate declarations and code.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
10a6b3c67042914fe9d287027bf8792f69e84524 07-Feb-2013 Bruce Cran <bruce@cran.org.uk> Windows: fix mlock, remove ftruncate and fix error handling.

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 <axboe@kernel.dk>
/external/fio/os/windows/posix.c
01d269552bca14c90bdcc2288e64ba2426c045ea 06-Feb-2013 Bruce Cran <bruce@cran.org.uk> Windows: fix sysconf(_SC_PHYS_PAGES).

sysconf(_SC_PHYS_PAGES) was returning the number of bytes of memory
instead of the number of pages. Also improve some error messages in
sysconf(). Update os_phys_mem() to use sysconf().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
e254d00ba9dfcdf26e6a8fedd2339c16f5a616f7 06-Feb-2013 Jens Axboe <axboe@kernel.dk> Get rid of fallocate on Windows

Fallocate is only useful if it is a fast operation, helping the
file system allocate and setup meta data for the given size.
So don't punt to zero filling the entire thing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
7732a09b0a5331f20b7fdf42f811a3f2805dcaae 24-Jan-2013 Huadong Liu <HLiu@fusionio.com> Use RUSAGE_THREAD, if available

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
36744c7511b71defe1c60666ae175ec8a5ed22c8 24-Jan-2013 Jens Axboe <axboe@kernel.dk> windows: don't provide strsep(), fio already has one

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
4ee47af0e535676100380034dbc5e05c2f1b1642 21-Jan-2013 Jens Axboe <axboe@kernel.dk> windows: use hweight64(), it's a 64-bit type

Courtesy of Bruce.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
671b060056d176f646280f1fd0c29d72f76183e6 21-Jan-2013 Bruce Cran <bruce@cran.org.uk> Fix _SC_NPROCESSORS_ONLN on Windows

_SC_NPROCESSORS_ONLN was returning the wrong value on Windows because
GetLogicalProcessorInformation() returns data about caches, nodes and
packages in addition to processors.

Modified by Jens to use hweight32()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
67bf982340d95ca98098ea050b54b4c7adb116c0 10-Jan-2013 Jens Axboe <axboe@kernel.dk> Add configure script

Get rid of all the fragile guessing and checking of features,
and roll a configure script instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
2277d5d5ec39cbd06430348780b1ceb7d01710ae 06-Dec-2012 Bruce Cran <BCran@fusionio.com> Fix windows out-of-memory handling

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
eedd9d0fe637517fd655c4cacdd335ce4959abf2 10-Oct-2012 Bruce Cran <bruce@cran.org.uk> Windows: avoid large writes during file layout.

Avoid large buffered writes during file layout by flushing changes to disk by
calling _commit() after each write.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
3f457bea08a6bd60d99950c59c5432b8e78c69e2 10-Oct-2012 Bruce Cran <bruce@cran.org.uk> fio patch: Windows netio fixes

Jens,

I've attached a patch to fix netio on Windows:

Add call to WSAStartup() to engines\net.c.
Fix NULL dereference in poll().
Add inet_aton().

--
Bruce Cran

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
98dc2db5f11e6d597ca44aa6bf49f0dbd4397725 03-Oct-2012 Bruce Cran <bruce@cran.org.uk> XP/2003 compatability fix

The attached patch fixes the bug that on XP fio fails with:

"The procedure entry point vsprintf_s could not be located in the
dynamic link library msvcrt.dll".

Only Vista and newer have the 'secure' functions, so we need to use
vsprintf to maintain compatibility with XP.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
ca48255b113cc5ebafadf2d3b174a68b246adb72 06-Sep-2012 Bruce Cran <bruce@cran.org.uk> windows: reduce block size used in posix_fallocate()

Reduce the buffer size in posix_fallocate() to avoid
compatability problems.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
ad9c0fbc7ce6d1bba089f543036c997cbad84d7b 21-Aug-2012 Bruce Cran <bruce@cran.org.uk> Windows fio: implement some more POSIX functions

Implement opendir, closedir, readdir, and basic openlog, closelog and
syslog functionality on Windows.

Remove inet_aton since it wasn't being used.

Remove warning that msync isn't implemented - just return an error.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
9576f613be6dd7217a31c27742cb9aae09a77bf8 17-Aug-2012 Bruce Cran <bruce@cran.org.uk> Windows fio fixes

Here's the latest set of Windows fio fixes:

Windows posix.c fixes

Reset the file pointer at the end of posix_fallocate().
Use 64-bit versions of tell() and seek().
Fix basename().
Use uint64_t instead of unsigned long long.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
83ae8ca2f53fe80314de9e718c8348047418af70 16-Aug-2012 Bruce Cran <bruce@cran.org.uk> fix 32-bit Windows fio (overflow in getusage and gettimeofday)

Fix overflow in getrusage and gettimeofday for 32-bit versions of fio
on Windows.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
21c753874722ceff6e78c9e57768932436bce35b 15-Aug-2012 Bruce Cran <bruce@cran.org.uk> fio: add nanosleep() to Windows

I've attached a patch which adds an implementation of nanosleep() to
Windows, fixing rate-limiting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
d39879467ccb7f136815be0ba7fd283524c2dafb 08-Jun-2012 Bruce Cran <BCran@fusionio.com> Windows 32-bit fio fixes

Fix no-op shift in shmget by casting to 64-bit.
Generate a new Product GUID for fio 2.0.8.
Add the 32-bit MinGW-w64 compiler executable name in Makefile.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
f9a58c2a6818830c772f3aa0b82bf04de7569acf 04-Apr-2012 Bruce Cran <bruce@cran.org.uk> Windows fixes

Only return from fio_windowsaio_getevents if the minimum number of IOs has
completed.

Add posix_fallocate implementation to avoid extending the file during the test.

Move call to ResetEvent into windowsaio_getevents where other reset code is
located.

Fix tabs vs. spaces in windowsaio.c and the installer sources.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
e5b8f91cc6229a5f8b38f1338fad29c800fef179 22-Feb-2012 Bruce Cran <bruce@cran.org.uk> Implement sigaction for Windows.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
fc0b830f419bf64fff6fee91d1d3b9e94da11091 20-Feb-2012 Bruce Cran <bruce@cran.org.uk> Fix tabbing and comment characters in Windows code.

Update syslog.h with proper flag values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c
9277ec144b7a2a852a72e2c4d3f0ff806ccd97aa 20-Feb-2012 Bruce Cran <bruce@cran.org.uk> Add missing os/windows/posix.c file.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
/external/fio/os/windows/posix.c