shithub: npe

ref: 99c39874ceae2e7b0af75b43733baac8b2a50f35
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;
}