diff --git a/ccan/README b/ccan/README index f93123766..21b0a5c0d 100644 --- a/ccan/README +++ b/ccan/README @@ -1,3 +1,3 @@ CCAN imported from http://ccodearchive.net. -CCAN version: init-2247-g5e37a0f +CCAN version: init-2302-g6b74669 diff --git a/ccan/ccan/alignof/_info b/ccan/ccan/alignof/_info index e0952c652..ee2b7ad0f 100644 --- a/ccan/ccan/alignof/_info +++ b/ccan/ccan/alignof/_info @@ -21,7 +21,7 @@ * * // Output contains "ALIGNOF(char) == 1" * // Will also print out whether an onstack char array can hold a long. - * int main(int argc, char *argv[]) + * int main(void) * { * char arr[sizeof(int)]; * diff --git a/ccan/ccan/alignof/test/run.c b/ccan/ccan/alignof/test/run.c index f36113d18..5e3216f17 100644 --- a/ccan/ccan/alignof/test/run.c +++ b/ccan/ccan/alignof/test/run.c @@ -24,7 +24,7 @@ struct lots_of_types char c5; }; -int main(int argc, char *argv[]) +int main(void) { struct lots_of_types lots_of_types, *lp = malloc(sizeof(*lp)); char c; diff --git a/ccan/ccan/array_size/test/compile_fail-function-param.c b/ccan/ccan/array_size/test/compile_fail-function-param.c index 48697e044..164c826f5 100644 --- a/ccan/ccan/array_size/test/compile_fail-function-param.c +++ b/ccan/ccan/array_size/test/compile_fail-function-param.c @@ -18,7 +18,7 @@ int check_parameter(const struct foo *array) #endif } -int main(int argc, char *argv[]) +int main(void) { return check_parameter(NULL); } diff --git a/ccan/ccan/array_size/test/compile_fail.c b/ccan/ccan/array_size/test/compile_fail.c index 37d315f21..9bd656826 100644 --- a/ccan/ccan/array_size/test/compile_fail.c +++ b/ccan/ccan/array_size/test/compile_fail.c @@ -2,6 +2,8 @@ int main(int argc, char *argv[8]) { + (void)argc; + (void)argv; char array[100]; #ifdef FAIL return ARRAY_SIZE(argv) + ARRAY_SIZE(array); diff --git a/ccan/ccan/array_size/test/run.c b/ccan/ccan/array_size/test/run.c index 37b4200b4..3c4ae1893 100644 --- a/ccan/ccan/array_size/test/run.c +++ b/ccan/ccan/array_size/test/run.c @@ -16,7 +16,7 @@ static int array2_size = ARRAY_SIZE(array2); static int array3_size = ARRAY_SIZE(array3); static int array4_size = ARRAY_SIZE(array4); -int main(int argc, char *argv[]) +int main(void) { plan_tests(8); ok1(array1_size == 1); diff --git a/ccan/ccan/asort/_info b/ccan/ccan/asort/_info index 28e2faebe..4d59bec1a 100644 --- a/ccan/ccan/asort/_info +++ b/ccan/ccan/asort/_info @@ -31,7 +31,7 @@ * int main(int argc, char *argv[]) * { * bool casefold = false; - * unsigned int i; + * int i; * * if (argc < 2) { * fprintf(stderr, "Usage: %s [-i] ...\n" diff --git a/ccan/ccan/asort/test/compile_fail-context-type.c b/ccan/ccan/asort/test/compile_fail-context-type.c index 473d10264..aa2340f4e 100644 --- a/ccan/ccan/asort/test/compile_fail-context-type.c +++ b/ccan/ccan/asort/test/compile_fail-context-type.c @@ -1,7 +1,7 @@ #include #include -static int cmp(char *const *a, char *const *b, int *flag) +static int cmp(char *const *a UNNEEDED, char *const *b UNNEEDED, int *flag UNNEEDED) { return 0; } diff --git a/ccan/ccan/build_assert/test/compile_fail-expr.c b/ccan/ccan/build_assert/test/compile_fail-expr.c index 109215b8a..6322eb352 100644 --- a/ccan/ccan/build_assert/test/compile_fail-expr.c +++ b/ccan/ccan/build_assert/test/compile_fail-expr.c @@ -1,6 +1,6 @@ #include -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL return BUILD_ASSERT_OR_ZERO(1 == 0); diff --git a/ccan/ccan/build_assert/test/compile_fail.c b/ccan/ccan/build_assert/test/compile_fail.c index 37d95eddc..9fd827d6a 100644 --- a/ccan/ccan/build_assert/test/compile_fail.c +++ b/ccan/ccan/build_assert/test/compile_fail.c @@ -1,6 +1,6 @@ #include -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL BUILD_ASSERT(1 == 0); diff --git a/ccan/ccan/build_assert/test/compile_ok.c b/ccan/ccan/build_assert/test/compile_ok.c index 4105484d1..b4de8b414 100644 --- a/ccan/ccan/build_assert/test/compile_ok.c +++ b/ccan/ccan/build_assert/test/compile_ok.c @@ -1,6 +1,6 @@ #include -int main(int argc, char *argv[]) +int main(void) { BUILD_ASSERT(1 == 1); return 0; diff --git a/ccan/ccan/build_assert/test/run-BUILD_ASSERT_OR_ZERO.c b/ccan/ccan/build_assert/test/run-BUILD_ASSERT_OR_ZERO.c index 418582133..72f9ad1ba 100644 --- a/ccan/ccan/build_assert/test/run-BUILD_ASSERT_OR_ZERO.c +++ b/ccan/ccan/build_assert/test/run-BUILD_ASSERT_OR_ZERO.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { plan_tests(1); ok1(BUILD_ASSERT_OR_ZERO(1 == 1) == 0); diff --git a/ccan/ccan/cast/_info b/ccan/ccan/cast/_info index b09e0344e..29128b8d5 100644 --- a/ccan/ccan/cast/_info +++ b/ccan/ccan/cast/_info @@ -24,6 +24,7 @@ * #include * #include * #include + * #include * * // Find char @orig in @str, if @repl, replace them. Return number. * static size_t find_chars(char *str, char orig, char repl) @@ -53,6 +54,9 @@ * { * uint64_t hash; * + * if (argc != 2) { + * fprintf(stderr, "Needs argument\n"); exit(1); + * } * // find_chars wants a non-const string, but doesn't * // need it if repl == 0. * printf("%zu %c's in 'test string'\n", diff --git a/ccan/ccan/cast/test/compile_fail-cast_const.c b/ccan/ccan/cast/test/compile_fail-cast_const.c index 277f3de1c..24ee4b1f0 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_const.c +++ b/ccan/ccan/cast/test/compile_fail-cast_const.c @@ -6,7 +6,7 @@ struct char_struct { char c; }; -int main(int argc, char *argv[]) +int main(void) { char *uc; const diff --git a/ccan/ccan/cast/test/compile_fail-cast_const2.c b/ccan/ccan/cast/test/compile_fail-cast_const2.c index e671e88ed..b780f5282 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_const2.c +++ b/ccan/ccan/cast/test/compile_fail-cast_const2.c @@ -6,7 +6,7 @@ struct char_struct { char c; }; -int main(int argc, char *argv[]) +int main(void) { char **uc; const diff --git a/ccan/ccan/cast/test/compile_fail-cast_const3.c b/ccan/ccan/cast/test/compile_fail-cast_const3.c index e958e2dde..ac7462c58 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_const3.c +++ b/ccan/ccan/cast/test/compile_fail-cast_const3.c @@ -6,7 +6,7 @@ struct char_struct { char c; }; -int main(int argc, char *argv[]) +int main(void) { char ***uc; const diff --git a/ccan/ccan/cast/test/compile_fail-cast_signed-const.c b/ccan/ccan/cast/test/compile_fail-cast_signed-const.c index 9971dc8eb..26bf8974e 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_signed-const.c +++ b/ccan/ccan/cast/test/compile_fail-cast_signed-const.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { unsigned char *uc; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_fail-cast_signed-sizesame.c b/ccan/ccan/cast/test/compile_fail-cast_signed-sizesame.c index 2bc40b2f4..b6bbd2838 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_signed-sizesame.c +++ b/ccan/ccan/cast/test/compile_fail-cast_signed-sizesame.c @@ -6,7 +6,7 @@ struct char_struct { char c; }; -int main(int argc, char *argv[]) +int main(void) { unsigned char *uc; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_fail-cast_signed.c b/ccan/ccan/cast/test/compile_fail-cast_signed.c index 66bcc0a1b..7661bac46 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_signed.c +++ b/ccan/ccan/cast/test/compile_fail-cast_signed.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { unsigned char *uc; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_fail-cast_static-2.c b/ccan/ccan/cast/test/compile_fail-cast_static-2.c index 8a1202538..dae0231e8 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_static-2.c +++ b/ccan/ccan/cast/test/compile_fail-cast_static-2.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { char *c; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_fail-cast_static-3.c b/ccan/ccan/cast/test/compile_fail-cast_static-3.c index 6296b7527..7cd52fc7a 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_static-3.c +++ b/ccan/ccan/cast/test/compile_fail-cast_static-3.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { char *c; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_fail-cast_static.c b/ccan/ccan/cast/test/compile_fail-cast_static.c index a4ebf61b1..91d0940bf 100644 --- a/ccan/ccan/cast/test/compile_fail-cast_static.c +++ b/ccan/ccan/cast/test/compile_fail-cast_static.c @@ -1,7 +1,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { long c; #ifdef FAIL diff --git a/ccan/ccan/cast/test/compile_ok-static.c b/ccan/ccan/cast/test/compile_ok-static.c index 98b667e83..a7c65725b 100644 --- a/ccan/ccan/cast/test/compile_ok-static.c +++ b/ccan/ccan/cast/test/compile_ok-static.c @@ -6,5 +6,6 @@ static char *p = cast_const(char *, (const char *)"hello"); int main(int argc, char *argv[]) { + (void)argc; return p[0] == argv[0][0]; } diff --git a/ccan/ccan/cdump/_info b/ccan/ccan/cdump/_info index 02ba19b5b..c79d013b2 100644 --- a/ccan/ccan/cdump/_info +++ b/ccan/ccan/cdump/_info @@ -29,7 +29,8 @@ * { * char *code, *problems; * struct cdump_definitions *defs; - * int i, j; + * int i; + * size_t j; * * // Read code from stdin. * code = grab_file(NULL, NULL); diff --git a/ccan/ccan/cdump/cdump.c b/ccan/ccan/cdump/cdump.c index 85c818a6d..7e42dbd74 100644 --- a/ccan/ccan/cdump/cdump.c +++ b/ccan/ccan/cdump/cdump.c @@ -213,7 +213,7 @@ static struct cdump_type *get_type(struct cdump_definitions *defs, enum cdump_type_kind kind, const char *name) { - cdump_map_t *m; + cdump_map_t *m = (void *)0x1L; /* Shouldn't be used */ struct cdump_type *t; switch (kind) { diff --git a/ccan/ccan/check_type/test/compile_fail-check_type.c b/ccan/ccan/check_type/test/compile_fail-check_type.c index fe7d6a235..4c22c65a4 100644 --- a/ccan/ccan/check_type/test/compile_fail-check_type.c +++ b/ccan/ccan/check_type/test/compile_fail-check_type.c @@ -2,6 +2,8 @@ int main(int argc, char *argv[]) { + (void)argc; + (void)argv; #ifdef FAIL check_type(argc, char); #endif diff --git a/ccan/ccan/check_type/test/compile_fail-check_type_unsigned.c b/ccan/ccan/check_type/test/compile_fail-check_type_unsigned.c index 574d4aeb2..795e76067 100644 --- a/ccan/ccan/check_type/test/compile_fail-check_type_unsigned.c +++ b/ccan/ccan/check_type/test/compile_fail-check_type_unsigned.c @@ -2,6 +2,8 @@ int main(int argc, char *argv[]) { + (void)argc; + (void)argv; #ifdef FAIL #if HAVE_TYPEOF check_type(argc, unsigned int); diff --git a/ccan/ccan/check_type/test/compile_fail-check_types_match.c b/ccan/ccan/check_type/test/compile_fail-check_types_match.c index cbd6e9bc5..fb83738b9 100644 --- a/ccan/ccan/check_type/test/compile_fail-check_types_match.c +++ b/ccan/ccan/check_type/test/compile_fail-check_types_match.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { unsigned char x = argc; + (void)argv; #ifdef FAIL check_types_match(argc, x); #endif diff --git a/ccan/ccan/check_type/test/run.c b/ccan/ccan/check_type/test/run.c index 83b903c0b..09fd36343 100644 --- a/ccan/ccan/check_type/test/run.c +++ b/ccan/ccan/check_type/test/run.c @@ -5,6 +5,7 @@ int main(int argc, char *argv[]) { int x = 0, y = 0; + (void)argv; plan_tests(9); ok1(check_type(argc, int) == 0); diff --git a/ccan/ccan/compiler/_info b/ccan/ccan/compiler/_info index d60dff4d1..12cb24757 100644 --- a/ccan/ccan/compiler/_info +++ b/ccan/ccan/compiler/_info @@ -41,7 +41,7 @@ * va_end(ap); * } * - * int main(int argc, char *argv[]) + * int main(int argc, char *argv[] UNNEEDED) * { * if (argc != 1) { * logger(3, "Don't want %i arguments!\n", argc-1); diff --git a/ccan/ccan/compiler/test/compile_fail-printf.c b/ccan/ccan/compiler/test/compile_fail-printf.c index 8f34ae5a1..7664f65d4 100644 --- a/ccan/ccan/compiler/test/compile_fail-printf.c +++ b/ccan/ccan/compiler/test/compile_fail-printf.c @@ -2,9 +2,11 @@ static void PRINTF_FMT(2,3) my_printf(int x, const char *fmt, ...) { + (void)x; + (void)fmt; } -int main(int argc, char *argv[]) +int main(void) { unsigned int i = 0; diff --git a/ccan/ccan/compiler/test/run-is_compile_constant.c b/ccan/ccan/compiler/test/run-is_compile_constant.c index a66f2e13e..c914c6830 100644 --- a/ccan/ccan/compiler/test/run-is_compile_constant.c +++ b/ccan/ccan/compiler/test/run-is_compile_constant.c @@ -3,6 +3,8 @@ int main(int argc, char *argv[]) { + (void)argc; + (void)argv; plan_tests(2); ok1(!IS_COMPILE_CONSTANT(argc)); diff --git a/ccan/ccan/container_of/_info b/ccan/ccan/container_of/_info index d50094bc6..b1160522e 100644 --- a/ccan/ccan/container_of/_info +++ b/ccan/ccan/container_of/_info @@ -26,17 +26,19 @@ * struct timer timer; * }; * - * static void register_timer(struct timer *timer) - * { - * //... - * } - * * static void my_timer_callback(struct timer *timer) * { * struct info *info = container_of(timer, struct info, timer); * printf("my_stuff is %u\n", info->my_stuff); * } * + * static void register_timer(struct timer *timer) + * { + * (void)timer; + * (void)my_timer_callback; + * //... + * } + * * int main(void) * { * struct info info = { .my_stuff = 1 }; diff --git a/ccan/ccan/container_of/test/compile_fail-bad-type.c b/ccan/ccan/container_of/test/compile_fail-bad-type.c index b7a145938..55a911a1b 100644 --- a/ccan/ccan/container_of/test/compile_fail-bad-type.c +++ b/ccan/ccan/container_of/test/compile_fail-bad-type.c @@ -6,7 +6,7 @@ struct foo { char b; }; -int main(int argc, char *argv[]) +int main(void) { struct foo foo = { .a = 1, .b = 2 }; int *intp = &foo.a; diff --git a/ccan/ccan/container_of/test/compile_fail-types.c b/ccan/ccan/container_of/test/compile_fail-types.c index cae1c7abd..fbb97a9ee 100644 --- a/ccan/ccan/container_of/test/compile_fail-types.c +++ b/ccan/ccan/container_of/test/compile_fail-types.c @@ -6,7 +6,7 @@ struct foo { char b; }; -int main(int argc, char *argv[]) +int main(void) { struct foo foo = { .a = 1, .b = 2 }, *foop; int *intp = &foo.a; diff --git a/ccan/ccan/container_of/test/compile_fail-var-types.c b/ccan/ccan/container_of/test/compile_fail-var-types.c index f254d9210..ecdd90916 100644 --- a/ccan/ccan/container_of/test/compile_fail-var-types.c +++ b/ccan/ccan/container_of/test/compile_fail-var-types.c @@ -6,7 +6,7 @@ struct foo { char b; }; -int main(int argc, char *argv[]) +int main(void) { struct foo foo = { .a = 1, .b = 2 }, *foop; int *intp = &foo.a; diff --git a/ccan/ccan/container_of/test/run.c b/ccan/ccan/container_of/test/run.c index 18207f605..32557295d 100644 --- a/ccan/ccan/container_of/test/run.c +++ b/ccan/ccan/container_of/test/run.c @@ -6,7 +6,7 @@ struct foo { char b; }; -int main(int argc, char *argv[]) +int main(void) { struct foo foo = { .a = 1, .b = 2 }; int *intp = &foo.a; diff --git a/ccan/ccan/crypto/siphash24/siphash24.c b/ccan/ccan/crypto/siphash24/siphash24.c index d250de329..20daa74d3 100644 --- a/ccan/ccan/crypto/siphash24/siphash24.c +++ b/ccan/ccan/crypto/siphash24/siphash24.c @@ -45,6 +45,7 @@ static void check_siphash24(struct siphash24_ctx *ctx) static bool alignment_ok(const void *p, size_t n) { #if HAVE_UNALIGNED_ACCESS + (void)p; (void)n; return true; #else return ((size_t)p % n == 0); diff --git a/ccan/ccan/endian/test/run.c b/ccan/ccan/endian/test/run.c index a00fce74e..9bf47f13a 100644 --- a/ccan/ccan/endian/test/run.c +++ b/ccan/ccan/endian/test/run.c @@ -3,7 +3,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { union { uint64_t u64; diff --git a/ccan/ccan/err/test/run.c b/ccan/ccan/err/test/run.c index 242e93f80..aeaa3750b 100644 --- a/ccan/ccan/err/test/run.c +++ b/ccan/ccan/err/test/run.c @@ -15,6 +15,7 @@ int main(int argc, char *argv[]) int pfd[2]; const char *base; + (void)argc; plan_tests(24); err_set_progname(argv[0]); @@ -27,7 +28,8 @@ int main(int argc, char *argv[]) base = argv[0]; /* Test err() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -59,7 +61,8 @@ int main(int argc, char *argv[]) } /* Test errx() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -89,7 +92,8 @@ int main(int argc, char *argv[]) /* Test warn() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; @@ -121,7 +125,8 @@ int main(int argc, char *argv[]) } /* Test warnx() in child */ - pipe(pfd); + if (pipe(pfd)) + abort(); fflush(stdout); if (fork()) { char buffer[BUFFER_MAX+1]; diff --git a/ccan/ccan/htable/_info b/ccan/ccan/htable/_info index 7e06c3867..a3bb76db6 100644 --- a/ccan/ccan/htable/_info +++ b/ccan/ccan/htable/_info @@ -36,6 +36,7 @@ * // Wrapper for rehash function pointer. * static size_t rehash(const void *e, void *unused) * { + * (void)unused; * return hash_string(((struct name_to_digit *)e)->name); * } * @@ -64,7 +65,7 @@ * int main(int argc, char *argv[]) * { * struct htable ht; - * unsigned int i; + * int i; * unsigned long val; * * if (argc < 2) @@ -73,7 +74,7 @@ * * // Create and populate hash table. * htable_init(&ht, rehash, NULL); - * for (i = 0; i < sizeof(map)/sizeof(map[0]); i++) + * for (i = 0; i < (int)(sizeof(map)/sizeof(map[0])); i++) * htable_add(&ht, hash_string(map[i].name), &map[i]); * * // Add any aliases to the hash table. diff --git a/ccan/ccan/htable/htable.h b/ccan/ccan/htable/htable.h index 61ed9170f..9845388e1 100644 --- a/ccan/ccan/htable/htable.h +++ b/ccan/ccan/htable/htable.h @@ -35,6 +35,7 @@ struct htable { * // For simplicity's sake, say hash value is contents of elem. * static size_t rehash(const void *elem, void *unused) * { + * (void)unused; * return *(size_t *)elem; * } * static struct htable ht = HTABLE_INITIALIZER(ht, rehash, NULL); diff --git a/ccan/ccan/htable/test/run-copy.c b/ccan/ccan/htable/test/run-copy.c index 02d5bbe46..d111495ad 100644 --- a/ccan/ccan/htable/test/run-copy.c +++ b/ccan/ccan/htable/test/run-copy.c @@ -6,7 +6,7 @@ #define NUM_VALS 512 -static size_t hash(const void *elem, void *unused) +static size_t hash(const void *elem, void *unused UNNEEDED) { size_t h = *(uint64_t *)elem / 2; return h; @@ -17,7 +17,7 @@ static bool cmp(const void *candidate, void *ptr) return *(const uint64_t *)candidate == *(const uint64_t *)ptr; } -int main(int argc, char *argv[]) +int main(void) { struct htable ht, ht2; uint64_t val[NUM_VALS], i; diff --git a/ccan/ccan/htable/test/run-size.c b/ccan/ccan/htable/test/run-size.c index c92401c3c..1a2f5cdd1 100644 --- a/ccan/ccan/htable/test/run-size.c +++ b/ccan/ccan/htable/test/run-size.c @@ -8,13 +8,13 @@ /* We use the number divided by two as the hash (for lots of collisions). */ -static size_t hash(const void *elem, void *unused) +static size_t hash(const void *elem, void *unused UNNEEDED) { size_t h = *(uint64_t *)elem / 2; return h; } -int main(int argc, char *argv[]) +int main(void) { struct htable ht; uint64_t val[NUM_VALS]; diff --git a/ccan/ccan/htable/test/run-type-int.c b/ccan/ccan/htable/test/run-type-int.c index 66346d0c7..7b71815f3 100644 --- a/ccan/ccan/htable/test/run-type-int.c +++ b/ccan/ccan/htable/test/run-type-int.c @@ -88,7 +88,7 @@ static void del_vals(struct htable_obj *ht, } static void del_vals_bykey(struct htable_obj *ht, - const struct obj val[], unsigned int num) + const struct obj val[] UNNEEDED, unsigned int num) { unsigned int i; @@ -112,7 +112,7 @@ static bool check_mask(struct htable *ht, const struct obj val[], unsigned num) return true; } -int main(int argc, char *argv[]) +int main(void) { unsigned int i; struct htable_obj ht, ht2; diff --git a/ccan/ccan/htable/test/run-type.c b/ccan/ccan/htable/test/run-type.c index e1a78f496..a3616a5a3 100644 --- a/ccan/ccan/htable/test/run-type.c +++ b/ccan/ccan/htable/test/run-type.c @@ -83,7 +83,7 @@ static void del_vals(struct htable_obj *ht, } static void del_vals_bykey(struct htable_obj *ht, - const struct obj val[], unsigned int num) + const struct obj val[] UNNEEDED, unsigned int num) { unsigned int i; @@ -107,7 +107,7 @@ static bool check_mask(struct htable *ht, const struct obj val[], unsigned num) return true; } -int main(int argc, char *argv[]) +int main(void) { unsigned int i; struct htable_obj ht, ht2; diff --git a/ccan/ccan/htable/test/run-zero-hash-first-entry.c b/ccan/ccan/htable/test/run-zero-hash-first-entry.c index fdd18569e..3a1a939e8 100644 --- a/ccan/ccan/htable/test/run-zero-hash-first-entry.c +++ b/ccan/ccan/htable/test/run-zero-hash-first-entry.c @@ -8,7 +8,7 @@ struct data { }; /* Hash is simply key itself. */ -static size_t hash(const void *e, void *unused) +static size_t hash(const void *e, void *unused UNNEEDED) { struct data *d = (struct data *)e; diff --git a/ccan/ccan/htable/test/run.c b/ccan/ccan/htable/test/run.c index 09cde890f..46514c720 100644 --- a/ccan/ccan/htable/test/run.c +++ b/ccan/ccan/htable/test/run.c @@ -10,7 +10,7 @@ /* We use the number divided by two as the hash (for lots of collisions), plus set all the higher bits so we can detect if they don't get masked out. */ -static size_t hash(const void *elem, void *unused) +static size_t hash(const void *elem, void *unused UNNEEDED) { size_t h = *(uint64_t *)elem / 2; h |= -1UL << NUM_BITS; @@ -95,7 +95,7 @@ static bool check_mask(struct htable *ht, uint64_t val[], unsigned num) return true; } -int main(int argc, char *argv[]) +int main(void) { unsigned int i, weight; uintptr_t perfect_bit; diff --git a/ccan/ccan/ilog/test/run-out-of-line.c b/ccan/ccan/ilog/test/run-out-of-line.c index 48205d380..a0918d751 100644 --- a/ccan/ccan/ilog/test/run-out-of-line.c +++ b/ccan/ccan/ilog/test/run-out-of-line.c @@ -19,7 +19,7 @@ static int test_ilog64(uint64_t _v){ #define NTRIALS (64) -int main(int _argc,const char *_argv[]){ +int main(void){ int i; int j; int (*il32)(uint32_t) = ilog32; diff --git a/ccan/ccan/ilog/test/run.c b/ccan/ccan/ilog/test/run.c index bda59f920..00824ac3a 100644 --- a/ccan/ccan/ilog/test/run.c +++ b/ccan/ccan/ilog/test/run.c @@ -19,7 +19,7 @@ static int test_ilog64(uint64_t _v){ #define NTRIALS (64) -int main(int _argc,const char *_argv[]){ +int main(void){ int i; int j; /*This is how many tests you plan to run.*/ diff --git a/ccan/ccan/io/io.h b/ccan/ccan/io/io.h index 9316dd180..e24beec46 100644 --- a/ccan/ccan/io/io.h +++ b/ccan/ccan/io/io.h @@ -47,7 +47,8 @@ struct io_conn; * int fd[2]; * struct io_conn *conn; * - * pipe(fd); + * if (pipe(fd) != 0) + * exit(1); * conn = io_new_conn(NULL, fd[0], conn_init, (const char *)"hi!"); * if (!conn) * exit(1); @@ -653,11 +654,11 @@ int io_conn_fd(const struct io_conn *conn); * io_time_override - override the normal call for time. * @nowfn: the function to call. * - * io usually uses time_now() internally, but this forces it + * io usually uses time_mono() internally, but this forces it * to use your function (eg. for debugging). Returns the old * one. */ -struct timeabs (*io_time_override(struct timeabs (*now)(void)))(void); +struct timemono (*io_time_override(struct timemono (*now)(void)))(void); /** * io_set_debug - set synchronous mode on a connection. diff --git a/ccan/ccan/io/poll.c b/ccan/ccan/io/poll.c index cddc3cacd..36af33ef0 100644 --- a/ccan/ccan/io/poll.c +++ b/ccan/ccan/io/poll.c @@ -16,11 +16,11 @@ static struct pollfd *pollfds = NULL; static struct fd **fds = NULL; static LIST_HEAD(closing); static LIST_HEAD(always); -static struct timeabs (*nowfn)(void) = time_now; +static struct timemono (*nowfn)(void) = time_mono; -struct timeabs (*io_time_override(struct timeabs (*now)(void)))(void) +struct timemono (*io_time_override(struct timemono (*now)(void)))(void) { - struct timeabs (*old)(void) = nowfn; + struct timemono (*old)(void) = nowfn; nowfn = now; return old; } @@ -262,7 +262,7 @@ void *io_loop(struct timers *timers, struct timer **expired) assert(num_waiting); if (timers) { - struct timeabs now, first; + struct timemono now, first; now = nowfn(); @@ -274,7 +274,7 @@ void *io_loop(struct timers *timers, struct timer **expired) /* Now figure out how long to wait for the next one. */ if (timer_earliest(timers, &first)) { uint64_t next; - next = time_to_msec(time_between(first, now)); + next = time_to_msec(timemono_between(first, now)); if (next < INT_MAX) ms_timeout = next; else diff --git a/ccan/ccan/io/test/run-01-start-finish.c b/ccan/ccan/io/test/run-01-start-finish.c index eb12e9488..04952db88 100644 --- a/ccan/ccan/io/test/run-01-start-finish.c +++ b/ccan/ccan/io/test/run-01-start-finish.c @@ -69,7 +69,7 @@ static int make_listen_fd(const char *port, struct addrinfo **info) int main(void) { int state = 0; - struct addrinfo *addrinfo; + struct addrinfo *addrinfo = NULL; struct io_listener *l; int fd; diff --git a/ccan/ccan/io/test/run-02-read.c b/ccan/ccan/io/test/run-02-read.c index e25bbbb49..74cb2f021 100644 --- a/ccan/ccan/io/test/run-02-read.c +++ b/ccan/ccan/io/test/run-02-read.c @@ -71,7 +71,7 @@ static int make_listen_fd(const char *port, struct addrinfo **info) int main(void) { struct data *d = malloc(sizeof(*d)); - struct addrinfo *addrinfo; + struct addrinfo *addrinfo = NULL; struct io_listener *l; int fd, status; diff --git a/ccan/ccan/io/test/run-15-timeout.c b/ccan/ccan/io/test/run-15-timeout.c index 5709ddaa8..a4ab23add 100644 --- a/ccan/ccan/io/test/run-15-timeout.c +++ b/ccan/ccan/io/test/run-15-timeout.c @@ -47,8 +47,7 @@ static struct io_plan *init_conn(struct io_conn *conn, struct data *d) d->conn = conn; io_set_finish(conn, finish_ok, d); - timer_add(&d->timers, &d->timer, - timeabs_add(time_now(), time_from_usec(d->timeout_usec))); + timer_addrel(&d->timers, &d->timer, time_from_usec(d->timeout_usec)); return io_read(conn, d->buf, sizeof(d->buf), no_timeout, d); } @@ -97,7 +96,7 @@ int main(void) plan_tests(21); d->state = 0; d->timeout_usec = 100000; - timers_init(&d->timers, time_now()); + timers_init(&d->timers, time_mono()); timer_init(&d->timer); fd = make_listen_fd(PORT, &addrinfo); ok1(fd >= 0); @@ -131,7 +130,7 @@ int main(void) /* One element, d->timer. */ ok1(expired == &d->timer); - ok1(!timers_expire(&d->timers, time_now())); + ok1(!timers_expire(&d->timers, time_mono())); ok1(d->state == 1); io_close(d->conn); diff --git a/ccan/ccan/io/test/run-20-io_time_override.c b/ccan/ccan/io/test/run-20-io_time_override.c index bf493c991..c0b607a74 100644 --- a/ccan/ccan/io/test/run-20-io_time_override.c +++ b/ccan/ccan/io/test/run-20-io_time_override.c @@ -45,9 +45,9 @@ static int make_listen_fd(const char *port, struct addrinfo **info) return fd; } -static struct timeabs fake_time; +static struct timemono fake_time; -static struct timeabs get_fake_time(void) +static struct timemono get_fake_time(void) { return fake_time; } @@ -63,12 +63,12 @@ int main(void) /* This is how many tests you plan to run */ plan_tests(7); - fake_time = time_now(); + fake_time = time_mono(); timers_init(&timers, fake_time); timer_init(&timer); - timer_add(&timers, &timer, - timeabs_add(fake_time, time_from_sec(1000))); + timer_addmono(&timers, &timer, + timemono_add(fake_time, time_from_sec(1000))); fd = make_listen_fd(PORT, &addrinfo); freeaddrinfo(addrinfo); @@ -77,12 +77,12 @@ int main(void) ok1(l); fake_time.ts.tv_sec += 1000; - ok1(io_time_override(get_fake_time) == time_now); + ok1(io_time_override(get_fake_time) == time_mono); ok1(io_loop(&timers, &expired) == NULL); ok1(expired == &timer); ok1(!timers_expire(&timers, fake_time)); - ok1(io_time_override(time_now) == get_fake_time); + ok1(io_time_override(time_mono) == get_fake_time); io_close_listener(l); timers_cleanup(&timers); diff --git a/ccan/ccan/isaac/test/run.c b/ccan/ccan/isaac/test/run.c index 81a46bc2c..c7ea4f97a 100644 --- a/ccan/ccan/isaac/test/run.c +++ b/ccan/ccan/isaac/test/run.c @@ -134,7 +134,7 @@ static const uint32_t STATEVEC[ISAAC_SZ<<1]={ 0x46D95CA5, 0xC54CD95B, 0x9D855E89, 0x4BB5AF29 }; -int main(int _argc,const char *_argv[]){ +int main(void){ isaac_ctx isaac; int i; int j; diff --git a/ccan/ccan/isaac/test/run64.c b/ccan/ccan/isaac/test/run64.c index db2b4d350..de9bef492 100644 --- a/ccan/ccan/isaac/test/run64.c +++ b/ccan/ccan/isaac/test/run64.c @@ -262,7 +262,7 @@ static const uint64_t STATEVEC64[ISAAC64_SZ<<1]={ 0x1877B51E57A764D5ULL, 0x001F837CC7350524ULL }; -int main(int _argc,const char *_argv[]){ +int main(void){ isaac64_ctx isaac64; int i; int j; diff --git a/ccan/ccan/likely/test/run-debug.c b/ccan/ccan/likely/test/run-debug.c index 83f22afab..72015ee42 100644 --- a/ccan/ccan/likely/test/run-debug.c +++ b/ccan/ccan/likely/test/run-debug.c @@ -26,7 +26,7 @@ static bool likely_one_unlikely_two(unsigned int val1, unsigned int val2) return false; } -int main(int argc, char *argv[]) +int main(void) { char *bad; diff --git a/ccan/ccan/likely/test/run.c b/ccan/ccan/likely/test/run.c index fa1dc9f6e..28ea79857 100644 --- a/ccan/ccan/likely/test/run.c +++ b/ccan/ccan/likely/test/run.c @@ -17,7 +17,7 @@ static bool one_seems_unlikely(unsigned int val) return false; } -int main(int argc, char *argv[]) +int main(void) { plan_tests(4); diff --git a/ccan/ccan/list/_info b/ccan/ccan/list/_info index 60790a990..c4f3e2a0a 100644 --- a/ccan/ccan/list/_info +++ b/ccan/ccan/list/_info @@ -31,7 +31,7 @@ * { * struct parent p; * struct child *c; - * unsigned int i; + * int i; * * if (argc < 2) * errx(1, "Usage: %s parent children...", argv[0]); diff --git a/ccan/ccan/list/list.h b/ccan/ccan/list/list.h index 0800a0fa1..a6b003859 100644 --- a/ccan/ccan/list/list.h +++ b/ccan/ccan/list/list.h @@ -291,6 +291,21 @@ static inline bool list_empty_nodebug(const struct list_head *h) } #endif +/** + * list_empty_nocheck - is a list empty? + * @h: the list_head + * + * If the list is empty, returns true. This doesn't perform any + * debug check for list consistency, so it can be called without + * locks, racing with the list being modified. This is ok for + * checks where an incorrect result is not an issue (optimized + * bail out path for example). + */ +static inline bool list_empty_nocheck(const struct list_head *h) +{ + return h->n.next == &h->n; +} + /** * list_del - delete an entry from an (unknown) linked list. * @n: the list_node to delete from the list. @@ -701,12 +716,12 @@ static inline void list_prepend_list_(struct list_head *to, * so you can break and continue as normal. * * WARNING! Being the low-level macro that it is, this wrapper doesn't know - * nor care about the type of @i. The only assumtion made is that @i points + * nor care about the type of @i. The only assumption made is that @i points * to a chunk of memory that at some @offset, relative to @i, contains a - * properly filled `struct node_list' which in turn contains pointers to - * memory chunks and it's turtles all the way down. Whith all that in mind + * properly filled `struct list_node' which in turn contains pointers to + * memory chunks and it's turtles all the way down. With all that in mind * remember that given the wrong pointer/offset couple this macro will - * happilly churn all you memory untill SEGFAULT stops it, in other words + * happily churn all you memory until SEGFAULT stops it, in other words * caveat emptor. * * It is worth mentioning that one of legitimate use-cases for that wrapper diff --git a/ccan/ccan/list/test/run-CCAN_LIST_DEBUG.c b/ccan/ccan/list/test/run-CCAN_LIST_DEBUG.c index 9fcb1d745..b8e5165a6 100644 --- a/ccan/ccan/list/test/run-CCAN_LIST_DEBUG.c +++ b/ccan/ccan/list/test/run-CCAN_LIST_DEBUG.c @@ -17,6 +17,7 @@ static int my_fprintf(FILE *stream, const char *format, ...) { va_list ap; int ret; + (void)stream; va_start(ap, format); ret = vsprintf(printf_buffer, format, ap); va_end(ap); @@ -28,7 +29,7 @@ static int my_fprintf(FILE *stream, const char *format, ...) #include #include -int main(int argc, char *argv[]) +int main(void) { struct list_head list; struct list_node n1; @@ -44,7 +45,7 @@ int main(int argc, char *argv[]) list.n.prev = &n1; /* Aborting version. */ - sprintf(expect, "run-CCAN_LIST_DEBUG.c:50: prev corrupt in node %p (0) of %p\n", + sprintf(expect, "run-CCAN_LIST_DEBUG.c:51: prev corrupt in node %p (0) of %p\n", &list, &list); if (setjmp(aborted) == 0) { assert(list_empty(&list)); diff --git a/ccan/ccan/list/test/run-check-corrupt.c b/ccan/ccan/list/test/run-check-corrupt.c index 5dd9f9cc8..94c2e67e7 100644 --- a/ccan/ccan/list/test/run-check-corrupt.c +++ b/ccan/ccan/list/test/run-check-corrupt.c @@ -16,6 +16,7 @@ static int my_fprintf(FILE *stream, const char *format, ...) { va_list ap; int ret; + (void)stream; va_start(ap, format); ret = vsprintf(printf_buffer, format, ap); va_end(ap); @@ -26,7 +27,7 @@ static int my_fprintf(FILE *stream, const char *format, ...) #include #include -int main(int argc, char *argv[]) +int main(void) { struct list_head list; struct list_node n1; diff --git a/ccan/ccan/list/test/run-check-nonconst.c b/ccan/ccan/list/test/run-check-nonconst.c index b006a8a2e..d3cb652a3 100644 --- a/ccan/ccan/list/test/run-check-nonconst.c +++ b/ccan/ccan/list/test/run-check-nonconst.c @@ -8,7 +8,7 @@ struct child { struct list_node list; }; -int main(int argc, char *argv[]) +int main(void) { struct child c1, c2; struct list_head list = LIST_HEAD_INIT(list); diff --git a/ccan/ccan/list/test/run-list_del_from-assert.c b/ccan/ccan/list/test/run-list_del_from-assert.c index 05d6cad62..9404b7120 100644 --- a/ccan/ccan/list/test/run-list_del_from-assert.c +++ b/ccan/ccan/list/test/run-list_del_from-assert.c @@ -7,7 +7,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { struct list_head list1, list2; struct list_node n1, n2, n3; diff --git a/ccan/ccan/list/test/run-list_prev-list_next.c b/ccan/ccan/list/test/run-list_prev-list_next.c index b496f11f8..cc61e03a0 100644 --- a/ccan/ccan/list/test/run-list_prev-list_next.c +++ b/ccan/ccan/list/test/run-list_prev-list_next.c @@ -14,7 +14,7 @@ struct child { struct list_node list; }; -int main(int argc, char *argv[]) +int main(void) { struct parent parent; struct child c1, c2, c3; diff --git a/ccan/ccan/list/test/run-prepend_list.c b/ccan/ccan/list/test/run-prepend_list.c index d382f5a83..fecd4196f 100644 --- a/ccan/ccan/list/test/run-prepend_list.c +++ b/ccan/ccan/list/test/run-prepend_list.c @@ -17,7 +17,7 @@ static bool list_expect(struct list_head *h, ...) return (n->next == &h->n); } -int main(int argc, char *argv[]) +int main(void) { struct list_head h1, h2; struct list_node n[4]; diff --git a/ccan/ccan/list/test/run-single-eval.c b/ccan/ccan/list/test/run-single-eval.c index f90eed357..db0bffdda 100644 --- a/ccan/ccan/list/test/run-single-eval.c +++ b/ccan/ccan/list/test/run-single-eval.c @@ -19,7 +19,7 @@ static LIST_HEAD(static_list); #define ref(obj, counter) ((counter)++, (obj)) -int main(int argc, char *argv[]) +int main(void) { struct parent parent; struct child c1, c2, c3, *c, *n; diff --git a/ccan/ccan/list/test/run.c b/ccan/ccan/list/test/run.c index 7616af6c6..5787e4563 100644 --- a/ccan/ccan/list/test/run.c +++ b/ccan/ccan/list/test/run.c @@ -16,7 +16,7 @@ struct child { static LIST_HEAD(static_list); -int main(int argc, char *argv[]) +int main(void) { struct parent parent; struct child c1, c2, c3, x1, *c, *n; diff --git a/ccan/ccan/mem/mem.h b/ccan/ccan/mem/mem.h index f2c3d5c7a..19f69c038 100644 --- a/ccan/ccan/mem/mem.h +++ b/ccan/ccan/mem/mem.h @@ -250,6 +250,7 @@ static inline void *memcheck_(const void *data, size_t len) #else static inline void *memcheck_(const void *data, size_t len) { + (void)len; return (void *)data; } #endif diff --git a/ccan/ccan/noerr/_info b/ccan/ccan/noerr/_info index 082c71e60..85f1f6f9c 100644 --- a/ccan/ccan/noerr/_info +++ b/ccan/ccan/noerr/_info @@ -37,7 +37,7 @@ * return false; * } * // A short write means out of space. - * if (ret < strlen(string)) { + * if (ret < (int)strlen(string)) { * unlink(file); * errno = ENOSPC; * return false; diff --git a/ccan/ccan/noerr/test/run.c b/ccan/ccan/noerr/test/run.c index 48086a24d..31fb67400 100644 --- a/ccan/ccan/noerr/test/run.c +++ b/ccan/ccan/noerr/test/run.c @@ -7,7 +7,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { const char *name = "noerr.file"; int fd; diff --git a/ccan/ccan/opt/opt.h b/ccan/ccan/opt/opt.h index 690907e59..0d508cf6f 100644 --- a/ccan/ccan/opt/opt.h +++ b/ccan/ccan/opt/opt.h @@ -185,7 +185,7 @@ void opt_register_table(const struct opt_table *table, const char *desc); * string (or see opt_set_alloc) and return false. * * Example: - * static char *explode(const char *optarg, void *unused) + * static char *explode(const char *optarg, void *unused UNNEEDED) * { * errx(1, "BOOM! %s", optarg); * } diff --git a/ccan/ccan/opt/test/compile_ok-const-arg.c b/ccan/ccan/opt/test/compile_ok-const-arg.c index f1d10da10..a73443473 100644 --- a/ccan/ccan/opt/test/compile_ok-const-arg.c +++ b/ccan/ccan/opt/test/compile_ok-const-arg.c @@ -4,7 +4,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { opt_register_noarg("-v", opt_version_and_exit, (const char *)"1.2.3", diff --git a/ccan/ccan/opt/test/run-add_desc.c b/ccan/ccan/opt/test/run-add_desc.c index ded3f8806..b559c7f74 100644 --- a/ccan/ccan/opt/test/run-add_desc.c +++ b/ccan/ccan/opt/test/run-add_desc.c @@ -4,19 +4,19 @@ #include #include -static void show_10(char buf[OPT_SHOW_LEN], const void *arg) +static void show_10(char buf[OPT_SHOW_LEN], const void *arg UNNEEDED) { memset(buf, 'X', 10); buf[10] = '\0'; } -static void show_max(char buf[OPT_SHOW_LEN], const void *arg) +static void show_max(char buf[OPT_SHOW_LEN], const void *arg UNNEEDED) { memset(buf, 'X', OPT_SHOW_LEN); } /* Test add_desc helper. */ -int main(int argc, char *argv[]) +int main(void) { struct opt_table opt; char *ret; diff --git a/ccan/ccan/opt/test/run-checkopt.c b/ccan/ccan/opt/test/run-checkopt.c index d54a75205..8447f98d1 100644 --- a/ccan/ccan/opt/test/run-checkopt.c +++ b/ccan/ccan/opt/test/run-checkopt.c @@ -53,7 +53,7 @@ static void reset(void) opt_count = opt_num_short = opt_num_short_arg = opt_num_long = 0; } -int main(int argc, char *argv[]) +int main(void) { int exitval; diff --git a/ccan/ccan/opt/test/run-consume_words.c b/ccan/ccan/opt/test/run-consume_words.c index 9f164656a..c1eaf56aa 100644 --- a/ccan/ccan/opt/test/run-consume_words.c +++ b/ccan/ccan/opt/test/run-consume_words.c @@ -5,7 +5,7 @@ #include /* Test consume_words helper. */ -int main(int argc, char *argv[]) +int main(void) { size_t prefix, len; bool start = true; diff --git a/ccan/ccan/opt/test/run-helpers.c b/ccan/ccan/opt/test/run-helpers.c index 6ec17f589..0a08a85f7 100644 --- a/ccan/ccan/opt/test/run-helpers.c +++ b/ccan/ccan/opt/test/run-helpers.c @@ -52,7 +52,7 @@ static int saved_printf(const char *fmt, ...) return ret; } -static int saved_fprintf(FILE *ignored, const char *fmt, ...) +static int saved_fprintf(FILE *ignored UNNEEDED, const char *fmt, ...) { va_list ap; int ret; diff --git a/ccan/ccan/opt/test/run-iter.c b/ccan/ccan/opt/test/run-iter.c index e6b13dade..d34fd6dc1 100644 --- a/ccan/ccan/opt/test/run-iter.c +++ b/ccan/ccan/opt/test/run-iter.c @@ -10,7 +10,7 @@ #include /* Test iterators. */ -int main(int argc, char *argv[]) +int main(void) { unsigned j, i, len = 0; const char *p; diff --git a/ccan/ccan/opt/test/run-set_alloc.c b/ccan/ccan/opt/test/run-set_alloc.c index 6a10d5979..1dbb351be 100644 --- a/ccan/ccan/opt/test/run-set_alloc.c +++ b/ccan/ccan/opt/test/run-set_alloc.c @@ -2,15 +2,15 @@ #include /* Make sure we override these! */ -static void *no_malloc(size_t size) +static void *no_malloc(size_t size UNNEEDED) { abort(); } -static void *no_realloc(void *p, size_t size) +static void *no_realloc(void *p UNNEEDED, size_t size UNNEEDED) { abort(); } -static void no_free(void *p) +static void no_free(void *p UNNEEDED) { abort(); } diff --git a/ccan/ccan/opt/test/run-usage.c b/ccan/ccan/opt/test/run-usage.c index aec832447..cea678f38 100644 --- a/ccan/ccan/opt/test/run-usage.c +++ b/ccan/ccan/opt/test/run-usage.c @@ -6,7 +6,7 @@ #include "utils.h" /* Ensure width is sane. */ -static const char *getenv_override(const char *name) +static const char *getenv_override(const char *name UNNEEDED) { return "100"; } @@ -18,13 +18,13 @@ static const char *getenv_override(const char *name) #include #include -static char *my_cb(void *p) +static char *my_cb(void *p UNNEEDED) { return NULL; } /* Test helpers. */ -int main(int argc, char *argv[]) +int main(void) { char *output; char *longname = strdup("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); diff --git a/ccan/ccan/opt/test/utils.c b/ccan/ccan/opt/test/utils.c index c2967fca1..a9bedf2e0 100644 --- a/ccan/ccan/opt/test/utils.c +++ b/ccan/ccan/opt/test/utils.c @@ -8,7 +8,7 @@ #include "utils.h" unsigned int test_cb_called; -char *test_noarg(void *arg) +char *test_noarg(void *arg UNNEEDED) { test_cb_called++; return NULL; diff --git a/ccan/ccan/order/order.c b/ccan/ccan/order/order.c index 863a8e16e..5ff85a987 100644 --- a/ccan/ccan/order/order.c +++ b/ccan/ccan/order/order.c @@ -24,7 +24,7 @@ const _type *b, \ void *ctx) \ { \ - return _order_##_oname(a, b, int2ptr(0)); \ + (void)ctx; return _order_##_oname(a, b, int2ptr(0)); \ } \ int _order_##_oname##_reverse(const void *a, \ const void *b, \ @@ -36,6 +36,7 @@ const _type *b, \ void *ctx) \ { \ + (void)ctx; \ return _order_##_oname##_reverse(a, b, int2ptr(0)); \ } \ int order_##_oname##_noctx(const void *a, \ diff --git a/ccan/ccan/order/test/compile_fail_1.c b/ccan/ccan/order/test/compile_fail_1.c index ba63ca1ef..3eed7aa64 100644 --- a/ccan/ccan/order/test/compile_fail_1.c +++ b/ccan/ccan/order/test/compile_fail_1.c @@ -12,7 +12,7 @@ typedef int item_t; typedef struct item item_t; #endif -int main(int argc, char *argv[]) +int main(void) { total_order_cb(cb0, struct item, struct cmp_info *) = fancy_cmp; _total_order_cb cb1 = total_order_cast(fancy_cmp, diff --git a/ccan/ccan/order/test/compile_fail_2.c b/ccan/ccan/order/test/compile_fail_2.c index 5a7126d87..595ffcbba 100644 --- a/ccan/ccan/order/test/compile_fail_2.c +++ b/ccan/ccan/order/test/compile_fail_2.c @@ -12,7 +12,7 @@ typedef int ctx_t; typedef struct cmp_info ctx_t; #endif -int main(int argc, char *argv[]) +int main(void) { total_order_cb(cb0, struct item, struct cmp_info *) = fancy_cmp; _total_order_cb cb1 = total_order_cast(fancy_cmp, struct item, diff --git a/ccan/ccan/order/test/compile_ok.c b/ccan/ccan/order/test/compile_ok.c index 33a420422..37cc4e4ea 100644 --- a/ccan/ccan/order/test/compile_ok.c +++ b/ccan/ccan/order/test/compile_ok.c @@ -6,7 +6,7 @@ #include "fancy_cmp.h" -int main(int argc, char *argv[]) +int main(void) { total_order_cb(cb0, struct item, struct cmp_info *) = fancy_cmp; _total_order_cb cb1 = total_order_cast(fancy_cmp, diff --git a/ccan/ccan/order/test/run-fancy.c b/ccan/ccan/order/test/run-fancy.c index be5ff3f2d..5a287c4cb 100644 --- a/ccan/ccan/order/test/run-fancy.c +++ b/ccan/ccan/order/test/run-fancy.c @@ -8,7 +8,7 @@ #include "fancy_cmp.h" -int main(int argc, char *argv[]) +int main(void) { struct item item1 = { .value = 0, diff --git a/ccan/ccan/pipecmd/_info b/ccan/ccan/pipecmd/_info index 4621d72fc..a560bfea0 100644 --- a/ccan/ccan/pipecmd/_info +++ b/ccan/ccan/pipecmd/_info @@ -28,7 +28,8 @@ * char input[12]; * * if (argc == 2) { - * write(STDOUT_FILENO, "hello world\n", 12); + * if (write(STDOUT_FILENO, "hello world\n", 12) != 12) + * exit(1); * exit(0); * } * child = pipecmd(&outputfd, NULL, NULL, argv[0], "ignoredarg", NULL); diff --git a/ccan/ccan/pipecmd/pipecmd.c b/ccan/ccan/pipecmd/pipecmd.c index 42c668944..32772a83b 100644 --- a/ccan/ccan/pipecmd/pipecmd.c +++ b/ccan/ccan/pipecmd/pipecmd.c @@ -16,9 +16,12 @@ static char **gather_args(const char *arg0, va_list ap) arr[0] = (char *)arg0; while ((arr[n++] = va_arg(ap, char *)) != NULL) { - arr = realloc(arr, sizeof(char *) * (n + 1)); - if (!arr) + char **narr = realloc(arr, sizeof(char *) * (n + 1)); + if (!narr) { + free(arr); return NULL; + } + arr = narr; } return arr; } @@ -119,7 +122,10 @@ pid_t pipecmdarr(int *fd_fromchild, int *fd_tochild, int *fd_errfromchild, child_errno_fail: err = errno; - write(execfail[1], &err, sizeof(err)); + /* Gcc's warn-unused-result fail. */ + if (write(execfail[1], &err, sizeof(err))) { + ; + } exit(127); } diff --git a/ccan/ccan/ptrint/_info b/ccan/ccan/ptrint/_info index 6300a9bca..30170da92 100644 --- a/ccan/ccan/ptrint/_info +++ b/ccan/ccan/ptrint/_info @@ -29,7 +29,7 @@ * * void (*cb)(void *opaque) = callback; * - * int main(int argc, char *argv[]) + * int main(void) * { * int val = 17; * diff --git a/ccan/ccan/read_write_all/_info b/ccan/ccan/read_write_all/_info index 20c5e8454..0210dff9b 100644 --- a/ccan/ccan/read_write_all/_info +++ b/ccan/ccan/read_write_all/_info @@ -17,7 +17,7 @@ * #include * * #define BUFFER_SIZE 10 - * int main(int argc, char *argv[]) + * int main(void) * { * char buffer[BUFFER_SIZE+1]; * diff --git a/ccan/ccan/read_write_all/test/run-read_all.c b/ccan/ccan/read_write_all/test/run-read_all.c index 29f81fc70..6e6588d41 100644 --- a/ccan/ccan/read_write_all/test/run-read_all.c +++ b/ccan/ccan/read_write_all/test/run-read_all.c @@ -17,6 +17,7 @@ static int p2c[2], c2p[2]; static void got_signal(int sig) { char c = 0; + (void)sig; if (write(p2c[1], &c, 1) == 1) sigcount++; } @@ -24,7 +25,7 @@ static void got_signal(int sig) /* < PIPE_BUF *will* be atomic. But > PIPE_BUF only *might* be non-atomic. */ #define BUFSZ (1024*1024) -int main(int argc, char *argv[]) +int main(void) { char *buffer; char c = 0; diff --git a/ccan/ccan/read_write_all/test/run-write_all.c b/ccan/ccan/read_write_all/test/run-write_all.c index e2baf48df..c789d6b78 100644 --- a/ccan/ccan/read_write_all/test/run-write_all.c +++ b/ccan/ccan/read_write_all/test/run-write_all.c @@ -19,6 +19,9 @@ static ssize_t write_return; static ssize_t test_write(int fd, const void *buf, size_t count) { + (void)fd; + (void)buf; + if (write_return == 0) { errno = ENOSPC; return 0; @@ -39,7 +42,7 @@ static ssize_t test_write(int fd, const void *buf, size_t count) #define BUFSZ 1024 -int main(int argc, char *argv[]) +int main(void) { char *buffer; diff --git a/ccan/ccan/str/_info b/ccan/ccan/str/_info index 251d999a8..b579525fa 100644 --- a/ccan/ccan/str/_info +++ b/ccan/ccan/str/_info @@ -26,11 +26,11 @@ * * int main(int argc, char *argv[]) * { - * if (argv[1] && streq(argv[1], "--verbose")) + * if (argc > 1 && streq(argv[1], "--verbose")) * printf("verbose set\n"); - * if (argv[1] && strstarts(argv[1], "--")) + * if (argc > 1 && strstarts(argv[1], "--")) * printf("Some option set\n"); - * if (argv[1] && strends(argv[1], "cow-powers")) + * if (argc > 1 && strends(argv[1], "cow-powers")) * printf("Magic option set\n"); * return 0; * } diff --git a/ccan/ccan/str/test/compile_fail-STR_MAX_CHARS.c b/ccan/ccan/str/test/compile_fail-STR_MAX_CHARS.c index 74448c1b8..8e0fd2e2f 100644 --- a/ccan/ccan/str/test/compile_fail-STR_MAX_CHARS.c +++ b/ccan/ccan/str/test/compile_fail-STR_MAX_CHARS.c @@ -4,7 +4,7 @@ struct s { int val; }; -int main(int argc, char *argv[]) +int main(void) { struct s #ifdef FAIL diff --git a/ccan/ccan/str/test/compile_fail-isalnum.c b/ccan/ccan/str/test/compile_fail-isalnum.c index 930defffa..5d9895822 100644 --- a/ccan/ccan/str/test/compile_fail-isalnum.c +++ b/ccan/ccan/str/test/compile_fail-isalnum.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isalnum. diff --git a/ccan/ccan/str/test/compile_fail-isalpha.c b/ccan/ccan/str/test/compile_fail-isalpha.c index 200510982..33d365538 100644 --- a/ccan/ccan/str/test/compile_fail-isalpha.c +++ b/ccan/ccan/str/test/compile_fail-isalpha.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isalpha. diff --git a/ccan/ccan/str/test/compile_fail-isascii.c b/ccan/ccan/str/test/compile_fail-isascii.c index ee55e4997..3946e0b3b 100644 --- a/ccan/ccan/str/test/compile_fail-isascii.c +++ b/ccan/ccan/str/test/compile_fail-isascii.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isascii. diff --git a/ccan/ccan/str/test/compile_fail-isblank.c b/ccan/ccan/str/test/compile_fail-isblank.c index f4cb961d7..e14b0d7e6 100644 --- a/ccan/ccan/str/test/compile_fail-isblank.c +++ b/ccan/ccan/str/test/compile_fail-isblank.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF || !HAVE_ISBLANK #error We need typeof to check isblank. diff --git a/ccan/ccan/str/test/compile_fail-iscntrl.c b/ccan/ccan/str/test/compile_fail-iscntrl.c index bc7414654..f9abf1dc5 100644 --- a/ccan/ccan/str/test/compile_fail-iscntrl.c +++ b/ccan/ccan/str/test/compile_fail-iscntrl.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check iscntrl. diff --git a/ccan/ccan/str/test/compile_fail-isdigit.c b/ccan/ccan/str/test/compile_fail-isdigit.c index 71d1c7143..a3ee439c6 100644 --- a/ccan/ccan/str/test/compile_fail-isdigit.c +++ b/ccan/ccan/str/test/compile_fail-isdigit.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isdigit. diff --git a/ccan/ccan/str/test/compile_fail-islower.c b/ccan/ccan/str/test/compile_fail-islower.c index ca3f9907e..8f5c45619 100644 --- a/ccan/ccan/str/test/compile_fail-islower.c +++ b/ccan/ccan/str/test/compile_fail-islower.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check islower. diff --git a/ccan/ccan/str/test/compile_fail-isprint.c b/ccan/ccan/str/test/compile_fail-isprint.c index 6432e41d2..85ed028f6 100644 --- a/ccan/ccan/str/test/compile_fail-isprint.c +++ b/ccan/ccan/str/test/compile_fail-isprint.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isprint. diff --git a/ccan/ccan/str/test/compile_fail-ispunct.c b/ccan/ccan/str/test/compile_fail-ispunct.c index 5d941fcba..09d4279a9 100644 --- a/ccan/ccan/str/test/compile_fail-ispunct.c +++ b/ccan/ccan/str/test/compile_fail-ispunct.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check ispunct. diff --git a/ccan/ccan/str/test/compile_fail-isspace.c b/ccan/ccan/str/test/compile_fail-isspace.c index bfee1f89f..798cfcd47 100644 --- a/ccan/ccan/str/test/compile_fail-isspace.c +++ b/ccan/ccan/str/test/compile_fail-isspace.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isspace. diff --git a/ccan/ccan/str/test/compile_fail-isupper.c b/ccan/ccan/str/test/compile_fail-isupper.c index 4cf9fd357..56f5dee11 100644 --- a/ccan/ccan/str/test/compile_fail-isupper.c +++ b/ccan/ccan/str/test/compile_fail-isupper.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isupper. diff --git a/ccan/ccan/str/test/compile_fail-isxdigit.c b/ccan/ccan/str/test/compile_fail-isxdigit.c index 65e6006a8..ea4d5269a 100644 --- a/ccan/ccan/str/test/compile_fail-isxdigit.c +++ b/ccan/ccan/str/test/compile_fail-isxdigit.c @@ -3,6 +3,7 @@ int main(int argc, char *argv[]) { + (void)argc; #ifdef FAIL #if !HAVE_BUILTIN_TYPES_COMPATIBLE_P || !HAVE_TYPEOF #error We need typeof to check isxdigit. diff --git a/ccan/ccan/str/test/compile_fail-strchr.c b/ccan/ccan/str/test/compile_fail-strchr.c index 74a7314d0..bdaf034ab 100644 --- a/ccan/ccan/str/test/compile_fail-strchr.c +++ b/ccan/ccan/str/test/compile_fail-strchr.c @@ -1,7 +1,7 @@ #define CCAN_STR_DEBUG 1 #include -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL #if !HAVE_TYPEOF diff --git a/ccan/ccan/str/test/compile_fail-strrchr.c b/ccan/ccan/str/test/compile_fail-strrchr.c index ba7d17e03..57fba0ed5 100644 --- a/ccan/ccan/str/test/compile_fail-strrchr.c +++ b/ccan/ccan/str/test/compile_fail-strrchr.c @@ -1,7 +1,7 @@ #define CCAN_STR_DEBUG 1 #include -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL #if !HAVE_TYPEOF diff --git a/ccan/ccan/str/test/compile_fail-strstr.c b/ccan/ccan/str/test/compile_fail-strstr.c index deefef654..7bd8ac22f 100644 --- a/ccan/ccan/str/test/compile_fail-strstr.c +++ b/ccan/ccan/str/test/compile_fail-strstr.c @@ -1,7 +1,7 @@ #define CCAN_STR_DEBUG 1 #include -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL #if !HAVE_TYPEOF diff --git a/ccan/ccan/str/test/run-STR_MAX_CHARS.c b/ccan/ccan/str/test/run-STR_MAX_CHARS.c index ae6969c7b..fa45bad8a 100644 --- a/ccan/ccan/str/test/run-STR_MAX_CHARS.c +++ b/ccan/ccan/str/test/run-STR_MAX_CHARS.c @@ -4,7 +4,7 @@ #include #include -int main(int argc, char *argv[]) +int main(void) { char str[1000]; struct { diff --git a/ccan/ccan/str/test/run.c b/ccan/ccan/str/test/run.c index 0f00ea320..9917fe711 100644 --- a/ccan/ccan/str/test/run.c +++ b/ccan/ccan/str/test/run.c @@ -21,7 +21,7 @@ static char *strdup_rev(const char *s) return ret; } -int main(int argc, char *argv[]) +int main(void) { unsigned int i, j, n; char *strings[NUM_SUBSTRINGS * NUM_SUBSTRINGS]; diff --git a/ccan/ccan/strmap/_info b/ccan/ccan/strmap/_info index c128cc27b..eba8fe444 100644 --- a/ccan/ccan/strmap/_info +++ b/ccan/ccan/strmap/_info @@ -16,10 +16,11 @@ * license_depends_compat FAIL * * Example: + * #include * #include * #include * - * static bool dump(const char *member, size_t value, void *unused) + * static bool dump(const char *member, size_t value, void *unused UNNEEDED) * { * printf("%s at %zu. ", member, value); * // true means keep going with iteration. @@ -32,7 +33,7 @@ * STRMAP(size_t) map; * * strmap_init(&map); - * for (i = 1; i < argc; i++) + * for (i = 1; i < (size_t)argc; i++) * // This only adds the first time for this arg. * strmap_add(&map, argv[i], i); * diff --git a/ccan/ccan/strmap/test/run-iterate-const.c b/ccan/ccan/strmap/test/run-iterate-const.c index 63bea9523..dfd9dca73 100644 --- a/ccan/ccan/strmap/test/run-iterate-const.c +++ b/ccan/ccan/strmap/test/run-iterate-const.c @@ -5,7 +5,7 @@ static bool found = false; /* Make sure const args work. */ -static bool find_string(const char *str, char *member, const char *cmp) +static bool find_string(const char *str UNNEEDED, char *member, const char *cmp) { if (strcmp(member, cmp) == 0) found = true; diff --git a/ccan/ccan/strmap/test/run-prefix.c b/ccan/ccan/strmap/test/run-prefix.c index d88eb5565..6232d71b2 100644 --- a/ccan/ccan/strmap/test/run-prefix.c +++ b/ccan/ccan/strmap/test/run-prefix.c @@ -15,7 +15,7 @@ static bool in_order(const char *index, char *value, unsigned int *count) return true; } -static bool find_empty(const char *index, char *value, char *empty) +static bool find_empty(const char *index, char *value UNNEEDED, char *empty) { if (index == empty) pass("Found empty entry!"); diff --git a/ccan/ccan/take/_info b/ccan/ccan/take/_info index 693824664..fcb4f318a 100644 --- a/ccan/ccan/take/_info +++ b/ccan/ccan/take/_info @@ -37,7 +37,7 @@ * { * char *b; * - * if (argv[1]) // Mangle in place. + * if (argc > 1) // Mangle in place. * b = base(take(argv[1])); * else * b = base("test/string"); diff --git a/ccan/ccan/take/test/run.c b/ccan/ccan/take/test/run.c index 0c8ca2a1d..ba170fb3a 100644 --- a/ccan/ccan/take/test/run.c +++ b/ccan/ccan/take/test/run.c @@ -15,7 +15,7 @@ static void *my_realloc(void *p, size_t len) #include static int my_allocfail_called; -static void my_allocfail(const void *p) +static void my_allocfail(const void *p UNNEEDED) { my_allocfail_called++; } diff --git a/ccan/ccan/tal/_info b/ccan/ccan/tal/_info index 890cb2e76..5285c1632 100644 --- a/ccan/ccan/tal/_info +++ b/ccan/ccan/tal/_info @@ -29,7 +29,7 @@ * Example: * #include * #include - * #include + * #include * * // A structure containing a popened command. * struct command { diff --git a/ccan/ccan/tal/grab_file/_info b/ccan/ccan/tal/grab_file/_info index 68ad089b0..056f10990 100644 --- a/ccan/ccan/tal/grab_file/_info +++ b/ccan/ccan/tal/grab_file/_info @@ -18,6 +18,8 @@ * { * char *file; * + * if (argc > 2) + * err(1, "Takes 0 or 1 arguments"); * file = grab_file(NULL, argv[1]); * if (!file) * err(1, "Could not read file %s", argv[1]); diff --git a/ccan/ccan/tal/grab_file/test/run-grab.c b/ccan/ccan/tal/grab_file/test/run-grab.c index b258230e8..ddb5ca307 100644 --- a/ccan/ccan/tal/grab_file/test/run-grab.c +++ b/ccan/ccan/tal/grab_file/test/run-grab.c @@ -10,7 +10,7 @@ #include int -main(int argc, char *argv[]) +main(void) { unsigned int i; char **split, *str; diff --git a/ccan/ccan/tal/path/test/run-basename.c b/ccan/ccan/tal/path/test/run-basename.c index c99353a48..23188481f 100644 --- a/ccan/ccan/tal/path/test/run-basename.c +++ b/ccan/ccan/tal/path/test/run-basename.c @@ -47,7 +47,7 @@ int main(void) path = path_basename(ctx, take(tal_strdup(ctx, ".."))); ok1(streq(path, "..")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && !tal_next(ctx, path)); + ok1(tal_first(ctx) == path && !tal_next(path)); tal_free(path); ok1(path_basename(ctx, take(NULL)) == NULL); ok1(!tal_first(ctx)); diff --git a/ccan/ccan/tal/path/test/run-canon.c b/ccan/ccan/tal/path/test/run-canon.c index e01567bf5..c6e3a8b04 100644 --- a/ccan/ccan/tal/path/test/run-canon.c +++ b/ccan/ccan/tal/path/test/run-canon.c @@ -36,7 +36,7 @@ int main(void) ok1(strstarts(path, cwd)); ok1(path[strlen(cwd)] == PATH_SEP); ok1(strlen(path) == strlen(cwd) + 1 + strlen("run-canon-foo")); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL); path2 = path_canon(ctx, "run-canon-link"); ok1(streq(path2, path)); diff --git a/ccan/ccan/tal/path/test/run-dirname.c b/ccan/ccan/tal/path/test/run-dirname.c index 46589aefd..a0bc2cbe3 100644 --- a/ccan/ccan/tal/path/test/run-dirname.c +++ b/ccan/ccan/tal/path/test/run-dirname.c @@ -47,7 +47,7 @@ int main(void) path = path_dirname(ctx, take(tal_strdup(ctx, ".."))); ok1(streq(path, ".")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && !tal_next(ctx, path)); + ok1(tal_first(ctx) == path && !tal_next(path)); tal_free(path); ok1(path_dirname(ctx, take(NULL)) == NULL); ok1(!tal_first(ctx)); diff --git a/ccan/ccan/tal/path/test/run-join.c b/ccan/ccan/tal/path/test/run-join.c index a4f63b317..3961cbb13 100644 --- a/ccan/ccan/tal/path/test/run-join.c +++ b/ccan/ccan/tal/path/test/run-join.c @@ -32,39 +32,39 @@ int main(void) path = path_join(ctx, "foo", take(tal_strdup(ctx, "bar"))); ok1(streq(path, "foo/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, "foo", take(tal_strdup(ctx, "/bar"))); ok1(streq(path, "/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, take(tal_strdup(ctx, "foo")), "bar"); ok1(streq(path, "foo/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, take(tal_strdup(ctx, "foo")), "/bar"); ok1(streq(path, "/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, take(tal_strdup(ctx, "foo")), take(tal_strdup(ctx, "bar"))); ok1(streq(path, "foo/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, take(tal_strdup(ctx, "foo")), take(tal_strdup(ctx, "/bar"))); ok1(streq(path, "/bar")); ok1(tal_parent(path) == ctx); - ok1(tal_first(ctx) == path && tal_next(ctx, path) == NULL); + ok1(tal_first(ctx) == path && tal_next(path) == NULL && tal_first(path) == NULL); tal_free(path); path = path_join(ctx, take(NULL), "bar"); diff --git a/ccan/ccan/tal/path/test/run-readlink.c b/ccan/ccan/tal/path/test/run-readlink.c index 28dcf87e5..bab041708 100644 --- a/ccan/ccan/tal/path/test/run-readlink.c +++ b/ccan/ccan/tal/path/test/run-readlink.c @@ -30,7 +30,7 @@ int main(void) link = path_readlink(ctx, take(tal_strdup(ctx, "run-readlink-link"))); ok1(tal_parent(link) == ctx); ok1(streq(link, "/tmp")); - ok1(tal_first(ctx) == link && tal_next(ctx, link) == NULL); + ok1(tal_first(ctx) == link && tal_next(link) == NULL && tal_first(link) == NULL); unlink("run-readlink-link"); diff --git a/ccan/ccan/tal/path/test/run-split.c b/ccan/ccan/tal/path/test/run-split.c index 732333c39..1083cc88c 100644 --- a/ccan/ccan/tal/path/test/run-split.c +++ b/ccan/ccan/tal/path/test/run-split.c @@ -98,7 +98,7 @@ int main(void) ok1(!split); ok1(tal_first(ctx) == NULL); - ok1(tal_first(NULL) == ctx && tal_next(NULL, ctx) == NULL); + ok1(tal_first(NULL) == ctx && tal_next(ctx) == NULL && tal_first(ctx) == NULL); tal_free(ctx); return exit_status(); diff --git a/ccan/ccan/tal/str/_info b/ccan/ccan/tal/str/_info index cb81c9e19..3037cfde2 100644 --- a/ccan/ccan/tal/str/_info +++ b/ccan/ccan/tal/str/_info @@ -20,6 +20,8 @@ * char *textfile; * char **lines; * + * if (argc > 2) + * errx(1, "Takes 0 or 1 arguments"); * // Grab lines in file. * textfile = grab_file(NULL, argv[1]); * if (!textfile) diff --git a/ccan/ccan/tal/str/str.h b/ccan/ccan/tal/str/str.h index 0c1821331..5147ca2d4 100644 --- a/ccan/ccan/tal/str/str.h +++ b/ccan/ccan/tal/str/str.h @@ -171,6 +171,7 @@ char *tal_strjoin(const void *ctx, char *strings[], const char *delim, * { * char *person, *input; * + * (void)argc; * // Join args and trim trailing space. * input = tal_strjoin(NULL, argv+1, " ", STR_NO_TRAIL); * if (tal_strreg(NULL, input, diff --git a/ccan/ccan/tal/str/test/helper.h b/ccan/ccan/tal/str/test/helper.h index c1bc9ccf7..5f0b68f5d 100644 --- a/ccan/ccan/tal/str/test/helper.h +++ b/ccan/ccan/tal/str/test/helper.h @@ -17,6 +17,6 @@ static inline bool no_children(const void *ctx) static inline bool single_child(const void *ctx, const void *child) { - return tal_first(ctx) == child && !tal_next(ctx, child); + return tal_first(ctx) == child && !tal_next(child) && !tal_first(child); } #endif diff --git a/ccan/ccan/tal/str/test/run-fmt-terminate.c b/ccan/ccan/tal/str/test/run-fmt-terminate.c index 9dfd00155..374ca03a1 100644 --- a/ccan/ccan/tal/str/test/run-fmt-terminate.c +++ b/ccan/ccan/tal/str/test/run-fmt-terminate.c @@ -6,7 +6,7 @@ #include "helper.h" /* Empty format string: should still terminate! */ -int main(int argc, char *argv[]) +int main(void) { char *str; const char *fmt = ""; diff --git a/ccan/ccan/tal/str/test/run-strndup.c b/ccan/ccan/tal/str/test/run-strndup.c index d96735484..55e35fd4b 100644 --- a/ccan/ccan/tal/str/test/run-strndup.c +++ b/ccan/ccan/tal/str/test/run-strndup.c @@ -5,7 +5,7 @@ #include #include "helper.h" -int main(int argc, char *argv[]) +int main(void) { char *str, *copy; diff --git a/ccan/ccan/tal/str/test/run-strreg.c b/ccan/ccan/tal/str/test/run-strreg.c index fa8a86c66..93b8602a3 100644 --- a/ccan/ccan/tal/str/test/run-strreg.c +++ b/ccan/ccan/tal/str/test/run-strreg.c @@ -14,7 +14,7 @@ static bool find_parent(tal_t *child, tal_t *parent) return false; } -int main(int argc, char *argv[]) +int main(void) { void *ctx = tal_strdup(NULL, "toplevel"); char *a, *b; diff --git a/ccan/ccan/tal/str/test/run.c b/ccan/ccan/tal/str/test/run.c index 4b9cf1fb5..a59d94008 100644 --- a/ccan/ccan/tal/str/test/run.c +++ b/ccan/ccan/tal/str/test/run.c @@ -10,7 +10,7 @@ static const char *substrings[] = { "far", "bar", "baz", "b", "ba", "z", "ar", NULL }; -int main(int argc, char *argv[]) +int main(void) { char **split, *str; void *ctx; diff --git a/ccan/ccan/tal/tal.c b/ccan/ccan/tal/tal.c index 1eaa57494..842059d03 100644 --- a/ccan/ccan/tal/tal.c +++ b/ccan/ccan/tal/tal.c @@ -47,7 +47,7 @@ struct name { struct length { struct prop_hdr hdr; /* LENGTH */ - size_t count; + size_t len; }; struct notifier { @@ -323,7 +323,7 @@ static struct name *add_name_property(struct tal_hdr *t, const char *name) } static struct children *add_child_property(struct tal_hdr *parent, - struct tal_hdr *child) + struct tal_hdr *child UNNEEDED) { struct children *prop = allocate(sizeof(*prop)); if (prop) { @@ -383,16 +383,43 @@ static void del_tree(struct tal_hdr *t, const tal_t *orig) freefn(t); } -void *tal_alloc_(const tal_t *ctx, size_t size, bool clear, const char *label) +static size_t extra_for_length(size_t size) { + size_t extra; + const size_t align = ALIGNOF(struct length); + + /* Round up size, and add tailer. */ + extra = ((size + align-1) & ~(align-1)) - size; + extra += sizeof(struct length); + return extra; +} + +void *tal_alloc_(const tal_t *ctx, size_t size, + bool clear, bool add_length, const char *label) +{ + size_t req_size = size; struct tal_hdr *child, *parent = debug_tal(to_tal_hdr_or_null(ctx)); +#ifdef CCAN_TAL_DEBUG + /* Always record length if debugging. */ + add_length = true; +#endif + if (add_length) + size += extra_for_length(size); + child = allocate(sizeof(struct tal_hdr) + size); if (!child) return NULL; if (clear) - memset(from_tal_hdr(child), 0, size); + memset(from_tal_hdr(child), 0, req_size); child->prop = (void *)label; + + if (add_length) { + struct length *lprop; + lprop = (struct length *)((char *)(child+1) + size) - 1; + init_property(&lprop->hdr, child, LENGTH); + lprop->len = req_size; + } if (!add_child(parent, child)) { freefn(child); return NULL; @@ -422,39 +449,13 @@ overflow: return false; } -static size_t extra_for_length(size_t size) -{ - size_t extra; - const size_t align = ALIGNOF(struct length); - - /* Round up size, and add tailer. */ - extra = ((size + align-1) & ~(align-1)) - size; - extra += sizeof(struct length); - return extra; -} - void *tal_alloc_arr_(const tal_t *ctx, size_t size, size_t count, bool clear, - bool add_count, const char *label) + bool add_length, const char *label) { - void *ret; - if (!adjust_size(&size, count)) return NULL; - if (add_count) - size += extra_for_length(size); - - ret = tal_alloc_(ctx, size, clear, label); - if (unlikely(!ret)) - return ret; - - if (add_count) { - struct length *lprop; - lprop = (struct length *)((char *)ret + size) - 1; - init_property(&lprop->hdr, to_tal_hdr(ret), LENGTH); - lprop->count = count; - } - return ret; + return tal_alloc_(ctx, size, clear, add_length, label); } void *tal_free(const tal_t *ctx) @@ -598,14 +599,14 @@ const char *tal_name(const tal_t *t) return n->name; } -size_t tal_count(const tal_t *ptr) +size_t tal_len(const tal_t *ptr) { struct length *l; l = find_property(debug_tal(to_tal_hdr(ptr)), LENGTH); if (!l) return 0; - return l->count; + return l->len; } /* Start one past first child: make stopping natural in circ. list. */ @@ -630,31 +631,16 @@ tal_t *tal_first(const tal_t *root) return from_tal_hdr(c); } -tal_t *tal_next(const tal_t *root, const tal_t *prev) +tal_t *tal_next(const tal_t *prev) { - struct tal_hdr *c, *t = debug_tal(to_tal_hdr(prev)), *top; + struct tal_hdr *next, *prevhdr = debug_tal(to_tal_hdr(prev)); + struct list_head *head; - /* Children? */ - c = first_child(t); - if (c) - return from_tal_hdr(c); - - top = to_tal_hdr_or_null(root); - do { - struct tal_hdr *next; - struct list_node *end; - - end = &ignore_destroying_bit(t->parent_child)->children.n; - - next = list_entry(t->list.next, struct tal_hdr, list); - if (&next->list != end) - return from_tal_hdr(next); - - /* OK, go back to parent. */ - t = ignore_destroying_bit(t->parent_child)->parent; - } while (t != top); - - return NULL; + head = &ignore_destroying_bit(prevhdr->parent_child)->children; + next = list_next(head, prevhdr, list); + if (!next) + return NULL; + return from_tal_hdr(next); } tal_t *tal_parent(const tal_t *ctx) @@ -676,7 +662,7 @@ bool tal_resize_(tal_t **ctxp, size_t size, size_t count, bool clear) struct children *child; struct prop_hdr **lenp; struct length len; - size_t extra = 0, elemsize = size; + size_t extra = 0; old_t = debug_tal(to_tal_hdr(*ctxp)); @@ -702,13 +688,14 @@ bool tal_resize_(tal_t **ctxp, size_t size, size_t count, bool clear) struct length *new_len; /* Clear between old end and new end. */ - if (clear && count > len.count) { - char *old_end = (char *)(t + 1) + len.count * elemsize; - memset(old_end, 0, elemsize * (count - len.count)); + if (clear && size > len.len) { + char *old_end = (char *)(t + 1) + len.len; + memset(old_end, 0, size - len.len); } - new_len = (struct length *)((char *)(t + 1) + size); - len.count = count; + new_len = (struct length *)((char *)(t + 1) + size + + extra - sizeof(len)); + len.len = size; *new_len = len; /* Be careful replacing next ptr; could be old hdr. */ @@ -744,26 +731,26 @@ bool tal_resize_(tal_t **ctxp, size_t size, size_t count, bool clear) bool tal_expand_(tal_t **ctxp, const void *src, size_t size, size_t count) { struct length *l; - size_t old_count; + size_t old_len; bool ret = false; l = find_property(debug_tal(to_tal_hdr(*ctxp)), LENGTH); - old_count = l->count; + old_len = l->len; /* Check for additive overflow */ - if (old_count + count < count) { + if (old_len + count * size < old_len) { call_error("dup size overflow"); goto out; } /* Don't point src inside thing we're expanding! */ assert(src < *ctxp - || (char *)src >= (char *)(*ctxp) + (size * old_count)); + || (char *)src >= (char *)(*ctxp) + old_len); - if (!tal_resize_(ctxp, size, old_count + count, false)) + if (!tal_resize_(ctxp, size, old_len/size + count, false)) goto out; - memcpy((char *)*ctxp + size * old_count, src, count * size); + memcpy((char *)*ctxp + old_len, src, count * size); ret = true; out: @@ -773,7 +760,7 @@ out: } void *tal_dup_(const tal_t *ctx, const void *p, size_t size, - size_t n, size_t extra, bool add_count, + size_t n, size_t extra, bool add_length, const char *label) { void *ret; @@ -803,7 +790,7 @@ void *tal_dup_(const tal_t *ctx, const void *p, size_t size, return (void *)p; } - ret = tal_alloc_arr_(ctx, size, n + extra, false, add_count, label); + ret = tal_alloc_arr_(ctx, size, n + extra, false, add_length, label); if (ret) memcpy(ret, p, nbytes); return ret; @@ -859,7 +846,7 @@ static void dump_node(unsigned int indent, const struct tal_hdr *t) break; case LENGTH: l = (struct length *)p; - printf(" LENGTH(%p):count=%zu", p, l->count); + printf(" LENGTH(%p):len=%zu", p, l->len); break; default: printf(" **UNKNOWN(%p):%i**", p, p->type); @@ -921,7 +908,6 @@ static bool check_node(struct children *parent_child, if (name) return check_err(t, errorstr, "has extra literal"); - name = (struct name *)p; break; } if (!in_bounds(p)) diff --git a/ccan/ccan/tal/tal.h b/ccan/ccan/tal/tal.h index f360a9611..713db1188 100644 --- a/ccan/ccan/tal/tal.h +++ b/ccan/ccan/tal/tal.h @@ -32,7 +32,7 @@ typedef void tal_t; * *p = 1; */ #define tal(ctx, type) \ - ((type *)tal_alloc_((ctx), sizeof(type), false, TAL_LABEL(type, ""))) + ((type *)tal_alloc_((ctx), sizeof(type), false, false, TAL_LABEL(type, ""))) /** * talz - zeroing allocator function @@ -46,7 +46,7 @@ typedef void tal_t; * assert(*p == 0); */ #define talz(ctx, type) \ - ((type *)tal_alloc_((ctx), sizeof(type), true, TAL_LABEL(type, ""))) + ((type *)tal_alloc_((ctx), sizeof(type), true, false, TAL_LABEL(type, ""))) /** * tal_free - free a tal-allocated pointer. @@ -259,10 +259,19 @@ const char *tal_name(const tal_t *ptr); * Returns 0 if @ptr has no length property, but be aware that that is * also a valid size! */ -size_t tal_count(const tal_t *ptr); +#define tal_count(p) (tal_len(p) / sizeof(*p)) /** - * tal_first - get the first tal object child. + * tal_len - get the count of bytes in a tal_arr. + * @ptr: The tal allocated object array. + * + * Returns 0 if @ptr has no length property, but be aware that that is + * also a valid size! + */ +size_t tal_len(const tal_t *ptr); + +/** + * tal_first - get the first immediate tal object child. * @root: The tal allocated object to start with, or NULL. * * Returns NULL if there are no children. @@ -270,15 +279,13 @@ size_t tal_count(const tal_t *ptr); tal_t *tal_first(const tal_t *root); /** - * tal_next - get the next tal object child. - * @root: The tal allocated object to start with, or NULL. + * tal_next - get the next immediate tal object child. * @prev: The return value from tal_first or tal_next. * - * Returns NULL if there are no more children. This should be safe to - * call on an altering tree unless @prev is no longer a descendent of - * @root. + * Returns NULL if there are no more immediate children. This should be safe to + * call on an altering tree unless @prev is no longer valid. */ -tal_t *tal_next(const tal_t *root, const tal_t *prev); +tal_t *tal_next(const tal_t *prev); /** * tal_parent - get the parent of a tal object. @@ -425,12 +432,13 @@ bool tal_set_name_(tal_t *ctx, const char *name, bool literal); #define tal_typechk_(ptr, ptype) (ptr) #endif -void *tal_alloc_(const tal_t *ctx, size_t bytes, bool clear, const char *label); +void *tal_alloc_(const tal_t *ctx, size_t bytes, bool clear, + bool add_length, const char *label); void *tal_alloc_arr_(const tal_t *ctx, size_t bytes, size_t count, bool clear, - bool add_count, const char *label); + bool add_length, const char *label); void *tal_dup_(const tal_t *ctx, const void *p, size_t size, - size_t n, size_t extra, bool add_count, + size_t n, size_t extra, bool add_length, const char *label); tal_t *tal_steal_(const tal_t *new_parent, const tal_t *t); diff --git a/ccan/ccan/tal/test/run-allocfail.c b/ccan/ccan/tal/test/run-allocfail.c index a166be3f6..97cba9f68 100644 --- a/ccan/ccan/tal/test/run-allocfail.c +++ b/ccan/ccan/tal/test/run-allocfail.c @@ -30,7 +30,7 @@ static void nofail_on_error(const char *msg) err_count++; } -static void destroy_p(void *p) +static void destroy_p(void *p UNNEEDED) { } diff --git a/ccan/ccan/tal/test/run-destructor.c b/ccan/ccan/tal/test/run-destructor.c index 873548889..7183f7c5b 100644 --- a/ccan/ccan/tal/test/run-destructor.c +++ b/ccan/ccan/tal/test/run-destructor.c @@ -24,7 +24,7 @@ static void destroy_child(char *p) destroy_count++; } -static void destroy_inc(char *p) +static void destroy_inc(char *p UNNEEDED) { destroy_count++; } diff --git a/ccan/ccan/tal/test/run-expand.c b/ccan/ccan/tal/test/run-expand.c index 607947bea..841735fb5 100644 --- a/ccan/ccan/tal/test/run-expand.c +++ b/ccan/ccan/tal/test/run-expand.c @@ -24,7 +24,7 @@ int main(void) ok1(a[1] == 1); ok1(a[2] == 2); ok1(a[3] == 0); - ok1(tal_first(NULL) == a && !tal_next(NULL, a)); + ok1(tal_first(NULL) == a && !tal_next(a) && !tal_first(a)); tal_free(a); diff --git a/ccan/ccan/tal/test/run-free.c b/ccan/ccan/tal/test/run-free.c index 29aa8c6f4..f21264748 100644 --- a/ccan/ccan/tal/test/run-free.c +++ b/ccan/ccan/tal/test/run-free.c @@ -2,7 +2,7 @@ #include #include -static void destroy_errno(char *p) +static void destroy_errno(char *p UNNEEDED) { errno = ENOENT; } diff --git a/ccan/ccan/tal/test/run-iter.c b/ccan/ccan/tal/test/run-iter.c index 561e09cc2..5992172a5 100644 --- a/ccan/ccan/tal/test/run-iter.c +++ b/ccan/ccan/tal/test/run-iter.c @@ -4,9 +4,33 @@ #define NUM 1000 +static int set_children(const tal_t *parent, char val) +{ + char *iter; + int num = 0; + + for (iter = tal_first(parent); iter; iter = tal_next(iter)) { + ok1(*iter == '0'); + *iter = val; + num++; + num += set_children(iter, val); + } + return num; +} + +static void check_children(const tal_t *parent, char val) +{ + const char *iter; + + for (iter = tal_first(parent); iter; iter = tal_next(iter)) { + ok1(*iter == val); + check_children(iter, val); + } +} + int main(void) { - char *p[NUM] = { NULL }, *iter; + char *p[NUM] = { NULL }; int i; plan_tests(NUM + 1 + NUM); @@ -17,18 +41,13 @@ int main(void) *p[i] = '0'; } - i = 0; - for (iter = tal_first(NULL); iter; iter = tal_next(NULL, iter)) { - i++; - ok1(*iter == '0'); - *iter = '1'; - } + i = set_children(NULL, '1'); ok1(i == NUM); - for (i = NUM-1; i >= 0; i--) { - ok1(*p[i] == '1'); + check_children(NULL, '1'); + for (i = NUM-1; i >= 0; i--) tal_free(p[i]); - } + tal_cleanup(); return exit_status(); } diff --git a/ccan/ccan/tal/test/run-notifier.c b/ccan/ccan/tal/test/run-notifier.c index b57c902e8..3820444f8 100644 --- a/ccan/ccan/tal/test/run-notifier.c +++ b/ccan/ccan/tal/test/run-notifier.c @@ -20,7 +20,7 @@ static void *my_realloc(void *old, size_t size) return new; } -static void notify1(char *p, enum tal_notify_type notify, void *info) +static void notify1(char *p UNNEEDED, enum tal_notify_type notify, void *info) { ok1(ctx == ctx); ok1(notify == expect); @@ -31,7 +31,9 @@ static void notify1(char *p, enum tal_notify_type notify, void *info) notified1++; } -static void notify2(char *ctx, enum tal_notify_type notify, void *info) +static void notify2(char *ctx UNNEEDED, + enum tal_notify_type notify UNNEEDED, + void *info UNNEEDED) { notified2++; } diff --git a/ccan/ccan/tal/test/run-overflow.c b/ccan/ccan/tal/test/run-overflow.c index e68c0471b..d1919c1cc 100644 --- a/ccan/ccan/tal/test/run-overflow.c +++ b/ccan/ccan/tal/test/run-overflow.c @@ -4,7 +4,7 @@ static int error_count; -static void my_error(const char *msg) +static void my_error(const char *msg UNNEEDED) { error_count++; } @@ -48,7 +48,7 @@ int main(void) (size_t)-1UL / sizeof(int) / 2); ok1(!pi); ok1(error_count == 4); - ok1(tal_first(NULL) == origpi && !tal_next(NULL, origpi)); + ok1(tal_first(NULL) == origpi && !tal_next(origpi) && !tal_first(origpi)); tal_free(origpi); /* Now, check that with taltk() we free old one on failure. */ diff --git a/ccan/ccan/tal/test/run-test-backend.c b/ccan/ccan/tal/test/run-test-backend.c index 8fdfc064a..ebcd81119 100644 --- a/ccan/ccan/tal/test/run-test-backend.c +++ b/ccan/ccan/tal/test/run-test-backend.c @@ -31,7 +31,7 @@ static void *my_realloc(void *old, size_t new_size) #define NUM_ALLOCS 1000 -static void destroy_p(void *p) +static void destroy_p(void *p UNNEEDED) { } diff --git a/ccan/ccan/tal/test/run.c b/ccan/ccan/tal/test/run.c index 984865125..4931099e7 100644 --- a/ccan/ccan/tal/test/run.c +++ b/ccan/ccan/tal/test/run.c @@ -25,7 +25,7 @@ int main(void) /* Iteration test. */ i = 0; - for (p = tal_first(parent); p; p = tal_next(parent, p)) { + for (p = tal_first(parent); p; p = tal_next(p)) { *p = '1'; i++; } diff --git a/ccan/ccan/tcon/test/compile_fail-container1.c b/ccan/ccan/tcon/test/compile_fail-container1.c index a67e20907..44645a7ec 100644 --- a/ccan/ccan/tcon/test/compile_fail-container1.c +++ b/ccan/ccan/tcon/test/compile_fail-container1.c @@ -22,7 +22,7 @@ struct info_tcon { TCON(TCON_CONTAINER(concan, struct outer, inner)); }; -int main(int argc, char *argv[]) +int main(void) { struct info_tcon info; struct outer ovar; diff --git a/ccan/ccan/tcon/test/compile_fail-container1w.c b/ccan/ccan/tcon/test/compile_fail-container1w.c index 0226b68e9..19ba5bdcc 100644 --- a/ccan/ccan/tcon/test/compile_fail-container1w.c +++ b/ccan/ccan/tcon/test/compile_fail-container1w.c @@ -17,7 +17,7 @@ struct info_base { char *infop; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct info_base, TCON_CONTAINER(concan, struct outer, inner)) info; diff --git a/ccan/ccan/tcon/test/compile_fail-container2.c b/ccan/ccan/tcon/test/compile_fail-container2.c index 6cad734c5..e41984d9f 100644 --- a/ccan/ccan/tcon/test/compile_fail-container2.c +++ b/ccan/ccan/tcon/test/compile_fail-container2.c @@ -22,7 +22,7 @@ struct info_tcon { TCON(TCON_CONTAINER(concan, struct outer, inner)); }; -int main(int argc, char *argv[]) +int main(void) { struct info_tcon info; struct outer ovar; diff --git a/ccan/ccan/tcon/test/compile_fail-container2w.c b/ccan/ccan/tcon/test/compile_fail-container2w.c index c73123cac..3564ab0c4 100644 --- a/ccan/ccan/tcon/test/compile_fail-container2w.c +++ b/ccan/ccan/tcon/test/compile_fail-container2w.c @@ -17,7 +17,7 @@ struct info_base { char *infop; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct info_base, TCON_CONTAINER(concan, struct outer, inner)) info; diff --git a/ccan/ccan/tcon/test/compile_fail-container3.c b/ccan/ccan/tcon/test/compile_fail-container3.c index 97473c8ca..9185225a9 100644 --- a/ccan/ccan/tcon/test/compile_fail-container3.c +++ b/ccan/ccan/tcon/test/compile_fail-container3.c @@ -22,7 +22,7 @@ struct info_tcon { TCON(TCON_CONTAINER(concan, struct outer, inner)); }; -int main(int argc, char *argv[]) +int main(void) { struct info_tcon info; struct outer ovar; diff --git a/ccan/ccan/tcon/test/compile_fail-container3w.c b/ccan/ccan/tcon/test/compile_fail-container3w.c index 6930b436d..958e5c8b3 100644 --- a/ccan/ccan/tcon/test/compile_fail-container3w.c +++ b/ccan/ccan/tcon/test/compile_fail-container3w.c @@ -17,7 +17,7 @@ struct info_base { char *infop; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct info_base, TCON_CONTAINER(concan, struct outer, inner)) info; diff --git a/ccan/ccan/tcon/test/compile_fail-container4.c b/ccan/ccan/tcon/test/compile_fail-container4.c index 838ce9b17..b11e8efcd 100644 --- a/ccan/ccan/tcon/test/compile_fail-container4.c +++ b/ccan/ccan/tcon/test/compile_fail-container4.c @@ -22,7 +22,7 @@ struct info_tcon { TCON(TCON_CONTAINER(concan, struct outer, inner)); }; -int main(int argc, char *argv[]) +int main(void) { struct info_tcon info; struct outer ovar; diff --git a/ccan/ccan/tcon/test/compile_fail-container4w.c b/ccan/ccan/tcon/test/compile_fail-container4w.c index 0d7b367b9..d33ce1e52 100644 --- a/ccan/ccan/tcon/test/compile_fail-container4w.c +++ b/ccan/ccan/tcon/test/compile_fail-container4w.c @@ -17,7 +17,7 @@ struct info_base { char *infop; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct info_base, TCON_CONTAINER(concan, struct outer, inner)) info; diff --git a/ccan/ccan/tcon/test/compile_fail-tcon_cast.c b/ccan/ccan/tcon/test/compile_fail-tcon_cast.c index 3df0333ca..0d83ba3fa 100644 --- a/ccan/ccan/tcon/test/compile_fail-tcon_cast.c +++ b/ccan/ccan/tcon/test/compile_fail-tcon_cast.c @@ -10,7 +10,7 @@ struct int_and_charp_container { TCON(int *tc1; char *tc2); }; -int main(int argc, char *argv[]) +int main(void) { struct int_and_charp_container icon; #ifdef FAIL diff --git a/ccan/ccan/tcon/test/compile_fail-tcon_cast_wrap.c b/ccan/ccan/tcon/test/compile_fail-tcon_cast_wrap.c index f24cb01b8..c9255791a 100644 --- a/ccan/ccan/tcon/test/compile_fail-tcon_cast_wrap.c +++ b/ccan/ccan/tcon/test/compile_fail-tcon_cast_wrap.c @@ -5,7 +5,7 @@ struct container { void *p; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct container, int *tc1; char *tc2) icon; diff --git a/ccan/ccan/tcon/test/compile_fail-wrap.c b/ccan/ccan/tcon/test/compile_fail-wrap.c index 26da13c3e..96010e6cc 100644 --- a/ccan/ccan/tcon/test/compile_fail-wrap.c +++ b/ccan/ccan/tcon/test/compile_fail-wrap.c @@ -5,7 +5,7 @@ struct container { void *p; }; -int main(int argc, char *argv[]) +int main(void) { TCON_WRAP(struct container, int *canary) icon; #ifdef FAIL diff --git a/ccan/ccan/tcon/test/compile_fail.c b/ccan/ccan/tcon/test/compile_fail.c index 683bbd62f..b17d9d2e5 100644 --- a/ccan/ccan/tcon/test/compile_fail.c +++ b/ccan/ccan/tcon/test/compile_fail.c @@ -10,7 +10,7 @@ struct int_container { TCON(int *canary); }; -int main(int argc, char *argv[]) +int main(void) { struct int_container icon; #ifdef FAIL diff --git a/ccan/ccan/tcon/test/compile_ok-container.c b/ccan/ccan/tcon/test/compile_ok-container.c index a8347f7aa..8afacabcc 100644 --- a/ccan/ccan/tcon/test/compile_ok-container.c +++ b/ccan/ccan/tcon/test/compile_ok-container.c @@ -22,7 +22,7 @@ struct info_tcon { TCON(TCON_CONTAINER(fi, struct outer, inner)); }; -int main(int argc, char *argv[]) +int main(void) { /* Const should work! */ const struct outer *ovar = NULL; diff --git a/ccan/ccan/tcon/test/compile_ok-sizeof.c b/ccan/ccan/tcon/test/compile_ok-sizeof.c index 64ccc136e..9c4bf9ac8 100644 --- a/ccan/ccan/tcon/test/compile_ok-sizeof.c +++ b/ccan/ccan/tcon/test/compile_ok-sizeof.c @@ -16,7 +16,7 @@ struct charp_and_int_container { TCON(int tc1; char *tc2); }; -int main(int argc, char *argv[]) +int main(void) { struct int_container icon; struct charp_and_int_container cicon; diff --git a/ccan/ccan/tcon/test/compile_ok-value.c b/ccan/ccan/tcon/test/compile_ok-value.c index d9c911e6d..9620bcbd3 100644 --- a/ccan/ccan/tcon/test/compile_ok-value.c +++ b/ccan/ccan/tcon/test/compile_ok-value.c @@ -26,7 +26,7 @@ struct offs_container { TCON_VALUE(off2, offsetof(struct other_struct, x2))); }; -int main(int argc, char *argv[]) +int main(void) { struct val_container valcon; struct offs_container offscon; diff --git a/ccan/ccan/tcon/test/compile_ok-void.c b/ccan/ccan/tcon/test/compile_ok-void.c index 694a53b53..442ca6599 100644 --- a/ccan/ccan/tcon/test/compile_ok-void.c +++ b/ccan/ccan/tcon/test/compile_ok-void.c @@ -15,6 +15,7 @@ int main(int argc, char *argv[]) struct void_container vcon; TCON_WRAP(struct container, void *canary) vconw; + (void)argc; tcon_check(&vcon, canary, NULL)->raw.p = NULL; tcon_check(&vcon, canary, argv[0])->raw.p = NULL; tcon_check(&vcon, canary, main)->raw.p = NULL; diff --git a/ccan/ccan/tcon/test/compile_ok.c b/ccan/ccan/tcon/test/compile_ok.c index f3fe2c6f8..6ba5f4c14 100644 --- a/ccan/ccan/tcon/test/compile_ok.c +++ b/ccan/ccan/tcon/test/compile_ok.c @@ -23,6 +23,7 @@ int main(int argc, char *argv[]) TCON_WRAP(struct container, int tc) iconw; TCON_WRAP(struct container, int tc1; char *tc2) ciconw; + (void)argc; tcon_check(&icon, tc, 7)->raw.p = NULL; tcon_check(&cicon, tc1, 7)->raw.p = argv[0]; tcon_check(&cicon, tc2, argv[0])->raw.p = argv[0]; diff --git a/ccan/ccan/tcon/test/run-container.c b/ccan/ccan/tcon/test/run-container.c index 88bb2a1c5..c08bad5c8 100644 --- a/ccan/ccan/tcon/test/run-container.c +++ b/ccan/ccan/tcon/test/run-container.c @@ -28,7 +28,7 @@ struct info_tcon { TCON_CONTAINER(fi2, struct outer0, inner)); }; -int main(int argc, char *argv[]) +int main(void) { struct info_tcon info; TCON_WRAP(struct info_base, diff --git a/ccan/ccan/tcon/test/run-wrap.c b/ccan/ccan/tcon/test/run-wrap.c index 0d5cfef61..3493e5ac7 100644 --- a/ccan/ccan/tcon/test/run-wrap.c +++ b/ccan/ccan/tcon/test/run-wrap.c @@ -4,7 +4,7 @@ typedef TCON_WRAP(int, char *canary) canaried_int; -int main(int argc, char *argv[]) +int main(void) { canaried_int ci = TCON_WRAP_INIT(0); diff --git a/ccan/ccan/time/test/run-check.c b/ccan/ccan/time/test/run-check.c index 3c2e282fd..c134afc3e 100644 --- a/ccan/ccan/time/test/run-check.c +++ b/ccan/ccan/time/test/run-check.c @@ -17,10 +17,11 @@ void abort(void) int main(void) { struct timeabs t1, t2, epoch = { { 0, 0 } }; + struct timemono t1m, t2m; struct timerel t3, t4, zero = { { 0, 0 } }; int fds[2]; - plan_tests(64); + plan_tests(69); /* Test time_now */ t1 = time_now(); @@ -43,6 +44,21 @@ int main(void) ok1(timerel_eq(t3, t3)); ok1(!timerel_eq(t3, zero)); + /* Test time_mono */ + t1m = time_mono(); + t2m = time_mono(); + + ok1(!time_less_(t2m.ts, t1m.ts)); + + t3.ts.tv_sec = 1; + t3.ts.tv_nsec = 0; + + ok1(time_less(timemono_between(t2m, t1m), t3)); + ok1(time_less(timemono_since(t1m), t3)); + + ok1(timemono_add(t1m, t3).ts.tv_sec == t1m.ts.tv_sec + 1); + ok1(timemono_add(t2m, t3).ts.tv_nsec == t2m.ts.tv_nsec); + /* Make sure t2 > t1. */ t3.ts.tv_sec = 0; t3.ts.tv_nsec = 1; @@ -156,7 +172,8 @@ int main(void) ok1(t3.ts.tv_sec == 2); ok1(t3.ts.tv_nsec == 147483648); - pipe(fds); + if (pipe(fds) != 0) + exit(1); fflush(stdout); switch (fork()) { diff --git a/ccan/ccan/time/test/run-monotonic.c b/ccan/ccan/time/test/run-monotonic.c index ed70f3dbb..2da492d44 100644 --- a/ccan/ccan/time/test/run-monotonic.c +++ b/ccan/ccan/time/test/run-monotonic.c @@ -7,7 +7,7 @@ int main(void) struct timemono t1, t2; struct timerel t3; - plan_tests(2); + plan_tests(5); /* Test time_mono */ t1 = time_mono(); @@ -18,7 +18,11 @@ int main(void) t3.ts.tv_sec = 1; t3.ts.tv_nsec = 0; - ok1(time_less(timemono_between(t1, t2), t3)); + ok1(time_less(timemono_between(t2, t1), t3)); + ok1(time_less(timemono_since(t1), t3)); + + ok1(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1); + ok1(timemono_add(t2, t3).ts.tv_nsec == t2.ts.tv_nsec); return exit_status(); } diff --git a/ccan/ccan/time/time.c b/ccan/ccan/time/time.c index d0542f565..27f0d52a3 100644 --- a/ccan/ccan/time/time.c +++ b/ccan/ccan/time/time.c @@ -33,7 +33,7 @@ struct timemono time_mono(void) #else /* Best we can do */ ret.ts = time_now().ts; #endif /* !HAVE_TIME_MONOTONIC */ - return ret; + return TIMEMONO_CHECK(ret); } struct timerel time_divide(struct timerel t, unsigned long div) @@ -128,3 +128,11 @@ struct timeabs timeabs_check(struct timeabs t, const char *abortstr) ret.ts = time_check_(t.ts, abortstr); return ret; } + +struct timemono timemono_check(struct timemono t, const char *abortstr) +{ + struct timemono ret; + + ret.ts = time_check_(t.ts, abortstr); + return ret; +} diff --git a/ccan/ccan/time/time.h b/ccan/ccan/time/time.h index 5c916f4c4..70ebdc9a7 100644 --- a/ccan/ccan/time/time.h +++ b/ccan/ccan/time/time.h @@ -22,10 +22,13 @@ struct timespec { timerel_check((t), __FILE__ ":" stringify(__LINE__) " (" stringify(t) ") ") #define TIMEABS_CHECK(t) \ timeabs_check((t), __FILE__ ":" stringify(__LINE__) " (" stringify(t) ") ") +#define TIMEMONO_CHECK(t) \ + timemono_check((t), __FILE__ ":" stringify(__LINE__) " (" stringify(t) ") ") #else #define TIME_CHECK(t) (t) #define TIMEREL_CHECK(t) (t) #define TIMEABS_CHECK(t) (t) +#define TIMEMONO_CHECK(t) (t) #endif /** @@ -95,7 +98,7 @@ struct timerel timerel_check(struct timerel in, const char *abortstr); /** * timeabs_check - check if an absolute time is malformed. - * @in: the relative time to check (returned) + * @in: the absolute time to check (returned) * @abortstr: the string to print to stderr before aborting (if set). * * This can be used to make sure a time isn't negative and doesn't @@ -113,6 +116,26 @@ struct timerel timerel_check(struct timerel in, const char *abortstr); */ struct timeabs timeabs_check(struct timeabs in, const char *abortstr); +/** + * timemono_check - check if a monotonic time is malformed. + * @in: the monotonic time to check (returned) + * @abortstr: the string to print to stderr before aborting (if set). + * + * This can be used to make sure a time isn't negative and doesn't + * have a tv_nsec >= 1000000000. If it is, and @abortstr is non-NULL, + * that will be printed and abort() is called. Otherwise, if + * @abortstr is NULL then the returned timemono will be normalized and + * tv_sec set to 0 if it was negative. + * + * Note that if ccan/time is compiled with DEBUG, then it will call this + * for all passed and returned times. + * + * Example: + * printf("Now is %lu seconds since mono start\n", + * (long)timemono_check(time_mono(), "time_mono failed?").ts.tv_sec); + */ +struct timemono timemono_check(struct timemono in, const char *abortstr); + /** * time_now - return the current time * @@ -127,7 +150,7 @@ struct timeabs time_now(void); * This value is only really useful for measuring time intervals. * * See also: - * time_since() + * timemono_since() */ struct timemono time_mono(void); @@ -231,6 +254,32 @@ static inline bool timeabs_eq(struct timeabs a, struct timeabs b) && a.ts.tv_nsec == b.ts.tv_nsec; } +/** + * timemono_eq - is a equal to b? + * @a: one monotonic time. + * @b: another monotonic time. + * + * Example: + * #include + * #include + * + * // Can we fork in under a nanosecond? + * static bool fast_fork(void) + * { + * struct timemono start = time_mono(); + * if (fork() != 0) { + * exit(0); + * } + * wait(NULL); + * return timemono_eq(start, time_mono()); + * } + */ +static inline bool timemono_eq(struct timemono a, struct timemono b) +{ + return TIMEMONO_CHECK(a).ts.tv_sec == TIMEMONO_CHECK(b).ts.tv_sec + && a.ts.tv_nsec == b.ts.tv_nsec; +} + /** * timerel_eq - is a equal to b? * @a: one relative time. @@ -320,6 +369,17 @@ static inline struct timerel timemono_between(struct timemono recent, return t; } +/** + * timemono_since - elapsed monotonic time since @old + * @old: a monotonic time from the past. + */ +static inline struct timerel timemono_since(struct timemono old) +{ + struct timemono now = time_mono(); + + return timemono_between(now, TIMEMONO_CHECK(old)); +} + /** * timeabs_sub - subtract a relative time from an absolute time * @abs: the absolute time. @@ -377,6 +437,28 @@ static inline struct timeabs timeabs_add(struct timeabs a, struct timerel b) return t; } +/** + * timemono_add - add a relative to a monotonic time + * @a: the monotonic time. + * @b: a relative time. + * + * The times must not overflow, or the results are undefined. + * + * Example: + * // We do one every second. + * static struct timemono next_timem(void) + * { + * return timemono_add(time_mono(), time_from_msec(1000)); + * } + */ +static inline struct timemono timemono_add(struct timemono a, struct timerel b) +{ + struct timemono t; + + t.ts = time_add_(a.ts, b.ts); + return t; +} + /** * timerel_add - add two relative times * @a: one relative time. diff --git a/ccan/ccan/timer/_info b/ccan/ccan/timer/_info index 420aba114..9f5ec7a22 100644 --- a/ccan/ccan/timer/_info +++ b/ccan/ccan/timer/_info @@ -31,21 +31,21 @@ * struct timer *t; * struct timed_string *s; * - * timers_init(&timers, time_now()); + * (void)argc; + * timers_init(&timers, time_mono()); * list_head_init(&strings); * * while (argv[1]) { * s = malloc(sizeof(*s)); * s->string = argv[1]; - * timer_add(&timers, &s->timer, - * timeabs_add(time_now(), - * time_from_msec(atol(argv[2])))); + * timer_addrel(&timers, &s->timer, + * time_from_msec(atol(argv[2]))); * list_add_tail(&strings, &s->node); * argv += 2; * } * * while (!list_empty(&strings)) { - * struct timeabs now = time_now(); + * struct timemono now = time_mono(); * list_for_each(&strings, s, node) * printf("%s", s->string); * while ((t = timers_expire(&timers, now)) != NULL) { diff --git a/ccan/ccan/timer/test/run-add.c b/ccan/ccan/timer/test/run-add.c index e97bf781d..9ad44b7e3 100644 --- a/ccan/ccan/timer/test/run-add.c +++ b/ccan/ccan/timer/test/run-add.c @@ -20,7 +20,7 @@ int main(void) struct timer t; uint64_t diff; unsigned int i; - struct timeabs epoch = { { 0, 0 } }; + struct timemono epoch = { { 0, 0 } }; /* This is how many tests you plan to run */ plan_tests(2 + (18 + (MAX_ORD - 4) * 3) * (18 + (MAX_ORD - 4) * 3)); @@ -38,7 +38,7 @@ int main(void) for (timers.base = 0; timers.base < (1ULL << MAX_ORD)+2; timers.base = next(timers.base)) { - timer_add(&timers, &t, grains_to_time(timers.base + diff)); + timer_addmono(&timers, &t, grains_to_time(timers.base + diff)); ok1(timers_check(&timers, NULL)); timer_del(&timers, &t); } diff --git a/ccan/ccan/timer/test/run-corrupt.c b/ccan/ccan/timer/test/run-corrupt.c index ee9660481..9fd735b9e 100644 --- a/ccan/ccan/timer/test/run-corrupt.c +++ b/ccan/ccan/timer/test/run-corrupt.c @@ -7,25 +7,25 @@ static void new_timer(struct timers *timers, unsigned long nsec) { struct timer *timer; - struct timeabs when; + struct timemono when; timer = malloc(sizeof(*timer)); timer_init(timer); when.ts.tv_sec = 0; when.ts.tv_nsec = nsec; - timer_add(timers, timer, when); + timer_addmono(timers, timer, when); } static void update_and_expire(struct timers *timers) { - struct timeabs when; + struct timemono when; timer_earliest(timers, &when); free(timers_expire(timers, when)); } -int main(int argc, char *argv[]) +int main(void) { - struct timeabs when; + struct timemono when; struct timers timers; plan_tests(7); diff --git a/ccan/ccan/timer/test/run-corrupt2.c b/ccan/ccan/timer/test/run-corrupt2.c index c2f329761..02e98ff92 100644 --- a/ccan/ccan/timer/test/run-corrupt2.c +++ b/ccan/ccan/timer/test/run-corrupt2.c @@ -5,9 +5,9 @@ #include /* This is the original pre-cut-down dump. */ -int main(int argc, char *argv[]) +int main(void) { - struct timeabs when; + struct timemono when; struct timers timers; struct timer *timer; @@ -19,1611 +19,1611 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 18000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 158000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 12000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 13000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 161000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 25000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 71000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 33000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 171000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 188000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 61000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 90000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 22000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 20000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 30000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 176000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 94000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 16000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 17000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 124000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 32000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 161000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 31000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 64000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 12000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 31000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 22000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 17000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 115000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 54000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 32000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 172000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 129000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 45000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 65000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 71000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 61000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 78000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 16000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 191000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 75000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 21000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 73000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 124000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 45000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 133000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -1631,553 +1631,553 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 79000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 188000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 30000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 133000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 25000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 79000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 94000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 105000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 65000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 229000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 211000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 129000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 76000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2185,165 +2185,165 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 75000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 218000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2351,225 +2351,225 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 176000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 211000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 62000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 86000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 74000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 234000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2577,37 +2577,37 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 191000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2615,41 +2615,41 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2659,71 +2659,71 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 239000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 242000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2731,25 +2731,25 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2761,115 +2761,115 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 105000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2877,73 +2877,73 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 78000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 247000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -2951,49 +2951,49 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 171000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3003,35 +3003,35 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3039,19 +3039,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3059,33 +3059,33 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3093,11 +3093,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3105,53 +3105,53 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 106000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 238000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3159,15 +3159,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3177,15 +3177,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3195,31 +3195,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 258000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3227,63 +3227,63 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 74000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3293,7 +3293,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3301,79 +3301,79 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 266000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 249000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 262000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 228000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3383,7 +3383,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 229000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3401,15 +3401,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3423,99 +3423,99 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 116000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 265000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 115000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3523,31 +3523,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 106000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3557,15 +3557,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3573,15 +3573,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 232000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3591,23 +3591,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3621,27 +3621,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 267000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3653,39 +3653,39 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 232000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3695,17 +3695,17 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3727,21 +3727,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 274000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3755,11 +3755,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3767,23 +3767,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3791,57 +3791,57 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3855,51 +3855,51 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 292000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3907,41 +3907,41 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3957,7 +3957,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3965,27 +3965,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -3995,85 +3995,85 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 141000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 286000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 288000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 286000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 253000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4081,61 +4081,61 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 249000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 267000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4149,21 +4149,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4175,15 +4175,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4191,31 +4191,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 172000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4231,21 +4231,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 299000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 275000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4255,19 +4255,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 274000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 106000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4275,15 +4275,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 276000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4299,7 +4299,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4307,11 +4307,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 279000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4321,49 +4321,49 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 274000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 158000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 304000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 232000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4371,69 +4371,69 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 294000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 278000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 302000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 276000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 251000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 172000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 307000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 299000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4441,11 +4441,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 141000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4453,11 +4453,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 238000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4467,7 +4467,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4477,25 +4477,25 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 281000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 249000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4517,37 +4517,37 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 133000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 284000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 270000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 237000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4555,7 +4555,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4563,17 +4563,17 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 265000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 158000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4581,11 +4581,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4595,45 +4595,45 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 117000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 254000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 289000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4643,33 +4643,33 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 312000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 246000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 129000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 273000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4677,11 +4677,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4689,19 +4689,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4719,15 +4719,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 309000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 272000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4735,11 +4735,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 317000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4767,31 +4767,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 228000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 262000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 258000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 291000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 297000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 261000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 305000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4815,33 +4815,33 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 124000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4867,19 +4867,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 265000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 289000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 261000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4893,57 +4893,57 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 292000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 251000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 279000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 294000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 315000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4967,19 +4967,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 322000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 278000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -4995,11 +4995,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5011,37 +5011,37 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 263000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 293000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 251000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 263000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 260000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5053,11 +5053,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 276000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5071,7 +5071,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 315000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5079,29 +5079,29 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 302000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 321000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5125,19 +5125,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 324000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 330000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5155,31 +5155,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 236000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 290000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 236000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5195,15 +5195,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 318000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5213,35 +5213,35 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 282000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 238000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 318000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 306000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5255,31 +5255,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 338000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 289000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 288000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 253000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5291,7 +5291,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 300000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5315,11 +5315,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 242000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5329,7 +5329,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5337,19 +5337,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 340000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 275000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5357,37 +5357,37 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 294000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 297000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 278000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5401,25 +5401,25 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 269000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 328000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 342000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5429,27 +5429,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 308000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 260000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 305000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 326000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5459,31 +5459,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 330000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 242000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 243000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 275000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5493,17 +5493,17 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5525,11 +5525,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5541,15 +5541,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 263000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 334000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 324000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5565,7 +5565,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 315000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5609,27 +5609,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 340000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 284000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 246000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5639,23 +5639,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 323000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 306000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 320000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 269000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5673,27 +5673,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 351000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 332000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5703,43 +5703,43 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 218000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 342000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 319000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 353000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5749,11 +5749,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 332000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5769,19 +5769,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 340000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 302000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 298000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 278000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5789,15 +5789,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 324000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5807,19 +5807,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 353000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 258000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 293000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 305000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5867,15 +5867,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 272000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5883,73 +5883,73 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 267000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 298000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 171000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 360000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 349000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 261000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 289000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 347000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5959,29 +5959,29 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 281000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 327000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 309000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 353000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -5997,23 +5997,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 347000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 326000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 254000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6021,7 +6021,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 246000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6031,17 +6031,17 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 308000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 260000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6065,19 +6065,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 293000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 304000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6107,33 +6107,33 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 334000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 314000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 242000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 368000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 335000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 238000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6141,7 +6141,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 272000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); free(timers_expire(&timers, when)); timers_check(&timers, "expire"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); @@ -6153,23 +6153,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 288000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 260000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 305000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); when.ts.tv_sec = 0; when.ts.tv_nsec = 263000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); timers_check(&timers, "add"); + timer_addmono(&timers, timer, when); timers_check(&timers, "add"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); timer_earliest(&timers, &when); timers_check(&timers, "earliest"); diff --git a/ccan/ccan/timer/test/run-expiry.c b/ccan/ccan/timer/test/run-expiry.c index 1c276c2c9..39b5b5eaf 100644 --- a/ccan/ccan/timer/test/run-expiry.c +++ b/ccan/ccan/timer/test/run-expiry.c @@ -14,7 +14,7 @@ int main(void) timers_init(&timers, grains_to_time(1364984760903400ULL)); ok1(timers.base == 1364984760903400ULL); timer_init(&t); - timer_add(&timers, &t, grains_to_time(1364984761003398ULL)); + timer_addmono(&timers, &t, grains_to_time(1364984761003398ULL)); ok1(t.time == 1364984761003398ULL); ok1(timers.first == 1364984761003398ULL); ok1(!timers_expire(&timers, grains_to_time(1364984760903444ULL))); diff --git a/ccan/ccan/timer/test/run-ff.c b/ccan/ccan/timer/test/run-ff.c index 49c6e3744..37f035da4 100644 --- a/ccan/ccan/timer/test/run-ff.c +++ b/ccan/ccan/timer/test/run-ff.c @@ -3,10 +3,10 @@ #include #include -static struct timeabs timeabs_from_usec(unsigned long long usec) +static struct timemono timemono_from_usec(unsigned long long usec) { - struct timeabs epoch = { { 0, 0 } }; - return timeabs_add(epoch, time_from_usec(usec)); + struct timemono epoch = { { 0, 0 } }; + return timemono_add(epoch, time_from_usec(usec)); } int main(void) @@ -17,13 +17,13 @@ int main(void) /* This is how many tests you plan to run */ plan_tests(3); - timers_init(&timers, timeabs_from_usec(1364726722653919ULL)); + timers_init(&timers, timemono_from_usec(1364726722653919ULL)); timer_init(&t); - timer_add(&timers, &t, timeabs_from_usec(1364726722703919ULL)); - ok1(!timers_expire(&timers, timeabs_from_usec(1364726722653920ULL))); - expired = timers_expire(&timers, timeabs_from_usec(1364726725454187ULL)); + timer_addmono(&timers, &t, timemono_from_usec(1364726722703919ULL)); + ok1(!timers_expire(&timers, timemono_from_usec(1364726722653920ULL))); + expired = timers_expire(&timers, timemono_from_usec(1364726725454187ULL)); ok1(expired == &t); - ok1(!timers_expire(&timers, timeabs_from_usec(1364726725454187ULL))); + ok1(!timers_expire(&timers, timemono_from_usec(1364726725454187ULL))); timers_cleanup(&timers); /* This exits depending on whether all tests passed */ diff --git a/ccan/ccan/timer/test/run-original-corrupt.c b/ccan/ccan/timer/test/run-original-corrupt.c index 8bd2b428f..8a447c847 100644 --- a/ccan/ccan/timer/test/run-original-corrupt.c +++ b/ccan/ccan/timer/test/run-original-corrupt.c @@ -5,9 +5,9 @@ #include /* This is the original pre-cut-down dump. */ -int main(int argc, char *argv[]) +int main(void) { - struct timeabs when; + struct timemono when; struct timers timers; struct timer *timer; @@ -19,1611 +19,1611 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 18000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 158000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 12000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 13000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 161000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 25000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 39000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 71000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 33000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 171000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 188000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 61000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 90000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 22000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 20000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 30000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 176000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 94000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 16000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 17000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 124000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 179000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 32000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 161000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 31000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 64000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 12000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 149000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 31000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 22000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 17000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 67000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 115000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 54000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 32000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 84000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 24000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 187000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 172000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 129000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 45000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 163000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 28000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 27000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 65000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 71000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 61000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 15000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 78000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 16000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 36000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 191000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 75000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 46000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 21000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 37000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 73000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 40000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 124000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 45000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 14000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 72000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 58000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 133000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -1631,553 +1631,553 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 43000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 79000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 188000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 42000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 30000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 133000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 201000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 41000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 25000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 204000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 79000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 94000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 50000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 105000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 44000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 35000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 152000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 65000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 47000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 38000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 156000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 140000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 49000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 229000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 211000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 57000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 129000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 76000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2185,165 +2185,165 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 56000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 59000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 63000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 53000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 75000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 151000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 52000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 218000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2351,225 +2351,225 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 176000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 211000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 62000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 86000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 51000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 74000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 200000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 125000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 93000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 48000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 60000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 175000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 88000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 234000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2577,37 +2577,37 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 191000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2615,41 +2615,41 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 66000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 157000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2659,71 +2659,71 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 142000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 80000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 123000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 239000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 108000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 242000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2731,25 +2731,25 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 164000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2761,115 +2761,115 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 68000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 92000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 105000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 70000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2877,73 +2877,73 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 170000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 182000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 209000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 78000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 247000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -2951,49 +2951,49 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 206000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 153000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 171000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 91000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3003,35 +3003,35 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 82000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 145000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3039,19 +3039,19 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3059,33 +3059,33 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 221000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3093,11 +3093,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 136000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3105,53 +3105,53 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 106000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 238000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 81000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3159,15 +3159,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 205000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3177,15 +3177,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 138000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3195,31 +3195,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 132000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 77000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 258000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3227,63 +3227,63 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 69000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 241000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 74000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 185000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 83000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 240000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3293,7 +3293,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3301,79 +3301,79 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 194000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 266000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 87000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 195000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 249000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 262000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 217000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 228000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 167000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3383,7 +3383,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 229000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3401,15 +3401,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 97000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 192000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3423,99 +3423,99 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 116000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 85000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 155000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 202000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 265000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 216000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 184000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 107000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 89000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 115000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3523,31 +3523,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 147000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 98000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 106000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 148000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 257000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3557,15 +3557,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 173000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 177000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 102000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3573,15 +3573,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 166000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 232000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3591,23 +3591,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 189000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 252000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3621,27 +3621,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 110000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 113000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 267000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 159000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 174000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3653,39 +3653,39 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 130000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 232000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 224000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 168000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3695,17 +3695,17 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 197000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 231000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3727,21 +3727,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 274000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 169000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 99000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 122000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3755,11 +3755,11 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 223000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3767,23 +3767,23 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 213000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 178000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 264000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 134000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 210000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3791,57 +3791,57 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 245000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 135000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 215000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 230000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 150000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 154000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 109000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 244000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 203000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 160000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 196000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 95000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3855,51 +3855,51 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 226000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 292000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 112000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 128000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 162000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 143000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 180000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3907,41 +3907,41 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 96000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 131000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 256000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 183000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 104000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 100000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3957,7 +3957,7 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3965,27 +3965,27 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 127000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 101000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 114000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 190000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 119000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -3995,85 +3995,85 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 220000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 103000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 141000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 227000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 277000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 146000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 144000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 286000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 198000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 250000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 288000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 286000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 253000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -4081,61 +4081,61 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 249000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 137000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 207000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 208000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 193000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 118000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 165000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 222000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 121000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 181000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 267000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 295000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 255000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -4149,21 +4149,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 225000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 139000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 235000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 186000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -4175,15 +4175,15 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 219000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 214000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 233000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -4191,31 +4191,31 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 120000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 212000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 268000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 259000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 111000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 172000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 248000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); timer_earliest(&timers, &when); @@ -4231,21 +4231,21 @@ int main(int argc, char *argv[]) when.ts.tv_sec = 0; when.ts.tv_nsec = 299000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); when.ts.tv_sec = 0; when.ts.tv_nsec = 126000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 275000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); when.ts.tv_sec = 0; when.ts.tv_nsec = 199000000; timer = malloc(sizeof(*timer)); timer_init(timer); - timer_add(&timers, timer, when); + timer_addmono(&timers, timer, when); ok1(timers_check(&timers, NULL)); timer_earliest(&timers, &when); free(timers_expire(&timers, when)); diff --git a/ccan/ccan/timer/test/run.c b/ccan/ccan/timer/test/run.c index e2d467eb0..ca0435e30 100644 --- a/ccan/ccan/timer/test/run.c +++ b/ccan/ccan/timer/test/run.c @@ -1,25 +1,31 @@ #define CCAN_TIMER_DEBUG #include +#include + +#define time_mono() fake_mono_time + +static struct timemono fake_mono_time; + /* Include the C files directly. */ #include #include -static struct timeabs timeabs_from_nsec(unsigned long long nsec) +static struct timemono timemono_from_nsec(unsigned long long nsec) { - struct timeabs epoch = { { 0, 0 } }; - return timeabs_add(epoch, time_from_nsec(nsec)); + struct timemono epoch = { { 0, 0 } }; + return timemono_add(epoch, time_from_nsec(nsec)); } int main(void) { struct timers timers; struct timer t[64]; - struct timeabs earliest; + struct timemono earliest; uint64_t i; - struct timeabs epoch = { { 0, 0 } }; + const struct timemono epoch = { { 0, 0 } }; /* This is how many tests you plan to run */ - plan_tests(488); + plan_tests(495); timers_init(&timers, epoch); ok1(timers_check(&timers, NULL)); @@ -29,10 +35,10 @@ int main(void) /* timer_del can be called immediately after init. */ timer_del(&timers, &t[0]); - timer_add(&timers, &t[0], timeabs_from_nsec(1)); + timer_addmono(&timers, &t[0], timemono_from_nsec(1)); ok1(timers_check(&timers, NULL)); ok1(timer_earliest(&timers, &earliest)); - ok1(timeabs_eq(earliest, grains_to_time(t[0].time))); + ok1(timemono_eq(earliest, grains_to_time(t[0].time))); timer_del(&timers, &t[0]); ok1(timers_check(&timers, NULL)); ok1(!timer_earliest(&timers, &earliest)); @@ -43,10 +49,10 @@ int main(void) /* Check timer ordering. */ for (i = 0; i < 32; i++) { timer_init(&t[i*2]); - timer_add(&timers, &t[i*2], timeabs_from_nsec(1ULL << i)); + timer_addmono(&timers, &t[i*2], timemono_from_nsec(1ULL << i)); ok1(timers_check(&timers, NULL)); timer_init(&t[i*2+1]); - timer_add(&timers, &t[i*2+1], timeabs_from_nsec((1ULL << i) + 1)); + timer_addmono(&timers, &t[i*2+1], timemono_from_nsec((1ULL << i) + 1)); ok1(timers_check(&timers, NULL)); } @@ -68,9 +74,9 @@ int main(void) for (i = 0; i < 32; i++) { uint64_t exp = (uint64_t)TIMER_GRANULARITY << i; - timer_add(&timers, &t[i*2], timeabs_from_nsec(exp)); + timer_addmono(&timers, &t[i*2], timemono_from_nsec(exp)); ok1(timers_check(&timers, NULL)); - timer_add(&timers, &t[i*2+1], timeabs_from_nsec(exp + 1)); + timer_addmono(&timers, &t[i*2+1], timemono_from_nsec(exp + 1)); ok1(timers_check(&timers, NULL)); } @@ -90,7 +96,19 @@ int main(void) } ok1(!timer_earliest(&timers, &earliest)); - + ok1(timers_check(&timers, NULL)); + timers_cleanup(&timers); + + /* Relative timers. */ + timers_init(&timers, epoch); + fake_mono_time = timemono_from_nsec(TIMER_GRANULARITY); + timer_addrel(&timers, &t[0], time_from_sec(1)); + ok1(timer_earliest(&timers, &earliest)); + ok1(timers_check(&timers, NULL)); + ok1(earliest.ts.tv_sec == 1 && earliest.ts.tv_nsec == TIMER_GRANULARITY); + ok1(timers_expire(&timers, earliest) == &t[0]); + ok1(!timer_earliest(&timers, &earliest)); + ok1(timers_check(&timers, NULL)); timers_cleanup(&timers); /* This exits depending on whether all tests passed */ diff --git a/ccan/ccan/timer/timer.c b/ccan/ccan/timer/timer.c index 8d220a6a8..91f463939 100644 --- a/ccan/ccan/timer/timer.c +++ b/ccan/ccan/timer/timer.c @@ -12,15 +12,15 @@ struct timer_level { struct list_head list[PER_LEVEL]; }; -static uint64_t time_to_grains(struct timeabs t) +static uint64_t time_to_grains(struct timemono t) { return t.ts.tv_sec * ((uint64_t)1000000000 / TIMER_GRANULARITY) + (t.ts.tv_nsec / TIMER_GRANULARITY); } -static struct timeabs grains_to_time(uint64_t grains) +static struct timemono grains_to_time(uint64_t grains) { - struct timeabs t; + struct timemono t; t.ts.tv_sec = grains / (1000000000 / TIMER_GRANULARITY); t.ts.tv_nsec = (grains % (1000000000 / TIMER_GRANULARITY)) @@ -28,7 +28,7 @@ static struct timeabs grains_to_time(uint64_t grains) return t; } -void timers_init(struct timers *timers, struct timeabs start) +void timers_init(struct timers *timers, struct timemono start) { unsigned int i; @@ -79,7 +79,26 @@ static bool list_node_initted(const struct list_node *n) return n->prev == n; } -void timer_add(struct timers *timers, struct timer *t, struct timeabs when) +void timer_addrel(struct timers *timers, struct timer *t, struct timerel rel) +{ + assert(list_node_initted(&t->list)); + + t->time = time_to_grains(timemono_add(time_mono(), rel)); + +#if TIME_HAVE_MONOTONIC + assert(t->time >= timers->base); +#else + /* Added in the past? Treat it as imminent. */ + if (t->time < timers->base) + t->time = timers->base; +#endif + if (t->time < timers->first) + timers->first = t->time; + + timer_add_raw(timers, t); +} + +void timer_addmono(struct timers *timers, struct timer *t, struct timemono when) { assert(list_node_initted(&t->list)); @@ -95,7 +114,7 @@ void timer_add(struct timers *timers, struct timer *t, struct timeabs when) } /* FIXME: inline */ -void timer_del(struct timers *timers, struct timer *t) +void timer_del(struct timers *timers UNNEEDED, struct timer *t) { list_del_init(&t->list); } @@ -241,7 +260,7 @@ static bool update_first(struct timers *timers) return true; } -bool timer_earliest(struct timers *timers, struct timeabs *first) +bool timer_earliest(struct timers *timers, struct timemono *first) { if (!update_first(timers)) return false; @@ -298,7 +317,7 @@ static void timer_fast_forward(struct timers *timers, uint64_t time) } /* Returns an expired timer. */ -struct timer *timers_expire(struct timers *timers, struct timeabs expire) +struct timer *timers_expire(struct timers *timers, struct timemono expire) { uint64_t now = time_to_grains(expire); unsigned int off; diff --git a/ccan/ccan/timer/timer.h b/ccan/ccan/timer/timer.h index e678f7f7d..5c40a3bbc 100644 --- a/ccan/ccan/timer/timer.h +++ b/ccan/ccan/timer/timer.h @@ -29,9 +29,9 @@ struct timer; * Example: * struct timers timeouts; * - * timers_init(&timeouts, time_now()); + * timers_init(&timeouts, time_mono()); */ -void timers_init(struct timers *timers, struct timeabs start); +void timers_init(struct timers *timers, struct timemono start); /** * timers_cleanup - free allocations within timers struct. @@ -56,19 +56,39 @@ void timers_cleanup(struct timers *timers); void timer_init(struct timer *t); /** - * timer_add - insert a timer. + * timer_addrel - insert a relative timer. * @timers: the struct timers * @timer: the (initialized or timer_del'd) timer to add - * @when: when @timer expires. + * @rel: when @timer expires (relative). + * + * This efficiently adds @timer to @timers, to expire @rel (rounded to + * TIMER_GRANULARITY nanoseconds) after the current time. This + * is a convenient wrapper around timer_addmono(). + * + * Example: + * // Timeout in 100ms. + * timer_addrel(&timeouts, &t, time_from_msec(100)); + */ +void timer_addrel(struct timers *timers, struct timer *timer, struct timerel rel); + +/** + * timer_addmono - insert an absolute timer. + * @timers: the struct timers + * @timer: the (initialized or timer_del'd) timer to add + * @when: when @timer expires (absolute). * * This efficiently adds @timer to @timers, to expire @when (rounded to * TIMER_GRANULARITY nanoseconds). * + * Note that if @when is before time_mono(), then it will be set to expire + * immediately. + * * Example: * // Timeout in 100ms. - * timer_add(&timeouts, &t, timeabs_add(time_now(), time_from_msec(100))); + * timer_addmono(&timeouts, &t, timemono_add(time_mono(), time_from_msec(100))); */ -void timer_add(struct timers *timers, struct timer *timer, struct timeabs when); +void timer_addmono(struct timers *timers, struct timer *timer, + struct timemono when); /** * timer_del - remove a timer. @@ -94,10 +114,10 @@ void timer_del(struct timers *timers, struct timer *timer); * timer (rounded to TIMER_GRANULARITY nanoseconds), and returns true. * * Example: - * struct timeabs next = { { (time_t)-1ULL, -1UL } }; + * struct timemono next = { { (time_t)-1ULL, -1UL } }; * timer_earliest(&timeouts, &next); */ -bool timer_earliest(struct timers *timers, struct timeabs *first); +bool timer_earliest(struct timers *timers, struct timemono *first); /** * timers_expire - update timers structure and remove one expire timer. @@ -118,11 +138,11 @@ bool timer_earliest(struct timers *timers, struct timeabs *first); * Example: * struct timer *expired; * - * while ((expired = timers_expire(&timeouts, time_now())) != NULL) + * while ((expired = timers_expire(&timeouts, time_mono())) != NULL) * printf("Timer expired!\n"); * */ -struct timer *timers_expire(struct timers *timers, struct timeabs expire); +struct timer *timers_expire(struct timers *timers, struct timemono expire); /** * timers_check - check timer structure for consistency diff --git a/ccan/ccan/typesafe_cb/_info b/ccan/ccan/typesafe_cb/_info index 165852a3b..b4f379dd4 100644 --- a/ccan/ccan/typesafe_cb/_info +++ b/ccan/ccan/typesafe_cb/_info @@ -106,7 +106,7 @@ * // Silly game to find the longest chain of values. * int main(int argc, char *argv[]) * { - * int i, run = 1, num = argv[1] ? atoi(argv[1]) : 0; + * int i, run = 1, num = argc > 1 ? atoi(argv[1]) : 0; * * for (i = 1; i < 1024;) { * // Since run is an int, compiler checks "add" does too. diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c b/ccan/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c index 11d42f4c6..746facaef 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-cast_if_type-promotable.c @@ -3,12 +3,13 @@ static void _set_some_value(void *val) { + (void)val; } #define set_some_value(expr) \ _set_some_value(typesafe_cb_cast(void *, long, (expr))) -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL bool x = 0; diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c index c4033364d..c9d47c50b 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb-int.c @@ -15,9 +15,10 @@ void _callback(void (*fn)(void *arg), void *arg) void my_callback(int something); void my_callback(int something) { + (void)something; } -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL /* This fails due to arg, not due to cast. */ diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb.c index 81e36d7b8..5717f97be 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb.c @@ -3,6 +3,8 @@ static void _register_callback(void (*cb)(void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ @@ -10,9 +12,10 @@ static void _register_callback(void (*cb)(void *arg), void *arg) static void my_callback(char *p) { + (void)p; } -int main(int argc, char *argv[]) +int main(void) { char str[] = "hello world"; #ifdef FAIL diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c index 62b5f91e1..d85886c92 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast-multi.c @@ -23,9 +23,10 @@ struct other { static void take_any(struct any *any) { + (void)any; } -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL struct other diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c index d2e6f2ab4..7fa596cf2 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_cast.c @@ -4,12 +4,13 @@ void _set_some_value(void *val); void _set_some_value(void *val) { + (void)val; } #define set_some_value(expr) \ _set_some_value(typesafe_cb_cast(void *, unsigned long, (expr))) -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL int x = 0; diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c index 7d3530851..2100368f0 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_postargs.c @@ -3,15 +3,19 @@ static void _register_callback(void (*cb)(void *arg, int x), void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ _register_callback(typesafe_cb_postargs(void, void *, (cb), (arg), int), (arg)) static void my_callback(char *p, int x) { + (void)p; + (void)x; } -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL int *p; diff --git a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c index bd55c6722..d359a77f5 100644 --- a/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c +++ b/ccan/ccan/typesafe_cb/test/compile_fail-typesafe_cb_preargs.c @@ -3,6 +3,8 @@ static void _register_callback(void (*cb)(int x, void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ @@ -10,9 +12,11 @@ static void _register_callback(void (*cb)(int x, void *arg), void *arg) static void my_callback(int x, char *p) { + (void)p; + (void)x; } -int main(int argc, char *argv[]) +int main(void) { #ifdef FAIL int *p; diff --git a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c index 265de8b14..738ec96b2 100644 --- a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c +++ b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c @@ -5,12 +5,14 @@ static void _register_callback(void (*cb)(const void *arg), const void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ _register_callback(typesafe_cb(void, const void *, (cb), (arg)), (arg)) -int main(int argc, char *argv[]) +int main(void) { register_callback(NULL, "hello world"); return 0; diff --git a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c index aa50bad6a..bb71042c3 100644 --- a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c +++ b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-undefined.c @@ -5,6 +5,8 @@ static void _register_callback(void (*cb)(void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ @@ -12,6 +14,8 @@ static void _register_callback(void (*cb)(void *arg), void *arg) static void _register_callback_pre(void (*cb)(int x, void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback_pre(cb, arg) \ @@ -19,6 +23,8 @@ static void _register_callback_pre(void (*cb)(int x, void *arg), void *arg) static void _register_callback_post(void (*cb)(void *arg, int x), void *arg) { + (void)cb; + (void)arg; } #define register_callback_post(cb, arg) \ @@ -28,17 +34,22 @@ struct undefined; static void my_callback(struct undefined *undef) { + (void)undef; } static void my_callback_pre(int x, struct undefined *undef) { + (void)x; + (void)undef; } static void my_callback_post(struct undefined *undef, int x) { + (void)undef; + (void)x; } -int main(int argc, char *argv[]) +int main(void) { struct undefined *handle = NULL; diff --git a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c index f6a2bfecb..1cb1057d8 100644 --- a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c +++ b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-vars.c @@ -5,6 +5,8 @@ static void _register_callback(void (*cb)(void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback(cb, arg) \ @@ -12,6 +14,8 @@ static void _register_callback(void (*cb)(void *arg), void *arg) static void _register_callback_pre(void (*cb)(int x, void *arg), void *arg) { + (void)cb; + (void)arg; } #define register_callback_pre(cb, arg) \ @@ -19,6 +23,8 @@ static void _register_callback_pre(void (*cb)(int x, void *arg), void *arg) static void _register_callback_post(void (*cb)(void *arg, int x), void *arg) { + (void)cb; + (void)arg; } #define register_callback_post(cb, arg) \ @@ -28,17 +34,22 @@ struct undefined; static void my_callback(struct undefined *undef) { + (void)undef; } static void my_callback_pre(int x, struct undefined *undef) { + (void)x; + (void)undef; } static void my_callback_post(struct undefined *undef, int x) { + (void)x; + (void)undef; } -int main(int argc, char *argv[]) +int main(void) { struct undefined *handle = NULL; void (*cb)(struct undefined *undef) = my_callback; diff --git a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c index 4bb3b8bf1..bd7b7d653 100644 --- a/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c +++ b/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb_cast.c @@ -19,9 +19,10 @@ struct any { static void take_any(struct any *any) { + (void)any; } -int main(int argc, char *argv[]) +int main(void) { /* Otherwise we get unused warnings for these. */ struct foo *foo = NULL; diff --git a/ccan/ccan/typesafe_cb/test/run.c b/ccan/ccan/typesafe_cb/test/run.c index 79863db84..bebea400e 100644 --- a/ccan/ccan/typesafe_cb/test/run.c +++ b/ccan/ccan/typesafe_cb/test/run.c @@ -89,7 +89,7 @@ struct callback_postargs cb_postargs = { typesafe_cb_postargs(void, void *, my_callback_postargs, (char *)(intptr_t)"hi", int, int), "hi" }; -int main(int argc, char *argv[]) +int main(void) { void *p = &dummy; unsigned long l = (unsigned long)p; diff --git a/ccan/tools/configurator/configurator.c b/ccan/tools/configurator/configurator.c index 67dadc61e..6ec30bd6d 100644 --- a/ccan/tools/configurator/configurator.c +++ b/ccan/tools/configurator/configurator.c @@ -3,6 +3,9 @@ * * Copyright 2011 Rusty Russell . MIT license. * + * c12r_err, c12r_errx functions copied from ccan/err/err.c + * Copyright Rusty Russell . CC0 (Public domain) License. + * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights @@ -21,23 +24,46 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ +#define _POSIX_C_SOURCE 200809L /* For pclose, popen, strdup */ + +#include #include +#include #include #include -#include -#include -#include -#include -#include -#include #include +#ifdef _MSC_VER +#define popen _popen +#define pclose _pclose +#endif + +#ifdef _MSC_VER +#define DEFAULT_COMPILER "cl" +/* Note: Dash options avoid POSIX path conversion when used under msys bash + * and are therefore preferred to slash (e.g. -nologo over /nologo) + * Note: Disable Warning 4200 "nonstandard extension used : zero-sized array + * in struct/union" for flexible array members. + */ +#define DEFAULT_FLAGS "-nologo -Zi -W4 -wd4200 " \ + "-D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS" +#define DEFAULT_OUTPUT_EXE_FLAG "-Fe:" +#else #define DEFAULT_COMPILER "cc" #define DEFAULT_FLAGS "-g3 -ggdb -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition" +#define DEFAULT_OUTPUT_EXE_FLAG "-o" +#endif #define OUTPUT_FILE "configurator.out" #define INPUT_FILE "configuratortest.c" +#ifdef _WIN32 +#define DIR_SEP "\\" +#else +#define DIR_SEP "/" +#endif + +static const char *progname = ""; static int verbose; enum test_style { @@ -62,7 +88,7 @@ struct test { }; static struct test tests[] = { - { "HAVE_32BIT_OFF_T", DEFINES_EVERYTHING|EXECUTE, NULL, NULL, + { "HAVE_32BIT_OFF_T", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, NULL, NULL, "#include \n" "int main(void) {\n" " return sizeof(off_t) == 4 ? 0 : 1;\n" @@ -167,7 +193,7 @@ static struct test tests[] = { { "HAVE_COMPOUND_LITERALS", INSIDE_MAIN, NULL, NULL, "int *foo = (int[]) { 1, 2, 3, 4 };\n" "return foo[0] ? 0 : 1;" }, - { "HAVE_FCHDIR", DEFINES_EVERYTHING|EXECUTE, NULL, NULL, + { "HAVE_FCHDIR", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, NULL, NULL, "#include \n" "#include \n" "#include \n" @@ -188,7 +214,7 @@ static struct test tests[] = { " if (arg == 4)\n" " warnx(\"warn %u\", arg);\n" "}\n" }, - { "HAVE_FILE_OFFSET_BITS", DEFINES_EVERYTHING|EXECUTE, + { "HAVE_FILE_OFFSET_BITS", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, "HAVE_32BIT_OFF_T", NULL, "#define _FILE_OFFSET_BITS 64\n" "#include \n" @@ -196,8 +222,9 @@ static struct test tests[] = { " return sizeof(off_t) == 8 ? 0 : 1;\n" "}\n" }, { "HAVE_FOR_LOOP_DECLARATION", INSIDE_MAIN, NULL, NULL, - "for (int i = 0; i < argc; i++) { return 0; };\n" - "return 1;" }, + "int ret = 1;\n" + "for (int i = 0; i < argc; i++) { ret = 0; };\n" + "return ret;" }, { "HAVE_FLEXIBLE_ARRAY_MEMBER", OUTSIDE_MAIN, NULL, NULL, "struct foo { unsigned int x; int arr[]; };" }, { "HAVE_GETPAGESIZE", DEFINES_FUNC, NULL, NULL, @@ -234,7 +261,7 @@ static struct test tests[] = { "static void *func(int fd) {\n" " return mmap(0, 65536, PROT_READ, MAP_SHARED, fd, 0);\n" "}" }, - { "HAVE_PROC_SELF_MAPS", DEFINES_EVERYTHING|EXECUTE, NULL, NULL, + { "HAVE_PROC_SELF_MAPS", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, NULL, NULL, "#include \n" "#include \n" "#include \n" @@ -271,7 +298,8 @@ static struct test tests[] = { " return __stop_mysec - __start_mysec;\n" "}\n" }, { "HAVE_STACK_GROWS_UPWARDS", DEFINES_EVERYTHING|EXECUTE, NULL, NULL, - "static long nest(const void *base, unsigned int i)\n" + "#include \n" + "static ptrdiff_t nest(const void *base, unsigned int i)\n" "{\n" " if (i == 0)\n" " return (const char *)&i - (const char *)base;\n" @@ -319,7 +347,7 @@ static struct test tests[] = { "-Werror -fopenmp" }, { "HAVE_VALGRIND_MEMCHECK_H", OUTSIDE_MAIN, NULL, NULL, "#include \n" }, - { "HAVE_UCONTEXT", DEFINES_EVERYTHING|EXECUTE, + { "HAVE_UCONTEXT", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, NULL, NULL, "#include \n" "static int x = 0;\n" @@ -340,7 +368,7 @@ static struct test tests[] = { " return (x == 3) ? 0 : 1;\n" "}\n" }, - { "HAVE_POINTER_SAFE_MAKECONTEXT", DEFINES_EVERYTHING|EXECUTE, + { "HAVE_POINTER_SAFE_MAKECONTEXT", DEFINES_EVERYTHING|EXECUTE|MAY_NOT_COMPILE, "HAVE_UCONTEXT", NULL, "#include \n" "#include \n" @@ -367,71 +395,95 @@ static struct test tests[] = { }, }; -static char *grab_fd(int fd) +static void c12r_err(int eval, const char *fmt, ...) { - int ret; - size_t max, size = 0; + int err_errno = errno; + va_list ap; + + fprintf(stderr, "%s: ", progname); + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + fprintf(stderr, ": %s\n", strerror(err_errno)); + exit(eval); +} + +static void c12r_errx(int eval, const char *fmt, ...) +{ + va_list ap; + + fprintf(stderr, "%s: ", progname); + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + fprintf(stderr, "\n"); + exit(eval); +} + +static size_t fcopy(FILE *fsrc, FILE *fdst) +{ + char buffer[BUFSIZ]; + size_t rsize, wsize; + size_t copied = 0; + + while ((rsize = fread(buffer, 1, BUFSIZ, fsrc)) > 0) { + wsize = fwrite(buffer, 1, rsize, fdst); + copied += wsize; + if (wsize != rsize) + break; + } + + return copied; +} + +static char *grab_stream(FILE *file) +{ + size_t max, ret, size = 0; char *buffer; - max = 16384; - buffer = malloc(max+1); - while ((ret = read(fd, buffer + size, max - size)) > 0) { + max = BUFSIZ; + buffer = malloc(max); + while ((ret = fread(buffer+size, 1, max - size, file)) == max - size) { size += ret; - if (size == max) - buffer = realloc(buffer, max *= 2); + buffer = realloc(buffer, max *= 2); } - if (ret < 0) - err(1, "reading from command"); + size += ret; + if (ferror(file)) + c12r_err(1, "reading from command"); buffer[size] = '\0'; return buffer; } static char *run(const char *cmd, int *exitstatus) { - pid_t pid; - int p[2]; + static const char redir[] = " 2>&1"; + size_t cmdlen; + char *cmdredir; + FILE *cmdout; char *ret; - int status; - if (pipe(p) != 0) - err(1, "creating pipe"); + cmdlen = strlen(cmd); + cmdredir = malloc(cmdlen + sizeof(redir)); + memcpy(cmdredir, cmd, cmdlen); + memcpy(cmdredir + cmdlen, redir, sizeof(redir)); - pid = fork(); - if (pid == -1) - err(1, "forking"); + cmdout = popen(cmdredir, "r"); + if (!cmdout) + c12r_err(1, "popen \"%s\"", cmdredir); - if (pid == 0) { - if (dup2(p[1], STDOUT_FILENO) != STDOUT_FILENO - || dup2(p[1], STDERR_FILENO) != STDERR_FILENO - || close(p[0]) != 0 - || close(STDIN_FILENO) != 0 - || open("/dev/null", O_RDONLY) != STDIN_FILENO) - exit(128); + free(cmdredir); - status = system(cmd); - if (WIFEXITED(status)) - exit(WEXITSTATUS(status)); - /* Here's a hint... */ - exit(128 + WTERMSIG(status)); - } - - close(p[1]); - ret = grab_fd(p[0]); - /* This shouldn't fail... */ - if (waitpid(pid, &status, 0) != pid) - err(1, "Failed to wait for child"); - close(p[0]); - if (WIFEXITED(status)) - *exitstatus = WEXITSTATUS(status); - else - *exitstatus = -WTERMSIG(status); + ret = grab_stream(cmdout); + *exitstatus = pclose(cmdout); return ret; } -static char *connect_args(const char *argv[], const char *extra) +static char *connect_args(const char *argv[], const char *outflag, + const char *files) { - unsigned int i, len = strlen(extra) + 1; + unsigned int i; char *ret; + size_t len = strlen(outflag) + strlen(files) + 1; for (i = 1; argv[i]; i++) len += 1 + strlen(argv[i]); @@ -441,10 +493,12 @@ static char *connect_args(const char *argv[], const char *extra) for (i = 1; argv[i]; i++) { strcpy(ret + len, argv[i]); len += strlen(argv[i]); - if (argv[i+1]) + if (argv[i+1] || *outflag) ret[len++] = ' '; } - strcpy(ret + len, extra); + strcpy(ret + len, outflag); + len += strlen(outflag); + strcpy(ret + len, files); return ret; } @@ -483,7 +537,7 @@ static bool run_test(const char *cmd, struct test *test) char *dep; /* Space-separated dependencies, could be ! for inverse. */ - while ((len = strcspn(deps, " "))) { + while ((len = strcspn(deps, " ")) != 0) { bool positive = true; if (deps[len]) { dep = strdup(deps); @@ -509,9 +563,9 @@ static bool run_test(const char *cmd, struct test *test) } } - outf = fopen(INPUT_FILE, "w"); + outf = fopen(INPUT_FILE, verbose > 1 ? "w+" : "w"); if (!outf) - err(1, "creating %s", INPUT_FILE); + c12r_err(1, "creating %s", INPUT_FILE); fprintf(outf, "%s", PRE_BOILERPLATE); switch (test->style & ~(EXECUTE|MAY_NOT_COMPILE)) { @@ -540,11 +594,13 @@ static bool run_test(const char *cmd, struct test *test) abort(); } - fclose(outf); - if (verbose > 1) - if (system("cat " INPUT_FILE) == -1) - ; + if (verbose > 1) { + fseek(outf, 0, SEEK_SET); + fcopy(outf, stdout); + } + + fclose(outf); newcmd = strdup(cmd); @@ -576,8 +632,8 @@ static bool run_test(const char *cmd, struct test *test) status ? "fail" : "warning", test->name, status, output); if ((test->style & EXECUTE) && !(test->style & MAY_NOT_COMPILE)) - errx(1, "Test for %s did not compile:\n%s", - test->name, output); + c12r_errx(1, "Test for %s did not compile:\n%s", + test->name, output); test->answer = false; free(output); } else { @@ -585,10 +641,10 @@ static bool run_test(const char *cmd, struct test *test) free(output); /* We run INSIDE_MAIN tests for sanity checking. */ if ((test->style & EXECUTE) || (test->style & INSIDE_MAIN)) { - output = run("./" OUTPUT_FILE, &status); + output = run("." DIR_SEP OUTPUT_FILE, &status); if (!(test->style & EXECUTE) && status != 0) - errx(1, "Test for %s failed with %i:\n%s", - test->name, status, output); + c12r_errx(1, "Test for %s failed with %i:\n%s", + test->name, status, output); if (verbose && status) printf("%s exited %i\n", test->name, status); free(output); @@ -611,36 +667,53 @@ int main(int argc, const char *argv[]) unsigned int i; const char *default_args[] = { "", DEFAULT_COMPILER, DEFAULT_FLAGS, NULL }; + const char *outflag = DEFAULT_OUTPUT_EXE_FLAG; - if (argc > 1) { + if (argc > 0) + progname = argv[0]; + + while (argc > 1) { if (strcmp(argv[1], "--help") == 0) { - printf("Usage: configurator [-v] [ ...]\n" - " will have \"-o \" appended\n" - "Default: %s %s\n", - DEFAULT_COMPILER, DEFAULT_FLAGS); + printf("Usage: configurator [-v] [-O] [ ...]\n" + " will have \" \" appended\n" + "Default: %s %s %s\n", + DEFAULT_COMPILER, DEFAULT_FLAGS, + DEFAULT_OUTPUT_EXE_FLAG); exit(0); } - if (strcmp(argv[1], "-v") == 0) { + if (strncmp(argv[1], "-O", 2) == 0) { argc--; argv++; - verbose = 1; + outflag = argv[1] + 2; + if (!*outflag) { + fprintf(stderr, + "%s: option requires an argument -- O\n", + argv[0]); + exit(1); + } + } else if (strcmp(argv[1], "-v") == 0) { + argc--; + argv++; + verbose++; } else if (strcmp(argv[1], "-vv") == 0) { argc--; argv++; - verbose = 2; + verbose += 2; + } else { + break; } } if (argc == 1) argv = default_args; - cmd = connect_args(argv, " -o " OUTPUT_FILE " " INPUT_FILE); + cmd = connect_args(argv, outflag, OUTPUT_FILE " " INPUT_FILE); for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) run_test(cmd, &tests[i]); free(cmd); - unlink(OUTPUT_FILE); - unlink(INPUT_FILE); + remove(OUTPUT_FILE); + remove(INPUT_FILE); printf("/* Generated by CCAN configurator */\n" "#ifndef CCAN_CONFIG_H\n" @@ -649,9 +722,10 @@ int main(int argc, const char *argv[]) printf("#define _GNU_SOURCE /* Always use GNU extensions. */\n"); printf("#endif\n"); printf("#define CCAN_COMPILER \"%s\"\n", argv[1]); - cmd = connect_args(argv+1, ""); - printf("#define CCAN_CFLAGS \"%s\"\n\n", cmd); + cmd = connect_args(argv + 1, "", ""); + printf("#define CCAN_CFLAGS \"%s\"\n", cmd); free(cmd); + printf("#define CCAN_OUTPUT_EXE_CFLAG \"%s\"\n\n", outflag); /* This one implies "#include