.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH isatty 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE isatty \- test whether a file descriptor refers to a terminal .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint isatty(int \fP\fIfd\fP\fB);\fP .fi .SH DESCRIPCIÓN The \fBisatty\fP() function tests whether \fIfd\fP is an open file descriptor referring to a terminal. .SH "VALOR DEVUELTO" \fBisatty\fP() returns 1 if \fIfd\fP is an open file descriptor referring to a terminal; otherwise 0 is returned, and \fIerrno\fP is set to indicate the error. .SH ERRORES .TP \fBEBADF\fP \fIfd\fP no es un descriptor de archivo válido. .TP \fBENOTTY\fP .\" e.g., FIFOs and pipes on 2.6.32 \fIfd\fP refers to a file other than a terminal. On some older kernels, some types of files resulted in the error \fBEINVAL\fP in this case (which is a violation of POSIX, which specifies the error \fBENOTTY\fP). .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBisatty\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001, SVr4, 4.3BSD. .SH "VÉASE TAMBIÉN" \fBfstat\fP(2), \fBttyname\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .