summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@fischer.debian.org>2012-06-18 20:55:06 +0000
committerGravatar Joey Hess <joey@kitenet.net>2012-06-18 16:56:05 -0400
commita11825a1f153fc7fe9aa469055b3935f254a4e9d (patch)
tree51465ee927678798de3fa0d36e6ffdfb7527b0b3 /Utility
parentd680ff7ef06a3b0c8310836b03446e89d0ff9764 (diff)
add test stub
Diffstat (limited to 'Utility')
-rw-r--r--Utility/libkqueue.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Utility/libkqueue.c b/Utility/libkqueue.c
index 999508f7e..cc001045b 100644
--- a/Utility/libkqueue.c
+++ b/Utility/libkqueue.c
@@ -63,3 +63,13 @@ int init_kqueue(const int fdcnt, const int *fdlist) {
signed int waitchange_kqueue(const int kq) {
return helper(kq, 0, NULL, NULL);
}
+
+/*
+main () {
+ int list[1];
+ int kq;
+ list[0]=open(".", O_RDONLY);
+ kq = init_kqueue(1, list);
+ printf("change: %i\n", waitchange_kqueue(kq));
+}
+*/