source:
rtems/c/src/lib/libc/cfgetospeed.c
@
4a238002
Last change on this file since 4a238002 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34 | |
---|---|
|
|
File size: 557 bytes |
Rev | Line | |
---|---|---|
[c4638fff] | 1 | /* |
[07a3253d] | 2 | * cfgetospeed() - POSIX 1003.1b 7.1.3 - Baud Rate Functions |
[c4638fff] | 3 | * |
[08311cc3] | 4 | * COPYRIGHT (c) 1989-1999. |
[c4638fff] | 5 | * On-Line Applications Research Corporation (OAR). |
6 | * | |
7 | * The license and distribution terms for this file may be | |
8 | * found in the file LICENSE in this distribution or at | |
9 | * http://www.OARcorp.com/rtems/license.html. | |
10 | * | |
11 | * $Id$ | |
12 | */ | |
13 | ||
[07a3253d] | 14 | #include <rtems.h> |
15 | #if defined(RTEMS_NEWLIB) | |
16 | ||
17 | #include <sys/types.h> | |
18 | #include <sys/stat.h> | |
[c4638fff] | 19 | #include <errno.h> |
[07a3253d] | 20 | #include <termios.h> |
[c4638fff] | 21 | |
[07a3253d] | 22 | speed_t cfgetospeed( |
23 | const struct termios *tp | |
[c4638fff] | 24 | ) |
25 | { | |
[07a3253d] | 26 | return tp->c_cflag & CBAUD; |
[c4638fff] | 27 | } |
28 | #endif |
Note: See TracBrowser
for help on using the repository browser.