Changeset 83734c9d in rtems


Ignore:
Timestamp:
May 27, 2008, 4:47:13 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
288b1f9
Parents:
7c4cdeb9
Message:

2008-05-27 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Call fini() as part of exit(). This avoids atexit() being a required function.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7c4cdeb9 r83734c9d  
     12008-05-27      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/newlibc_exit.c, score/src/threadhandler.c: Call
     4        fini() as part of exit(). This avoids atexit() being a required
     5        function.
     6
    172008-05-27      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/libcsupport/src/newlibc_exit.c

    r7c4cdeb9 r83734c9d  
    121121
    122122#if !defined(RTEMS_UNIX)
    123 void _exit(int status)
     123  #define EXIT_SYMBOL _exit
     124#else
     125  #define EXIT_SYMBOL exit
     126#endif
     127
     128void EXIT_SYMBOL(int status)
    124129{
     130  extern void _fini( void );
     131  _fini();
     132
    125133  /*
    126134   *  We need to do the exit processing on the global reentrancy structure.
     
    134142}
    135143
    136 #else
    137 
    138 void exit(int status)
    139 {
    140   libc_wrapup();
    141   rtems_shutdown_executive(status);
    142   for (;;) ; /* to avoid warnings */
    143 }
    144 #endif
    145144
    146145#endif
  • cpukit/score/src/threadhandler.c

    r7c4cdeb9 r83734c9d  
    131131  if (!doneCons) /* && (volatile void *)_init) */
    132132  {
    133     extern void _fini( void );
    134133    _init ();
    135     atexit( _fini );
    136134  }
    137135#endif
Note: See TracChangeset for help on using the changeset viewer.