Changeset d1f7204 in rtems


Ignore:
Timestamp:
Nov 6, 2018, 12:04:11 PM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e292beba
Parents:
e71c097a
git-author:
Sebastian Huber <sebastian.huber@…> (11/06/18 12:04:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/07/18 06:52:55)
Message:

config: Fix CONFIGURE_DISABLE_NEWLIB_REENTRANCY

Move the getreent() variant using the global reentrancy structure to
librtemscpu.a. This avoids a definition of
getreent() in the
configuration module if CONFIGURE_DISABLE_NEWLIB_REENTRANCY is defined.
This avoids all the dependencies which would be exposed by a reference
to the global reentrancy structure.

This change is only possible since the default configuration moved to
librtemsdefaultconfig.a recently.

Location:
cpukit
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    re71c097a rd1f7204  
    152152librtemscpu_a_SOURCES += libcsupport/src/getppid.c
    153153librtemscpu_a_SOURCES += libcsupport/src/getpwent.c
     154librtemscpu_a_SOURCES += libcsupport/src/getreentglobal.c
    154155librtemscpu_a_SOURCES += libcsupport/src/getrusage.c
    155156librtemscpu_a_SOURCES += libcsupport/src/__gettod.c
  • cpukit/include/rtems/confdefs.h

    re71c097a rd1f7204  
    22432243#endif
    22442244
    2245 #if defined(RTEMS_NEWLIB)
    2246   struct _reent *__getreent(void)
    2247   {
    2248     #ifdef CONFIGURE_DISABLE_NEWLIB_REENTRANCY
    2249       return _GLOBAL_REENT;
    2250     #else
    2251       return _Thread_Get_executing()->libc_reent;
    2252     #endif
    2253   }
     2245#if defined(RTEMS_NEWLIB) && !defined(CONFIGURE_DISABLE_NEWLIB_REENTRANCY)
     2246struct _reent *__getreent(void)
     2247{
     2248  return _Thread_Get_executing()->libc_reent;
     2249}
    22542250#endif
    22552251
Note: See TracChangeset for help on using the changeset viewer.