xref: /titanic_52/usr/src/cmd/lp/include/users.h (revision 88447a05f537aabe9a1bc3d5313f22581ec992a7)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.6	*/
27 
28 #if	!defined(_LP_USERS_H)
29 #define	_LP_USERS_H
30 
31 #include "stdio.h"
32 
33 typedef struct
34 {
35     short	priority_limit;
36 }
37 USER;
38 
39 int		putuser ( char * , USER * );
40 int		deluser ( char * );
41 int		getdfltpri ( void );
42 void		trashusers ( void );
43 
44 USER *		getuser ( char *);
45 
46 #define LEVEL_DFLT 20
47 #define LIMIT_DFLT 0
48 
49 #define TRUE  1
50 #define FALSE 0
51 
52 #define PRI_MAX 39
53 #define	PRI_MIN	 0
54 
55 #define LPU_MODE 0644
56 
57 struct user_priority
58 {
59     short	deflt;		/* priority to use when not specified */
60     short	deflt_limit;	/* priority limit for users not
61 				   otherwise specified */
62     char	**users[PRI_MAX - PRI_MIN + 1];
63 };
64 
65 #endif
66