source: rtems/c/src/exec/libcsupport/src/tcgetattr.c @ 23c4bbf5

4.104.114.84.95
Last change on this file since 23c4bbf5 was 23c4bbf5, checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/99 at 01:41:16

Use proper include for libio.h.

  • Property mode set to 100644
File size: 670 bytes
Line 
1/*
2 *  tcgetattr() - 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
24#include <rtems/libio.h>
25
26int tcgetattr(
27  int fd,
28  struct termios *tp
29)
30{
31  return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp );
32}
33#endif
Note: See TracBrowser for help on using the repository browser.