/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <termio.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include "ttymon.h"
#include "tmstruct.h"
#include "tmextern.h"
extern void mkargv();
/*
* set_termio - set termio on device
* fd - fd for the device
* options - stty termio options
* aspeed - autobaud speed
* clear - if TRUE, current flags will be set to some defaults
* before applying the options
* - if FALSE, current flags will not be cleared
* mode - terminal mode, CANON, RAW
*/
int
int fd;
char *options;
char *aspeed;
int clear;
long mode;
{
int term;
char *uarg;
extern int get_ttymode(), set_ttymode();
extern char *sttyparse();
#ifdef DEBUG
debug("in set_termio");
#endif
return(-1);
}
if (clear) {
/* could have removed these too - rely on defaults */
}
else {
}
}
/* just a place holder to make it look like invoking stty */
}
return(-1);
}
}
return(-1);
}
return(0);
}
#ifdef NOT_USE
/*
* turnon_canon - turn on canonical processing
* - return 0 if succeeds, -1 if fails
*/
int fd;
{
#ifdef DEBUG
debug("in turnon_canon");
#endif
return(-1);
}
return(-1);
}
return(0);
}
#endif
/*
* flush_input - flush the input queue
*/
void
int fd;
{
return;
}
/*
* push_linedisc - if modules is not NULL, pop everything
* - then push modules specified by "modules"
*/
int
int fd, /* fd to push modules on */
char *modules, /* ptr to a list of comma separated module names */
char *device) /* device name for printing msg */
{
char *p, *tp;
#ifdef DEBUG
debug("in push_linedisc");
#endif
/*
* copy modules into buf so we won't mess up the original buffer
* because strtok will chop the string
*/
;
*tp = '\0';
return(-1);
}
}
return(0);
}
/*
* hang_up_line - set speed to B0. This will drop DTR
*/
int
{
#ifdef DEBUG
debug("in hang_up_line");
#endif
return(-1);
}
return(-1);
}
} else {
return(-1);
}
}
return(0);
}
/*
* initial_termio - set initial termios
* - return 0 if successful, -1 if failed.
*/
int
int fd;
{
int ret;
extern int auto_termio();
return(-1);
}
}
else {
else
if (ret == -1) {
return(-1);
}
}
return(0);
}