aboutsummaryrefslogtreecommitdiff
path: root/src/legacy/isastream.c
blob: e51eb8e339c9b924556c4b309c7dff95b73c331a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stropts.h>
#include <fcntl.h>

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif