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

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

?? freopen.c

?? vxworks的完整的源代碼
?? C
字號:
/* freopen.c - reopen a file. stdio.h *//* Copyright 1992-1993 Wind River Systems, Inc. *//*modification history--------------------01c,05mar93,jdi  documentation cleanup for 5.1.01b,20sep92,smb  documentation additions01a,29jul92,jcf  added memory reclaimation.	   +smb  taken from UCB stdio*//*DESCRIPTION * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE.INCLUDE FILE: stdio.h, sys/types.h, sys/stat.h, fcntl.h, error.h, unistd.h, 	      stdlib.hSEE ALSO: American National Standard X3.159-1989NOMANUAL*/#include "vxWorks.h"#include "stdio.h"#include "ioLib.h"#include "sys/types.h"#include "sys/stat.h"#include "fcntl.h"#include "errno.h"#include "unistd.h"#include "stdlib.h"#include "objLib.h"#include "private/stdioP.h"/******************************************************************************** freopen - open a file specified by name (ANSI)** This routine opens a file whose name is the string pointed to by <file>* and associates it with a specified stream <fp>.* The <mode> argument is used just as in the fopen() function.** This routine first attempts to close any file that is associated* with the specified stream.  Failure to close the file successfully is* ignored. The error and end-of-file indicators for the stream are cleared.** Typically, freopen() is used to attach the already-open streams* `stdin', `stdout', and `stderr' to other files.* * INCLUDE FILES: stdio.h ** RETURNS:* The value of <fp>, or a null pointer if the open operation fails.** SEE ALSO: fopen()*/FILE * freopen    (    const char *  file,		/* name of file */    const char *  mode,		/* mode */    FAST FILE *	  fp		/* stream */    )    {    FAST int	f;    int		flags;    int		oflags;    int		sverrno;    BOOL	isopen = TRUE;			/* its already open */    if (OBJ_VERIFY (fp, fpClassId) != OK)	return (NULL);    if ((flags = __sflags (mode, &oflags)) == 0) 	{	(void) fclose (fp);	return (NULL);	}    /*     * There are actually programs that depend on being able to "freopen"     * descriptors that weren't originally open.  Keep this from breaking.     * Remember whether the stream was open to begin with, and which file     * descriptor (if any) was associated with it.  If it was attached to     * a descriptor, defer closing it; freopen("/dev/stdin", "r", stdin)     * should work.  This is unnecessary if it was not a Unix file.     */    if (fp->_flags & __SWR)			/* flush the stream though */	(void) __sflush(fp); 			/* ANSI doesn't require this */    if (fp->_file < 0)				/* need to close the fp? */	{	(void) __sclose (fp);	isopen = FALSE;	}    /* Get a new descriptor to refer to the new file. */    f = open (file, oflags, DEFFILEMODE);    if ((f < 0) && isopen)	{	/* If out of fd's close the old one and try again. */	if ((errno == ENFILE) || (errno == EMFILE))	    {	    (void) __sclose (fp);	    isopen = FALSE;	    f = open (file, oflags, DEFFILEMODE);	    }	}    sverrno = errno;    /*     * Finish closing fp.  Even if the open succeeded above, we cannot     * keep fp->_base: it may be the wrong size.  This loses the effect     * of any setbuffer calls, but stdio has always done this before.     */    if (isopen)	(void) __sclose (fp);    if (fp->_flags & __SMBF)	free ((char *)fp->_bf._base);    fp->_w		= 0;    fp->_r		= 0;    fp->_p		= NULL;    fp->_bf._base	= NULL;    fp->_bf._size	= 0;    fp->_lbfsize	= 0;    if (HASUB(fp))	FREEUB(fp);    fp->_ub._size	= 0;    if (HASLB(fp))	FREELB(fp);    fp->_lb._size	= 0;    if ((f < 0) && (fp->_flags != 0))	{				/* did not get it after all */	fp->_flags = 0;			/* set it free */	stdioFpDestroy (fp);		/* destroy file pointer */	errno = sverrno;		/* restore in case _close clobbered */	return (NULL);	}    fp->_flags	= flags;    fp->_file	= f;    return (fp);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色欧美88888久久久久久影院| 国产精品影视在线观看| 国产午夜亚洲精品理论片色戒 | 欧美精品一区二区三区四区| 欧美日韩国产影片| 日韩亚洲国产中文字幕欧美| 精品国产人成亚洲区| 日本一区二区三区久久久久久久久不| 久久亚洲春色中文字幕久久久| 国产亚洲精品bt天堂精选| 欧美日韩国产一级片| 日韩情涩欧美日韩视频| 国产亚洲人成网站| 亚洲国产另类精品专区| 久久成人免费网站| 99久久精品国产麻豆演员表| 在线成人免费观看| 国产精品毛片高清在线完整版| 一区二区三区四区精品在线视频| 麻豆freexxxx性91精品| 91在线视频播放| 欧美电视剧在线看免费| 亚洲日本成人在线观看| 久久99精品国产.久久久久| 91视频你懂的| 精品久久久久久综合日本欧美| 亚洲色大成网站www久久九九| 免费视频最近日韩| 91美女片黄在线观看91美女| 久久久青草青青国产亚洲免观| 亚洲免费观看高清在线观看| 国模无码大尺度一区二区三区| 欧美午夜精品理论片a级按摩| 久久久久九九视频| 天天综合天天综合色| 成人看片黄a免费看在线| 日韩三级视频在线观看| 尤物在线观看一区| 高清久久久久久| 欧美成人精品1314www| 亚洲影院久久精品| 粗大黑人巨茎大战欧美成人| 欧美一区二区视频免费观看| 一区二区三区在线视频观看58| 国产一区二区在线电影| 日韩一区二区三区视频在线观看| 亚洲欧美日韩国产综合| 国产高清精品网站| 日韩一区二区视频在线观看| 亚洲电影第三页| 色婷婷av一区二区三区gif| 国产精品女同互慰在线看| 精品一区二区三区的国产在线播放| 日本中文字幕一区| 欧美一区二区三区四区高清 | 国产日韩欧美一区二区三区综合| 奇米精品一区二区三区在线观看| 91麻豆精品久久久久蜜臀| 国产一本一道久久香蕉| 日韩欧美一级二级三级久久久| 视频一区视频二区在线观看| 欧美一区二区三区四区视频| 99麻豆久久久国产精品免费优播| 成人影视亚洲图片在线| 精品三级av在线| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美日韩一区精品| 亚洲高清三级视频| 91久久人澡人人添人人爽欧美| 亚洲欧洲精品成人久久奇米网| 国产成人在线影院| 国产亚洲污的网站| 成人av网站免费| 国产精品国产三级国产aⅴ中文| 国产成人免费视频网站| 国产欧美一区二区在线| 国产91精品入口| 国产精品乱人伦| 99视频热这里只有精品免费| 国产精品青草综合久久久久99| 成人午夜又粗又硬又大| 中文字幕av不卡| 波多野结衣精品在线| 中文字幕制服丝袜一区二区三区| 99精品欧美一区二区三区小说| 亚洲美女免费在线| 欧美三级韩国三级日本一级| 性久久久久久久| 欧美一级片在线看| 国产美女主播视频一区| 国产精品毛片大码女人| 91论坛在线播放| 午夜精品久久久久久久蜜桃app| 欧美日韩高清在线| 麻豆视频观看网址久久| 久久久一区二区| 久久久久久久综合狠狠综合| 成人免费观看视频| 亚洲精品视频在线观看网站| 欧美日韩国产区一| 紧缚奴在线一区二区三区| 久久精品视频在线免费观看| heyzo一本久久综合| 亚洲综合网站在线观看| 欧美伦理视频网站| 韩国欧美国产1区| 亚洲男人的天堂在线aⅴ视频| 亚洲精品成人精品456| 国产精品国产三级国产aⅴ入口| 亚洲天堂中文字幕| 国产精品美女久久久久高潮| 国产欧美视频在线观看| 久久婷婷一区二区三区| 日韩欧美国产精品| 精品国产亚洲在线| 久久久三级国产网站| 久久精品免费在线观看| 欧美激情中文字幕| 一区二区免费在线| 91免费在线播放| 亚洲精品国产第一综合99久久| 欧美日韩电影一区| 成人一区二区三区在线观看| 亚洲高清视频中文字幕| 中文字幕 久热精品 视频在线| 欧亚洲嫩模精品一区三区| 激情六月婷婷久久| 亚洲国产毛片aaaaa无费看| 国产无一区二区| 欧美日韩黄视频| 成人激情午夜影院| 青青草一区二区三区| 亚洲天堂中文字幕| 久久综合av免费| 欧美年轻男男videosbes| 成人动漫在线一区| 毛片不卡一区二区| 亚洲国产cao| 日本怡春院一区二区| 亚洲色图在线看| 国产女人aaa级久久久级 | 日韩一区欧美一区| 日韩欧美在线123| 色婷婷综合在线| 国产乱子轮精品视频| 天天做天天摸天天爽国产一区| 亚洲天堂久久久久久久| 国产日韩欧美激情| 日韩欧美美女一区二区三区| 色婷婷av久久久久久久| 粉嫩久久99精品久久久久久夜| 乱中年女人伦av一区二区| 亚洲一区二区三区视频在线播放 | 91美女在线看| 国产jizzjizz一区二区| 久久99精品久久只有精品| 亚洲成av人片在线观看| 亚洲欧美国产三级| 国产精品理伦片| 久久精品视频免费观看| 欧美成人性战久久| 日韩欧美在线123| 亚洲一二三专区| 在线影院国内精品| 亚洲一区二区美女| 久久综合九色综合久久久精品综合| 亚洲欧美日韩系列| 色综合色狠狠天天综合色| 国产视频亚洲色图| 色综合久久天天综合网| 国产精品二区一区二区aⅴ污介绍| 激情综合五月婷婷| 欧美成人乱码一区二区三区| 青娱乐精品视频| 欧美一区日韩一区| 国产在线乱码一区二区三区| 国产亚洲福利社区一区| 成人免费av资源| 成人视屏免费看| 国产91精品精华液一区二区三区| 国产精品一区在线| 国产一区在线观看麻豆| 国产在线国偷精品产拍免费yy| 久久精品国产一区二区| 蜜臀久久久久久久| 蜜臀av在线播放一区二区三区| 日韩av中文在线观看| 男女性色大片免费观看一区二区 | 色综合天天做天天爱| 91麻豆免费观看| 色8久久精品久久久久久蜜| 在线观看欧美精品| 欧美日韩一区二区三区四区五区| 欧美色综合网站| 欧美精品久久天天躁| 欧美一卡在线观看| 精品国精品国产尤物美女| 久久精品在线观看| 国产精品久久久久久久久久久免费看| 国产精品久久久久久户外露出|