File:  [MW Coherent from dump] / coherent / d / lib / libc / gen / ttyslot.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:37 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Coherent I/O Library.
 * Return the index of the entry in the
 * `/etc/ttys' file for this process.
 * Slot 0 is returned on error.
 * [Note: the controlling terminal of the process
 * is taken to be stderr].
 * We use fttyslot which returns -1 on error
 * for the benefit of ttyname().
 */

int	fttyslot();		/* In ttyname.c */

ttyslot()
{
	register int slot;

	if ((slot = fttyslot(2)) < 0)
		slot += 1;
	return (slot);
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.