summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-01-18 14:28:00 -0600
committerJoel Sherrill <joel@rtems.org>2016-01-18 14:28:00 -0600
commite39cdb875ce7458787b0be173f2f7893a774a673 (patch)
tree416cace7a5615149676367983f24daa39e0db9af
parentChase Newlib sys/types.h / sys/select.h changes (diff)
downloadrtems-e39cdb875ce7458787b0be173f2f7893a774a673.tar.bz2
posix: Remove clock_getenable_attr() and clock_setenable_attr()
These were not implemented and it does not appear that they were ever officially part of an approved POSIX standard. They were likely part of the Draft 8 of POSIX 1003.1b that RTEMS pthreads were initially based upon. closes #2531.
-rw-r--r--cpukit/posix/Makefile.am3
-rw-r--r--cpukit/posix/src/clockgetenableattr.c40
-rw-r--r--cpukit/posix/src/clocksetenableattr.c40
3 files changed, 1 insertions, 82 deletions
diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am
index 89621fee59..5a63076cc7 100644
--- a/cpukit/posix/Makefile.am
+++ b/cpukit/posix/Makefile.am
@@ -194,8 +194,7 @@ libposix_a_SOURCES += src/pspin.c src/pspindestroy.c src/pspininit.c \
src/pspinunlock.c
## TIME_C_FILES
-libposix_a_SOURCES += src/adjtime.c \
- src/clockgetcpuclockid.c src/clockgetenableattr.c src/clocksetenableattr.c
+libposix_a_SOURCES += src/adjtime.c src/clockgetcpuclockid.c
## TIMER_C_FILES
libposix_a_SOURCES += src/ptimer.c src/timercreate.c src/timerdelete.c \
diff --git a/cpukit/posix/src/clockgetenableattr.c b/cpukit/posix/src/clockgetenableattr.c
deleted file mode 100644
index f37984b64b..0000000000
--- a/cpukit/posix/src/clockgetenableattr.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @file
- *
- * @brief Clock get Enable Attribute Access
- * @ingroup POSIXAPI
- */
-
-/*
- * COPYRIGHT (c) 1989-2007.
- * 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.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <time.h>
-#include <errno.h>
-
-#include <rtems/system.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/thread.h>
-
-#include <rtems/seterr.h>
-
-/*
- * 20.1.5 CPU-time Clock Attribute Access, P1003.4b/D8, p. 58
- */
-
-int clock_getenable_attr(
- clockid_t clock_id,
- int *attr
-)
-{
- rtems_set_errno_and_return_minus_one( ENOSYS );
-}
diff --git a/cpukit/posix/src/clocksetenableattr.c b/cpukit/posix/src/clocksetenableattr.c
deleted file mode 100644
index ac15f31ca4..0000000000
--- a/cpukit/posix/src/clocksetenableattr.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * @file
- *
- * @brief Clock set Enable Attribute Access
- * @ingroup POSIXAPI
- */
-
-/*
- * COPYRIGHT (c) 1989-2007.
- * 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.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <time.h>
-#include <errno.h>
-
-#include <rtems/system.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/thread.h>
-
-#include <rtems/seterr.h>
-
-/*
- * 20.1.5 CPU-time Clock Attribute Access, P1003.4b/D8, p. 58
- */
-
-int clock_setenable_attr(
- clockid_t clock_id,
- int attr
-)
-{
- rtems_set_errno_and_return_minus_one( ENOSYS );
-}