diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-21 21:47:31 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-03-21 21:47:31 +0000 |
commit | 4833b38c4e0568a6b3f063c6eaee6ccf655b3312 (patch) | |
tree | 9192f22fe6ea92ee16b47eb25c7e4a58c1228aee /newlib/libc/reent/reent.c | |
parent | c0fb395ff347d5e46552c626b6684d0db53ae7f7 (diff) | |
download | cygnal-4833b38c4e0568a6b3f063c6eaee6ccf655b3312.tar.gz cygnal-4833b38c4e0568a6b3f063c6eaee6ccf655b3312.tar.bz2 cygnal-4833b38c4e0568a6b3f063c6eaee6ccf655b3312.zip |
2001-03-21 Egor Duda <deo@logos-m.ru>
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.
Diffstat (limited to 'newlib/libc/reent/reent.c')
-rw-r--r-- | newlib/libc/reent/reent.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/newlib/libc/reent/reent.c b/newlib/libc/reent/reent.c index 749a5bf6b..f35d95711 100644 --- a/newlib/libc/reent/reent.c +++ b/newlib/libc/reent/reent.c @@ -7,12 +7,26 @@ INDEX DESCRIPTION This module defines the impure data area used by the - non-rentrant functions, such as strtok. + non-reentrant functions, such as strtok. */ #include <stdlib.h> #include <reent.h> +#ifdef _REENT_ONLY +#ifndef REENTRANT_SYSCALLS_PROVIDED +#define REENTRANT_SYSCALLS_PROVIDED +#endif +#endif + +#ifndef REENTRANT_SYSCALLS_PROVIDED + +/* We use the errno variable used by the system dependent layer. */ +#undef errno +int errno; + +#endif + /* Interim cleanup code */ void |