path: root/os/windows/posix/include
AgeCommit message (Collapse)Author
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 <>
2018-03-27windows: prepare for Windows build splitSitsofe Wheeler
Signed-off-by: Sitsofe Wheeler <>
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 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 <>
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 <>
2014-04-14Windows: set sizeof(sun_path) to 260 (MAX_PATH).Bruce Cran
Signed-off-by: Jens Axboe <>
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 <>
2013-11-01Implement writev on WindowsBruce Cran
The network code depends on writev(), so implement it for Windows. Signed-off-by: Jens Axboe <>
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 <>
2013-05-29Windows: include winsock2.h instead of windows.h to avoid a warning.Bruce Cran
Signed-off-by: Jens Axboe <>
2013-02-21Update all Windows files except dobuild.cmd to use LF line endingsBruce Cran
Signed-off-by: Jens Axboe <>
2013-01-31windows: fix typo in <netinet/tcp.h> headerJens Axboe
Signed-off-by: Jens Axboe <>
2013-01-30Add empty <netinet/tcp.h> for WindowsJens Axboe
Signed-off-by: Jens Axboe <>
2013-01-24Use RUSAGE_THREAD, if availableHuadong Liu
Signed-off-by: Jens Axboe <>
2012-12-19Consistently indent using tabs in Windows files and remove trailing spaces.Bruce Cran
Signed-off-by: Jens Axboe <>
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 <>
2012-02-20Fix tabbing and comment characters in Windows code.Bruce Cran
Update syslog.h with proper flag values. Signed-off-by: Jens Axboe <>
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 <>