source:
EcnlProtoTool/trunk/musl-1.1.18/src/unistd/isatty.c@
445
Last change on this file since 445 was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 162 bytes |
Line | |
---|---|
1 | #include <unistd.h> |
2 | #include <sys/ioctl.h> |
3 | #include "syscall.h" |
4 | |
5 | int isatty(int fd) |
6 | { |
7 | struct winsize wsz; |
8 | return !__syscall(SYS_ioctl, fd, TIOCGWINSZ, &wsz); |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.