source: rtems/cpukit/libcsupport/src/tcflow.c @ 1c6926c1

5
Last change on this file since 1c6926c1 was f97536d, checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48

basdefs.h: Add and use RTEMS_UNUSED

  • Property mode set to 100644
File size: 853 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Line Control Functions
5 *  @ingroup Termios
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2010.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#if defined(RTEMS_NEWLIB)
22#include <termios.h>
23#include <unistd.h>
24#include <errno.h>
25#include <rtems/seterr.h>
26
27int tcflow (
28  int fd,
29  int action
30)
31{
32  (void) fd;
33
34  switch (action) {
35    case TCOOFF:
36    case TCOON:
37    case TCIOFF:
38    case TCION:
39      break;
40    default:
41      rtems_set_errno_and_return_minus_one( EINVAL );
42  }
43
44  /* fd is not validated */
45
46  /* When this is supported, implement it here */
47  rtems_set_errno_and_return_minus_one( ENOTSUP );
48}
49
50#endif
Note: See TracBrowser for help on using the repository browser.