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 2 times
  • in line 28(2)
whod defined in line 18; never used
whoent defined in line 27; used 2 times
  • in line 30(2)

Defined macros

WHODTYPE_STATUS defined in line 34; never used
WHODVERSION defined in line 33; never used
Last modified: 1987-08-26
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1580
Valid CSS Valid XHTML 1.0 Strict