File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / example / test_aio.c
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Aug 1 09:20:04 2012 UTC (11 years, 11 months ago) by misho
Branches: io3_5
added aio test

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <aitio.h>


int
main(int argc, char **argv)
{
	int f;

	f = open("test_aio.dat", O_CREAT | O_RDWR | O_TRUNC, 0644);
	if (f == -1) {
		perror("open");
		return 1;
	}

	close(f);
	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>