亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wtxexch.c

?? vxworks的完整的源代碼
?? C
字號:
/* wtxexch.c - wtx message exchange implementation *//* Copyright 1984-1996 Wind River Systems, Inc. *//*modification history--------------------01e,28sep01,fle  SPR#28684 : added usePMap parameter to ExchangeCreate ()                 routines01d,11may99,fle  modified wtxExchangeFree since wtxRpcExchangeFree has been		 modified  SPR 6736701c,30sep96,elp  put in share, adapted to be compiled on target side SPR# 6775.01b,10jul96,pad  changed order of include files.01a,15may95,s_w  written. *//* includes */#ifdef HOST#include <stdlib.h>#else#include "stdlib.h"#endif /* HOST */#include "wtxexch.h"#include "private/wtxexchp.h"/* defines */#define CHECK_HANDLE(handle, retVal) \	if (handle == NULL || handle->self != handle) \	    return retVal;/* exported functions *//********************************************************************************* wtxExchangeInitialize - initialize an exchange id** This routine initailizes a handle pointed to buy <pXid> for use in* further exchange requests.  When the handle is finished with is should be* passed to wtxExchangeTerminate() to free any internal resources allocated.* If this routine fails then the exchange id will not be set.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeInitialize     (    WTX_XID * pXid		/* Pointer to exchange id to initialize */    )    {    WTX_XID newXid;    if (pXid == NULL)	return WTX_ERROR;    /* Allocate the new exchange struct */    newXid = calloc (1, sizeof (_WTX_EXCHANGE));    if (newXid == NULL)	return WTX_ERROR;    /* Set the self field for validation */    newXid->self = newXid;    newXid->timeout = 30000; /* Default 30 second timeout */    *pXid = newXid;        return WTX_OK;    }/********************************************************************************* wtxExchangeInstall - install exchange marshalling functions for handle** This routine sets the exchange marshalling functions that define how* the exchange mechanism behaves for that handle. The function pointer* parameters <xCreate>, <xDelete>, <xExchange>, <xFree> and <xControl> * should have the same function prototype as wtxExchangeCreate(), * wtxExchangeDelete(), wtxExchange(), wtxExchangeFree() and* wtxExchangeControl() respectively. ** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeInstall     (    WTX_XID xid,					/* exchange id */    STATUS (*xCreate) (WTX_XID, const char *, BOOL),	/* create routine */    STATUS (*xDelete) (WTX_XID),			/* delete routine */    STATUS (*xExchange) (WTX_XID, WTX_REQUEST,		/* exchange routine */			void *, void *), 	    WTX_ERROR_T (*xFree) (WTX_REQUEST, void *),		/* free routine */    STATUS (*xControl) (WTX_XID, UINT32, void *)	/* control routine */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    xid->xCreate = (FUNCPTR) xCreate;    xid->xDelete = (FUNCPTR) xDelete;    xid->xExchange = (FUNCPTR) xExchange;    xid->xFree = (FUNCPTR) xFree;    xid->xControl = (FUNCPTR) xControl;    return WTX_OK;    }/********************************************************************************* wtxExchangeErrGet - get the last error code reported for the exchange** This routine returns the WTX error code corresponding to the last * exchange call that returned a WTX_ERROR status.  The error code is not* valid if no routine has returned WTX_ERROR unless it has been cleared* using wtxExchangeErrClear().** RETURNS: WTX error code for handle.** NOMANUAL*/WTX_ERROR_T wtxExchangeErrGet    (    WTX_XID xid		/* exchange id */    )    {    CHECK_HANDLE (xid, WTX_ERR_EXCHANGE_INVALID_HANDLE);    return xid->error;    }/********************************************************************************* wtxExchangeErrClear - clear the error code associated with the exchange** This routine clears the error code for the exchange id <xid> so that* wtxExchangeErrGet() will return WTX_ERR_NONE until an error occurs.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeErrClear    (    WTX_XID xid		/* exchange id */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    xid->error = WTX_ERR_NONE;    return WTX_OK;    }/********************************************************************************* wtxExchangeTerminate - terminate use of exchange id** This routine performs all necessary cleanups on the exchange id <xid>* and makes is invalid for further use.  This routine should always be * called when a handle is no longer needed.  Further use of the handle * after termination will probably result in WTX_ERR_EXCHANGE_INVALID_HANDLE* errors or unpredictable system behaviour.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeTerminate    (    WTX_XID xid		/* exchange id */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    xid->self = 0;    free (xid);    return WTX_OK;    }    /********************************************************************************* wtxExchange - perform an exchange request** This routine performs the exchange request <request> on the server that* <xid> has been connected to using wtxExchangeCreate(). <pIn> and <pOut>* point to message in and out args (ie. the request paramters and result)* that are used in the call which must contain the wtxCore structure.* * During the exchange request memory may be internally allocated to the* result pointed to by <pOut> and this must be freed by the caller by* calling wtxExchangeFree() except if the result of the call is an error.* This is because the exchange mechanism detects transport and request* errors and does any necessary deallocation implicitly.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchange     (    WTX_XID	xid,		/* exchange id */    WTX_REQUEST	request,	/* exchange request number */    void *	pIn,		/* pointer to input arg message */    void *	pOut		/* pointer to output arg (result) message */    )    {    CHECK_HANDLE (xid, WTX_ERROR);        if (xid->xExchange == NULL)	WTX_EXCHANGE_RETURN (xid, WTX_ERR_EXCHANGE_MARSHALPTR, WTX_ERROR);    return (*xid->xExchange) (xid, request, pIn, pOut);    }/********************************************************************************* wtxExchangeFree - free result of exchange request** This routine frees an memory *internally* allocated to a result during* an exchange request. It will not deallocate the message memory itself* which should be done by the user.  The parameter <request> must * specify the exchange request number that the result was created by.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeFree     (    WTX_XID	xid,			/* exchange id               */    WTX_REQUEST	request,		/* WTX request number        */    void *	pData			/* pointer to result message */    )    {    WTX_ERROR_T	freeErr = WTX_ERR_NONE;	/* free function error code  */    CHECK_HANDLE (xid, WTX_ERROR);    /* check for the free function pointer */    if (xid->xFree == NULL)	WTX_EXCHANGE_RETURN (xid, WTX_ERR_EXCHANGE_MARSHALPTR, WTX_ERROR);    freeErr = (*xid->xFree) (request, pData);    if (freeErr != WTX_ERR_NONE)	{	WTX_EXCHANGE_RETURN (xid, freeErr, WTX_ERROR);	}    else	{	return (WTX_OK);	}    }/********************************************************************************* wtxExchangeControl - perform miscellaneous control requests on exchange** This routine performs control requests on an exchange id eg. setting* the exchange transport timeout.  Not all requests will be supported by * all exchange implementations, eg. some transports may not support setting* of a timeout, in which case the error WTX_ERR_EXCHANGE_REQUEST_UNSUPPORTED* is reported.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeControl     (    WTX_XID	xid,		/* exchange id */    UINT32	ctlRequest,	/* control request number */    void *	pArg		/* pointer to control request arg data */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    if (xid->xControl == NULL)	WTX_EXCHANGE_RETURN (xid, WTX_ERR_EXCHANGE_MARSHALPTR, WTX_ERROR);    return (*xid->xControl) (xid, ctlRequest, pArg);    }/********************************************************************************* wtxExchangeCreate - connect the exchange id to a WTX server** This routine makes a connection between an unconnected exchange* handle and a WTX request server. The server is specified by the* service identification key <key> which specifies the transport,* server name and transport address for contacting it.  Server keys* are obtained from the WTX registry which is a server itself. To* avoid the user having to bootstrap the key mechanism the special* NULL key value can be supplied which means "the default key for the* registry service using the current transport mechanism". The current* transport mechanism is defined by the marshalling routines installed* by wtxExchangeInstall.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeCreate     (    WTX_XID		xid,	/* exchange id */    const char *	key,	/* server key string */    BOOL		usePMap	/* shall we use portmapper ? */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    if (xid->xCreate == NULL)	WTX_EXCHANGE_RETURN (xid, WTX_ERR_EXCHANGE_MARSHALPTR, WTX_ERROR);    return (*xid->xCreate) (xid, key, usePMap);    }/********************************************************************************* wtxExchangeDelete - disconnect the exchange id from a WTX server.** This routine disconnects an exchange id from the currently* attached WTX server so no more requests can be made.** RETURNS: WTX_OK, or WTX_ERROR** NOMANUAL*/STATUS wtxExchangeDelete     (    WTX_XID xid		/* exchange id */    )    {    CHECK_HANDLE (xid, WTX_ERROR);    if (xid->xDelete == NULL)	WTX_EXCHANGE_RETURN (xid, WTX_ERR_EXCHANGE_MARSHALPTR, WTX_ERROR);    return (*xid->xDelete) (xid);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av午夜电影| 欧美日韩一区二区在线观看| av午夜精品一区二区三区| 欧美日韩一区二区欧美激情| 久久精品一区二区三区不卡| 亚洲最大成人网4388xx| 国产河南妇女毛片精品久久久| 欧美三级视频在线观看| 国产精品久久久久久久久搜平片| 美女被吸乳得到大胸91| 在线精品视频一区二区| 日韩美女视频一区| 国产精品一区二区免费不卡| 8x8x8国产精品| 亚洲精品视频在线观看网站| 菠萝蜜视频在线观看一区| xf在线a精品一区二区视频网站| 亚洲国产欧美日韩另类综合| 99精品视频在线观看免费| 国产色综合一区| 久久精品国产亚洲aⅴ| 欧美精品久久99| 亚洲一区二区三区爽爽爽爽爽| 色综合久久久久综合| 综合在线观看色| caoporen国产精品视频| 国产精品美女久久久久av爽李琼| 国产精品综合在线视频| 欧美mv和日韩mv的网站| 免费成人在线视频观看| 欧美一区中文字幕| 五月激情丁香一区二区三区| 欧美日韩国产片| 亚洲成人手机在线| 欧美日韩国产另类不卡| 偷偷要91色婷婷| 欧美日韩三级一区二区| 亚洲午夜久久久久久久久久久| 色丁香久综合在线久综合在线观看| 亚洲欧美偷拍另类a∨色屁股| 91国模大尺度私拍在线视频| 亚洲美女免费视频| 欧美日韩一区二区三区高清| 日韩经典中文字幕一区| 日韩欧美一区二区久久婷婷| 看电影不卡的网站| 国产丝袜欧美中文另类| 9人人澡人人爽人人精品| 亚洲蜜桃精久久久久久久| 欧美在线免费观看视频| 男女男精品网站| 国产午夜精品一区二区三区嫩草 | 成人激情免费视频| 亚洲欧美一区二区视频| 欧洲国内综合视频| 偷拍一区二区三区| 久久久久久久久久久久久夜| 91九色02白丝porn| 午夜视频在线观看一区二区| 日韩欧美一区二区久久婷婷| 成人av免费在线观看| 亚洲午夜久久久久久久久久久| 日韩欧美中文字幕公布| 成人av网站免费| 五月婷婷激情综合网| 日韩视频在线一区二区| av成人老司机| 日韩国产欧美在线播放| 国产精品九色蝌蚪自拍| 欧美精品日韩一区| 国产精品一区二区三区乱码| 亚洲一二三四区| 久久综合999| 精品视频在线视频| 成人午夜av电影| 免费成人小视频| 一区二区三区在线不卡| 国产亚洲欧洲997久久综合| 豆国产96在线|亚洲| 蜜桃久久av一区| 一区二区三区中文字幕精品精品 | 91精品国产高清一区二区三区蜜臀 | 久久久久国产免费免费| 欧美探花视频资源| 国产成人免费视频网站| 免费观看成人av| 一区二区在线观看不卡| 久久精品免费在线观看| 91精品免费在线| 欧美色精品天天在线观看视频| 国产91精品一区二区| 久久精品国产一区二区| 丝袜亚洲另类丝袜在线| 亚洲精品老司机| 日韩一区欧美小说| 国产精品嫩草影院av蜜臀| 久久综合色播五月| 在线播放国产精品二区一二区四区| 91亚洲大成网污www| 国产精品911| 国产一区二区毛片| 精品一区二区三区免费视频| 视频在线观看一区二区三区| 亚洲国产另类av| 亚洲精品日韩专区silk | 91精品国产综合久久福利软件| 成人动漫在线一区| 福利电影一区二区三区| 国产一区福利在线| 国产原创一区二区| 久久er99热精品一区二区| 日本女优在线视频一区二区| 日日摸夜夜添夜夜添精品视频| 亚洲国产欧美在线| 亚洲一区二区三区四区在线观看| 午夜婷婷国产麻豆精品| 亚洲人成网站色在线观看| 中文字幕一区二区三区四区 | 亚洲不卡av一区二区三区| 亚洲男人天堂av网| 伊人婷婷欧美激情| 午夜精品影院在线观看| 日本欧美在线看| 久久国产精品无码网站| 国产精品一区专区| 国产成人三级在线观看| 不卡av电影在线播放| 在线视频亚洲一区| 日韩欧美国产综合在线一区二区三区| 欧美一区二区三区四区高清 | 国内精品国产三级国产a久久| 国产一区二区视频在线| 丁香婷婷综合五月| 色婷婷综合久久久中文一区二区| 欧美日本在线播放| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美国产日韩精品免费观看| 亚洲黄网站在线观看| 另类小说图片综合网| 国产成人午夜电影网| 91国内精品野花午夜精品| 欧美成人欧美edvon| 3atv一区二区三区| 亚洲激情图片小说视频| 亚洲一区影音先锋| www.66久久| 久久久久久久久一| 亚洲视频一区在线| 日韩黄色在线观看| 性欧美大战久久久久久久久| 国产精品久久777777| 蜜桃av噜噜一区| 日韩西西人体444www| 国产欧美日产一区| 亚洲一区av在线| 午夜私人影院久久久久| 成人18视频在线播放| 欧美日韩久久一区| 欧美国产综合色视频| 日韩成人精品在线| 色中色一区二区| 精品伦理精品一区| 日本免费新一区视频| 99久久99久久久精品齐齐| 2020国产精品久久精品美国| 国内精品国产成人国产三级粉色| 精品噜噜噜噜久久久久久久久试看| 秋霞影院一区二区| 久久女同互慰一区二区三区| 日本欧美肥老太交大片| 欧美日韩mp4| 国产成人鲁色资源国产91色综| 一区二区三区免费在线观看| 欧美日韩免费高清一区色橹橹| 国模无码大尺度一区二区三区 | 成人av在线一区二区| 亚洲欧美日韩中文字幕一区二区三区| 一本大道久久a久久精品综合| 国产成人av福利| 国产精品美女久久久久久久 | 蜜桃av一区二区在线观看 | 日韩va欧美va亚洲va久久| 久久先锋资源网| 4438x亚洲最大成人网| 色综合久久中文字幕综合网| 国产一区二区三区电影在线观看 | 国产目拍亚洲精品99久久精品| 8x8x8国产精品| 欧美三级电影精品| 欧美午夜寂寞影院| 欧美在线999| 色婷婷精品久久二区二区蜜臂av| 激情都市一区二区| 亚洲人123区| 欧美三级视频在线| 在线一区二区三区四区五区| jizz一区二区| 成人激情校园春色| 丁香六月综合激情| 一本久久综合亚洲鲁鲁五月天|