isatty(3) Library Functions Manual isatty(3) NOMBRE isatty - test whether a file descriptor refers to a terminal BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int isatty(int fd); DESCRIPCION The isatty() function tests whether fd is an open file descriptor referring to a terminal. VALOR DEVUELTO isatty() returns 1 if fd is an open file descriptor referring to a terminal; otherwise 0 is returned, and errno is set to indicate the error. ERRORES EBADF fd no es un descriptor de archivo valido. ENOTTY fd refers to a file other than a terminal. On some older kernels, some types of files resulted in the error EINVAL in this case (which is a violation of POSIX, which specifies the error ENOTTY). ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |isatty() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES POSIX.1-2008. HISTORIAL POSIX.1-2001, SVr4, 4.3BSD. VEASE TAMBIEN fstat(2), ttyname(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Linux man-pages 6.18 17 Mayo 2025 isatty(3)