Specifications
Calls to ioctl() are thread-safe only if the implementation of ioctl() provided by the driver that is
manipulated is thread-safe.
Valid values for the fd parameter are: stdout, stdin, and stderr, or any value returned from a call to
open().
Return
The interpretation of the return value is request specific. If the call fails, errno is set to indicate the cause
of the error.
Related Information
• fcntl() on page 14-57
• fstat() on page 14-55
• isatty() on page 14-74
• lseek() on page 14-64
• open() on page 14-66
• read() on page 14-68
• stat() on page 14-60
• write() on page 14-69
• newlib Library Documentation
isatty()
Prototype
int isatty(int fd)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
See description.
Available from ISR
No.
Include
<unistd.h>
Description
The isatty() function determines whether the device associated with the open file descriptor fd is a
terminal device. This implementation uses the driver’s fstat() function to determine its reply.
Calls to isatty() are thread-safe only if the implementation of fstat() provided by the driver that is
manipulated is thread-safe.
14-74
isatty()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback