-/* $OpenBSD: test-kqueue.c,v 1.3 2021/05/08 06:53:19 anton Exp $ */
+/* $OpenBSD: test-kqueue.c,v 1.4 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
close(ctx->c_pipe[0]);
close(ctx->c_pipe[1]);
close(ctx->c_kq);
-
}
static int
errc(1, error, "pthread_mutex_lock");
}
-static void ctx_unlock(struct context *ctx)
+static void
+ctx_unlock(struct context *ctx)
{
int error;
-/* $OpenBSD: test-ping-pong.c,v 1.1 2019/11/09 21:10:15 anton Exp $ */
+/* $OpenBSD: test-ping-pong.c,v 1.2 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
if (n == -1)
err(1, "[c] write");
if (n != sizeof(pong))
- errx(1, "[c] write: %ld < %zu", n, sizeof(pong));
+ errx(1, "[c] write: %ld < %zu",
+ n, sizeof(pong));
nrounds--;
}
if (n == -1)
err(1, "[p] write");
if (n != sizeof(ping))
- errx(1, "[p] write: %ld < %zu", n, sizeof(ping));
+ errx(1, "[p] write: %ld < %zu",
+ n, sizeof(ping));
n = read(rp, buf, sizeof(buf));
if (n == -1)
return 0;
}
-
-/* $OpenBSD: test-run-down.c,v 1.2 2019/11/14 21:17:00 anton Exp $ */
+/* $OpenBSD: test-run-down.c,v 1.3 2021/10/22 05:03:57 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
errc(1, error, "pthread_mutex_lock");
}
-static void ctx_unlock(struct context *ctx)
+static void
+ctx_unlock(struct context *ctx)
{
int error;