shithub: npe

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