Lines Matching refs:fd
49 static __inline__ int tcgetattr(int fd, struct termios *s)
51 return ioctl(fd, TCGETS, s);
54 static __inline__ int tcsetattr(int fd, int __opt, const struct termios *s)
56 return ioctl(fd, __opt, (void *)s);
59 static __inline__ int tcflow(int fd, int action)
61 return ioctl(fd, TCXONC, (void *)(intptr_t)action);
64 static __inline__ int tcflush(int fd, int __queue)
66 return ioctl(fd, TCFLSH, (void *)(intptr_t)__queue);
69 static __inline__ pid_t tcgetsid(int fd)
72 return ioctl(fd, TIOCGSID, &_pid) ? (pid_t)-1 : _pid;
75 static __inline__ int tcsendbreak(int fd, int __duration)
77 return ioctl(fd, TCSBRKP, (void *)(uintptr_t)__duration);