source: trunk/libs/newlib/src/newlib/libc/sys/linux/tcdrain.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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
7int
8__libc_tcdrain (int fd)
9{ 
10  return ioctl (fd, TCSBRK, 1);
11}
12weak_alias (__libc_tcdrain, tcdrain)
13
Note: See TracBrowser for help on using the repository browser.