summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/time
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/time')
-rw-r--r--testsuites/psxtests/psxhdrs/time/asctime.c29
-rw-r--r--testsuites/psxtests/psxhdrs/time/asctime_r.c30
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock.c28
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_getcpuclockid.c34
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_getenable_attr.c37
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_getres.c34
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_gettime.c34
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_setenable_attr.c40
-rw-r--r--testsuites/psxtests/psxhdrs/time/clock_settime.c34
-rw-r--r--testsuites/psxtests/psxhdrs/time/ctime.c29
-rw-r--r--testsuites/psxtests/psxhdrs/time/ctime_r.c30
-rw-r--r--testsuites/psxtests/psxhdrs/time/difftime.c33
-rw-r--r--testsuites/psxtests/psxhdrs/time/gmtime.c29
-rw-r--r--testsuites/psxtests/psxhdrs/time/gmtime_r.c30
-rw-r--r--testsuites/psxtests/psxhdrs/time/localtime.c29
-rw-r--r--testsuites/psxtests/psxhdrs/time/localtime_r.c30
-rw-r--r--testsuites/psxtests/psxhdrs/time/mktime.c39
-rw-r--r--testsuites/psxtests/psxhdrs/time/nanosleep.c36
-rw-r--r--testsuites/psxtests/psxhdrs/time/strftime.c33
-rw-r--r--testsuites/psxtests/psxhdrs/time/time.c28
-rw-r--r--testsuites/psxtests/psxhdrs/time/timer_create.c42
-rw-r--r--testsuites/psxtests/psxhdrs/time/timer_delete.c33
-rw-r--r--testsuites/psxtests/psxhdrs/time/timer_getoverrun.c33
-rw-r--r--testsuites/psxtests/psxhdrs/time/timer_gettime.c34
-rw-r--r--testsuites/psxtests/psxhdrs/time/timer_settime.c44
25 files changed, 832 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/time/asctime.c b/testsuites/psxtests/psxhdrs/time/asctime.c
new file mode 100644
index 0000000000..201bac0c7f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/asctime.c
@@ -0,0 +1,29 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ char *buffer;
+ struct tm timestruct;
+
+ buffer = asctime( &timestruct );
+
+ return (buffer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/asctime_r.c b/testsuites/psxtests/psxhdrs/time/asctime_r.c
new file mode 100644
index 0000000000..574795ca1d
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/asctime_r.c
@@ -0,0 +1,30 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ char *buffer_pointer;
+ struct tm timestruct;
+ char buffer[ 80 ];
+
+ buffer_pointer = asctime_r( &timestruct, buffer );
+
+ return (buffer_pointer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock.c b/testsuites/psxtests/psxhdrs/time/clock.c
new file mode 100644
index 0000000000..3f7a50dc13
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock.c
@@ -0,0 +1,28 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ clock_t clock_ticks;
+
+ clock_ticks = clock();
+
+ return (clock_ticks != -1);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_getcpuclockid.c b/testsuites/psxtests/psxhdrs/time/clock_getcpuclockid.c
new file mode 100644
index 0000000000..066912e9b8
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_getcpuclockid.c
@@ -0,0 +1,34 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_CPUTIME
+#error "rtems is supposed to have clock_getcpuclockid"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ pid_t pid = 0;
+ clockid_t clock_id;
+ int result;
+
+ result = clock_getcpuclockid( pid, &clock_id );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_getenable_attr.c b/testsuites/psxtests/psxhdrs/time/clock_getenable_attr.c
new file mode 100644
index 0000000000..d3c73ba291
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_getenable_attr.c
@@ -0,0 +1,37 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_CPUTIME
+#error "rtems is supposed to have clock_getenable_attr"
+#endif
+#ifndef _POSIX_THREAD_CPUTIME
+#error "rtems is supposed to have clock_getenable_attr"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ int attr;
+ int result;
+
+ result = clock_getenable_attr( clock_id, &attr );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_getres.c b/testsuites/psxtests/psxhdrs/time/clock_getres.c
new file mode 100644
index 0000000000..d298aec9fd
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_getres.c
@@ -0,0 +1,34 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have clock_getres"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ struct timespec res;
+ int result;
+
+ result = clock_getres( clock_id, &res );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_gettime.c b/testsuites/psxtests/psxhdrs/time/clock_gettime.c
new file mode 100644
index 0000000000..a12f0247d5
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_gettime.c
@@ -0,0 +1,34 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have clock_gettime"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ struct timespec tp;
+ int result;
+
+ result = clock_gettime( clock_id, &tp );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_setenable_attr.c b/testsuites/psxtests/psxhdrs/time/clock_setenable_attr.c
new file mode 100644
index 0000000000..8d0bd70eb6
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_setenable_attr.c
@@ -0,0 +1,40 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_CPUTIME
+#error "rtems is supposed to have clock_setenable_attr"
+#endif
+#ifndef _POSIX_THREAD_CPUTIME
+#error "rtems is supposed to have clock_setenable_attr"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ int attr;
+ int result;
+
+ attr = CLOCK_ENABLED;
+ attr = CLOCK_DISABLED;
+
+ result = clock_setenable_attr( clock_id, attr );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/clock_settime.c b/testsuites/psxtests/psxhdrs/time/clock_settime.c
new file mode 100644
index 0000000000..49a713d449
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/clock_settime.c
@@ -0,0 +1,34 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have clock_settime"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ struct timespec tp;
+ int result;
+
+ result = clock_settime( clock_id, &tp );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/ctime.c b/testsuites/psxtests/psxhdrs/time/ctime.c
new file mode 100644
index 0000000000..7091a66d16
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/ctime.c
@@ -0,0 +1,29 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ char *buffer;
+ time_t time;
+
+ buffer = ctime( &time );
+
+ return (buffer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/ctime_r.c b/testsuites/psxtests/psxhdrs/time/ctime_r.c
new file mode 100644
index 0000000000..2f9156fb4f
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/ctime_r.c
@@ -0,0 +1,30 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ char *buffer_pointer;
+ char buffer[ 80 ];
+ time_t time;
+
+ buffer_pointer = ctime_r( &time, buffer );
+
+ return (buffer_pointer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/difftime.c b/testsuites/psxtests/psxhdrs/time/difftime.c
new file mode 100644
index 0000000000..7bc58c1e2a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/difftime.c
@@ -0,0 +1,33 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t time1;
+ time_t time2;
+ double difference;
+
+ time1 = 0;
+ time2 = 0;
+
+ difference = difftime( time1, time2 );
+
+ return (difference != 0.0);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/gmtime.c b/testsuites/psxtests/psxhdrs/time/gmtime.c
new file mode 100644
index 0000000000..229ba12734
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/gmtime.c
@@ -0,0 +1,29 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t time;
+ struct tm *timestruct;
+
+ timestruct = gmtime( &time );
+
+ return (timestruct != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/gmtime_r.c b/testsuites/psxtests/psxhdrs/time/gmtime_r.c
new file mode 100644
index 0000000000..19a94a1317
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/gmtime_r.c
@@ -0,0 +1,30 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t time;
+ struct tm *timestruct_pointer;
+ struct tm timestruct;
+
+ timestruct_pointer = gmtime_r( &time, &timestruct );
+
+ return (timestruct_pointer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/localtime.c b/testsuites/psxtests/psxhdrs/time/localtime.c
new file mode 100644
index 0000000000..0504829cd1
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/localtime.c
@@ -0,0 +1,29 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t time;
+ struct tm *timestruct;
+
+ timestruct = localtime( &time );
+
+ return (timestruct != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/localtime_r.c b/testsuites/psxtests/psxhdrs/time/localtime_r.c
new file mode 100644
index 0000000000..340a2757f6
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/localtime_r.c
@@ -0,0 +1,30 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t time;
+ struct tm *timestruct_pointer;
+ struct tm timestruct;
+
+ timestruct_pointer = localtime_r( &time, &timestruct );
+
+ return (timestruct_pointer != NULL);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/mktime.c b/testsuites/psxtests/psxhdrs/time/mktime.c
new file mode 100644
index 0000000000..56b835fc8a
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/mktime.c
@@ -0,0 +1,39 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ struct tm timestruct;
+ time_t time_encoded;
+
+ timestruct.tm_sec = 0;
+ timestruct.tm_min = 0;
+ timestruct.tm_hour = 0;
+ timestruct.tm_mday = 1;
+ timestruct.tm_mon = 0;
+ timestruct.tm_year = 0;
+ timestruct.tm_wday = 0;
+ timestruct.tm_yday = 0;
+ timestruct.tm_isdst = 0;
+
+ time_encoded = mktime( &timestruct );
+
+ return (time_encoded != -1);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/nanosleep.c b/testsuites/psxtests/psxhdrs/time/nanosleep.c
new file mode 100644
index 0000000000..bd8bb1ed34
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/nanosleep.c
@@ -0,0 +1,36 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have nanosleep"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ struct timespec rqtp;
+ struct timespec rmtp;
+ int result;
+
+ rqtp.tv_sec = 0;
+ rqtp.tv_nsec = 0;
+ result = nanosleep( &rqtp, &rmtp );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/strftime.c b/testsuites/psxtests/psxhdrs/time/strftime.c
new file mode 100644
index 0000000000..20b5922b41
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/strftime.c
@@ -0,0 +1,33 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ size_t length;
+ size_t max_length;
+ char buffer[ 80 ];
+ struct tm timestruct;
+
+ max_length = sizeof( buffer );
+
+ length = strftime( buffer, max_length, "%A", &timestruct );
+
+ return (length != 0);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/time.c b/testsuites/psxtests/psxhdrs/time/time.c
new file mode 100644
index 0000000000..c12e09ebf2
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/time.c
@@ -0,0 +1,28 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+int test( void );
+
+int test( void )
+{
+ time_t new_time;
+
+ new_time = time( &new_time );
+
+ return (new_time != -1);
+}
diff --git a/testsuites/psxtests/psxhdrs/time/timer_create.c b/testsuites/psxtests/psxhdrs/time/timer_create.c
new file mode 100644
index 0000000000..b60c819420
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/timer_create.c
@@ -0,0 +1,42 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have timer_create"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ clockid_t clock_id = 0;
+ timer_t timerid = 0;
+ struct sigevent evp;
+ int result;
+
+ evp.sigev_notify = SIGEV_NONE;
+ evp.sigev_notify = SIGEV_SIGNAL;
+ evp.sigev_notify = SIGEV_THREAD;
+ evp.sigev_signo = SIGALRM;
+ evp.sigev_value.sival_int = 0;
+ evp.sigev_value.sival_ptr = NULL;
+
+ result = timer_create( clock_id, &evp, &timerid );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/timer_delete.c b/testsuites/psxtests/psxhdrs/time/timer_delete.c
new file mode 100644
index 0000000000..0a95e29139
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/timer_delete.c
@@ -0,0 +1,33 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have timer_delete"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ timer_t timerid = 0;
+ int result;
+
+ result = timer_delete( timerid );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/timer_getoverrun.c b/testsuites/psxtests/psxhdrs/time/timer_getoverrun.c
new file mode 100644
index 0000000000..1bb9b1a887
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/timer_getoverrun.c
@@ -0,0 +1,33 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have timer_getoverrun"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ timer_t timerid = 0;
+ int result;
+
+ result = timer_getoverrun( timerid );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/timer_gettime.c b/testsuites/psxtests/psxhdrs/time/timer_gettime.c
new file mode 100644
index 0000000000..ee265743c0
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/timer_gettime.c
@@ -0,0 +1,34 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have timer_gettime"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ timer_t timerid = 0;
+ struct itimerspec value;
+ int result;
+
+ result = timer_gettime( timerid, &value );
+
+ return result;
+}
diff --git a/testsuites/psxtests/psxhdrs/time/timer_settime.c b/testsuites/psxtests/psxhdrs/time/timer_settime.c
new file mode 100644
index 0000000000..d5981f7bca
--- /dev/null
+++ b/testsuites/psxtests/psxhdrs/time/timer_settime.c
@@ -0,0 +1,44 @@
+/*
+ * This test file is used to verify that the header files associated with
+ * invoking this function are correct.
+ *
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <time.h>
+
+#ifndef _POSIX_TIMERS
+#error "rtems is supposed to have timer_settime"
+#endif
+
+int test( void );
+
+int test( void )
+{
+ timer_t timerid = 0;
+ int flags;
+ struct itimerspec value;
+ struct itimerspec ovalue;
+ int result;
+
+ value.it_interval.tv_sec = 0;
+ value.it_interval.tv_nsec = 0;
+ value.it_value.tv_sec = 0;
+ value.it_value.tv_nsec = 0;
+
+ flags = TIMER_ABSTIME;
+ flags = CLOCK_REALTIME;
+
+ result = timer_settime( timerid, flags, &value, &ovalue );
+
+ return result;
+}