11970Swnj /* 235453Sbostic * Copyright (c) 1988 The Regents of the University of California. 335453Sbostic * All rights reserved. 435453Sbostic * 5*42625Sbostic * %sccs.include.redist.c% 61970Swnj */ 71970Swnj 835453Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*42625Sbostic static char sccsid[] = "@(#)isatty.c 5.5 (Berkeley) 06/01/90"; 1035453Sbostic #endif /* LIBC_SCCS and not lint */ 1135453Sbostic 1240100Smarc #include <termios.h> 131970Swnj 1435453Sbostic isatty(fd) 1535453Sbostic int fd; 161970Swnj { 1740100Smarc struct termios t; 181970Swnj 1940100Smarc return(tcgetattr(fd, &t) != -1); 201970Swnj } 21