.\" Copyright (c) 1995 Jim Van Zandt .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, .\" USA. .\" .TH TTYNAME 3 "April 20, 1995" "Linux" "Manual do Programador Linux" .SH NOME ttyname \- retorna o nome de um terminal .SH SINOPSE .ad l .nf .B #include .sp .BI "char *ttyname ( int " desc " );" .fi .ad b .SH DESCRIÇÃO Retorna um ponteiro para o nome de arquivo do dispositivo terminal que está aberto pelo arquivo identificador \fIdesc\fP, ou \fBNULL\fP caso haja erro (por exemplo, se \fIdesc\fP não está conectado a um terminal). .SH "CONFORMIDADE" POSIX.1 .\" don't know about these: SVID, AT&T, X/OPEN, BSD 4.3 .SH "VEJA TAMBÉM" .BR fstat (2), .BR isatty (3) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWKenzo Marcelo Okamura (tradução)\fR \&\fR\&\f(CWxxxxx (revisão)\fR