shithub: npe

ref: 537d4c5c119be15eec734bc443074a8d90b9c202
dir: /libnpe/isatty.c/

View raw version
#include <unistd.h>
#include "_npe.h"

int
isatty(int fd)
{
	char buf[64];

	return fd2path(fd, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") == 0;
}