summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen LaHaise <bcrl@kvack.org>2002-01-30 23:17:33 +0000
committerBen LaHaise <bcrl@kvack.org>2002-01-30 23:17:33 +0000
commit26ce2ddc56038e7640f815bd7951d08fa9f56ff3 (patch)
treed07665ea3084b38e2bf79f8071f7342dc99aa674
parent513a272d72b653affc155fdf5c03279d5b94d3d1 (diff)
downloadlibaio-26ce2ddc56038e7640f815bd7951d08fa9f56ff3.tar.gz
add io_queue_release function, bump to 0.3.9
-rw-r--r--ChangeLog3
-rw-r--r--libaio.spec2
-rw-r--r--src/Makefile2
-rw-r--r--src/io_queue_release.c28
-rw-r--r--src/libaio.map1
5 files changed, 34 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e219725..46cc5fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+0.3.9
+ - add io_queue_release function
+
0.3.8
- make clean deletes libredhat-kernel.so.1
- const struct timespec *
diff --git a/libaio.spec b/libaio.spec
index 12e5bbf..37798e4 100644
--- a/libaio.spec
+++ b/libaio.spec
@@ -1,5 +1,5 @@
Name: libaio
-Version: 0.3.8
+Version: 0.3.9
Release: 1
Summary: Linux-native asynchronous I/O access library
Copyright: LGPL
diff --git a/src/Makefile b/src/Makefile
index 83610fb..60cd27e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -16,7 +16,7 @@ libredhat-kernel.so:
@ln -sf libredhat-kernel.so.1 libredhat-kernel.so
libaio_srcs := io_queue_init.c io_submit.c io_cancel.c io_queue_wait.c
-libaio_srcs += io_queue_run.c io_getevents.c
+libaio_srcs += io_queue_run.c io_getevents.c io_queue_release.c
libaio_objs := $(patsubst %.c,%.ol,$(libaio_srcs))
libaio_sobjs := $(patsubst %.c,%.os,$(libaio_srcs))
diff --git a/src/io_queue_release.c b/src/io_queue_release.c
new file mode 100644
index 0000000..b4cbd68
--- /dev/null
+++ b/src/io_queue_release.c
@@ -0,0 +1,28 @@
+/* io_queue_release.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 <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include "vsys_def.h"
+
+int io_queue_release(io_context_t ctx)
+{
+ return vsys_io_destroy(ctx);
+}
diff --git a/src/libaio.map b/src/libaio.map
index 1881f66..51199c0 100644
--- a/src/libaio.map
+++ b/src/libaio.map
@@ -3,6 +3,7 @@ LIBAIO_0.1 {
io_queue_init;
io_queue_run;
io_queue_wait;
+ io_queue_release;
io_cancel;
io_submit;
io_getevents;