/*	Copyright (c) 1990 UNIX System Laboratories, Inc.	*/
/*	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF     	*/
/*	UNIX System Laboratories, Inc.                     	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/


#ident	"@(#)lp:include/users.h	1.6.2.1"

#if	!defined(_LP_USERS_H)
#define	_LP_USERS_H

#include "stdio.h"

typedef struct
{
    short	priority_limit;
}
USER;

#if	defined(__STDC__)

int		putuser ( char * , USER * );
int		deluser ( char * );
int		getdfltpri ( void );
int		trashusers ( void );

USER *		getuser ( char *);

#else

int		putuser(),
		deluser(),
		getdfltpri(),
		trashusers();

USER *		getuser();

#endif

#define LEVEL_DFLT 20
#define LIMIT_DFLT 0

#define TRUE  1
#define FALSE 0

#define PRI_MAX 39
#define	PRI_MIN	 0

#define LPU_MODE 0644

struct user_priority
{
    short	deflt;		/* priority to use when not specified */
    short	deflt_limit;	/* priority limit for users not
				   otherwise specified */
    char	**users[PRI_MAX - PRI_MIN + 1];
};

#endif
