diff options
author | Ben LaHaise <bcrl@kvack.org> | 2002-01-22 23:05:09 +0000 |
---|---|---|
committer | Ben LaHaise <bcrl@kvack.org> | 2002-01-22 23:05:09 +0000 |
commit | 9f294ded21424561ba4abe9c722c5c090b88c0f7 (patch) | |
tree | 872d5c17937c356ce31b28adf784762929545346 | |
parent | dcf7326ea3a7d70ffd23fe1df8442f70f7fa1d2e (diff) | |
download | libaio-9f294ded21424561ba4abe9c722c5c090b88c0f7.tar.gz |
really add io_getevents.clibaio.0-3-7.1
-rw-r--r-- | src/io_getevents.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/io_getevents.c b/src/io_getevents.c new file mode 100644 index 0000000..a978b92 --- /dev/null +++ b/src/io_getevents.c @@ -0,0 +1,28 @@ +/* io_getevents.c + libaio Linux async I/O interface + Copyright 2002 Red Hat, Inc. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#include <libaio.h> +#include <errno.h> +#include <stdlib.h> +#include <time.h> +#include "vsys_def.h" + +int io_getevents(io_context_t ctx, long nr, struct io_event *events, struct timespec *timeout) +{ + return vsys_io_getevents(ctx, nr, events, timeout); +} |