Annotation of coherent/g/usr/bin/script/gt.c, revision 1.1.1.1

1.1       root        1: /* gt.c - test */
                      2: 
                      3: #include <sys/param.h>
                      4: 
                      5: char master[32], slave[32];
                      6: 
                      7: main()
                      8: {
                      9:        int i, fd;
                     10: 
                     11:        for (i = 0; i < NOFILE; i++) {
                     12:                if ((fd = getpseudotty(master, slave)) != -1)
                     13:                        printf("fd=%d  m=%s  s=%s\n", fd, master, slave);
                     14:                else {
                     15:                        printf("No more pty's\n");
                     16:                        break;
                     17:                }
                     18:        }
                     19: }

unix.superglobalmegacorp.com

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