Welcome to mirror list, hosted at ThFree Co, Russian Federation.

isatty.c « sysvi386 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa1e3557f20af77225197656976b78db15e79290 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <sys/termio.h>

int
isatty(fd)
int fd; {
	struct termio buf;

	if (ioctl (fd, TCGETA, &buf) == -1)
		return 0;
	return 1;
}