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