7 int posix_openpt(int flags)
9 return open("/dev/ptmx", flags);
20 return ioctl(fd, TIOCSPTLCK, &unlock);
23 int __ptsname_r(int fd, char *buf, size_t len)
27 return -( ioctl (fd, TIOCGPTN, &pty) < 0
28 || snprintf(buf, len, "/dev/pts/%d", pty) >= len );
31 weak_alias(__ptsname_r, ptsname_r);