4.104.114.84.95
Last change
on this file since 3cad2919 was
d001776f,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/11/99 at 14:49:13
|
Added local prototype of ioctl() to avoid requiring sys/ioctl.h.
|
-
Property mode set to
100644
|
File size:
662 bytes
|
Line | |
---|
1 | /* |
---|
2 | * tcdrain() - POSIX 1003.1b 7.2.2 - Line Control Functions |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1998. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * Copyright assigned to U.S. Government, 1994. |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #include <rtems.h> |
---|
16 | #if defined(RTEMS_NEWLIB) |
---|
17 | |
---|
18 | #include <sys/types.h> |
---|
19 | #include <sys/stat.h> |
---|
20 | #include <errno.h> |
---|
21 | #include <termios.h> |
---|
22 | /* #include <sys/ioctl.h> */ |
---|
23 | |
---|
24 | int ioctl(); |
---|
25 | |
---|
26 | #include <rtems/libio.h> |
---|
27 | |
---|
28 | int tcdrain( |
---|
29 | int fd |
---|
30 | ) |
---|
31 | { |
---|
32 | return ioctl( fd, RTEMS_IO_TCDRAIN, 0 ); |
---|
33 | } |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.