Patch: RTEMS has ttyname_r
Jeff Johnston
jjohnstn@redhat.com
Wed Oct 15 22:16:00 GMT 2008
Patch checked in.
-- Jeff J.
Joel Sherrill wrote:
> Hi,
>
> I noticed that the ttyname_r() prototype is not
> enabled for RTEMS. Please apply.
>
> 2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
>
> * libc/include/sys/unistd.h: Enable ttyname_r() for RTEMS.
>
> --- /tmp/unistd.h 2008-10-15 12:09:17.000000000 -0500
> +++ unistd.h 2008-10-15 12:11:36.000000000 -0500
> @@ -157,7 +157,7 @@
> pid_t _EXFUN(tcgetpgrp, (int __fildes ));
> int _EXFUN(tcsetpgrp, (int __fildes, pid_t __pgrp_id ));
> char _EXFUN(*ttyname, (int __fildes ));
> -#if defined(__CYGWIN__)
> +#if defined(__CYGWIN__) || defined(__rtems__)
> int _EXFUN(ttyname_r, (int, char *, size_t));
> #endif
> int _EXFUN(unlink, (const char *__path ));
>
More information about the Newlib
mailing list