1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
12 >Device and Class Specific Functions [POSIX Section 7]</TITLE
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="POSIX Standard Support"
23 HREF="posix-standard-support.html"><LINK
25 TITLE="Input and Output [POSIX Section 6]"
26 HREF="posix-input-and-output.html"><LINK
28 TITLE="C Language Services [POSIX Section 8]"
29 HREF="posix-c-language-services.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="posix-input-and-output.html"
65 >Chapter 31. POSIX Standard Support</TD
71 HREF="posix-c-language-services.html"
85 NAME="POSIX-DEVICE-AND-CLASS-SPECIFIC-FUNCTIONS">Device and Class Specific Functions [POSIX Section 7]</H1
91 NAME="AEN13079">Functions Implemented</H2
100 >speed_t cfgetospeed( const struct termios *termios_p );
101 int cfsetospeed( struct termios *termios_p, speed_t speed );
102 speed_t cfgetispeed( const struct termios *termios_p );
103 int cfsetispeed( struct termios *termios_p, speed_t speed );
104 int tcgetattr( int fd, struct termios *termios_p );
105 int tcsetattr( int fd, int optional_actions,
106 const struct termios *termios_p );
107 int tcsendbreak( int fd, int duration );
108 int tcdrain( int fd );
109 int tcflush( int fd, int queue_selector );
110 int tcsendbreak( int fd, int action );</PRE
120 NAME="AEN13082">Functions Omitted</H2
129 >pid_t tcgetpgrp( int fd );
130 int tcsetpgrp( int fd, pid_t pgrp );</PRE
140 NAME="AEN13085">Notes</H2
146 > Only the functionality relevant to basic serial device
147 control is implemented. Only very limited support for
148 canonical input is provided, and then only via the
149 “tty” devices, not the “serial”
150 devices. None of the functionality relevant to job
151 control, controlling terminals and sessions is
170 > = 0 functionality is
176 > Hardware flow control is supported if the underlying
177 device driver and serial port support it.
182 > Support for break, framing and parity errors depends on
183 the functionality of the hardware and device driver.
194 SUMMARY="Footer navigation table"
205 HREF="posix-input-and-output.html"
223 HREF="posix-c-language-services.html"
233 >Input and Output [POSIX Section 6]</TD
239 HREF="posix-standard-support.html"
247 >C Language Services [POSIX Section 8]</TD