Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/protocol...
File: rwhod.h
/*
[0] Fix | Delete
* Copyright (c) 1983, 1993
[1] Fix | Delete
* The Regents of the University of California. All rights reserved.
[2] Fix | Delete
*
[3] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[4] Fix | Delete
* modification, are permitted provided that the following conditions
[5] Fix | Delete
* are met:
[6] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[7] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[8] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[9] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[10] Fix | Delete
* documentation and/or other materials provided with the distribution.
[11] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[12] Fix | Delete
* may be used to endorse or promote products derived from this software
[13] Fix | Delete
* without specific prior written permission.
[14] Fix | Delete
*
[15] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[16] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[17] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[18] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[19] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[20] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[21] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[22] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[23] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[24] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[25] Fix | Delete
* SUCH DAMAGE.
[26] Fix | Delete
*
[27] Fix | Delete
* @(#)rwhod.h 8.1 (Berkeley) 6/2/93
[28] Fix | Delete
*/
[29] Fix | Delete
[30] Fix | Delete
#ifndef _PROTOCOLS_RWHOD_H
[31] Fix | Delete
#define _PROTOCOLS_RWHOD_H 1
[32] Fix | Delete
[33] Fix | Delete
#include <sys/types.h>
[34] Fix | Delete
[35] Fix | Delete
/*
[36] Fix | Delete
* rwho protocol packet format.
[37] Fix | Delete
*/
[38] Fix | Delete
struct outmp {
[39] Fix | Delete
char out_line[8]; /* tty name */
[40] Fix | Delete
char out_name[8]; /* user id */
[41] Fix | Delete
int32_t out_time; /* time on */
[42] Fix | Delete
};
[43] Fix | Delete
[44] Fix | Delete
struct whod {
[45] Fix | Delete
char wd_vers; /* protocol version # */
[46] Fix | Delete
char wd_type; /* packet type, see below */
[47] Fix | Delete
char wd_pad[2];
[48] Fix | Delete
int wd_sendtime; /* time stamp by sender */
[49] Fix | Delete
int wd_recvtime; /* time stamp applied by receiver */
[50] Fix | Delete
char wd_hostname[32]; /* hosts's name */
[51] Fix | Delete
int wd_loadav[3]; /* load average as in uptime */
[52] Fix | Delete
int wd_boottime; /* time system booted */
[53] Fix | Delete
struct whoent {
[54] Fix | Delete
struct outmp we_utmp; /* active tty info */
[55] Fix | Delete
int we_idle; /* tty idle time */
[56] Fix | Delete
} wd_we[1024 / sizeof (struct whoent)];
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
#define WHODVERSION 1
[60] Fix | Delete
#define WHODTYPE_STATUS 1 /* host status */
[61] Fix | Delete
[62] Fix | Delete
/* We used to define _PATH_RWHODIR here but it's now in <paths.h>. */
[63] Fix | Delete
#include <paths.h>
[64] Fix | Delete
[65] Fix | Delete
#endif /* protocols/rwhod.h */
[66] Fix | Delete
[67] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function