4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */
33 #if !defined(_LP_FORM_H)
37 ** The disk copy of the form files:
41 * There are 10 fields in the form configuration file.
56 ** The internal copy of a form as seen by the rest of the world:
76 * Default configuration values:
83 #define DCHSET NAME_ANY
84 #define DRCOLOR NAME_ANY
85 #define DCONTYP NAME_SIMPLE
86 #define ENDENV "#ENDOF_ENV\n"
87 #define MANSTR "mandatory"
88 #define DFTSTR "default"
91 * These are the filenames that may be used for storing a form
93 #define DESCRIBE "describe"
94 #define COMMENT "comment"
95 #define ALIGN_PTRN "align_ptrn"
96 #define ALERTSH "alert.sh"
97 #define ALERTVARS "alert.vars"
99 #define err_hndlr int (*)( int , int , int )
101 int delform ( char * );
102 int getform ( char * , FORM
* , FALERT
* , FILE ** );
103 int putform ( char * , FORM
* , FALERT
* , FILE ** );
104 int rdform ( char * , FORM
* , int , err_hndlr
, int * );
105 int wrform ( char * , FORM
* , int , err_hndlr
, int * );
107 void freeform ( FORM
* );