HomeSort by: relevance | last modified time | path
    Searched defs:timespec_get (Results 1 - 2 of 2) sorted by relevancy

  /src/lib/libc/gen/
timespec_get.c 1 /* $NetBSD: timespec_get.c,v 1.3 2025/04/21 08:57:32 nia Exp $ */
34 __RCSID("$NetBSD: timespec_get.c,v 1.3 2025/04/21 08:57:32 nia Exp $");
40 /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */
43 timespec_get(struct timespec *ts, int base) function
  /src/tests/lib/libc/gen/
t_timespec_get.c 61 ATF_TC(timespec_get); variable
62 ATF_TC_HEAD(timespec_get, tc)
64 atf_tc_set_md_var(tc, "descr", "Basic tests for timespec_get");
67 ATF_TC_BODY(timespec_get, tc)
71 ATF_REQUIRE_EQ(timespec_get(&ts, TIME_UTC), TIME_UTC);
86 ATF_REQUIRE_EQ(timespec_get(&ts, INT_MAX), 0);
99 ATF_REQUIRE_EQ(timespec_get(&ts, TIME_MONOTONIC), TIME_MONOTONIC);
111 ATF_REQUIRE_EQ(timespec_get(&ts2, TIME_MONOTONIC), TIME_MONOTONIC);
118 ATF_TP_ADD_TC(tp, timespec_get);

Completed in 31 milliseconds