[PATCH] Delete default __getreent() implementation
Sebastian Huber
sebastian.huber@embedded-brains.de
Tue Nov 7 12:54:00 GMT 2017
On 07/11/17 12:53, Sebastian Huber wrote:
> diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
> index 0e9d426ec..6538f7d72 100644
> --- a/newlib/libc/sys/rtems/crt0.c
> +++ b/newlib/libc/sys/rtems/crt0.c
> @@ -146,7 +146,7 @@ RTEMS_STUB(pid_t, getppid (), { return -1; })
> RTEMS_STUB(pid_t, _getpid_r (struct _reent *r), { return -1; })
> RTEMS_STUB(int, _gettimeofday_r(struct _reent *r, struct timeval *tp, void *tzp), { return 0; })
> RTEMS_STUB(int, _isatty_r (struct _reent *r, int fd), { return isatty( fd ); })
> -RTEMS_STUB(int, _kill_r (struct _reent *r, int pid, int sig ), { return -1; })
> +RTEMS_STUB(struct _reent *, __getreent (void), { return 0; })
> #if !defined(REENTRANT_SYSCALLS_PROVIDED)
> /* cf. newlib/libc/reent/linkr.c */
> RTEMS_STUB(int, _link_r (struct _reent *r, const char *oldpath, const char *newpath), { return -1; })
The _kill_r() removal is a mistake.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list