shithub: npe

ref: 96089afd35646c653b1997b48cc4cf7bd5fa2e1a
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;
}