aboutsummaryrefslogtreecommitdiff
path: root/src/misc/isastream.c
blob: 4dafdb08210f5617d2ce116e1530e603b7490caf (plain)
1
2
3
4
5
6
7
#include <stropts.h>
#include <fcntl.h>

int isastream(int fd)
{
	return fcntl(fd, F_GETFD) < 0 ? -1 : 0;
}