# 2.11BSD#431 - /usr/include/protocols/rwhod.h

##### Macros

    WHODTYPE_STATUS   X
    WHODVERSION       X

##### struct's

    outmp             X
    whod              X
    whoent            X

       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:     long    wd_sendtime;        /* time stamp by sender */
      23:     long    wd_recvtime;        /* time stamp applied by receiver */
      24:     char    wd_hostname[32];    /* hosts's name */
      25:     long    wd_loadav[3];       /* load average as in uptime */
      26:     long    wd_boottime;        /* time system booted */
      27:     struct  whoent {
      28:         struct  outmp we_utmp;  /* active tty info */
      29:         long    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 4 times

- in line 28(2)
- in /usr/src/ucb/rwho.c line 30(2)

whod defined in line 18; used 30 times

- in /usr/src/ucb/ruptime.c line 25-28(4), 49-52(4), 104-107(6)
- in /usr/src/ucb/rwho.c line 24(2), 51(2), 82(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 62(2), 149-152(4), 431(4)

whoent defined in line 27; used 22 times

- in line 30(2)
- in /usr/src/ucb/ruptime.c line 53(2), 113(2)
- in /usr/src/ucb/rwho.c line 52(2), 93(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 185-186(4), 241(2), 271(2), 432(2), 443(2)

#### Defined macros

WHODTYPE_STATUS defined in line 34; used 2 times

- in /usr/src/usr.sbin/rwhod/rwhod.c line 166, 308

WHODVERSION defined in line 33; used 2 times

- in /usr/src/usr.sbin/rwhod/rwhod.c line 164, 307

#### Usage of this include

rwhod.h used 3 times

- in /usr/src/ucb/ruptime.c line 18
- in /usr/src/ucb/rwho.c line 20
- in /usr/src/usr.sbin/rwhod/rwhod.c line 35

Last modified: 1987-08-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1067 |