source: trunk/minix/man/man3/ttyname.3@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 549 bytes
Line 
1.TH TTYNAME 3
2.SH NAME
3ttyname \- file descriptor to terminal device name
4.SH SYNOPSIS
5.nf
6.ft B
7#define _POSIX_SOURCE 1
8#include <unistd.h>
9
10char *ttyname(int \fIfd\fP)
11.ft P
12.fi
13.SH DESCRIPTION
14.B Ttyname
15searches through the
16.B /dev
17directory for the terminal device file that is associated with file
18descriptor
19.IR fd .
20It returns the full path name of the terminal file if found, NULL is
21returned otherwise.
22.SH "SEE ALSO"
23.BR ttyslot (3).
24.SH AUTHOR
25Kees J. Bot (kjb@cs.vu.nl)
26
27.\"
28.\" $PchId: ttyname.3,v 1.2 1996/04/11 06:42:17 philip Exp $
Note: See TracBrowser for help on using the repository browser.