Changeset e49bb542 in rtems


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

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

  • libcsupport/Makefile.am, libcsupport/src/newlibc.c: Split libc_init() into a separate file to avoid linkage dependencies on newlibc.c which in turn pulls in fclose() and other C library methods.
  • libcsupport/src/newlibc_init.c: New file.
Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r1f27c1f7 re49bb542  
     12008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/Makefile.am, libcsupport/src/newlibc.c: Split libc_init()
     4        into a separate file to avoid linkage dependencies on newlibc.c which
     5        in turn pulls in fclose() and other C library methods.
     6        * libcsupport/src/newlibc_init.c: New file.
     7
    182008-08-18      Ralf Corsepius <ralf.corsepius@rtems.org>
    29
  • cpukit/libcsupport/Makefile.am

    r1f27c1f7 re49bb542  
    9595LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
    9696    src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
    97     src/newlibc.c src/newlibc_exit.c src/no_posix.c src/no_libc.c src/utsname.c
     97    src/newlibc.c src/newlibc_init.c src/newlibc_exit.c src/no_posix.c \
     98    src/no_libc.c src/utsname.c
    9899
    99100BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
  • cpukit/libcsupport/src/newlibc.c

    r1f27c1f7 re49bb542  
    5151int _fwalk(struct _reent *ptr, int (*function) (FILE *) );
    5252
    53 struct _reent    libc_global_reent
    54     __ATTRIBUTE_IMPURE_PTR__ = _REENT_INIT(libc_global_reent);
     53extern struct _reent    libc_global_reent __ATTRIBUTE_IMPURE_PTR__;
    5554
    5655/*
     
    174173}
    175174
    176 /*
    177  *  Init libc for CYGNUS newlib
    178  *
    179  *  Set up _REENT to use our global libc_global_reent.
    180  *  (newlib provides a global of its own, but we prefer our own name for it)
    181  *
    182  *  If reentrancy is desired (which it should be), then
    183  *  we install the task extension hooks to maintain the
    184  *  newlib reentrancy global variable _REENT on task
    185  *  create, delete, switch, exit, etc.
    186  *
    187  */
    188 
    189 
    190 void
    191 libc_init(void)
    192 {
    193   _REENT = &libc_global_reent;
    194 
    195   _Thread_Set_libc_reent (&_REENT);
    196 }
    197 
    198175#endif
Note: See TracChangeset for help on using the changeset viewer.