summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-01 10:05:16 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-01 10:19:54 -0600
commite2934e144409e6afc2678ef2558641755cbd4c43 (patch)
tree1a888c417bf55525414a25074d8d50fdf4f25b14 /test
parentf6c8044fd0d4fb8b8b2136d3329b38576a706308 (diff)
downloadliburing-e2934e144409e6afc2678ef2558641755cbd4c43.tar.gz
liburing-e2934e144409e6afc2678ef2558641755cbd4c43.tar.bz2
Switch to 32/64-bit agnostic timeout format
We made a kernel change to support timeouts properly on 32-bit archs, update liburing to use __kernel_timespec instead of the differently sized timespec. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test')
-rw-r--r--test/timeout.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/timeout.c b/test/timeout.c
index 4edc411..c759789 100644
--- a/test/timeout.c
+++ b/test/timeout.c
@@ -49,7 +49,7 @@ static int test_single_timeout_many(struct io_uring *ring)
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
unsigned long long exp;
- struct timespec ts;
+ struct __kernel_timespec ts;
struct timeval tv;
int ret;
@@ -106,7 +106,7 @@ static int test_single_timeout_nr(struct io_uring *ring)
{
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
- struct timespec ts;
+ struct __kernel_timespec ts;
int i, ret;
sqe = io_uring_get_sqe(ring);
@@ -181,7 +181,7 @@ static int test_single_timeout_wait(struct io_uring *ring)
{
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
- struct timespec ts;
+ struct __kernel_timespec ts;
int i, ret;
sqe = io_uring_get_sqe(ring);
@@ -230,7 +230,7 @@ static int test_single_timeout(struct io_uring *ring)
struct io_uring_cqe *cqe;
struct io_uring_sqe *sqe;
unsigned long long exp;
- struct timespec ts;
+ struct __kernel_timespec ts;
struct timeval tv;
int ret;
@@ -280,7 +280,7 @@ err:
static int test_single_timeout_exit(struct io_uring *ring)
{
struct io_uring_sqe *sqe;
- struct timespec ts;
+ struct __kernel_timespec ts;
int ret;
sqe = io_uring_get_sqe(ring);