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

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

?? stream.inl

?? eCos1.31版
?? INL
字號:
#ifndef CYGONCE_LIBC_CLIBINCL_STREAM_INL#define CYGONCE_LIBC_CLIBINCL_STREAM_INL//========================================================================////      stream.inl////      Inline functions for internal C library stdio stream interface////========================================================================//####COPYRIGHTBEGIN####//                                                                          // -------------------------------------------                              // The contents of this file are subject to the Red Hat eCos Public License // Version 1.1 (the "License"); you may not use this file except in         // compliance with the License.  You may obtain a copy of the License at    // http://www.redhat.com/                                                   //                                                                          // Software distributed under the License is distributed on an "AS IS"      // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the // License for the specific language governing rights and limitations under // the License.                                                             //                                                                          // The Original Code is eCos - Embedded Configurable Operating System,      // released September 30, 1998.                                             //                                                                          // The Initial Developer of the Original Code is Red Hat.                   // Portions created by Red Hat are                                          // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.                             // All Rights Reserved.                                                     // -------------------------------------------                              //                                                                          //####COPYRIGHTEND####//========================================================================//#####DESCRIPTIONBEGIN####//// Author(s):     jlarmour// Contributors:  jlarmour// Date:          1998-02-13// Purpose:     // Description: // Usage:         Do not include this file -//                #include "clibincl/stream.hxx" instead.////####DESCRIPTIONEND####////========================================================================// CONFIGURATION#include <pkgconf/libc.h>   // Configuration header// Include the C library? And do we want the stdio stuff?#if defined(CYGPKG_LIBC) && defined(CYGPKG_LIBC_STDIO)// INCLUDES#include <cyg/infra/cyg_type.h>    // Common project-wide type definitions#include <stddef.h>                // NULL and size_t from compiler#include <errno.h>                 // Error codes#include "clibincl/stream.hxx"     // Just be sure that this really is                                   // included// FUNCTIONS#ifdef CYGDBG_USE_ASSERTSinline boolCyg_StdioStream::check_this( cyg_assert_class_zeal zeal ) const{    // check that it has the magic word set meaning it is valid.    if ( magic_validity_word != 0x7b4321ce )        return false;    return true;} // check_this()#endif // ifdef CYGDBG_USE_ASSERTS// LOCKING FUNCTIONS// returns true on successinline cyg_boolCyg_StdioStream::lock_me( void ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );    #ifdef CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS    return stream_lock.lock();#else    // otherwise it "worked"    return true;#endif    } // lock_me()// returns true on successinline cyg_boolCyg_StdioStream::trylock_me( void ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );    #ifdef CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS    return stream_lock.trylock();#else    // otherwise it "worked"    return true;#endif    } // lock_me()inline voidCyg_StdioStream::unlock_me( void ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );    #ifdef CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS    stream_lock.unlock();#endif} // unlock_me()// DESTRUCTORinlineCyg_StdioStream::~Cyg_StdioStream(){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return;    flush_output_unlocked();    // Currently there is no I/O function defined for "close"    // Add such a call if this is ever defined.    unlock_me();#ifdef CYGDBG_USE_ASSERTS    magic_validity_word = 0xbadbad;#endif} // Cyg_StdioStream destructor// MEMBER FUNCTIONS// this is currently just a wrapper around write, but having this interface// leaves scope for optimisations in futureinline Cyg_ErrNoCyg_StdioStream::write_byte( cyg_uint8 c ){    cyg_ucount32 dummy_bytes_written;    Cyg_ErrNo err;    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        err = write( &c, 1, &dummy_bytes_written );    CYG_ASSERT( (err!=ENOERR) || (dummy_bytes_written==1),                "Single byte not written, but no error returned!" );    return err;} // write_byte()inline Cyg_ErrNoCyg_StdioStream::unread_byte( cyg_uint8 c ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );    #ifdef CYGFUN_LIBC_STDIO_ungetc    if (!lock_me())        return EBADF;  // assume file is now invalid    if (flags.unread_char_buf_in_use) {        unlock_me();        return ENOMEM;    } // if    flags.unread_char_buf_in_use = true;    unread_char_buf = c;    // can't be at EOF any more    flags.at_eof = false;    if (position)    // position is always 0 for certain devices        --position;        unlock_me();    return ENOERR;#else // ifdef CYGFUN_LIBC_STDIO_ungetc    return ENOSYS;#endif // ifdef CYGFUN_LIBC_STDIO_ungetc} // unread_byte()inline cyg_ucount32Cyg_StdioStream::bytes_available_to_read( void ){    cyg_ucount32 bytes=0;    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );    #ifdef CYGFUN_LIBC_STDIO_ungetc    if (flags.unread_char_buf_in_use)        ++bytes;#endif #ifdef CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO    // either the last operation was a read, which attempted to read bytes    // into the buffer, or there are no bytes in the buffer    if (flags.buffering) {        if (flags.last_buffer_op_was_read == true)            bytes += io_buf.get_buffer_space_used();    }    else#endif    if (flags.readbuf_char_in_use)        ++bytes;    return bytes;} // bytes_available_to_read()inline Cyg_ErrNoCyg_StdioStream::flush_output( void ){    Cyg_ErrNo err;    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return EBADF;  // assume file is now invalid        err = flush_output_unlocked();    unlock_me();      return err;} // flush_output()// get error status for this fileinline Cyg_ErrNoCyg_StdioStream::get_error( void ){    Cyg_ErrNo err_temp;        CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return EBADF;     // well, we've certainly got an error now!        err_temp = error;    unlock_me();    return err_temp;} // get_error()// set error status for this fileinline voidCyg_StdioStream::set_error( Cyg_ErrNo errno_to_set ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())    {        errno = EBADF; // best we can do - we can't trust error to be there        return;    } // if        errno = error = errno_to_set;    unlock_me();} // set_error()// are we at EOF? true means we are, false means noinline cyg_boolCyg_StdioStream::get_eof_state( void ){    cyg_bool eof_temp;    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return false;     // not much we can do here        eof_temp = flags.at_eof;    unlock_me();        return eof_temp;} // get_eof_state()// Set whether we are at EOF.inline voidCyg_StdioStream::set_eof_state( cyg_bool eof_to_set ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return;     // not much we can do here        flags.at_eof = eof_to_set;    unlock_me();} // set_eof_state()// retrieve positioninline Cyg_ErrNoCyg_StdioStream::get_position( fpos_t *pos ){    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if (!lock_me())        return EBADF; // assume file is now invalid    *pos = position;    unlock_me();    return ENOERR;} // get_position()// set absolute positioninline Cyg_ErrNoCyg_StdioStream::set_position( fpos_t pos, int whence ){    // this is currently a workaround until we have real files    // this will be corrected when we decide the true filesystem interface    Cyg_ErrNo err;    cyg_uint8 c;    CYG_ASSERTCLASS( this, "Stream object is not a valid stream!" );        if ((whence != SEEK_CUR) || pos < 0)        return ENOSYS;    if (!lock_me())        return EBADF; // assume file is now invalid    // Drain read buffer        for ( ; whence > 0 ; whence-- ) {        err = read_byte( &c );        if (err == EAGAIN)            err=refill_read_buffer();        // if read_byte retured error, or refill_read_buffer returned error        if (err) {            unlock_me();            return err;        } // if    } // for    unlock_me();    return ENOERR;} // set_position()#endif // if defined(CYGPKG_LIBC) && defined(CYGPKG_LIBC_STDIO)#endif CYGONCE_LIBC_CLIBINCL_STREAM_INL multiple inclusion protection// EOF stream.inl

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区在线视频| 欧美精品一区二区精品网| **欧美大码日韩| 波多野结衣亚洲一区| 中文字幕一区二区三区视频| av动漫一区二区| 伊人一区二区三区| 欧美日韩一本到| 青青草视频一区| 精品久久久久久久久久久久久久久 | 粉嫩av一区二区三区| 国产精品二区一区二区aⅴ污介绍| av影院午夜一区| 亚洲第一福利视频在线| 日韩欧美不卡一区| 国产91丝袜在线18| jlzzjlzz国产精品久久| 一区二区三区在线观看欧美 | 欧美日韩一区不卡| 麻豆成人综合网| 国产精品情趣视频| 欧美午夜免费电影| 国产乱码精品1区2区3区| 亚洲欧美自拍偷拍色图| 欧美猛男gaygay网站| 久久精品国产99国产| 国产精品美女久久久久aⅴ| 欧美日韩在线播放三区| 国产成人a级片| 亚洲精品国产一区二区精华液 | 色婷婷av一区二区三区大白胸| 亚洲超碰精品一区二区| 精品99一区二区| 日本高清不卡在线观看| 精一区二区三区| 亚洲综合在线观看视频| 精品福利在线导航| 91久久精品日日躁夜夜躁欧美| 极品少妇一区二区| 亚洲精品菠萝久久久久久久| 欧美精品一区二区精品网| 色久优优欧美色久优优| 国产成人在线观看免费网站| 亚洲成av人片一区二区梦乃| 中文字幕精品—区二区四季| 欧美videos大乳护士334| 欧洲一区二区三区在线| 国产成人精品免费网站| 午夜精品福利一区二区蜜股av | 欧洲一区在线观看| 成人久久18免费网站麻豆| 美脚の诱脚舐め脚责91 | 精品一区二区久久| 亚洲午夜成aⅴ人片| 国产精品久久网站| 久久综合九色欧美综合狠狠| 777午夜精品视频在线播放| 99精品黄色片免费大全| 国产白丝精品91爽爽久久| 久久超级碰视频| 免费一区二区视频| 亚洲国产精品一区二区www| 成人免费在线观看入口| 日本一区二区高清| 精品少妇一区二区三区视频免付费| 精品视频999| 在线观看91精品国产入口| 色香蕉成人二区免费| 成人激情小说乱人伦| 国产黄色91视频| 国产精品一区二区久久不卡| 久久99精品网久久| 久久se这里有精品| 精品夜夜嗨av一区二区三区| 久久国内精品视频| 理论电影国产精品| 久久99久久99小草精品免视看| 久久99精品久久久| 国产一区不卡精品| 国产激情偷乱视频一区二区三区| 国产一区二三区| 国产美女一区二区| 懂色av一区二区三区免费观看 | 欧美在线看片a免费观看| 在线免费观看成人短视频| 色综合视频一区二区三区高清| 国产成人av一区| 成人av动漫在线| 色诱视频网站一区| 在线观看三级视频欧美| 欧美日韩久久不卡| 欧美一级黄色片| 精品久久久影院| 国产精品久久久久9999吃药| 亚洲人成影院在线观看| 亚洲午夜激情av| 久久97超碰色| 不卡一区中文字幕| 91成人免费在线| 欧美一区三区二区| 国产午夜精品在线观看| |精品福利一区二区三区| 亚洲一区二区三区激情| 日本欧美一区二区| 狠狠色2019综合网| 不卡高清视频专区| 7777精品伊人久久久大香线蕉最新版 | 欧美高清精品3d| 久久一区二区三区四区| 18欧美亚洲精品| 日韩高清不卡一区二区| 国产成人精品一区二| 91福利国产成人精品照片| 日韩免费电影网站| 国产精品久线观看视频| 日韩电影网1区2区| 成人网在线免费视频| 欧美精品三级日韩久久| 欧美激情一区二区| 首页国产欧美久久| 成人黄色小视频| 欧美一区二区视频在线观看2020 | 99精品国产视频| 日韩一区二区麻豆国产| 一区二区三区在线视频免费观看| 久久97超碰国产精品超碰| 色综合久久中文字幕| 精品国产乱码久久| 亚洲一二三区在线观看| 粉嫩在线一区二区三区视频| 欧美一区二区三区四区久久| 亚洲欧美在线视频观看| 久久国产精品一区二区| 欧美做爰猛烈大尺度电影无法无天| 日韩久久久久久| 亚洲国产一区二区视频| 不卡大黄网站免费看| 欧美不卡一区二区| 亚洲国产一区视频| 色综合久久66| 国产精品久久久久久久久晋中| 另类调教123区| 777精品伊人久久久久大香线蕉| 亚洲视频综合在线| 国产成人av电影| 欧美变态凌虐bdsm| 日韩国产欧美在线观看| 欧美性三三影院| 亚洲精品自拍动漫在线| 高清国产一区二区| 精品国产露脸精彩对白| 日韩精品免费专区| 欧美无人高清视频在线观看| 亚洲欧洲三级电影| 成人午夜精品在线| 国产日韩欧美制服另类| 国产精品69久久久久水密桃| 欧美成人一区二区| 免费不卡在线视频| 538prom精品视频线放| 亚洲va欧美va国产va天堂影院| www.亚洲激情.com| 国产精品国产三级国产a| 成人av动漫在线| 日韩美女精品在线| 91麻豆精东视频| 亚洲女爱视频在线| 色婷婷亚洲综合| 亚洲一区二区欧美激情| 在线观看视频一区| 五月开心婷婷久久| 欧美一区二区美女| 久久精品久久久精品美女| 日韩欧美亚洲国产另类 | 丰满亚洲少妇av| 国产精品国产三级国产aⅴ中文| av中文一区二区三区| 最新国产成人在线观看| 色偷偷88欧美精品久久久| 亚洲欧美电影院| 欧美视频一区在线观看| 日韩国产高清影视| 久久婷婷色综合| 成人黄色777网| 伊人色综合久久天天| 欧美日本不卡视频| 麻豆成人久久精品二区三区红| 精品播放一区二区| 成人av免费观看| 亚洲h精品动漫在线观看| 欧美一级生活片| 高清视频一区二区| 亚洲综合一区在线| 日韩精品影音先锋| 国产精品一区二区免费不卡| 亚洲人成在线播放网站岛国| 777亚洲妇女| 成人av小说网| 日韩电影网1区2区| 国产精品免费观看视频|