summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/newlibc_reent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support _REENT_THREAD_LOCAL Newlib configurationMatt Joyce2022-07-211-0/+6
| | | | | | | | | In case the Newlib _REENT_THREAD_LOCAL configuration option is enabled, the struct _reent is not defined (there is only a forward declaration in <sys/reent.h>). Instead, the usual members of struct _reent are available as dedicatd thread-local storage objects. Update #4560.
* Remove superfluous <rtems/score/wkspace.h> includesSebastian Huber2021-04-201-1/+0
|
* Canonicalize config.h includeSebastian Huber2020-04-161-1/+1
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* Require __getreent()Sebastian Huber2015-11-251-9/+0
| | | | | This function is used by Newlib since 2013-07-09 (Git commit 9b51cd8c6b9cdd067d9648a7ab952884019c56a5).
* basdefs.h: Add and use RTEMS_UNUSEDSebastian Huber2015-10-261-1/+1
|
* score: Simplify thread control initializationSebastian Huber2014-04-151-24/+2
| | | | | | | | | | | The thread control block contains fields that point to application configuration dependent memory areas, like the scheduler information, the API control blocks, the user extension context table, the RTEMS notepads and the Newlib re-entrancy support. Account for these areas in the configuration and avoid extra workspace allocations for these areas. This helps also to avoid heap fragementation and reduces the per thread memory due to a reduced heap allocation overhead.
* score: Thread life cycle re-implementationSebastian Huber2014-03-311-5/+8
| | | | | | | | | | | | | | | | | | | The thread deletion is now supported on SMP. This change fixes the following PRs: PR1814: SMP race condition between stack free and dispatch PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract() The POSIX cleanup handler are now called in the right context (should be called in the context of the terminating thread). http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html Add a user extension the reflects a thread termination event. This is used to reclaim the Newlib reentrancy structure (may use file operations), the POSIX cleanup handlers and the POSIX key destructors.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber2013-08-081-1/+0
|
* score: Create thread implementation headerSebastian Huber2013-07-261-0/+1
| | | | | | | | Move implementation specific parts of thread.h and thread.inl into new header file threadimpl.h. The thread.h contains now only the application visible API. Remove superfluous header file includes from various files.
* Include missing <string.h>Sebastian Huber2013-07-231-0/+1
|
* libcsupport: Include missing header fileSebastian Huber2013-07-221-0/+1
|
* score: Changes due to Newlib __DYNAMIC_REENT__Sebastian Huber2013-07-171-0/+2
| | | | | | | | | | | | | Delete _Thread_libc_reent and add __getreent() instead according to __DYNAMIC_REENT__ define. For SMP configurations __DYNAMIC_REENT__ must be defined. A Newlib including the following patch is required: 2013-07-09 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/include/sys/config.h (__DYNAMIC_REENT__): Define for RTEMS.
* libcsupport: Use _reclaim_reent()Sebastian Huber2013-07-171-28/+1
| | | | | | | | | A Newlib including the following patch is required: 2013-04-25 Sebastian Huber <sebastian.huber@embedded-brains.de> * libc/stdio/local.h (_STDIO_CLOSE_PER_REENT_STD_STREAMS): New define. * libc/stdio/findfp.c (_STDIO_CLOSE_PER_REENT_STD_STREAMS): Use define.
* libcsupport: Remove superfluous assignmentsSebastian Huber2013-04-261-51/+15
| | | | Remove superfluous declaractions, defines, comments and includes.
* libcsupport: Make newlib_free_buffers() staticSebastian Huber2013-04-261-6/+1
|
* libcsupport: Delete unused newlib_begin_hook()Sebastian Huber2013-04-261-11/+0
|
* libcsupport: Delete REENT_MALLOCED defineSebastian Huber2013-04-261-27/+5
|
* libcsupport: Use copyright notice of original fileSebastian Huber2013-04-261-0/+2
|
* libcsupport: Doxygen enhancement task #2Alex Ivanov2012-12-091-2/+7
| | | | http://www.google-melange.com/gci/task/view/google/gci2012/8017203
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 2009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-10-141-4/+0
| | | | * libcsupport/src/newlibc_reent.c: Eliminate RTEMS_UNIX.
* 2009-09-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-261-2/+2
| | | | | | * libcsupport/include/rtems/libcsupport.h, libcsupport/src/newlibc_reent.c: Eliminate use of deprecated rtems_extension.
* Add __attribute__((unused)) to function arguments.Ralf Corsepius2009-09-151-1/+1
|
* 2008-09-17 Miao Yan <yanmiaobest@gmail.com>Joel Sherrill2008-09-171-0/+174
* Makefile.am, preinstall.am, libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio.h, libcsupport/src/base_fs.c, libcsupport/src/libio_init.c, libcsupport/src/newlibc_exit.c, libcsupport/src/newlibc_init.c, libcsupport/src/sync.c, libfs/Makefile.am, libfs/src/imfs/deviceio.c, sapi/include/confdefs.h: Merge GSOC project code to add simple device only filesystem (devfs), optionally completely drop out filesystem, and to clean up disabling newlib reentrancy support. This dropped 17K from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K code space. * libcsupport/src/__usrenv.c, libcsupport/src/newlibc_reent.c, libfs/src/devfs/devclose.c, libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devfs_init.c, libfs/src/devfs/devfs_mknod.c, libfs/src/devfs/devfs_node_type.c, libfs/src/devfs/devfs_show.c, libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c, libfs/src/devfs/devstat.c, libfs/src/devfs/devwrite.c, libfs/src/imfs/deviceerrno.c: New files. * libcsupport/src/newlibc.c: Removed.