Lines Matching refs:pty
62 #include <pty.h>
79 #include <pty.h>
308 "pty is insecure!\n");
317 "pty is insecure!\n");
328 int pty = -1;
339 pty = posix_openpt(O_RDWR);
341 pty = open("/dev/ptmx", O_RDWR);
343 if (pty < 0)
346 rc = grantpt(pty);
348 close(pty);
352 rc = unlockpt(pty);
354 close(pty);
358 line = strmalloc(ptsname(pty));
360 close(pty);
366 *pty_return = pty;
375 rc = openpty(&pty, &opened_tty, ttydev, NULL, NULL);
377 close(pty);
382 close(pty);
388 *pty_return = pty;
395 strcpy(name, "/dev/pty??");
400 pty = open(name, O_RDWR);
401 if (pty >= 0)
403 /* Systems derived from 4.4BSD differ in their pty names,
415 *pty_return = pty;
421 if (pty >= 0)
422 close(pty);