.\" -*- 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 "2023년 7월 20일" "Linux man\-pages 6.05.01" .SH 이름 isatty \- test whether a file descriptor refers to a terminal .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#include \fP .PP \fBint isatty(int \fP\fIfd\fP\fB);\fP .fi .SH 설명 The \fBisatty\fP() function tests whether \fIfd\fP is an open file descriptor referring to a terminal. .SH 반환값 \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 에러 .TP \fBEBADF\fP \fIfd\fP가 유효한 파일 기술자가 아니다. .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 속성 이 섹션에서 사용되는 용어에 대한 설명은 \fBattributes\fP(7)을 참조하십시오. .TS allbox; lbx lb lb l l l. 상호 작용 속성 번호 T{ .na .nh \fBisatty\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 표준 POSIX.1\-2008. .SH 이력 POSIX.1\-2001, SVr4, 4.3BSD. .SH "추가 참조" \fBfstat\fP(2), \fBttyname\fP(3) .PP .SH 번역 이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 정강훈 . .PP 이 번역은 무료 문서입니다. 저작권 조건에 대해서는 .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 버전 3 .UE 이상을 읽으십시오. 책임이 없습니다. .PP 이 매뉴얼 페이지의 번역에서 오류를 발견하면 .MT translation-team-ko@googlegroups.com .ME 로 이메일을 보내주십시오.