use copyinstr and copystr (add copyoutstr later)
[unix-history] / usr / src / include / protocols / rwhod.h
CommitLineData
e82fdb7f 1/* rwhod.h 4.8 83/06/01 */
5de4d48e 2
a87e0408
SL
3/*
4 * rwho protocol packet format.
5 */
c6dfc0d1
BJ
6struct outmp {
7 char out_line[8]; /* tty name */
8 char out_name[8]; /* user id */
9 long out_time; /* time on */
10};
11
5de4d48e 12struct whod {
409263f6 13 char wd_vers; /* protocol version # */
a87e0408 14 char wd_type; /* packet type, see below */
409263f6 15 char wd_pad[2];
a87e0408
SL
16 int wd_sendtime; /* time stamp by sender */
17 int wd_recvtime; /* time stamp applied by receiver */
18 char wd_hostname[32]; /* hosts's name */
19 int wd_loadav[3]; /* load average as in uptime */
20 int wd_boottime; /* time system booted */
5de4d48e 21 struct whoent {
c6dfc0d1 22 struct outmp we_utmp; /* active tty info */
a87e0408 23 int we_idle; /* tty idle time */
5de4d48e
BJ
24 } wd_we[1024 / sizeof (struct whoent)];
25};
a82aa56a 26
409263f6 27#define WHODVERSION 1
a87e0408 28#define WHODTYPE_STATUS 1 /* host status */