/*
 *   COMPONENT_NAME: onchdrs
 *
 *   FUNCTIONS: none
 *
 *   ORIGINS: 24,27
 *
 *
 *   (C) COPYRIGHT International Business Machines Corp. 1988,1993
 *   All Rights Reserved
 *   Licensed Materials - Property of IBM
 *   US Government Users Restricted Rights - Use, duplication or
 *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */


/*
 * Copyright (c) 1988 by Sun Microsystems, Inc.
 */

/*	(#)rusers.h	1.2 88/05/08 4.0NFSSRC SMI	*/

/* 
 * (#) from SUN 1.6
 */

#ifndef _H_rpcsvc_rusers
#define _H_rpcsvc_rusers

#include <rpc/xdr.h>

#define RUSERSPROC_NUM 1
#define RUSERSPROC_NAMES 2
#define RUSERSPROC_ALLNAMES 3
#define RUSERSPROG 100002
#define RUSERSVERS_ORIG 1
#define RUSERSVERS_IDLE 2
#define RUSERSVERS 2

#define MAXUSERS 100

/*
 * Structure of BSD utmp and wtmp files.
 * Needed because SUN in their infinite
 * wisdom chose to send it on the net.
 */
struct bsd_utmp {
	char	ut_line[8];	/* tty name */
	char	ut_name[8];	/* user id */
	char	ut_host[16];	/* host name, if remote */
	long	ut_time;	/* time on */
};

struct utmparr {
	struct bsd_utmp **uta_arr;
	int uta_cnt;
};
bool_t xdr_utmparr(XDR *, struct utmparr *);


struct utmpidle {
	struct bsd_utmp ui_utmp;
	unsigned ui_idle;
};

struct utmpidlearr {
	struct utmpidle **uia_arr;
	int uia_cnt;
};
bool_t xdr_utmpidlearr(XDR *, struct utmpidlearr *);

#endif /*_H_rpcsvc_rusers*/
