Changeset f73fc29 in rtems


Ignore:
Timestamp:
Aug 18, 2008, 7:18:52 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
3ad0c50
Parents:
6dcf06e
Message:

2008-08-18 Joel Sherrill <joel.sherrill@…>

  • itron/include/rtems/itron/task.h, itron/src/def_cyc.c, itron/src/task.c, libcsupport/src/newlibc_exit.c, libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c, posix/include/rtems/posix/pthread.h, posix/src/pthread.c, posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h, rtems/src/tasks.c, score/include/rtems/score/stack.h, score/inline/rtems/score/stack.inl, score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix various nested-externs warnings.
Location:
cpukit
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6dcf06e rf73fc29  
     12008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
     4        itron/src/task.c, libcsupport/src/newlibc_exit.c,
     5        libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c,
     6        posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
     7        posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h,
     8        rtems/src/tasks.c, score/include/rtems/score/stack.h,
     9        score/inline/rtems/score/stack.inl,
     10        score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix
     11        various nested-externs warnings.
     12
    1132008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    214
  • cpukit/itron/include/rtems/itron/task.h

    r6dcf06e rf73fc29  
    6565ITRON_EXTERN uint32_t     _ITRON_Task_Number_of_initialization_tasks;
    6666
     67/**
     68 *  When the user configures a set of ITRON API initialization tasks,
     69 *  This variable will point to the method used to initialize them.
     70 * 
     71 *  @note It is instantiated and initialized by confdefs.h based upon
     72 *        application requirements.
     73 */
     74extern void (*_ITRON_Initialize_user_tasks_p)(void);
    6775
    6876/*
  • cpukit/itron/src/def_cyc.c

    r6dcf06e rf73fc29  
    4141  timeInterval = pk_dcyc->cyctim / 1000;
    4242  object->delta_interval = timeInterval;
     43  _Watchdog_Initialize(
     44    object,
     45    pk_dcyc->cychdr,
     46    cycno,
     47    pk_dcyc->exinf
     48  );
    4349#endif
    44   _Watchdog_Initialize(
    45          object,
    46          pk_dcyc->cychdr,
    47          cycno,
    48          pk_dcyc->exinf);
    4950  _Watchdog_Deactivate(object);
    5051
  • cpukit/itron/src/task.c

    r6dcf06e rf73fc29  
    9797void _ITRON_Task_Initialize_user_tasks( void )
    9898{
    99   extern void (*_ITRON_Initialize_user_tasks_p)(void);
    10099  if ( _ITRON_Initialize_user_tasks_p )
    101100    (*_ITRON_Initialize_user_tasks_p)();
  • cpukit/libcsupport/src/newlibc_exit.c

    r6dcf06e rf73fc29  
    122122#if !defined(RTEMS_UNIX)
    123123  #define EXIT_SYMBOL _exit
     124
     125  #if defined(__USE_INIT_FINI__)
     126    extern void _fini( void );
     127  #endif
    124128#else
    125129  #define EXIT_SYMBOL exit
     
    133137   */
    134138  #if defined(__USE_INIT_FINI__)
    135     extern void _fini( void );
    136139    _fini();
    137140  #endif
  • cpukit/libcsupport/src/sync.c

    r6dcf06e rf73fc29  
    7171}
    7272
     73/*
     74 * libc_global_reent is not prototyped in any .h files.
     75 * We have to extern it here.
     76 */
     77extern struct _reent libc_global_reent;
     78
    7379void sync(void)
    7480{
    75   extern struct _reent libc_global_reent;
    7681
    7782  /*
  • cpukit/libfs/src/imfs/imfs_fchmod.c

    r6dcf06e rf73fc29  
    3131  uid_t          st_uid;
    3232#endif
    33    int IMFS_memfile_write(
    34       IMFS_jnode_t          *the_jnode,
    35       off_t                  start,
    36       const unsigned char   *source,
    37       unsigned int           length
    38    );
    39 
    4033
    4134  jnode = loc->node_access;
  • cpukit/posix/include/rtems/posix/pthread.h

    r6dcf06e rf73fc29  
    4949
    5050extern const pthread_attr_t _POSIX_Threads_Default_attributes;
     51
     52/**
     53 *  When the user configures a set of POSIX API initialization threads,
     54 *  This variable will point to the method used to initialize them.
     55 * 
     56 *  @note It is instantiated and initialized by confdefs.h based upon
     57 *        application requirements.
     58 */
     59extern void (*_POSIX_Threads_Initialize_user_threads_p)(void);
    5160
    5261/*
  • cpukit/posix/src/pthread.c

    r6dcf06e rf73fc29  
    273273void _POSIX_Threads_Initialize_user_threads( void )
    274274{
    275   extern void (*_POSIX_Threads_Initialize_user_threads_p)(void);
    276275  if ( _POSIX_Threads_Initialize_user_threads_p )
    277276    (*_POSIX_Threads_Initialize_user_threads_p)();
  • cpukit/posix/src/sysconf.c

    r6dcf06e rf73fc29  
    2121#include <rtems/seterr.h>
    2222#include <rtems/score/tod.h>
     23#include <rtems/libio_.h>
    2324
    2425#include <sys/param.h>
     
    3940
    4041    case _SC_OPEN_MAX: {
    41         extern uint32_t   rtems_libio_number_iops;
    4242        return rtems_libio_number_iops;
    4343      }
  • cpukit/rtems/include/rtems/rtems/tasks.h

    r6dcf06e rf73fc29  
    229229
    230230/**
     231 *  When the user configures a set of Classic API initialization tasks,
     232 *  This variable will point to the method used to initialize them.
     233 * 
     234 *  @note It is instantiated and initialized by confdefs.h based upon
     235 *        application requirements.
     236 */
     237extern void (*_RTEMS_tasks_Initialize_user_tasks_p)(void);
     238
     239/**
    231240 *  @brief _RTEMS_tasks_Manager_initialization
    232241 *
  • cpukit/rtems/src/tasks.c

    r6dcf06e rf73fc29  
    303303void _RTEMS_tasks_Initialize_user_tasks( void )
    304304{
    305   extern void (*_RTEMS_tasks_Initialize_user_tasks_p)(void);
    306305  if ( _RTEMS_tasks_Initialize_user_tasks_p )
    307306    (*_RTEMS_tasks_Initialize_user_tasks_p)();
  • cpukit/score/include/rtems/score/stack.h

    r6dcf06e rf73fc29  
    4949}   Stack_Control;
    5050
     51/**
     52 *  This variable contains the the minimum stack size;
     53 *
     54 *  @note It is instantiated and set by User Configuration via confdefs.h.
     55 */
     56extern uint32_t rtems_minimum_stack_size;
     57
    5158#ifndef __RTEMS_APPLICATION__
    5259#include <rtems/score/stack.inl>
  • cpukit/score/inline/rtems/score/stack.inl

    r6dcf06e rf73fc29  
    4848RTEMS_INLINE_ROUTINE uint32_t _Stack_Minimum (void)
    4949{
    50   extern uint32_t rtems_minimum_stack_size;
    5150  return rtems_minimum_stack_size;
    5251}
  • cpukit/score/inline/rtems/score/thread.inl

    r6dcf06e rf73fc29  
    151151  #include <rtems/bspIo.h>
    152152  #include <rtems/fatal.h>
     153  #include <rtems/stackchk.h>
    153154  #include <rtems/score/sysstate.h>
    154155  #include <rtems/score/heap.h>
     156
     157  /*
     158   * This is currently not defined in any .h file, so we have to
     159   * extern it here.
     160   */
     161  extern Heap_Control  RTEMS_Malloc_Heap;
    155162#endif
    156163
    157164RTEMS_INLINE_ROUTINE void _Thread_Disable_dispatch( void )
    158165{
    159   extern boolean rtems_stack_checker_is_blown( void );
    160   extern void malloc_walk(size_t, size_t);
    161 
    162166  /*
    163167   *  This check is very brutal to system performance but is very helpful
     
    185189  #if defined(RTEMS_HEAVY_MALLOC_DEBUG)
    186190    if ( _Thread_Dispatch_disable_level == 1 ) {
    187       extern Heap_Control  RTEMS_Malloc_Heap;
    188191      _Heap_Walk( &RTEMS_Malloc_Heap,99, FALSE );
    189192    }
  • cpukit/score/src/threadhandler.c

    r6dcf06e rf73fc29  
    3333#if defined(__USE_INIT_FINI__)
    3434#include <stdlib.h> /* for atexit() */
     35#endif
     36
     37#if defined(__USE_INIT_FINI__)
     38  extern void _init(void);
     39#endif
     40#if defined(__USE__MAIN__)
     41  extern void _main(void);
    3542#endif
    3643
     
    7077  static char doneConstructors;
    7178  char doneCons;
    72 #endif
    73 #if defined(__USE_INIT_FINI__)
    74   extern void _init(void);
    75 #endif
    76 #if defined(__USE__MAIN__)
    77   extern void _main(void);
    7879#endif
    7980
Note: See TracChangeset for help on using the changeset viewer.