1 /* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)rwhod.h 8.1 (Berkeley) 06/02/93 8 */ 9 10 #ifndef _RWHOD_H_ 11 #define _RWHOD_H_ 12 13 /* 14 * rwho protocol packet format. 15 */ 16 struct outmp { 17 char out_line[8]; /* tty name */ 18 char out_name[8]; /* user id */ 19 long out_time; /* time on */ 20 }; 21 22 struct whod { 23 char wd_vers; /* protocol version # */ 24 char wd_type; /* packet type, see below */ 25 char wd_pad[2]; 26 int wd_sendtime; /* time stamp by sender */ 27 int wd_recvtime; /* time stamp applied by receiver */ 28 char wd_hostname[32]; /* hosts's name */ 29 int wd_loadav[3]; /* load average as in uptime */ 30 int wd_boottime; /* time system booted */ 31 struct whoent { 32 struct outmp we_utmp; /* active tty info */ 33 int we_idle; /* tty idle time */ 34 } wd_we[1024 / sizeof (struct whoent)]; 35 }; 36 37 #define WHODVERSION 1 38 #define WHODTYPE_STATUS 1 /* host status */ 39 40 #define _PATH_RWHODIR "/var/rwho" 41 42 #endif /* !_RWHOD_H_ */ 43