Lines Matching refs:ptbuf
151 char ptbuf[64], ttbuf[64];
162 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i);
164 if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1)
177 char ptbuf[64], ttbuf[64];
187 snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c",
192 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1) {
194 snprintf(ptbuf, sizeof(ptbuf), "/dev/ptyp%d", i);
196 if ((*amaster = open(ptbuf, O_RDWR | O_NOCTTY)) == -1)