Skip to content

Instantly share code, notes, and snippets.

#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <dwmapi.h>
#include <stdio.h>
#include <inttypes.h>
uint64_t qpc_freq;
static void print_ratio(const char *name, UNSIGNED_RATIO val)
{
#define _WIN32_WINNT 0x0600
#include <windows.h>
#include <dwmapi.h>
#include <stdio.h>
#include <inttypes.h>
uint64_t qpc_freq;
static void print_ratio(const char *name, UNSIGNED_RATIO val)
{
@inactive123
inactive123 / 00-README.md
Created May 6, 2016 02:13 — forked from rsms/00-README.md
Example programs and tests for the POSIX Asynchronous file I/O

There are some tests ripped out from git://repo.or.cz/ltp-debian.git/testcases/open_posix_testsuite/conformance/interfaces and made self-containing. They demonstrate and can be used to test the POSIX AIO interface for asynchronous I/O and formerly file IO.

Build with a c compiler (for instance clang or cc):

cc -o aio_read-test aio_read-test.c && ./aio_read-test

Note: Contrary to popular belief, it has been tested and confirmed to actually be asynchronous on Darwin 10.6.0 (xnu 1504.9.26~3).