rnusers.x revision 1832
11832Swollman/* 21832Swollman * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 31832Swollman * unrestricted use provided that this legend is included on all tape 41832Swollman * media and as a part of the software program in whole or part. Users 51832Swollman * may copy or modify Sun RPC without charge, but are not authorized 61832Swollman * to license or distribute it to anyone else except as part of a product or 71832Swollman * program developed by the user. 81832Swollman * 91832Swollman * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 101832Swollman * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 111832Swollman * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 121832Swollman * 131832Swollman * Sun RPC is provided with no support and without any obligation on the 141832Swollman * part of Sun Microsystems, Inc. to assist in its use, correction, 151832Swollman * modification or enhancement. 161832Swollman * 171832Swollman * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 181832Swollman * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 191832Swollman * OR ANY PART THEREOF. 201832Swollman * 211832Swollman * In no event will Sun Microsystems, Inc. be liable for any lost revenue 221832Swollman * or profits or other special, indirect and consequential damages, even if 231832Swollman * Sun has been advised of the possibility of such damages. 241832Swollman * 251832Swollman * Sun Microsystems, Inc. 261832Swollman * 2550 Garcia Avenue 271832Swollman * Mountain View, California 94043 281832Swollman */ 291832Swollman 301832Swollman/* 311832Swollman * Find out about remote users 321832Swollman */ 331832Swollman 341832Swollman#ifndef RPC_HDR 351832Swollman%#ifndef lint 361832Swollman%/*static char sccsid[] = "from: @(#)rnusers.x 1.2 87/09/20 Copyr 1987 Sun Micro";*/ 371832Swollman%/*static char sccsid[] = "from: @(#)rnusers.x 2.1 88/08/01 4.0 RPCSRC";*/ 381832Swollman%static char rcsid[] = "$Id: rnusers.x,v 1.1 1993/09/14 17:42:46 jtc Exp $"; 391832Swollman%#endif /* not lint */ 401832Swollman#endif 411832Swollman 421832Swollmanconst MAXUSERS = 100; 431832Swollmanconst MAXUTLEN = 256; 441832Swollman 451832Swollmanstruct utmp { 461832Swollman string ut_line<MAXUTLEN>; 471832Swollman string ut_name<MAXUTLEN>; 481832Swollman string ut_host<MAXUTLEN>; 491832Swollman int ut_time; 501832Swollman}; 511832Swollman 521832Swollman 531832Swollmanstruct utmpidle { 541832Swollman utmp ui_utmp; 551832Swollman unsigned int ui_idle; 561832Swollman}; 571832Swollman 581832Swollmantypedef utmp utmparr<MAXUSERS>; 591832Swollman 601832Swollmantypedef utmpidle utmpidlearr<MAXUSERS>; 611832Swollman 621832Swollmanprogram RUSERSPROG { 631832Swollman /* 641832Swollman * Old version does not include idle information 651832Swollman */ 661832Swollman version RUSERSVERS_ORIG { 671832Swollman int 681832Swollman RUSERSPROC_NUM(void) = 1; 691832Swollman 701832Swollman utmparr 711832Swollman RUSERSPROC_NAMES(void) = 2; 721832Swollman 731832Swollman utmparr 741832Swollman RUSERSPROC_ALLNAMES(void) = 3; 751832Swollman } = 1; 761832Swollman 771832Swollman /* 781832Swollman * Includes idle information 791832Swollman */ 801832Swollman version RUSERSVERS_IDLE { 811832Swollman int 821832Swollman RUSERSPROC_NUM(void) = 1; 831832Swollman 841832Swollman utmpidlearr 851832Swollman RUSERSPROC_NAMES(void) = 2; 861832Swollman 871832Swollman utmpidlearr 881832Swollman RUSERSPROC_ALLNAMES(void) = 3; 891832Swollman } = 2; 901832Swollman} = 100002; 911832Swollman 92