source: rtems-libbsd/testsuite/termios/test_termios_utilities.h @ 333bfb6

55-freebsd-126-freebsd-12
Last change on this file since 333bfb6 was 333bfb6, checked in by Kevin Kirspel <kevin-kirspel@…>, on 05/04/17 at 12:28:00

Adding test cases for FREEBSD termios support through tty

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2017.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifndef TEST_TERMIOS_UTILITIES_H
11#define TEST_TERMIOS_UTILITIES_H
12
13#define TX_MAX 1024
14
15extern void open_it(void);
16extern void close_it(void);
17extern void change_iflag(const char *desc, int mask, int new);
18extern void change_lflag(const char *desc, int mask, int new);
19extern void change_oflag(const char *desc, int mask, int new);
20extern void change_vmin_vtime( const char *desc, int min, int time );
21extern void enable_non_blocking(bool enable);
22extern void write_helper(int fd, const char *c);
23extern void read_helper(int fd, const char *expected);
24extern void termios_test_driver_dump_tx(const char *c);
25extern int termios_test_driver_read_tx(void);
26extern void termios_test_driver_set_rx( const void *p, size_t len );
27extern void termios_test_driver_set_rx_char( char ch );
28
29extern int Test_fd;
30extern uint8_t read_helper_buffer[256];
31extern uint8_t Tx_Buffer[TX_MAX];
32
33#endif /* TEST_TERMIOS_UTILITIES_H */
Note: See TracBrowser for help on using the repository browser.