DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦f5d5e3c30⟧ TextFile

    Length: 981 (0x3d5)
    Types: TextFile
    Notes: UNIX file
    Names: »ttyname.3«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man3/ttyname.3« 

TextFile

.ig
	@(#)ttyname.3	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH TTYNAME 3 
.SH NAME
ttyname, isatty, ttyslot \- find name of a terminal
.SH SYNOPSIS
.B char *ttyname(fildes)
.PP
.B isatty(fildes)
.PP
.B ttyslot()
.SH DESCRIPTION
.I Ttyname
returns a pointer to the null-terminated path name
of the terminal device associated with file descriptor
.IR fildes .
.PP
.I Isatty
returns 1 if
.I fildes
is associated with a terminal device, 0 otherwise.
.PP
.I Ttyslot
returns the number of the entry in the
.IR ttys (5)
file for the control terminal of the
current process.
.SH FILES
/dev/\(**
.br
/etc/ttys
.SH SEE ALSO
ioctl(2), ttys(5)
.SH DIAGNOSTICS
.I Ttyname
returns a null pointer (0) if
.I fildes
does not describe a terminal device in directory `/dev'.
.PP
.I Ttyslot
returns 0 if `/etc/ttys' is inaccessible or if
it cannot determine the control terminal.
.SH BUGS
The return value points to static data
whose content is overwritten by each call.