8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / lp / include / users.h
blobcafd153d2414f524973b0031fef8e0f6f86d495b
1 /*
2 * CDDL HEADER START
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
26 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.6 */
28 #if !defined(_LP_USERS_H)
29 #define _LP_USERS_H
31 #include "stdio.h"
33 typedef struct
35 short priority_limit;
37 USER;
39 int putuser ( char * , USER * );
40 int deluser ( char * );
41 int getdfltpri ( void );
42 void trashusers ( void );
44 USER * getuser ( char *);
46 #define LEVEL_DFLT 20
47 #define LIMIT_DFLT 0
49 #define TRUE 1
50 #define FALSE 0
52 #define PRI_MAX 39
53 #define PRI_MIN 0
55 #define LPU_MODE 0644
57 struct user_priority
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];
65 #endif