/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1995 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* wrappers for posix tty manipulation functions
*/
#include <errno.h>
#include <termios.h>
#include <termio.h>
/*
* return the output speed from the struct
*/
{
}
/*
* set the speed in the struct
*/
int
{
return (-1);
}
} else
return (0);
}
/*
* return the input speed from the struct
*/
{
}
/*
* set the input speed in the struct
*/
int
{
return (-1);
}
} else
return (0);
}
/*
* grab the modes
*/
int
{
}
/*
* set the modes
*/
int
{
/* If input speed is zero, set it to the output speed. */
}
switch (option) {
case TCSADRAIN:
case TCSAFLUSH:
case TCSANOW:
default:
return (-1);
}
/*NOTREACHED*/
}
/*
* send a break
* This is kludged for duration != 0; it should do something like crank the
* baud rate down and then send the break if the duration != 0.
*/
int
{
unsigned d = (unsigned)duration;
do
return (-1);
while (d--);
return (0);
}
/*
* wait for all output to drain from fd
*/
int
{
}
/*
* flow control
*/
int
{
switch (action) {
default:
return (-1);
case TCOOFF:
case TCOON:
case TCIOFF:
case TCION:
}
/*NOTREACHED*/
}
/*
*/
int
{
switch (queue) {
default:
return (-1);
case TCIFLUSH:
case TCOFLUSH:
case TCIOFLUSH:
}
/*NOTREACHED*/
}
/*
* get the foreground process group id
*/
{
int grp_id;
return ((pid_t)-1);
else
}
/*
* set the foreground process group id
*/
int
{
}