File:  [MW Coherent from dump] / coherent / g / usr / bin / script / gt.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* gt.c - test */

#include <sys/param.h>

char master[32], slave[32];

main()
{
	int i, fd;

	for (i = 0; i < NOFILE; i++) {
		if ((fd = getpseudotty(master, slave)) != -1)
			printf("fd=%d  m=%s  s=%s\n", fd, master, slave);
		else {
			printf("No more pty's\n");
			break;
		}
	}
}

unix.superglobalmegacorp.com

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