/****************************************************************************
 *
 * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/termios/gtty.c,v $
 * $Date: 2005/11/16 03:15:42 $
 * $Revision: 1.3 $
 * $State: Exp $
 * $Author: joty $
 *
 ***************************************************************************/

#include <errno.h>
#include <sgtty.h>

/* Fill in *PARAMS with terminal parameters associated with FD.  */
int
gtty (int fd, struct sgttyb *params)
{
  return ioctl (fd, TIOCGETP, (void *) params);
}
