summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/samples/ChangeLog7
-rw-r--r--testsuites/samples/nsecs/init.c13
2 files changed, 14 insertions, 6 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog
index 34498e45f5..a390f4123b 100644
--- a/testsuites/samples/ChangeLog
+++ b/testsuites/samples/ChangeLog
@@ -1,5 +1,12 @@
2007-04-05 Joel Sherrill <joel@OARcorp.com>
+ * nsecs/init.c: Provide timespec manipulation routines in the
+ SuperCore. Use them everywhere possible. Perhaps they should be part
+ of the public API so this test and others can use them without
+ peeking into the bowels.
+
+2007-04-05 Joel Sherrill <joel@OARcorp.com>
+
* loopback/init.c: Change all obsoleted CONFIGURE_TEST_NEEDS_XXX
configuration constants to CONFIGURE_APPLICATION_NEEDS_XXX.
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c
index fe98433967..d95617f1a4 100644
--- a/testsuites/samples/nsecs/init.c
+++ b/testsuites/samples/nsecs/init.c
@@ -1,7 +1,8 @@
/*
* Nanoseconds accuracy timestamp test
- *
- * COPYRIGHT (c) 1989-2007.
+ */
+
+/* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,15 +35,15 @@ void subtract_em(
struct timespec *t
)
{
- extern void _POSIX_Timespec_subtract(
- const struct timespec *the_start,
+ extern void _Timespec_Subtract(
+ const struct timespec *start,
const struct timespec *end,
- struct timespec *result
+ struct timespec *result
);
t->tv_sec = 0;
t->tv_nsec = 0;
- _POSIX_Timespec_subtract( start, stop, t );
+ _Timespec_Subtract( start, stop, t );
}
volatile int i;