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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stream.inl

?? ecos為實時嵌入式操作系統(tǒng)
?? 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 Cygnus eCos Public License// Version 1.0 (the "License"); you may not use this file except in// compliance with the License.  You may obtain a copy of the License at// http://sourceware.cygnus.com/ecos// // 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 Cygnus Operating System, released// September 30, 1998.// // The Initial Developer of the Original Code is Cygnus.  Portions created// by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions.  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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕国产一区| 日韩不卡一二三区| 中文久久乱码一区二区| 26uuu精品一区二区| 欧美一卡二卡在线| 欧美α欧美αv大片| 久久免费午夜影院| 久久精品免视看| 中文字幕va一区二区三区| 中文字幕视频一区二区三区久| 国产精品午夜免费| 中文字幕一区二区三区在线观看| 中文字幕中文字幕一区二区| 亚洲人亚洲人成电影网站色| 一区二区三区精品视频在线| 午夜激情一区二区三区| 日本女人一区二区三区| 国产麻豆成人精品| 成人av网址在线| 在线观看免费亚洲| 日韩精品一区二区三区在线观看 | 国产精品毛片久久久久久| 国产精品卡一卡二| 亚洲国产欧美在线| 免费成人在线观看视频| 国产成人在线观看免费网站| 91在线视频播放| 3atv一区二区三区| 国产午夜精品一区二区三区视频 | 337p亚洲精品色噜噜狠狠| 91精品国产综合久久婷婷香蕉| 欧美www视频| 国产精品传媒在线| 亚洲国产视频一区二区| 久久国产精品色婷婷| 99久久精品国产网站| 欧美精品自拍偷拍动漫精品| 国产视频一区二区在线观看| 亚洲一区在线电影| 国产激情一区二区三区四区 | 久久综合精品国产一区二区三区| 国产精品久线在线观看| 天天综合天天综合色| 国产成人在线观看| 欧美日韩国产另类不卡| 久久精品夜色噜噜亚洲a∨| 伊人开心综合网| 狠狠色综合色综合网络| 色综合久久天天综合网| 日韩亚洲欧美综合| 亚洲乱码国产乱码精品精的特点| 免费在线成人网| 成人aaaa免费全部观看| 欧美一区二区视频观看视频 | 成人app软件下载大全免费| 欧美日韩免费观看一区二区三区| 国产午夜精品久久久久久久| 亚洲国产中文字幕| 国产成人小视频| 日韩视频免费直播| 亚洲一区二区三区四区不卡| 国产精品18久久久久久久久 | 99精品视频在线免费观看| 欧美一区二区三区在线电影| 国产精品福利一区二区三区| 久久精品av麻豆的观看方式| 在线国产亚洲欧美| 中文字幕欧美国产| 韩日欧美一区二区三区| 欧美色网站导航| 亚洲欧洲性图库| 国产老肥熟一区二区三区| 69精品人人人人| 一级做a爱片久久| caoporn国产一区二区| 精品国产乱码久久| 天堂成人国产精品一区| 欧美伊人久久久久久久久影院| 国产精品午夜在线观看| 国产成人在线色| 精品国精品国产| 日韩精品一卡二卡三卡四卡无卡| 91黄色免费观看| 亚洲色图清纯唯美| 波多野结衣一区二区三区| 久久久久国产精品免费免费搜索| 精品在线一区二区| 日韩精品一区二区三区蜜臀| 日韩精品成人一区二区三区| 欧美日韩国产综合久久| 亚洲一区二区三区在线看| 91麻豆免费看片| 亚洲精品一二三| 91伊人久久大香线蕉| 亚洲人成网站影音先锋播放| 99久久99久久久精品齐齐| 成人免费小视频| 99久久久无码国产精品| 亚洲欧洲日韩av| av在线一区二区| 国产精品国产自产拍高清av| 岛国av在线一区| 中文字幕欧美国产| 99精品桃花视频在线观看| 18成人在线视频| 99久久精品久久久久久清纯| 亚洲免费毛片网站| 欧美婷婷六月丁香综合色| 午夜日韩在线电影| 日韩一级免费一区| 国产伦精品一区二区三区在线观看| 精品国产乱码久久久久久免费| 国产一区中文字幕| 中文字幕av不卡| 97久久精品人人做人人爽| 亚洲美女区一区| 欧美日韩你懂得| 麻豆91精品91久久久的内涵| 久久综合资源网| 国产成人免费视频一区| 一区精品在线播放| 欧美视频一区在线观看| 日本va欧美va精品发布| 久久久久久久久久久99999| 成人综合激情网| 一区二区免费在线| 欧美一区二区三区在| 国产精品一区二区在线观看网站| 成人欧美一区二区三区视频网页 | 欧美一二三区在线观看| 日韩国产精品大片| 久久九九久久九九| 在线观看免费亚洲| 久久99国产精品尤物| 国产精品天干天干在线综合| 色狠狠一区二区| 日韩va欧美va亚洲va久久| 国产人妖乱国产精品人妖| 欧美亚洲一区二区三区四区| 久久精品噜噜噜成人av农村| 国产精品久久久久影院| 91麻豆精品国产自产在线观看一区 | 亚洲国产综合人成综合网站| 精品国产制服丝袜高跟| 91免费国产在线| 美女精品自拍一二三四| 中文字幕在线不卡一区| 91精品国产综合久久小美女| 成人的网站免费观看| 日本不卡视频在线| 综合电影一区二区三区| 欧美大白屁股肥臀xxxxxx| 99精品欧美一区二区三区小说| 无码av中文一区二区三区桃花岛| 久久久www成人免费无遮挡大片| 欧美最猛黑人xxxxx猛交| 国产精品亚洲视频| 日韩电影在线看| 18成人在线观看| 久久久精品中文字幕麻豆发布| 在线观看av一区| 成人手机电影网| 久久精品国产第一区二区三区| 一区二区三区中文字幕电影 | 国产日韩精品视频一区| 欧美日韩三级一区| 99久久精品国产精品久久| 久国产精品韩国三级视频| 亚洲综合一区二区精品导航| 欧美国产在线观看| 欧美一级欧美三级在线观看| 一本大道久久a久久综合婷婷| 国产一区二区福利| 免费成人结看片| 香蕉成人啪国产精品视频综合网| 国产精品久久久久一区二区三区| 26uuu国产在线精品一区二区| 在线不卡a资源高清| 91国产成人在线| 91丨九色丨黑人外教| 国产成人8x视频一区二区| 免费欧美日韩国产三级电影| 亚洲成人资源在线| 亚洲欧美日韩在线播放| 国产嫩草影院久久久久| 久久综合久久久久88| 日韩免费福利电影在线观看| 欧美日韩久久一区二区| 在线精品视频小说1| 91免费看片在线观看| 99re这里只有精品首页| 国产.精品.日韩.另类.中文.在线.播放| 日韩国产欧美在线播放| 亚洲福利一二三区| 亚洲大片一区二区三区| 一区二区三区色| 亚洲综合网站在线观看| 一区二区成人在线视频 | 色婷婷亚洲一区二区三区| 成人av在线一区二区三区|