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

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

?? pice.c

?? NUCLEUS 嵌入式操作系統源代碼!用的很多
?? C
?? 第 1 頁 / 共 2 頁
字號:
PI_PCB         *pipe;
STATUS          status;


    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_ptr;


    /* Determine if there is an error with the pipe pointer.  */
    if (pipe == NU_NULL)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;
        
    else if (pipe -> pi_id != PI_PIPE_ID)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;

    else
    
        /* All the parameters are okay, call the actual function to delete
           a pipe.  */
        status =  PIC_Delete_Pipe(pipe_ptr);
                                  
    /* Return completion status.  */
    return(status);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PICE_Send_To_Pipe                                                */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameters supplied */
/*      to the send message to pipe function.                            */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      PIC_Send_To_Pipe                    Actual send pipe message     */
/*                                            function                   */
/*      TCCE_Suspend_Error                  Check suspend validity       */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*      message                             Pointer to message to send   */
/*      size                                Size of message to send      */
/*      suspend                             Suspension option if full    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_INVALID_PIPE                     Invalid pipe pointer         */
/*      NU_INVALID_POINTER                  Invalid message pointer      */
/*      NU_INVALID_SIZE                     Invalid message size         */
/*      NU_INVALID_SUSPEND                  Invalid suspend request      */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */ 
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      06-04-1998      Corrected SPR493                                 */
/*                                                                       */
/*************************************************************************/
STATUS  PICE_Send_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, UNSIGNED size, 
                                                        UNSIGNED suspend)
{

PI_PCB         *pipe;
STATUS          status;


    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_ptr;

    /* Determine if there is an error with the pipe pointer.  */
    if (pipe == NU_NULL)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;
        
    else if (pipe -> pi_id != PI_PIPE_ID)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;

    else if (message == NU_NULL)
    
        /* Indicate that the pointer to the message is invalid.  */
        status =  NU_INVALID_POINTER;

    else if (size == 0)
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;

    else if ((pipe -> pi_fixed_size) && (size != pipe -> pi_message_size))
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;

    else if ((!pipe -> pi_fixed_size) && (size > pipe -> pi_message_size))
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;
        
    else if ((suspend) && (TCCE_Suspend_Error()))
    
        /* Indicate that suspension is only valid from a non-task thread.  */
        status =  NU_INVALID_SUSPEND;
    
    else
    
        /* All the parameters are okay, call the actual function to send
           a message to a pipe.  */
        status =  PIC_Send_To_Pipe(pipe_ptr, message, size, suspend);
                                  
    /* Return completion status.  */
    return(status);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PICE_Receive_From_Pipe                                           */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameters supplied */
/*      to the receive message from pipe function.                       */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      PIC_Receive_From_Pipe               Actual receive message from  */
/*                                            pipe                       */
/*      TCCE_Suspend_Error                  Check suspend validity       */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*      message                             Pointer to message to send   */
/*      size                                Size of the message          */
/*      actual_size                         Size of message received     */
/*      suspend                             Suspension option if empty   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_INVALID_PIPE                     Invalid pipe pointer         */
/*      NU_INVALID_POINTER                  Invalid message pointer      */
/*      NU_INVALID_SIZE                     Invalid message size         */
/*      NU_INVALID_SUSPEND                  Invalid suspend request      */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      12-19-1995      Changed the variable pipe check                  */
/*                      from "message size not equal                     */
/*                      to pipe message size" to                         */
/*                      "message size greater than                       */
/*                      pipe message size",resulting                     */
/*                      in version 1.1+ (spr065)                         */
/*                                                                       */
/*************************************************************************/
STATUS  PICE_Receive_From_Pipe(NU_PIPE *pipe_ptr, VOID *message,
                UNSIGNED size, UNSIGNED *actual_size, UNSIGNED suspend)
{

PI_PCB         *pipe;
STATUS          status;


    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_ptr;

    /* Determine if there is an error with the pipe pointer.  */
    if (pipe == NU_NULL)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;
        
    else if (pipe -> pi_id != PI_PIPE_ID)
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;

    else if (message == NU_NULL)
    
        /* Indicate that the pointer to the message is invalid.  */
        status =  NU_INVALID_POINTER;

    else if (size == 0)
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;

	else if ((pipe -> pi_fixed_size) && (size != pipe -> pi_message_size))
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;

    else if ((!pipe -> pi_fixed_size) && (size > pipe -> pi_message_size))
    
        /* Indicate that the message size is invalid.  */
        status =  NU_INVALID_SIZE;
        
    else if ((suspend) && (TCCE_Suspend_Error()))
    
        /* Indicate that suspension is only valid from a non-task thread.  */
        status =  NU_INVALID_SUSPEND;
    
    else
    
        /* All the parameters are okay, call the actual function to receive
           a message from a pipe.  */
        status =  PIC_Receive_From_Pipe(pipe_ptr, message, size, actual_size, 
                                                                suspend);
                                  
    /* Return completion status.  */
    return(status);
}

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99免费精品视频| 欧美日韩一区 二区 三区 久久精品| 国产精品99久| 在线观看91视频| 精品国免费一区二区三区| 久久精品一区二区| 亚洲一区二区高清| 精品中文字幕一区二区小辣椒 | av一区二区三区四区| 欧美日韩精品一区视频| 久久一区二区三区四区| 一二三区精品福利视频| 精品一二线国产| 欧美丝袜自拍制服另类| 久久久久久久久久久99999| 亚洲午夜羞羞片| 成人18精品视频| 日韩欧美高清一区| 亚洲18女电影在线观看| 成人18视频日本| 久久久久久久综合色一本| 亚洲成人免费观看| 99国产欧美另类久久久精品| 久久综合色综合88| 青青草97国产精品免费观看无弹窗版| 成人综合在线视频| 精品日韩在线观看| 日韩精品一二三区| 欧美影院一区二区三区| 国产精品久久久久aaaa| 激情都市一区二区| 欧美一二三区精品| 亚洲综合激情小说| 色综合一个色综合亚洲| 久久久一区二区| 精品一区二区三区不卡| 制服丝袜亚洲播放| 亚洲高清免费在线| 91九色最新地址| 综合久久综合久久| 成人黄色软件下载| 国产精品―色哟哟| 成人在线综合网站| 国产欧美日韩综合精品一区二区 | 国产欧美日韩综合| 国产一区二区网址| 久久午夜羞羞影院免费观看| 麻豆精品一二三| 日韩丝袜情趣美女图片| 麻豆精品在线播放| 欧美精品一区二区三区蜜桃 | 日本91福利区| 欧美精品一二三区| 中文成人综合网| 成人性生交大片免费| 中文字幕在线视频一区| 成人动漫精品一区二区| 亚洲欧洲一区二区在线播放| www.成人在线| 一区二区三区免费网站| 欧美女孩性生活视频| 免费在线观看一区| 国产欧美va欧美不卡在线| 国产成人av电影在线观看| 国产精品久久久久一区| 91免费国产在线| 亚洲sss视频在线视频| 欧美一区二区免费视频| 麻豆91免费观看| 国产清纯在线一区二区www| 99久久国产免费看| 亚洲精品成人悠悠色影视| 欧美日韩中字一区| 免费成人你懂的| 中文字幕乱码亚洲精品一区| 色综合久久天天| 五月婷婷激情综合网| 久久婷婷色综合| av电影在线观看一区| 亚洲在线一区二区三区| 精品剧情v国产在线观看在线| 国产成人亚洲精品狼色在线 | 久久香蕉国产线看观看99| eeuss鲁片一区二区三区在线观看| 一区二区三区免费| 欧美精品一区二区三区很污很色的| 成人一区在线看| 天天亚洲美女在线视频| 国产三级一区二区| 欧美日韩国产另类一区| 国产v日产∨综合v精品视频| 亚洲综合自拍偷拍| 国产亚洲制服色| 欧美三级日韩三级国产三级| 国产成人在线视频网站| 日韩激情中文字幕| 亚洲免费毛片网站| 久久人人爽爽爽人久久久| 欧美日本乱大交xxxxx| 成年人午夜久久久| 国产毛片精品视频| 奇米四色…亚洲| 亚洲精品v日韩精品| 欧美国产欧美亚州国产日韩mv天天看完整 | 91尤物视频在线观看| 蜜桃视频在线一区| 亚洲一区二区三区在线看| 欧美激情资源网| 欧美精品一区二| 欧美大片日本大片免费观看| 色老汉一区二区三区| 成人国产精品视频| 日韩av中文在线观看| 亚洲人成精品久久久久久| 精品黑人一区二区三区久久| 色婷婷一区二区| 国产二区国产一区在线观看| 日本不卡1234视频| 麻豆精品蜜桃视频网站| 久久国产精品露脸对白| 韩国av一区二区| 国产高清无密码一区二区三区| 国产黄人亚洲片| 99精品视频在线免费观看| 成人精品视频.| 9l国产精品久久久久麻豆| 国产高清亚洲一区| 成人免费视频一区二区| 成人一区二区三区中文字幕| 国产成人综合亚洲91猫咪| 国产一区二区视频在线| 国产剧情一区二区| 成人免费视频一区二区| 成人免费高清视频| av午夜一区麻豆| av激情成人网| 在线视频你懂得一区二区三区| 国产精品一二三| 成人高清视频在线| 色诱亚洲精品久久久久久| 一本高清dvd不卡在线观看| 91日韩精品一区| 欧美日韩精品免费观看视频| 在线观看日韩毛片| 欧美一区二区三区免费在线看 | 中文字幕第一区二区| 国产精品福利一区二区| 亚洲视频香蕉人妖| 亚洲h精品动漫在线观看| 三级不卡在线观看| 蜜桃精品视频在线| 国产成人在线免费观看| a级高清视频欧美日韩| 在线精品视频小说1| 欧美一区二区女人| 国产精品卡一卡二卡三| 一区二区三区精品视频| 亚洲成av人片在www色猫咪| 奇米精品一区二区三区在线观看一| 国产露脸91国语对白| 一本在线高清不卡dvd| 在线播放91灌醉迷j高跟美女| 久久综合九色欧美综合狠狠| 日韩码欧中文字| 日本亚洲电影天堂| 91一区二区在线| 久久久久久久久久久久久夜| 亚洲精品视频一区二区| 精品在线免费视频| 91官网在线观看| 26uuu亚洲| 亚洲成年人影院| 成人一区二区三区视频在线观看| 欧美日韩综合在线| 国产精品视频一二三区| 天天做天天摸天天爽国产一区| 国产盗摄精品一区二区三区在线 | 成人在线综合网| 91精品国产色综合久久ai换脸| 中文字幕乱码日本亚洲一区二区 | 欧美一区二区不卡视频| 国产精品美女久久久久久2018| 日韩高清不卡在线| 91免费视频观看| 国产日韩精品一区| 天堂一区二区在线免费观看| 91捆绑美女网站| 91精品国产一区二区| 国产精品久久国产精麻豆99网站| 无码av免费一区二区三区试看 | 捆绑调教一区二区三区| 91亚洲大成网污www| 久久久国产精华| 免费看日韩精品| 欧美日韩国产色站一区二区三区| 国产精品国产精品国产专区不蜜 | 激情图片小说一区| 日本韩国精品在线| 国产精品亲子伦对白| 国产一区二区不卡在线|