Lines Matching refs:fd
38 int fd = open("/dev/ptmx", flags);
39 if (fd >= 0)
40 return fd;
48 * fd is provided, to the real UID and real GID of the calling thread.
51 grantpt(int fd)
53 return ioctl(fd, TIOCPTYGRANT);
63 ptsname(int fd)
74 error = ioctl(fd, TIOCPTYGNAME, ptsnamebuf);
93 * Unlock the slave pty associated with the master to which fd refers.
96 unlockpt(int fd)
98 return ioctl(fd, TIOCPTYUNLK);