Retro68/gcc/newlib/libc/sys/linux/tcdrain.c

14 lines
228 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
/* tcdrain - wait for transmission of output */
#include <termios.h>
#include <sys/ioctl.h>
#include <machine/weakalias.h>
int
__libc_tcdrain (int fd)
{
return ioctl (fd, TCSBRK, 1);
}
weak_alias (__libc_tcdrain, tcdrain)