Lines Matching refs:fd
39 static __inline int tcgetattr(int fd, struct termios *s) {
40 return ioctl(fd, TCGETS, s);
43 static __inline int tcsetattr(int fd, int __opt, const struct termios *s) {
44 return ioctl(fd, __opt, (void *)s);
47 static __inline int tcflow(int fd, int action) {
48 return ioctl(fd, TCXONC, (void *)(intptr_t)action);
51 static __inline int tcflush(int fd, int __queue) {
52 return ioctl(fd, TCFLSH, (void *)(intptr_t)__queue);
55 static __inline pid_t tcgetsid(int fd) {
57 return ioctl(fd, TIOCGSID, &_pid) ? (pid_t)-1 : _pid;
60 static __inline int tcsendbreak(int fd, int __duration) {
61 return ioctl(fd, TCSBRKP, (void *)(uintptr_t)__duration);