summaryrefslogtreecommitdiff
path: root/os/windows/posix
AgeCommit message (Collapse)Author
2020-12-26windows: drop XP supportSitsofe Wheeler
Windows 2003 has been EOL since 2015 and Windows XP has been EOL since 2014. Technically fio hasn't been properly targetting XP anyway - (see 16d40a15783f9181d64082fc00a970dff485798f 'configure: be explicit about "XP" Windows API version'). - Strip out support for XP and change the documentation to no longer mention it - Stop targetting XP in the CI 32 bit build Next stop, Windows 7... Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
2018-03-27windows: target Windows 7 and add support for more than 64 CPUsSitsofe Wheeler
Introduce support for targeting the build to either Windows XP or Windows 7 (the default). When targeting Windows 7 this allows us to use the process group APIs which are required are required to support more than 64 CPUs. These changes mean if you want a Windows binary that supports versions of Windows below Windows 7/Windows Server 2008 R2 you will need to explicitly use the --target-win-ver=xp configure option at build time. Such builds will lack features (such as the ability to access CPUs beyond those in fio's default process group) that are dependent on recent Windows APIs. Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
2018-03-27windows: prepare for Windows build splitSitsofe Wheeler
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
2018-03-21Use POSIX path for poll.h and fcntl.h headersSitsofe Wheeler
musl complains when using include paths like <sys/poll.h> rather than POSIX's <poll.h> so change the poll.h include path and update the windows poll.h compatibility shim to match. Allegedly sys/poll.h was needed for GLIBCs that were older than 2.3 according to https://www.winehq.org/pipermail/wine-patches/2014-June/132877.html but I can still see that path in an ancient Red Hat 5.0 glibc-devel-2.0.7-32.i386.rpm ... Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
2015-05-07Add Windows ctime_r implementation and add empty ioctl.h headerBruce Cran
stat.c now uses ctime_r(), so add an implementation for Windows. It's expected that ioctl.h exists on each platform, even if it's not used: add an empty file on Windows. Signed-off-by: Jens Axboe <axboe@fb.com>
2014-04-14Windows: set sizeof(sun_path) to 260 (MAX_PATH).Bruce Cran
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-01-28Fix Windows headers for IPv6Bruce Cran
MinGW includes all the necessary IPv6 definitions, so include ws2tcpip.h and remove the custom definitions. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-11-01Implement writev on WindowsBruce Cran
The network code depends on writev(), so implement it for Windows. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-11-01Update Windows code to fix build breakageBruce Cran
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>
2013-05-29Windows: include winsock2.h instead of windows.h to avoid a warning.Bruce Cran
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-02-21Update all Windows files except dobuild.cmd to use LF line endingsBruce Cran
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-31windows: fix typo in <netinet/tcp.h> headerJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-30Add empty <netinet/tcp.h> for WindowsJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-01-24Use RUSAGE_THREAD, if availableHuadong Liu
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-12-19Consistently indent using tabs in Windows files and remove trailing spaces.Bruce Cran
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-08-21Windows fio: implement some more POSIX functionsBruce Cran
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>
2012-02-20Fix tabbing and comment characters in Windows code.Bruce Cran
Update syslog.h with proper flag values. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2012-02-20Move Windows port to MinGWBruce Cran
- Add calls to WSAStartup in the network code as required by Winsock. - Add Windows-specific init_random_state function which uses the Crypto API. - Move Windows port to MinGW and update build system to create a 64-bit binary by default. - Install text files as .rtf so they won't open in Notepad by default (Wordpad understands Unix line endings; Notepad doesn't). - Simplify WiX installer code. Signed-off-by: Jens Axboe <axboe@kernel.dk>