summaryrefslogtreecommitdiffstats
path: root/newlib/libc/reent/reent.c
Commit message (Collapse)AuthorAgeFilesLines
* * libc/reent/reent.c (_reclaim_reent): Free also _misc andCorinna Vinschen2013-06-241-0/+9
| | | | _signal_buf.
* * libc/reent/reent.c (_wrapup_reent): Remove.Corinna Vinschen2013-05-161-33/+0
|
* 2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>Jeff Johnston2013-05-081-4/+13
| | | | | | | | | | | | | | | * libc/include/sys/config.h (_REENT_GLOBAL_ATEXIT): Define for RTEMS. * libc/include/sys/reent.h (_reent): Use _REENT_GLOBAL_ATEXIT. (_global_atexit): Declare if _REENT_GLOBAL_ATEXIT is defined. * libc/reent/reent.c (_reclaim_reent): Remove atexit cleanup if _REENT_GLOBAL_ATEXIT is defined. (_wrapup_reent): Remove atexit handling if _REENT_GLOBAL_ATEXIT is defined. * libc/stdlib/__atexit.c (_global_atexit0): Define if _REENT_GLOBAL_ATEXIT is defined. * libc/stdlib/__call_atexit.c (_global_atexit): Define if _REENT_GLOBAL_ATEXIT is defined.
* Use NetBSD fix for CVE-2009-0689 security vulnerability.Corinna Vinschen2009-11-231-1/+1
| | | | | | | | * libc/include/sys/reent.h (_Kmax): Define here based on the sizeof size_t, as in latest NetBSD. * libc/reent/reent.c (_reclaim_reent): Use _Kmax rather than constant value 15. * libc/stdlib/mprec.c (_Kmax): Don't define here. Explain why.
* * libc/reent/reent.c (_reclaim_reent): Make a block from MP-relatedCorinna Vinschen2009-03-061-4/+8
| | | | | | statements in _REENT_SMALL case. Check if _atexit is not NULL before dereferencing it. (_wrapup_reent): Check if _atexit is not NULL before dereferencing it.
* * libc/reent/reeent.c (_reclaim_reent): Free _REENT_MP_RESULT.Corinna Vinschen2006-10-111-0/+2
|
* 2004-09-09 Paul Brook <paul@codesourcery.com>Jeff Johnston2004-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h (struct _on_exit_args): Add _dso_handle and _is_cxa. (struct _atexit): Add _next when _REENT_SMALL. (struct _reent): Add _atexit0 when _REENT_SMALL. (_REENT_INIT_PTR): Adjust. * libc/stdlib/Makefile.am (GENERAL_SOURCES): Add __atexit.c and __call_exit.c. (EXTENDED_SOURCES): Add cxa_atexit.c and cxa_finalize.c. * libc/stdlib/Makefile.in: Regenerate. * libc/stdlib/__atexit.c: New file. * libc/stdlib/__call_atexit.c: New file. * libc/stdlib/atexit.h: Remove old definitions. Add new. * libc/stdlib/atexit.c (atexit): Use __register_exitproc. * libc/stdlib/cxa_atexit.c: New file. * libc/stdlib/cxa_finalize.c: New file. * libc/stdlib/exit.c (exit): Use __call_exitprocs. * libc/stdlib/on_exit.c (on_exit): Use __register_exitproc. 2004-09-09 Jeff Johnston <jjohnstn@redhat.com> * libc/reent/reent.c [_REENT_SMALL]: Fix reference to _on_exit_args_ptr.
* Fix typoNick Clifton2003-06-111-1/+1
|
* New structure containing fields used by the on_exit() function.Nick Clifton2003-06-061-0/+2
| | | | | (struct _atexit): Include struct _on_exit_args. For _REENT_SMALL do his via a pointer that is initialised when needed.
* 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-06-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/reent/execr.c: Use _DEFUN macro for function declaration. * libc/reent/fcntlr.c: Ditto. * libc/reent/fstat64r.c: Ditto. * libc/reent/linkr.c: Ditto. * libc/reent/lseek64r.c: Ditto. * libc/reent/lseekr.c: Ditto. * libc/reent/openr.c: Ditto. * libc/reent/readr.c: Ditto. * libc/reent/reent.c: Ditto. * libc/reent/sbrkr.c: Ditto. * libc/reent/signalr.c: Ditto. * libc/reent/signgam.c: Ditto. * libc/reent/statr.c: Ditto. * libc/reent/timer.c: Ditto. * libc/reent/unlinkr.c: Ditto. * libc/reent/writer.c: Ditto. * libc/syscalls/sysclose.c: Ditto. * libc/syscalls/sysexecve.c: Ditto. * libc/syscalls/sysfcntl.c: Ditto. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysfstat.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysgettod.c: Ditto. * libc/syscalls/syskill.c: Ditto. * libc/syscalls/syslink.c: Ditto. * libc/syscalls/syslseek.c: Ditto. * libc/syscalls/sysopen.c: Ditto. * libc/syscalls/sysread.c: Ditto. * libc/syscalls/syssbrk.c: Ditto. * libc/syscalls/sysstat.c: Ditto. * libc/syscalls/systimes.c: Ditto. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/syswait.c: Ditto.
* * implement a new `struct _reent' that is significantly smaller. use thisMatthew Green2002-02-031-3/+24
| | | | if _REENT_SMALL is defined in config.h. define this for xstormy16.
* 2001-03-21 Egor Duda <deo@logos-m.ru>Jeff Johnston2001-03-211-1/+15
| | | | | | | Allow building internal stubs for non-reentrant syscalls if target provides its own malloc * libc/reent/reent.c (errno): Move definition here. * libc/reent/sbrkr.c: From here.
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions like x << y-z to the equivalent x << (y-z). (d2b): changed if statements with assignment to perform the assignment prior to the if check. * libc/reent/reent.c: included stdlib.h for "_free_r" prototype. * libc/unix/getpass.c (getpass): moved "echo" assignment out of if. * libc/unix/ttyname.c: included string.h for "strcpy" prototype. * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and || precedence. * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c). Added "_execve" prototype (for execl.c, execle.c, execv.c, and execve.c). * libc/posix/popen.c (popen): added parentheses to clarify && and || precedence. * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to clarify && and || precendence (and to remove pascalism). * libm/math/e_sinh.c (__ieee754_sinh): Ditto. * libm/math/s_infconst.c: added another pair of braces to all initializers for __infinity (need three: for __infinity[1] array, for union __dmath, and for i[2]).
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+107