This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: RTEMS has ttyname_r


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]