8 lines
108 B
C
8 lines
108 B
C
|
#include <stropts.h>
|
||
|
#include <fcntl.h>
|
||
|
|
||
|
int isastream(int fd)
|
||
|
{
|
||
|
return fcntl(fd, F_GETFD) < 0 ? -1 : 0;
|
||
|
}
|