12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef _PROTOCOLS_RWHOD_H
- #define _PROTOCOLS_RWHOD_H 1
- #include <sys/types.h>
- struct outmp {
- char out_line[8];
- char out_name[8];
- int32_t out_time;
- };
- struct whod {
- char wd_vers;
- char wd_type;
- char wd_pad[2];
- int wd_sendtime;
- int wd_recvtime;
- char wd_hostname[32];
- int wd_loadav[3];
- int wd_boottime;
- struct whoent {
- struct outmp we_utmp;
- int we_idle;
- } wd_we[1024 / sizeof (struct whoent)];
- };
- #define WHODVERSION 1
- #define WHODTYPE_STATUS 1
- #include <paths.h>
- #endif
|