MCPcopy Create free account
hub / github.com/GJDuck/e9patch / isatty

Function isatty

examples/stdlib.c:6004–6014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6002}
6003
6004static int isatty(int fd)
6005{
6006 struct termios buf;
6007 if (ioctl(fd, TCGETS, &buf) < 0)
6008 {
6009 if (errno == EINVAL)
6010 errno = ENOTTY;
6011 return 0;
6012 }
6013 return 1;
6014}
6015
6016static int ttyname_r(int fd, char *buf, size_t buflen)
6017{

Callers 7

ZyanTerminalIsTTYFunction · 0.85
mainFunction · 0.85
realMainFunction · 0.85
main_2Function · 0.85
initFunction · 0.85
initFunction · 0.85
initFunction · 0.85

Calls 1

ioctlFunction · 0.85

Tested by 1

mainFunction · 0.68