rnusers.x revision 1832
138774Snsouch/*
293023Snsouch * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
338774Snsouch * unrestricted use provided that this legend is included on all tape
438774Snsouch * media and as a part of the software program in whole or part.  Users
538774Snsouch * may copy or modify Sun RPC without charge, but are not authorized
638774Snsouch * to license or distribute it to anyone else except as part of a product or
738774Snsouch * program developed by the user.
838774Snsouch *
938774Snsouch * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1038774Snsouch * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
1138774Snsouch * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
1238774Snsouch *
1338774Snsouch * Sun RPC is provided with no support and without any obligation on the
1438774Snsouch * part of Sun Microsystems, Inc. to assist in its use, correction,
1538774Snsouch * modification or enhancement.
1638774Snsouch *
1738774Snsouch * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
1838774Snsouch * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
1938774Snsouch * OR ANY PART THEREOF.
2038774Snsouch *
2138774Snsouch * In no event will Sun Microsystems, Inc. be liable for any lost revenue
2238774Snsouch * or profits or other special, indirect and consequential damages, even if
2338774Snsouch * Sun has been advised of the possibility of such damages.
2438774Snsouch *
2538774Snsouch * Sun Microsystems, Inc.
2650477Speter * 2550 Garcia Avenue
2738774Snsouch * Mountain View, California  94043
2838774Snsouch */
2938774Snsouch
3038774Snsouch/*
3138774Snsouch * Find out about remote users
3238774Snsouch */
3343301Sdillon
3438774Snsouch#ifndef RPC_HDR
3538774Snsouch%#ifndef lint
3638774Snsouch%/*static char sccsid[] = "from: @(#)rnusers.x 1.2 87/09/20 Copyr 1987 Sun Micro";*/
3738774Snsouch%/*static char sccsid[] = "from: @(#)rnusers.x	2.1 88/08/01 4.0 RPCSRC";*/
3838774Snsouch%static char rcsid[] = "$Id: rnusers.x,v 1.1 1993/09/14 17:42:46 jtc Exp $";
3938774Snsouch%#endif /* not lint */
4038774Snsouch#endif
4138774Snsouch
4238774Snsouchconst MAXUSERS = 100;
4338774Snsouchconst MAXUTLEN = 256;
4438774Snsouch
4538774Snsouchstruct utmp {
4638774Snsouch	string ut_line<MAXUTLEN>;
4738774Snsouch	string ut_name<MAXUTLEN>;
4838774Snsouch	string ut_host<MAXUTLEN>;
4938774Snsouch	int ut_time;
5038774Snsouch};
5138774Snsouch
5238774Snsouch
5338774Snsouchstruct utmpidle {
5438774Snsouch	utmp ui_utmp;
5538774Snsouch	unsigned int ui_idle;
5638774Snsouch};
5738774Snsouch
5838774Snsouchtypedef utmp utmparr<MAXUSERS>;
5938774Snsouch
6038774Snsouchtypedef utmpidle utmpidlearr<MAXUSERS>;
6138774Snsouch
6240782Snsouchprogram RUSERSPROG {
6340782Snsouch	/*
6438774Snsouch	 * Old version does not include idle information
6540782Snsouch	 */
6640782Snsouch	version RUSERSVERS_ORIG {
6740782Snsouch		int
6840782Snsouch		RUSERSPROC_NUM(void) = 1;
6940782Snsouch
7040782Snsouch		utmparr
7138774Snsouch		RUSERSPROC_NAMES(void) = 2;
7238774Snsouch
7338774Snsouch		utmparr
7438774Snsouch		RUSERSPROC_ALLNAMES(void) = 3;
7538774Snsouch	} = 1;
7638774Snsouch
7738774Snsouch	/*
7838774Snsouch	 * Includes idle information
7938774Snsouch	 */
8038774Snsouch	version RUSERSVERS_IDLE {
8138774Snsouch		int
8238774Snsouch		RUSERSPROC_NUM(void) = 1;
8338774Snsouch
8438774Snsouch		utmpidlearr
8538774Snsouch		RUSERSPROC_NAMES(void) = 2;
8638774Snsouch
8738774Snsouch		utmpidlearr
8838774Snsouch		RUSERSPROC_ALLNAMES(void) = 3;
8938774Snsouch	} = 2;
9038774Snsouch} = 100002;
9138774Snsouch
9240782Snsouch