ref: 237831f5ec11e7bb6da2961c1e5f5bc0c3610347 dir: /libnpe/isatty.c/
#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; }