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] |
Hi,
With RTEMS, we build newlib before the OS. We do not have access to termios yet. So the new ttyname.c does not compile for RTEMS inside newlib. Would it be OK to use isatty() instead of this?
/* Must be a terminal. */ if (tcgetattr (fd, &tty) < 0) return errno; /* Can be EBADF or ENOTTY */
newlib already assumes isatty() exists.
Attached is a patch.
2008-11-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/unix/ttyname.c: Use isatty() instead of tcgetattr().
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |