1 #include <stropts.h> 2 #include <fcntl.h> 3 #include <unsupported_api.h> isastream(int fd)4 int isastream(int fd) 5 { 6 unsupported_api(__FUNCTION__); 7 return fcntl(fd, F_GETFD) < 0 ? -1 : 0; 8 } 9