protect all user-level include files against reinclusion
[unix-history] / usr / src / include / protocols / rwhod.h
CommitLineData
8c5eec2f 1/*
fc1b452b
KB
2 * Copyright (c) 1983 The Regents of the University of California.
3 * All rights reserved.
8c5eec2f 4 *
269a7923 5 * %sccs.include.redist.c%
fc1b452b 6 *
d2b7358e 7 * @(#)rwhod.h 5.6 (Berkeley) %G%
8c5eec2f 8 */
5de4d48e 9
d2b7358e
KB
10#ifndef _RWHOD_H_
11#define _RWHOD_H_
12
a87e0408
SL
13/*
14 * rwho protocol packet format.
15 */
c6dfc0d1
BJ
16struct outmp {
17 char out_line[8]; /* tty name */
18 char out_name[8]; /* user id */
19 long out_time; /* time on */
20};
21
5de4d48e 22struct whod {
409263f6 23 char wd_vers; /* protocol version # */
a87e0408 24 char wd_type; /* packet type, see below */
409263f6 25 char wd_pad[2];
a87e0408
SL
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 */
5de4d48e 31 struct whoent {
c6dfc0d1 32 struct outmp we_utmp; /* active tty info */
a87e0408 33 int we_idle; /* tty idle time */
5de4d48e
BJ
34 } wd_we[1024 / sizeof (struct whoent)];
35};
a82aa56a 36
409263f6 37#define WHODVERSION 1
a87e0408 38#define WHODTYPE_STATUS 1 /* host status */
a7e1d12d 39
d4981f83 40#define _PATH_RWHODIR "/var/rwho"
d2b7358e
KB
41
42#endif /* !_RWHOD_H_ */