⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serv_p4.cpp

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻 CPP
📖 第 1 页 / 共 5 页
字号:
# 212 "/usr/include/sys/isa_defs.h" # 211 "/usr/include/sys/isa_defs.h" # 218 "/usr/include/sys/isa_defs.h" # 253 "/usr/include/sys/isa_defs.h" # 257 "/usr/include/sys/isa_defs.h" # 14 "/usr/include/sys/byteorder.h" 2# 17 "/usr/include/sys/byteorder.h" # 56 "/usr/include/sys/byteorder.h" # 60 "/usr/include/sys/byteorder.h" # 19 "/usr/include/rpc/xdr.h" 2# 1 "/usr/ucbinclude/sys/types.h" 1#ident	"@(#)types.h	1.10	93/07/21 SMI"	 # 91 "/usr/ucbinclude/sys/types.h" # 206 "/usr/ucbinclude/sys/types.h" # 212 "/usr/ucbinclude/sys/types.h" # 310 "/usr/ucbinclude/sys/types.h" # 20 "/usr/include/rpc/xdr.h" 2# 1 "/usr/ucbinclude/stdio.h" 1 #ident	"@(#)stdio.h	1.7	95/06/08 SMI"	# 56 "/usr/ucbinclude/stdio.h" # 58 "/usr/ucbinclude/stdio.h" # 71 "/usr/ucbinclude/stdio.h" # 73 "/usr/ucbinclude/stdio.h" # 88 "/usr/ucbinclude/stdio.h" # 120 "/usr/ucbinclude/stdio.h" # 128 "/usr/ucbinclude/stdio.h" # 152 "/usr/ucbinclude/stdio.h" # 163 "/usr/ucbinclude/stdio.h" # 216 "/usr/ucbinclude/stdio.h" # 227 "/usr/ucbinclude/stdio.h" # 240 "/usr/ucbinclude/stdio.h" # 277 "/usr/ucbinclude/stdio.h" # 22 "/usr/include/rpc/xdr.h" 2# 25 "/usr/include/rpc/xdr.h" # 29 "/usr/include/rpc/xdr.h" enum xdr_op {	XDR_ENCODE = 0,	XDR_DECODE = 1,	XDR_FREE = 2};typedef struct XDR {	enum xdr_op	x_op;		struct xdr_ops {# 106 "/usr/include/rpc/xdr.h" 		bool_t	(*x_getlong)();			bool_t	(*x_putlong)();			bool_t	(*x_getbytes)(); 		bool_t	(*x_putbytes)(); 		u_int	(*x_getpostn)(); 		bool_t  (*x_setpostn)(); 		long *	(*x_inline)(); 		void	(*x_destroy)();			bool_t	(*x_control)();	} *x_ops;	caddr_t 	x_public; 	caddr_t		x_private; 	caddr_t 	x_base;		int		x_handy; } XDR;# 201 "/usr/include/rpc/xdr.h" typedef	bool_t (*xdrproc_t)();struct xdr_discrim {	int	value;	xdrproc_t proc;};# 287 "/usr/include/rpc/xdr.h" extern bool_t	xdr_void();extern bool_t	xdr_int();extern bool_t	xdr_u_int();extern bool_t	xdr_long();extern bool_t	xdr_u_long();extern bool_t	xdr_short();extern bool_t	xdr_u_short();extern bool_t	xdr_bool();extern bool_t	xdr_enum();extern bool_t	xdr_array();extern bool_t	xdr_bytes();extern bool_t	xdr_opaque();extern bool_t	xdr_string();extern bool_t	xdr_union();extern bool_t   xdr_hyper();extern bool_t   xdr_longlong_t();extern bool_t   xdr_u_hyper();extern bool_t   xdr_u_longlong_t();extern bool_t	xdr_char();extern bool_t	xdr_reference();extern bool_t	xdr_pointer();extern void	xdr_free();extern bool_t	xdr_wrapstring();extern bool_t	xdr_u_char();extern bool_t	xdr_vector();extern bool_t	xdr_float();extern bool_t	xdr_double();extern bool_t   xdr_quadruple();struct netobj {	u_int	n_len;	char	*n_bytes;};typedef struct netobj netobj;# 335 "/usr/include/rpc/xdr.h" extern bool_t   xdr_netobj();struct xdr_bytesrec {	bool_t xc_is_last_record;	size_t xc_num_avail;};typedef struct xdr_bytesrec xdr_bytesrec;# 361 "/usr/include/rpc/xdr.h" # 384 "/usr/include/rpc/xdr.h" extern void   xdrmem_create();extern void   xdrstdio_create();extern void   xdrrec_create();extern bool_t xdrrec_endofrecord();extern bool_t xdrrec_skiprecord();extern bool_t xdrrec_eof();extern u_int xdrrec_readbytes();# 407 "/usr/include/rpc/xdr.h" # 411 "/usr/include/rpc/xdr.h" # 32 "/usr/include/rpc/rpc.h" 2# 1 "/usr/include/rpc/auth.h" 1#ident	"@(#)auth.h	1.27	94/08/09 SMI"# 1 "/usr/include/rpc/xdr.h" 1# 413 "/usr/include/rpc/xdr.h" # 19 "/usr/include/rpc/auth.h" 2# 1 "/usr/include/sys/cred.h" 1#ident	"@(#)cred.h	1.18	94/12/04 SMI"	# 38 "/usr/include/sys/cred.h" # 42 "/usr/include/sys/cred.h" typedef struct cred {	ulong_t	cr_ref;				uid_t	cr_uid;				gid_t	cr_gid;				uid_t	cr_ruid;			gid_t	cr_rgid;			uid_t	cr_suid;			gid_t	cr_sgid;			ulong_t	cr_ngroups;			gid_t	cr_groups[1];		} cred_t;# 90 "/usr/include/sys/cred.h" # 94 "/usr/include/sys/cred.h" # 20 "/usr/include/rpc/auth.h" 2# 23 "/usr/include/rpc/auth.h" enum auth_stat {	AUTH_OK = 0,		AUTH_BADCRED = 1,			AUTH_REJECTEDCRED = 2,			AUTH_BADVERF = 3,			AUTH_REJECTEDVERF = 4,			AUTH_TOOWEAK = 5,				AUTH_INVALIDRESP = 6,			AUTH_FAILED = 7,					AUTH_KERB_GENERIC = 8,			AUTH_TIMEEXPIRE = 9,			AUTH_TKT_FILE = 10,			AUTH_DECODE = 11,			AUTH_NET_ADDR = 12		};typedef enum auth_stat AUTH_STAT;union des_block {	struct  {		u_long high;		u_long low;	} key;	char c[8];};typedef union des_block des_block;# 74 "/usr/include/rpc/auth.h" extern bool_t xdr_des_block();struct opaque_auth {	enum_t	oa_flavor;			caddr_t	oa_base;			u_int	oa_length;		};typedef struct __auth {	struct	opaque_auth	ah_cred;	struct	opaque_auth	ah_verf;	union	des_block	ah_key;	struct auth_ops {# 116 "/usr/include/rpc/auth.h" 		void	(*ah_nextverf)();		int	(*ah_marshal)();			int	(*ah_validate)();			int	(*ah_refresh)();			void	(*ah_destroy)();		} *ah_ops;	caddr_t ah_private;} AUTH;# 147 "/usr/include/rpc/auth.h" # 165 "/usr/include/rpc/auth.h" extern struct opaque_auth _null_auth;# 196 "/usr/include/rpc/auth.h" # 202 "/usr/include/rpc/auth.h" extern AUTH *authsys_create();extern AUTH *authsys_create_default();	extern AUTH *authnone_create();	# 224 "/usr/include/rpc/auth.h" # 228 "/usr/include/rpc/auth.h" extern AUTH *authdes_seccreate();# 244 "/usr/include/rpc/auth.h" # 253 "/usr/include/rpc/auth.h" extern int getnetname();extern int host2netname();extern int user2netname();extern int netname2host();# 270 "/usr/include/rpc/auth.h" # 280 "/usr/include/rpc/auth.h" extern int key_decryptsession();extern int key_encryptsession();extern int key_gendes();extern int key_setsecret();extern int key_secretkey_is_set();# 303 "/usr/include/rpc/auth.h" # 307 "/usr/include/rpc/auth.h" extern AUTH *authkerb_seccreate();# 326 "/usr/include/rpc/auth.h" extern int authkerb_getucred();# 339 "/usr/include/rpc/auth.h" # 345 "/usr/include/rpc/auth.h" # 357 "/usr/include/rpc/auth.h" # 361 "/usr/include/rpc/auth.h" # 33 "/usr/include/rpc/rpc.h" 2# 1 "/usr/include/rpc/clnt.h" 1#ident	"@(#)clnt.h	1.36	95/02/06 SMI"# 1 "/usr/include/rpc/rpc_com.h" 1#ident	"@(#)rpc_com.h	1.18	95/01/09 SMI"# 18 "/usr/include/rpc/rpc_com.h" # 46 "/usr/include/rpc/rpc_com.h" extern u_int __rpc_get_t_size();extern u_int __rpc_get_a_size();extern int __rpc_dtbsize();extern struct netconfig *__rpcfd_to_nconf();extern int __rpc_matchserv();extern  int __rpc_get_default_domain();# 59 "/usr/include/rpc/rpc_com.h" bool_t rpc_control();# 80 "/usr/include/rpc/rpc_com.h" # 18 "/usr/include/rpc/clnt.h" 2# 1 "/usr/include/sys/netconfig.h" 1#ident	"@(#)netconfig.h	1.13	95/02/24 SMI"	# 15 "/usr/include/sys/netconfig.h" struct  netconfig {	char		*nc_netid;		unsigned long	nc_semantics;		unsigned long	nc_flag;		char		*nc_protofmly;		char		*nc_proto;		char		*nc_device;		unsigned long	nc_nlookups;		char		**nc_lookups;		unsigned long	nc_unused[8];};typedef struct {	struct netconfig **nc_head;	struct netconfig **nc_curr;} NCONF_HANDLE;# 102 "/usr/include/sys/netconfig.h" extern void		*setnetconfig();extern int		endnetconfig();extern struct netconfig	*getnetconfig();extern struct netconfig	*getnetconfigent();extern void		freenetconfigent();extern void		*setnetpath();extern int		endnetpath();extern struct netconfig *getnetpath();# 117 "/usr/include/sys/netconfig.h" # 24 "/usr/include/rpc/clnt.h" 2# 26 "/usr/include/rpc/clnt.h" # 30 "/usr/include/rpc/clnt.h" enum clnt_stat {	RPC_SUCCESS = 0,					RPC_CANTENCODEARGS = 1,			RPC_CANTDECODERES = 2,			RPC_CANTSEND = 3,				RPC_CANTRECV = 4,		RPC_TIMEDOUT = 5,				RPC_INTR = 18,				RPC_UDERROR = 23,					RPC_VERSMISMATCH = 6,			RPC_AUTHERROR = 7,			RPC_PROGUNAVAIL = 8,			RPC_PROGVERSMISMATCH = 9,			RPC_PROCUNAVAIL = 10,			RPC_CANTDECODEARGS = 11,			RPC_SYSTEMERROR = 12,				RPC_UNKNOWNHOST = 13,			RPC_UNKNOWNPROTO = 17,			RPC_UNKNOWNADDR = 19,			RPC_NOBROADCAST = 21,				RPC_RPCBFAILURE = 14,			RPC_PROGNOTREGISTERED = 15,		RPC_N2AXLATEFAILURE = 22,			RPC_TLIERROR = 20,		RPC_FAILED = 16,		RPC_INPROGRESS = 24,	RPC_STALERACHANDLE = 25,	RPC_CANTCONNECT = 26,			RPC_XPRTFAILED = 27,			RPC_CANTCREATESTREAM = 28	};struct rpc_err {	enum clnt_stat re_status;	union {		struct {			int RE_errno;				int RE_t_errno;			} RE_err;		enum auth_stat RE_why;			struct {			u_long low;				u_long high;			} RE_vers;		struct {					long s1;			long s2;		} RE_lb;			} ru;};struct rpc_timers {	u_short		rt_srtt;		u_short		rt_deviate;		u_long		rt_rtxcur;	};typedef struct __client {	AUTH	*cl_auth;				struct clnt_ops {# 157 "/usr/include/rpc/clnt.h" 		enum clnt_stat	(*cl_call)();			void		(*cl_abort)();			void		(*cl_geterr)();			bool_t		(*cl_freeres)(); 		void		(*cl_destroy)(); 		bool_t		(*cl_control)(); 		int		(*cl_settimers)(); 	} *cl_ops;	caddr_t			cl_private;		char			*cl_netid;		char			*cl_tp;		# 173 "/usr/include/rpc/clnt.h" } CLIENT;struct knetconfig {	unsigned long	knc_semantics;		char		*knc_protofmly;		char		*knc_proto;		dev_t		knc_rdev;		unsigned long	knc_unused[8];};# 275 "/usr/include/rpc/clnt.h" # 428 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_create();# 447 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_create_timed();# 466 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_create_vers();# 484 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_tp_create();# 502 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_tp_create_timed();# 523 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_tli_create();# 541 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_vc_create();# 559 "/usr/include/rpc/clnt.h" extern CLIENT * clnt_dg_create();# 572 "/usr/include/rpc/clnt.h" extern CLIENT *clnt_raw_create();# 583 "/usr/include/rpc/clnt.h" void clnt_pcreateerror();char *clnt_spcreateerror();# 593 "/usr/include/rpc/clnt.h" void clnt_perrno();# 605 "/usr/include/rpc/clnt.h" void clnt_perror();char *clnt_sperror();struct rpc_createerr {	enum clnt_stat cf_stat;	struct rpc_err cf_error; };# 621 "/usr/include/rpc/clnt.h" extern struct rpc_createerr rpc_createerr;# 639 "/usr/include/rpc/clnt.h" extern enum clnt_stat rpc_call();typedef bool_t(*resultproc_t)(# 691 "/usr/include/rpc/clnt.h" );# 700 "/usr/include/rpc/clnt.h" extern enum clnt_stat rpc_broadcast();extern enum clnt_stat rpc_broadcast_exp();# 711 "/usr/include/rpc/clnt.h" char *clnt_sperrno();	# 717 "/usr/include/rpc/clnt.h" # 721 "/usr/include/rpc/clnt.h" # 726 "/usr/include/rpc/clnt.h" # 34 "/usr/include/rpc/rpc.h" 2# 1 "/usr/include/rpc/rpc_msg.h" 1#ident	"@(#)rpc_msg.h	1.13	94/10/19 SMI"# 1 "/usr/include/rpc/clnt.h" 1# 728 "/usr/include/rpc/clnt.h" # 13 "/usr/include/rpc/rpc_msg.h" 2# 20 "/usr/include/rpc/rpc_msg.h" enum msg_type {	CALL = 0,	REPLY = 1};enum reply_stat {	MSG_ACCEPTED = 0,	MSG_DENIED = 1};enum accept_stat {	SUCCESS = 0,	PROG_UNAVAIL = 1,	PROG_MISMATCH = 2,	PROC_UNAVAIL = 3,	GARBAGE_ARGS = 4,	SYSTEM_ERR = 5};enum reject_stat {	RPC_MISMATCH = 0,	AUTH_ERROR = 1};struct accepted_reply {	struct opaque_auth	ar_verf;	enum accept_stat	ar_stat;	union {		struct {			u_long	low;			u_long	high;		} AR_versions;		struct {			caddr_t	where;			xdrproc_t proc;		} AR_results;			} ru;};struct rejected_reply {	enum reject_stat rj_stat;	union {		struct {			u_long low;			u_long high;		} RJ_versions;		enum auth_stat RJ_why;  	} ru;};struct reply_body {	enum reply_stat rp_stat;	union {		struct accepted_reply RP_ar;		struct rejected_reply RP_dr;	} ru;};struct call_body {	u_long cb_rpcvers;		u_long cb_prog;	u_long cb_vers;	u_long cb_proc;	struct opaque_auth cb_cred;	struct opaque_auth cb_verf; };struct rpc_msg {	u_long			rm_xid;	enum msg_type		rm_direction;	union {		struct call_body RM_cmb;		struct reply_body RM_rmb;	} ru;};# 148 "/usr/include/rpc/rpc_msg.h" extern bool_t	xdr_callmsg();# 161 "/usr/include/rpc/rpc_msg.h" extern bool_t	xdr_callhdr();# 174 "/usr/include/rpc/rpc_msg.h" extern bool_t	xdr_replymsg();# 191 "/usr/include/rpc/rpc_msg.h" # 200 "/usr/include/rpc/rpc_msg.h" extern void	__seterr_reply();# 211 "/usr/include/rpc/rpc_msg.h" # 215 "/usr/include/rpc/rpc_msg.h" # 36 "/usr/include/rpc/rpc.h" 2# 1 "/usr/include/rpc/auth_sys.h" 1#ident	"@(#)auth_sys.h	1.14	95/01/26 SMI"# 24 "/usr/include/rpc/auth_sys.h" struct authsys_parms {	u_long	 aup_time;	char	*aup_machname;	uid_t	 aup_uid;	gid_t	 aup_gid;	u_int	 aup_len;	gid_t	*aup_gids;};# 48 "/usr/include/rpc/auth_sys.h" extern bool_t xdr_authsys_parms();struct short_hand_verf {	struct opaque_auth new_cred;};# 75 "/usr/include/rpc/auth_sys.h" # 79 "/usr/include/rpc/auth_sys.h" # 37 "/usr/include/rpc/rpc.h" 2# 1 "/usr/include/rpc/auth_des.h" 1#ident	"@(#)auth_des.h	1.15	95/10/20 SMI"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -