Ultrix-3.1/src/cmd/lprsetup/lprsetup.h

Compare this file to the similar file:
Show the results in this format:


/**********************************************************************
 *   Copyright (c) Digital Equipment Corporation 1984, 1985, 1986.    *
 *   All Rights Reserved. 					      *
 *   Reference "/usr/src/COPYRIGHT" for applicable restrictions.      *
 **********************************************************************/

/*	SCCSID: @(#)lprsetup.h	3.0	4/21/86	     */

/**************************************
* lprsetup.h
**************************************/
#include <stdio.h>
#include <signal.h>
#include <ctype.h>
#include <sys/ioctl.h>
#include <pwd.h>
#include <time.h>

/**************************
* file name defines
**************************/

#ifdef LOCAL
/* SEE ALSO printlib.c for PRINTCAP defined again */ 

#define PRINTCAP "printcap"	/* printcap pathname		*/
#define COPYCAP	"copycap"	/* copy file printcap pathname	*/
#define LOGCAP	"printcap.log"	/* copy file printcap pathname	*/

#else NO LOCAL

#define PRINTCAP "/etc/printcap"	/* printcap pathname		*/
#define COPYCAP	"/etc/pcap.tmp"		/* copy file printcap pathname	*/
#define LOGCAP	"/usr/adm/printcap.log"	/* copy file printcap pathname	*/

#endif LOCAL

#define	DAEMON	"daemon"	/* daemon passwd name	 	*/
#define UNKNOWN "unknown"	/* unknown printer name	 	*/
#define ULF	"/usr/lib/ulf"	/* default output filter	*/
#define	EDTTY	"/bin/ed - /etc/ttys"	/* edit /etc/ttys file  */

#define	SUPERUSER	0	/* root pid			*/
#define	LEN		256	/* entry string length		*/
#define DIR		0755	/* directory mode		*/

/************************
* getcmd returns
************************/
#define	NO		0
#define	YES		1
#define	NOREPLY		2
#define PRINT		3
#define	HELP		4
#define	GOT_SYMBOL	5	/* add a symbol */
#define	QUIT		6
#define	CTRLD		7
#define USED		8	/* only print used symbols */
#define ALL		9	/* print all symbols */
#define	BOOL		10	/* boolean symbol */
#define	INT		11	/* integer symbol */
#define	STR		12	/* string symbol */
#define OFF		13	/* boolean off */
#define ON		14	/* boolean on */
#define ADD		15	/* add entry */
#define MODIFY		16	/* modify entry */
#define DELETE		17	/* delete entry */
#define LIST		18	/* list all possible symbols */


#define BUF_LINE	250	/* line length buffer */
#define BUF_WORD	40	/* word length buffer */
#define TRUE		1	/* return(...) codes */
#define FALSE		0
#define BAD		-1	/* used in misc: validate() routine */
#define	ERROR		1
#define	OK		0
#define NOT		!

int	modifying;		/* TRUE when modifying in modify() routine */

struct table
{
    char   *name;		/* symbol name goes here */
    char   *svalue;		/* default value of symbol */
    int     stype;		/* type of symbol: BOOL, INT, or STR */
    int     used;		/* True if using symbol for this printcap */
    char   *nvalue;		/* new value of symbol */
};

struct nameval
{
    char   *name;		/* symbol name */
    char   *svalue;		/* value of symbol */
};

struct cmdtyp
{
    char   *cmd_name;
    int     cmd_id;
};

/*
 * Do not add help codes here
 * without first updating "globals.h".
 */
#define H_af	0
#define H_br	1
#define H_dn	2
#define H_du	3
#define H_fc	4
#define H_ff	5
#define H_fo	6
#define H_fs	7
#define H_lf	8
#define H_lo	9
#define H_lp	10
#define H_mx	11
#define H_nc	12
#define H_of	13
#define H_pl	14
#define H_pw	15
#define H_rw	16
#define H_sd	17
#define H_sf	18
#define H_sh	19
#define H_tr	20
#define H_xc	21
#define H_xs	22
/* end of help codes */

/* general help messages */
extern char h_help[];
extern char h_helps[];
extern char h_doadd[];
extern char h_dodel[];
extern char h_domod[];
extern char h_synonym[];
extern char h_default[];

/* more specific help messges */
extern char h_af[];
extern char h_br[];
extern char h_dn[];
extern char h_du[];
extern char h_fc[];
extern char h_ff[];
extern char h_fo[];
extern char h_fs[];
extern char h_lf[];
extern char h_lo[];
extern char h_lp[];
extern char h_mx[];
extern char h_nc[];
extern char h_of[];
extern char h_pl[];
extern char h_pw[];
extern char h_rw[];
extern char h_sd[];
extern char h_sf[];
extern char h_sh[];
extern char h_tr[];
extern char h_xc[];
extern char h_xs[];

/**************************************
* end of lprsetup.h
**************************************/