[rtems commit] posix: Remove clock_getenable_attr() and clock_setenable_attr()

Joel Sherrill joel at rtems.org
Mon Jan 18 23:35:06 UTC 2016


Module:    rtems
Branch:    master
Commit:    e39cdb875ce7458787b0be173f2f7893a774a673
Changeset: http://git.rtems.org/rtems/commit/?id=e39cdb875ce7458787b0be173f2f7893a774a673

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Jan 18 14:28:00 2016 -0600

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.

---

 cpukit/posix/Makefile.am              |  3 +--
 cpukit/posix/src/clockgetenableattr.c | 40 -----------------------------------
 cpukit/posix/src/clocksetenableattr.c | 40 -----------------------------------
 3 files changed, 1 insertion(+), 82 deletions(-)

diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am
index 89621fe..5a63076 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 f37984b..0000000
--- 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 ac15f31..0000000
--- 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 );
-}



More information about the vc mailing list