1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)rwhod.h 5.1 (Berkeley) 5/28/85
7: */
8:
9: /*
10: * rwho protocol packet format.
11: */
12: struct outmp {
13: char out_line[8]; /* tty name */
14: char out_name[8]; /* user id */
15: long out_time; /* time on */
16: };
17:
18: struct whod {
19: char wd_vers; /* protocol version # */
20: char wd_type; /* packet type, see below */
21: char wd_pad[2];
22: int wd_sendtime; /* time stamp by sender */
23: int wd_recvtime; /* time stamp applied by receiver */
24: char wd_hostname[32]; /* hosts's name */
25: int wd_loadav[3]; /* load average as in uptime */
26: int wd_boottime; /* time system booted */
27: struct whoent {
28: struct outmp we_utmp; /* active tty info */
29: int we_idle; /* tty idle time */
30: } wd_we[1024 / sizeof (struct whoent)];
31: };
32:
33: #define WHODVERSION 1
34: #define WHODTYPE_STATUS 1 /* host status */
Defined struct's
outmp
defined in line
12; used 2 times
whod
defined in line
18;
never used
Defined macros