Changeset 8d8daef4 in rtems


Ignore:
Timestamp:
Dec 13, 2007, 3:45:43 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
fbfb5926
Parents:
75b5713
Message:

2007-12-13 Joel Sherrill <joel.sherrill@…>

  • libcsupport/preinstall.am, posix/preinstall.am, posix/src/aio.c, posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c, posix/src/clockgettime.c, posix/src/clocksetenableattr.c, posix/src/clocksettime.c, posix/src/devctl.c, posix/src/pthreadcreate.c, posix/src/pthreadgetcpuclockid.c, posix/src/types.c, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Eliminate POSIX_NOT_IMPLEMENTED(). Return ENOSYS instead.
Location:
cpukit
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r75b5713 r8d8daef4  
     12007-12-13      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * libcsupport/preinstall.am, posix/preinstall.am, posix/src/aio.c,
     4        posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c,
     5        posix/src/clockgettime.c, posix/src/clocksetenableattr.c,
     6        posix/src/clocksettime.c, posix/src/devctl.c,
     7        posix/src/pthreadcreate.c, posix/src/pthreadgetcpuclockid.c,
     8        posix/src/types.c, rtems/preinstall.am, sapi/Makefile.am,
     9        sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Eliminate
     10        POSIX_NOT_IMPLEMENTED(). Return ENOSYS instead.
     11
    1122007-12-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    213
  • cpukit/libcsupport/preinstall.am

    r75b5713 r8d8daef4  
    99DISTCLEANFILES = $(PREINSTALL_DIRS)
    1010
     11all-local: $(TMPINSTALL_FILES)
     12
     13TMPINSTALL_FILES =
     14CLEANFILES = $(TMPINSTALL_FILES)
     15
    1116all-am: $(PREINSTALL_FILES)
    1217
    1318PREINSTALL_FILES =
    14 CLEANFILES = $(PREINSTALL_FILES)
     19CLEANFILES += $(PREINSTALL_FILES)
     20
     21$(PROJECT_LIB)/$(dirstamp):
     22        @$(MKDIR_P) $(PROJECT_LIB)
     23        @: > $(PROJECT_LIB)/$(dirstamp)
     24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
     25
     26$(PROJECT_LIB)/libcsupport.a: libcsupport.a $(PROJECT_LIB)/$(dirstamp)
     27        $(INSTALL_DATA) $< $(PROJECT_LIB)/libcsupport.a
     28TMPINSTALL_FILES += $(PROJECT_LIB)/libcsupport.a
    1529
    1630$(PROJECT_INCLUDE)/rtems/$(dirstamp):
  • cpukit/posix/preinstall.am

    r75b5713 r8d8daef4  
    99DISTCLEANFILES = $(PREINSTALL_DIRS)
    1010
     11all-local: $(TMPINSTALL_FILES)
     12
     13TMPINSTALL_FILES =
     14CLEANFILES = $(TMPINSTALL_FILES)
     15
    1116all-am: $(PREINSTALL_FILES)
    1217
    1318PREINSTALL_FILES =
    14 CLEANFILES = $(PREINSTALL_FILES)
     19CLEANFILES += $(PREINSTALL_FILES)
     20
     21$(PROJECT_LIB)/$(dirstamp):
     22        @$(MKDIR_P) $(PROJECT_LIB)
     23        @: > $(PROJECT_LIB)/$(dirstamp)
     24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
    1525
    1626$(PROJECT_INCLUDE)/$(dirstamp):
     
    2030
    2131if LIBPOSIX
     32$(PROJECT_LIB)/libposix.a: libposix.a $(PROJECT_LIB)/$(dirstamp)
     33        $(INSTALL_DATA) $< $(PROJECT_LIB)/libposix.a
     34TMPINSTALL_FILES += $(PROJECT_LIB)/libposix.a
     35
    2236if HAS_PTHREADS
    2337$(PROJECT_INCLUDE)/sched.h: include/sched.h $(PROJECT_INCLUDE)/$(dirstamp)
  • cpukit/posix/src/aio.c

    r75b5713 r8d8daef4  
    88
    99#include <aio.h>
     10#include <errno.h>
    1011
    1112#include <rtems/system.h>
    1213#include <rtems/seterr.h>
    13 
    14 int POSIX_NOT_IMPLEMENTED();
    1514
    1615/*PAGE
     
    2322)
    2423{
    25   return POSIX_NOT_IMPLEMENTED();
     24  rtems_set_errno_and_return_minus_one( ENOSYS );
    2625}
    2726
     
    3534)
    3635{
    37   return POSIX_NOT_IMPLEMENTED();
     36  rtems_set_errno_and_return_minus_one( ENOSYS );
    3837}
    3938
     
    5049)
    5150{
    52   return POSIX_NOT_IMPLEMENTED();
     51  rtems_set_errno_and_return_minus_one( ENOSYS );
    5352}
    5453
     
    6261)
    6362{
    64   return POSIX_NOT_IMPLEMENTED();
     63  rtems_set_errno_and_return_minus_one( ENOSYS );
    6564}
    6665
     
    7574)
    7675{
    77   return POSIX_NOT_IMPLEMENTED();
     76  rtems_set_errno_and_return_minus_one( ENOSYS );
    7877}
    7978
     
    8887)
    8988{
    90   return POSIX_NOT_IMPLEMENTED();
     89  rtems_set_errno_and_return_minus_one( ENOSYS );
    9190}
    9291
     
    102101)
    103102{
    104   return POSIX_NOT_IMPLEMENTED();
     103  rtems_set_errno_and_return_minus_one( ENOSYS );
    105104}
    106105
     
    115114)
    116115{
    117   return POSIX_NOT_IMPLEMENTED();
     116  rtems_set_errno_and_return_minus_one( ENOSYS );
    118117}
  • cpukit/posix/src/clockgetcpuclockid.c

    r75b5713 r8d8daef4  
    2828)
    2929{
    30   return POSIX_NOT_IMPLEMENTED();
     30  rtems_set_errno_and_return_minus_one( ENOSYS );
    3131}
  • cpukit/posix/src/clockgetenableattr.c

    r75b5713 r8d8daef4  
    2828)
    2929{
    30   return POSIX_NOT_IMPLEMENTED();
     30  rtems_set_errno_and_return_minus_one( ENOSYS );
    3131}
  • cpukit/posix/src/clockgettime.c

    r75b5713 r8d8daef4  
    5050#ifdef _POSIX_THREAD_CPUTIME
    5151    case CLOCK_THREAD_CPUTIME:
    52       return POSIX_NOT_IMPLEMENTED();
     52      rtems_set_errno_and_return_minus_one( ENOSYS );
    5353      break;
    5454#endif
  • cpukit/posix/src/clocksetenableattr.c

    r75b5713 r8d8daef4  
    2828)
    2929{
    30   return POSIX_NOT_IMPLEMENTED();
     30  rtems_set_errno_and_return_minus_one( ENOSYS );
    3131}
  • cpukit/posix/src/clocksettime.c

    r75b5713 r8d8daef4  
    4343#ifdef _POSIX_CPUTIME
    4444    case CLOCK_PROCESS_CPUTIME:
    45       return POSIX_NOT_IMPLEMENTED();
     45      rtems_set_errno_and_return_minus_one( ENOSYS );
    4646      break;
    4747#endif
     
    4949#ifdef _POSIX_THREAD_CPUTIME
    5050    case CLOCK_THREAD_CPUTIME:
    51       return POSIX_NOT_IMPLEMENTED();
     51      rtems_set_errno_and_return_minus_one( ENOSYS );
    5252      break;
    5353#endif
  • cpukit/posix/src/devctl.c

    r75b5713 r8d8daef4  
    88
    99#include <devctl.h>
     10#include <errno.h>
    1011
    1112#include <rtems/system.h>
     13#include <rtems/seterr.h>
    1214
    1315/*PAGE
     
    2325)
    2426{
    25   return POSIX_NOT_IMPLEMENTED();
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2628}
  • cpukit/posix/src/pthreadcreate.c

    r75b5713 r8d8daef4  
    5959#if 0
    6060  int  cputime_clock_allowed;  /* see time.h */
    61   POSIX_NOT_IMPLEMENTED();
     61  rtems_set_errno_and_return_minus_one( ENOSYS );
    6262#endif
    6363
  • cpukit/posix/src/pthreadgetcpuclockid.c

    r75b5713 r8d8daef4  
    2020
    2121#include <rtems/system.h>
     22#include <rtems/seterr.h>
    2223
    2324int pthread_getcpuclockid(
     
    2627)
    2728{
    28   return POSIX_NOT_IMPLEMENTED();
     29  rtems_set_errno_and_return_minus_one( ENOSYS );
    2930}
  • cpukit/posix/src/types.c

    r75b5713 r8d8daef4  
    1818#include <rtems/seterr.h>
    1919
    20 /*
    21  * TEMPORARY
    22  */
    23 
    24 #include <assert.h>
    25 
    26 int POSIX_NOT_IMPLEMENTED()
    27 {
    28   assert( 0 );
    29   return 0;
    30 }
    31 
    32 /*
    33  * END OF TEMPORARY
    34  */
  • cpukit/rtems/preinstall.am

    r75b5713 r8d8daef4  
    99DISTCLEANFILES = $(PREINSTALL_DIRS)
    1010
     11all-local: $(TMPINSTALL_FILES)
     12
     13TMPINSTALL_FILES =
     14CLEANFILES = $(TMPINSTALL_FILES)
     15
    1116all-am: $(PREINSTALL_FILES)
    1217
    1318PREINSTALL_FILES =
    14 CLEANFILES = $(PREINSTALL_FILES)
     19CLEANFILES += $(PREINSTALL_FILES)
     20
     21$(PROJECT_LIB)/$(dirstamp):
     22        @$(MKDIR_P) $(PROJECT_LIB)
     23        @: > $(PROJECT_LIB)/$(dirstamp)
     24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
    1525
    1626$(PROJECT_INCLUDE)/$(dirstamp):
     
    1828        @: > $(PROJECT_INCLUDE)/$(dirstamp)
    1929PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
     30
     31$(PROJECT_LIB)/librtems.a: librtems.a $(PROJECT_LIB)/$(dirstamp)
     32        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtems.a
     33TMPINSTALL_FILES += $(PROJECT_LIB)/librtems.a
    2034
    2135$(PROJECT_INCLUDE)/rtems.h: include/rtems.h $(PROJECT_INCLUDE)/$(dirstamp)
  • cpukit/sapi/Makefile.am

    r75b5713 r8d8daef4  
    2020AM_CPPFLAGS += -D__RTEMS_INSIDE__
    2121
     22project_lib_LIBRARIES = libsapi.a
    2223noinst_LIBRARIES = libsapi.a
    2324libsapi_a_SOURCES = src/debug.c src/extension.c src/extensioncreate.c \
  • cpukit/sapi/preinstall.am

    r75b5713 r8d8daef4  
    99DISTCLEANFILES = $(PREINSTALL_DIRS)
    1010
     11all-local: $(TMPINSTALL_FILES)
     12
     13TMPINSTALL_FILES =
     14CLEANFILES = $(TMPINSTALL_FILES)
     15
    1116all-am: $(PREINSTALL_FILES)
    1217
    1318PREINSTALL_FILES =
    14 CLEANFILES = $(PREINSTALL_FILES)
     19CLEANFILES += $(PREINSTALL_FILES)
     20
     21$(PROJECT_LIB)/$(dirstamp):
     22        @$(MKDIR_P) $(PROJECT_LIB)
     23        @: > $(PROJECT_LIB)/$(dirstamp)
     24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
    1525
    1626$(PROJECT_INCLUDE)/rtems/$(dirstamp):
     
    5565PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl
    5666
     67$(PROJECT_LIB)/libsapi.a: libsapi.a $(PROJECT_LIB)/$(dirstamp)
     68        $(INSTALL_DATA) $< $(PROJECT_LIB)/libsapi.a
     69TMPINSTALL_FILES += $(PROJECT_LIB)/libsapi.a
     70
  • cpukit/score/Makefile.am

    r75b5713 r8d8daef4  
    6565AM_CPPFLAGS += -D__RTEMS_INSIDE__
    6666
     67project_lib_LIBRARIES = libscore.a
    6768noinst_LIBRARIES = libscore.a
    6869libscore_a_SOURCES =
  • cpukit/score/preinstall.am

    r75b5713 r8d8daef4  
    99DISTCLEANFILES += $(PREINSTALL_DIRS)
    1010
     11all-local: $(TMPINSTALL_FILES)
     12
     13TMPINSTALL_FILES =
     14CLEANFILES = $(TMPINSTALL_FILES)
     15
    1116all-am: $(PREINSTALL_FILES)
    1217
    1318PREINSTALL_FILES =
    14 CLEANFILES = $(PREINSTALL_FILES)
     19CLEANFILES += $(PREINSTALL_FILES)
     20
     21$(PROJECT_LIB)/$(dirstamp):
     22        @$(MKDIR_P) $(PROJECT_LIB)
     23        @: > $(PROJECT_LIB)/$(dirstamp)
     24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
    1525
    1626$(PROJECT_INCLUDE)/rtems/$(dirstamp):
     
    274284PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadmp.inl
    275285endif
     286$(PROJECT_LIB)/libscore.a: libscore.a $(PROJECT_LIB)/$(dirstamp)
     287        $(INSTALL_DATA) $< $(PROJECT_LIB)/libscore.a
     288TMPINSTALL_FILES += $(PROJECT_LIB)/libscore.a
     289
Note: See TracChangeset for help on using the changeset viewer.