1
0
Files
2022-09-29 17:59:04 +03:00

76 lines
1.9 KiB
C

/*
* |-----------------------------------------------------------|
* | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc. |
* | All Rights Reserved |
* |-----------------------------------------------------------|
* | Restricted Rights Legend |
* | Use, duplication, or disclosure by the Government is |
* | subject to restrictions as set forth in |
* | subparagraph (c)(1)(ii) of the Rights in Technical |
* | Data and Computer Software Clause of DFARS 252.227-7013. |
* | MIPS Computer Systems, Inc. |
* | 950 DeGuigne Avenue |
* | Sunnyvale, California 94088-3650, USA |
* |-----------------------------------------------------------|
*/
/* $Header: /proj/irix6.5.7m/isms/eoe/cmd/lp_svr4/include/RCS/users.h,v 1.1 1992/12/14 13:23:39 suresh Exp $ */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#if !defined(_LP_USERS_H)
#define _LP_USERS_H
#include "stdio.h"
typedef struct
{
short priority_limit;
}
USER;
#if (defined(__STDC__) || (__SVR4__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