ctxcreat.c

来自「the vxworks system kernel souce packeg.t」· C语言 代码 · 共 87 行

C
87
字号
/* ctxcreat.c - xdr routines for coding/decoding WDB_CTX_CREATE_DESC struct *//* Copyright 1994-1998 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01f,22jan98,c_c Removed EXT_FUNC references.01e,30jan96,elp changed xdr_TGT_ADDR_T in macro XDR_TGT_ADDR_T, added windll.h01d,10jun95,pad Included rpc/rpc.h01c,04apr95,ms	new data types.01b,06nov94,tpr added comments		changed xdr function for the redirIn, redirOut and isTask fields01a,03oct94,tpr	written.*//*DESCRIPTIONThis module contains the eXternal Data Representation (XDR) routinefor the WDB_CTX_CREATE_DESC structure of the WDB protocol.*//* includes */#include <rpc/rpc.h>#include "wdbP.h"/********************************************************************************* xdr_WDB_CTX_CREATE_DESC - code, decode od free the WDB_CTX_CREATE_DESC structure.** This functions codes, decodes or frees the WDB_CTX_CREATE_DESC structure of the* WDB protocol.** RETURNS:  TRUE if it succeeds, FALSE otherwise.*/BOOL xdr_WDB_CTX_CREATE_DESC    (    XDR *		xdrs,	/* xdr handle */    WDB_CTX_CREATE_DESC * 	objp	/* pointer to the WDB_CTX_CREATE_DESC structure */    )    {    TGT_INT_T	ix;    if (!xdr_enum (xdrs, (enum_t *)&objp->contextType))	return (FALSE);    if (!xdr_TGT_ADDR_T (xdrs, &objp->stackBase))	return (FALSE);    if (!xdr_UINT32 (xdrs, &objp->stackSize))	return (FALSE);    if (!xdr_TGT_ADDR_T (xdrs, &objp->entry))	return (FALSE);    for (ix = 0; ix < 10; ix++)	{	if (!xdr_TGT_INT_T (xdrs, &objp->args[ix]))	    return (FALSE);	}    if (!xdr_WDB_STRING_T (xdrs, &objp->name))	return (FALSE);    if (!xdr_TGT_INT_T (xdrs, &objp->priority))	return (FALSE);    if (!xdr_TGT_INT_T (xdrs, &objp->options))	return (FALSE);    if (!xdr_TGT_INT_T (xdrs, &objp->redirIn))	return (FALSE);    if (!xdr_TGT_INT_T (xdrs, &objp->redirOut))	return (FALSE);    if (!xdr_TGT_INT_T (xdrs, &objp->redirErr))	return (FALSE);    return (TRUE);    }

⌨️ 快捷键说明

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