home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved.
- *
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE
- * SANTA CRUZ OPERATION INC.
- *
- * The copyright notice above does not evidence any actual or intended
- * publication of such source code.
- */
-
- #ifndef _TTYSRV_H
- #define _TTYSRV_H
-
- #ident "@(#)sgs-head:common/head/ttysrv.h 1.2"
- #ident "@(#)ttysrv.h 1.3"
-
- #define PROC_L "/usr/net/adm/cfg/ttysrv.pl"
- #define CHGE_PROC_L "/usr/net/adm/tmp/ttysrv.cp"
- #define TSTAB "/usr/net/adm/cfg/ttysrv.db"
-
- #define MAXTRIES 5
- #define DECREMENT 0
- #define INCREMENT 1
- #define TRUE 1
- #define FALSE 0
-
- /* Streams modules pushed by ttysrv */
-
- #define NTTY "ntty"
- #define LD0 "ld0"
- #define RDWR "tirdwr"
-
- /* Control characters for the menu */
-
- #define DEL 0177
- #define FS 034
- #define ERASE 010
- #define KILL 0100
- #define EOT 04
-
- /* Maximum page sizes */
-
- #define MAXPAGSRV 18
- #define FIELDLEN 80
- #define SRVFIELD 18
-
- #define MAXLNLEN 512
- #define MAXSYS 256
-
- #define TSMENU 01 /* Menu was made already */
- #define TSMENUSNT 02 /* Menu of systems sent to user */
- #define TSERROR 04 /* Error message to user */
- #define TSWAIT 010 /* Wait for answer from user */
- #define TSCHGERR 020 /* Error in changing proc file */
- #define TSLOGERR 040 /* Error in opening log */
- #define TSSIGHUP 0100 /* SIGHUP indication */
- #define TSDEFAULT 0200 /* Execute the default entry in the database */
- #define TSEDIT 0400 /* Edited the process limit file successfully*/
- #define TSNOLIMIT 01000 /* No process limit file */
- #define TSSERVICE 02000 /* Service Executed properly */
-
- #define HSIZE 2048
- #define FDOUTBNDS 21
-
- struct proclim {
- int count;
- int maxcnt;
- };
-
- typedef char SERVICES[15];
-
- extern char *calspace[];
- extern short calindex;
-
- typedef char bool;
-
- #endif /* _TTYSRV_H */
-