source: rtems/c/src/lib/libc/tcsetattr.c @ 08b5f55

4.104.114.84.95
Last change on this file since 08b5f55 was d001776f, checked in by Joel Sherrill <joel.sherrill@…>, on 06/11/99 at 14:49:13

Added local prototype of ioctl() to avoid requiring sys/ioctl.h.

  • Property mode set to 100644
File size: 817 bytes
Line 
1/*
2 *  tcsetattr() - POSIX 1003.1b 7.2.1 - Get and Set State
3 *
4 *  COPYRIGHT (c) 1989-1998.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems.h>
16#if defined(RTEMS_NEWLIB)
17
18#include <sys/types.h>
19#include <sys/stat.h>
20#include <errno.h>
21#include <termios.h>
22/* #include <sys/ioctl.h> */
23
24int ioctl();
25
26#include <rtems/libio.h>
27#include "libio_.h"
28
29int tcsetattr(
30  int             fd,
31  int             opt,
32  struct termios *tp
33)
34{
35  if ( opt != TCSANOW )
36    set_errno_and_return_minus_one( ENOTSUP );
37
38  return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
39}
40#endif
Note: See TracBrowser for help on using the repository browser.