#include #include int isastream(int fd) { return fcntl(fd, F_GETFD) < 0 ? -1 : 0; } #ifdef TEST int main(void) { return 0; } #endif