Patch: RTEMS has ttyname_r
Joel Sherrill
joel.sherrill@oarcorp.com
Wed Oct 15 21:39:00 GMT 2008
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 ));
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Newlib
mailing list