Functions omitted, Notes, C language services posix section 8 – Comtrol eCos User Manual

Page 460: Functions implemented, C language services [posix section 8

Advertising
background image

Chapter 31. POSIX Standard Support

int cfsetospeed( struct termios

termios_p, speed_t speed );

speed_t cfgetispeed( const struct termios

termios_p );

int cfsetispeed( struct termios

termios_p, speed_t speed );

int tcgetattr( int fd, struct termios

termios_p );

int tcsetattr( int fd, int optional_actions,

const struct termios

termios_p );

int tcsendbreak( int fd, int duration );

int tcdrain( int fd );

int tcflush( int fd, int queue_selector );

int tcsendbreak( int fd, int action );

Functions Omitted

pid_t tcgetpgrp( int fd );

int tcsetpgrp( int fd, pid_t pgrp );

Notes

Only the functionality relevant to basic serial device control is implemented. Only very limited support for

canonical input is provided, and then only via the “tty” devices, not the “serial” devices. None of the functionality
relevant to job control, controlling terminals and sessions is implemented.

Only MIN = 0 and TIME = 0 functionality is provided.

Hardware flow control is supported if the underlying device driver and serial port support it.

Support for break, framing and parity errors depends on the functionality of the hardware and device driver.

C Language Services [POSIX Section 8]

Functions Implemented

char

setlocale( int category, const char

locale );

int fileno( FILE

stream );

FILE

fdopen( int fd, const char

type );

int getc_unlocked( FILE

stream);

int getchar_unlocked( void );

int putc_unlocked( FILE

stream );

int putchar_unlocked( void );

char

strtok_r( char

s, const char

sep,

char

∗∗

lasts );

char

asctime_r( const struct tm

tm, char

buf );

char

ctime_r( const time_t

clock, char

buf );

struct tm

gmtime_r( const time_t

clock,

struct tm

result );

struct tm

localtime_r( const time_t

clock,

struct tm

result );

356

Advertising