blob: d884f5cd27ae0421aafdaa7ca05a51f11cdaab8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* -*- C++ -*- */
// $Id$
/* The /usr/include/protocols/rwhod.h header breaks cfront 2.0... */
#ifndef _RWHOD_H
#define _RWHOD_H
struct outmp
{
char out_line[8]; /* tty name */
char out_name[8]; /* user id */
long out_time; /* time on */
};
struct whoent
{
outmp we_utmp; /* active tty info */
int we_idle; /* tty idle time */
};
struct whod
{
char wd_vers; /* protocol version # */
char wd_type; /* packet type, see below */
char wd_pad[2];
int wd_sendtime; /* time stamp by sender */
int wd_recvtime; /* time stamp applied by receiver */
char wd_hostname[32]; /* hosts's name */
int wd_loadav[3]; /* load average as in uptime */
int wd_boottime; /* time system booted */
whoent wd_we[1024 / sizeof (struct whoent)];
};
#define WHODVERSION 1
#define WHODTYPE_STATUS 1 /* host status */
#endif /* _RWHOD_H */
|