source:
trunk/libs/newlib/src/newlib/libc/sys/linux/tcdrain.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 228 bytes |
Line | |
---|---|
1 | /* tcdrain - wait for transmission of output */ |
2 | |
3 | #include <termios.h> |
4 | #include <sys/ioctl.h> |
5 | #include <machine/weakalias.h> |
6 | |
7 | int |
8 | __libc_tcdrain (int fd) |
9 | { |
10 | return ioctl (fd, TCSBRK, 1); |
11 | } |
12 | weak_alias (__libc_tcdrain, tcdrain) |
13 |
Note: See TracBrowser
for help on using the repository browser.