[ SEA-GHOST MINI SHELL]
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _REX_H_RPCGEN
#define _REX_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
#define STRINGSIZE 1024
typedef char *rexstring;
#define SIGINT 2
#define REX_INTERACTIVE 1
struct rex_start {
struct {
u_int rst_cmd_len;
rexstring *rst_cmd_val;
} rst_cmd;
rexstring rst_host;
rexstring rst_fsname;
rexstring rst_dirwithin;
struct {
u_int rst_env_len;
rexstring *rst_env_val;
} rst_env;
u_int rst_port0;
u_int rst_port1;
u_int rst_port2;
u_int rst_flags;
};
typedef struct rex_start rex_start;
struct rex_result {
int rlt_stat;
rexstring rlt_message;
};
typedef struct rex_result rex_result;
struct sgttyb {
u_int four;
char chars[4];
u_int flags;
};
typedef struct sgttyb sgttyb;
#define B0 0
#define B50 1
#define B75 2
#define B110 3
#define B134 4
#define B150 5
#define B200 6
#define B300 7
#define B600 8
#define B1200 9
#define B1800 10
#define B2400 11
#define B4800 12
#define B9600 13
#define B19200 14
#define B38400 15
#define TANDEM 0x00000001
#define CBREAK 0x00000002
#define LCASE 0x00000004
#define ECHO 0x00000008
#define CRMOD 0x00000010
#define RAW 0x00000020
#define ODDP 0x00000040
#define EVENP 0x00000080
#define ANYP 0x000000c0
#define NLDELAY 0x00000300
#define NL0 0x00000000
#define NL1 0x00000100
#define NL2 0x00000200
#define NL3 0x00000300
#define TBDELAY 0x00000c00
#define TAB0 0x00000000
#define TAB1 0x00000400
#define TAB2 0x00000800
#define XTABS 0x00000c00
#define CRDELAY 0x00003000
#define CR0 0x00000000
#define CR1 0x00001000
#define CR2 0x00002000
#define CR3 0x00003000
#define VTDELAY 0x00004000
#define FF0 0x00000000
#define FF1 0x00004000
#define BSDELAY 0x00008000
#define BS0 0x00000000
#define BS1 0x00008000
#define CRTBS 0x00010000
#define PRTERA 0x00020000
#define CRTERA 0x00040000
#define TILDE 0x00080000
#define MDMBUF 0x00100000
#define LITOUT 0x00200000
#define TOSTOP 0x00400000
#define FLUSHO 0x00800000
#define NOHANG 0x01000000
#define L001000 0x02000000
#define CRTKIL 0x04000000
#define PASS8 0x08000000
#define CTLECH 0x10000000
#define PENDIN 0x20000000
#define DECCTQ 0x40000000
#define NOFLSH 0x80000000
struct tchars {
u_int six;
char chars[6];
};
typedef struct tchars tchars;
struct ltchars {
u_int six;
char chars[6];
u_int mode;
};
typedef struct ltchars ltchars;
struct rex_ttysize {
int ts_lines;
int ts_cols;
};
typedef struct rex_ttysize rex_ttysize;
struct rex_ttymode {
sgttyb basic;
tchars more;
ltchars yetmore;
u_int andmore;
};
typedef struct rex_ttymode rex_ttymode;
#define LCRTBS 0x0001
#define LPRTERA 0x0002
#define LCRTERA 0x0004
#define LTILDE 0x0008
#define LMDMBUF 0x0010
#define LLITOUT 0x0020
#define LTOSTOP 0x0040
#define LFLUSHO 0x0080
#define LNOHANG 0x0100
#define LL001000 0x0200
#define LCRTKIL 0x0400
#define LPASS8 0x0800
#define LCTLECH 0x1000
#define LPENDIN 0x2000
#define LDECCTQ 0x4000
#define LNOFLSH 0x8000
#define REXPROG 100017
#define REXVERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define REXPROC_START 1
extern rex_result * rexproc_start_1(rex_start *, CLIENT *);
extern rex_result * rexproc_start_1_svc(rex_start *, struct svc_req *);
#define REXPROC_WAIT 2
extern rex_result * rexproc_wait_1(void *, CLIENT *);
extern rex_result * rexproc_wait_1_svc(void *, struct svc_req *);
#define REXPROC_MODES 3
extern void * rexproc_modes_1(rex_ttymode *, CLIENT *);
extern void * rexproc_modes_1_svc(rex_ttymode *, struct svc_req *);
#define REXPROC_WINCH 4
extern void * rexproc_winch_1(rex_ttysize *, CLIENT *);
extern void * rexproc_winch_1_svc(rex_ttysize *, struct svc_req *);
#define REXPROC_SIGNAL 5
extern void * rexproc_signal_1(int *, CLIENT *);
extern void * rexproc_signal_1_svc(int *, struct svc_req *);
extern int rexprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define REXPROC_START 1
extern rex_result * rexproc_start_1();
extern rex_result * rexproc_start_1_svc();
#define REXPROC_WAIT 2
extern rex_result * rexproc_wait_1();
extern rex_result * rexproc_wait_1_svc();
#define REXPROC_MODES 3
extern void * rexproc_modes_1();
extern void * rexproc_modes_1_svc();
#define REXPROC_WINCH 4
extern void * rexproc_winch_1();
extern void * rexproc_winch_1_svc();
#define REXPROC_SIGNAL 5
extern void * rexproc_signal_1();
extern void * rexproc_signal_1_svc();
extern int rexprog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_rexstring (XDR *, rexstring*);
extern bool_t xdr_rex_start (XDR *, rex_start*);
extern bool_t xdr_rex_result (XDR *, rex_result*);
extern bool_t xdr_sgttyb (XDR *, sgttyb*);
extern bool_t xdr_tchars (XDR *, tchars*);
extern bool_t xdr_ltchars (XDR *, ltchars*);
extern bool_t xdr_rex_ttysize (XDR *, rex_ttysize*);
extern bool_t xdr_rex_ttymode (XDR *, rex_ttymode*);
#else /* K&R C */
extern bool_t xdr_rexstring ();
extern bool_t xdr_rex_start ();
extern bool_t xdr_rex_result ();
extern bool_t xdr_sgttyb ();
extern bool_t xdr_tchars ();
extern bool_t xdr_ltchars ();
extern bool_t xdr_rex_ttysize ();
extern bool_t xdr_rex_ttymode ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_REX_H_RPCGEN */
SEA-GHOST - SHELL CODING BY SEA-GHOST