ttymon.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.7 */
#define FALSE 0
#define TRUE 1
#define SUCCESS 0
#define ACTIVE 1
#define FINISHED 0
/*
* Note: order is important because it corresponds to
* the order of fields in the file
*/
#define T_TTYLABEL 1
#define T_IFLAGS 2
#define T_FFLAGS 3
#define T_AUTOBAUD 4
#define T_NEXTLABEL 5
/*
* flags to indicate the field of pmtab
* Note: order is important because it corresponds to
* the order of fields in the file
*/
#define P_TAG 1
#define P_FLAGS 2
#define P_IDENTITY 3
#define P_RES1 4
#define P_RES2 5
#define P_RES3 6
#define P_DEVICE 7
#define P_TTYFLAGS 8
#define P_COUNT 9
#define P_SERVER 10
#define P_TIMEOUT 11
#define P_TTYLABEL 12
#define P_MODULES 13
#define P_PROMPT 14
#define P_DMSG 15
#define P_TERMTYPE 16
#define P_SOFTCAR 17
/*
* termio mode
*/
/*
* return value for peeking input data
*/
#define GOODNAME 1
#define NONAME 0
#define BADSPEED -1
* strings can take. Longer ones will be \
* truncated. \
*/
* passed to "login" \
*/
#define ROOTUID 0 /* root uid */
#ifdef DEBUG
/* debug file for ttymon express*/
#endif
#ifdef SYS_NAME
#endif
/*
* - ttymon reserves 7 fd for the following use:
* - pid, log, pmpipe, sacpipe, pmtab, PCpipe[0], PCpipe[1].
* - if DEBUG is on, reserve one more for debug file
* - fd for each file
* pid 0
* sacpipe 1
* pmpipe 2
* log 3
* PCpipe[0] 4
* PCpipe[1] 5
* debug 6
* pmtab floating, any fd will do
*/
#ifdef DEBUG
#define FILE_RESERVED 8
#else
#define FILE_RESERVED 7
#endif
/*
* flag value for strcheck()
*/
#define NUM 0
#define ALNUM 1
#define ALARMTIME 60