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

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

?? freopen.c

?? vxwork源代碼
?? 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一区二区三区免费野_久草精品视频
中文字幕一区二区三| 欧美电影免费观看高清完整版在| 6080午夜不卡| 婷婷中文字幕综合| 日韩欧美一级片| 久久91精品国产91久久小草| 亚洲精品在线三区| 成人在线综合网站| 亚洲午夜在线观看视频在线| 欧美精品777| 国产在线视频不卡二| 18成人在线观看| 欧美剧情片在线观看| 九九九精品视频| 中文字幕欧美一| 欧美精品v国产精品v日韩精品| 亚洲成人自拍网| 亚洲精品一线二线三线无人区| 九色porny丨国产精品| 国产精品无人区| 欧美综合一区二区三区| 青青草91视频| 亚洲视频在线一区二区| 91精品国产福利在线观看 | 99re6这里只有精品视频在线观看| 中文字幕精品—区二区四季| 欧美婷婷六月丁香综合色| 日韩不卡一二三区| 国产精品亲子乱子伦xxxx裸| 欧美日韩国产小视频在线观看| 另类综合日韩欧美亚洲| 亚洲欧美在线视频| 精品理论电影在线观看| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩视频在线第一区 | 欧美大尺度电影在线| 成人精品视频一区| 日韩高清一区在线| 国产精品二三区| 日韩免费一区二区| 欧美亚洲综合网| 成人黄色小视频| 极品少妇xxxx精品少妇偷拍| 亚洲国产精品久久久久婷婷884| 精品日韩成人av| 欧美图区在线视频| 99精品一区二区| 国产传媒欧美日韩成人| 美女网站色91| 亚洲一卡二卡三卡四卡无卡久久| 精品久久国产字幕高潮| 欧美日韩精品欧美日韩精品一| 国内精品写真在线观看| 视频一区中文字幕国产| 自拍偷拍国产精品| 国产精品网站在线观看| 精品国产亚洲在线| 日韩午夜在线播放| 欧美日韩精品欧美日韩精品一综合| 国产mv日韩mv欧美| 极品少妇一区二区| 久久精品国产999大香线蕉| 亚洲bdsm女犯bdsm网站| 亚洲国产综合视频在线观看| 亚洲婷婷综合色高清在线| 国产精品网曝门| 久久久精品黄色| 国产亚洲欧美一区在线观看| 久久香蕉国产线看观看99| 欧美不卡在线视频| 精品av久久707| 久久麻豆一区二区| 国产日韩欧美电影| 日本一区二区三级电影在线观看 | 国产精品一二一区| 国产精品一二三区| 国产成人av电影在线播放| 国产福利一区在线观看| 国产69精品久久久久777| 国产精品一区三区| 成人精品国产福利| 91丨porny丨国产| 91久久精品日日躁夜夜躁欧美| 成人黄色av网站在线| 成人黄页在线观看| 色综合天天综合色综合av | 一区二区三区四区高清精品免费观看 | 日韩一区二区三区免费看 | 欧美日韩一区二区三区在线看| 91蝌蚪国产九色| 欧美日韩免费观看一区二区三区| 色综合咪咪久久| 4hu四虎永久在线影院成人| 7777精品伊人久久久大香线蕉最新版| av电影一区二区| 欧美中文字幕一区| 欧美精品xxxxbbbb| 久久一留热品黄| 日韩美女久久久| 偷拍亚洲欧洲综合| 国产在线精品一区二区三区不卡| 国产自产高清不卡| 99久久精品情趣| 欧美三级日韩三级| 久久综合视频网| 伊人色综合久久天天| 日韩av网站免费在线| 国产成人自拍网| 欧美调教femdomvk| 久久这里只有精品视频网| 最新热久久免费视频| 爽好多水快深点欧美视频| 国产jizzjizz一区二区| 欧美丝袜第三区| 国产欧美中文在线| 亚洲一区二区欧美激情| 国产精品99久久久久久久vr| 在线欧美日韩国产| 久久久无码精品亚洲日韩按摩| 亚洲天堂中文字幕| 久久精品国产99国产精品| 91免费看`日韩一区二区| 日韩精品一区二区三区四区| 亚洲人123区| 国产一区91精品张津瑜| 欧美日高清视频| 国产精品全国免费观看高清| 青草av.久久免费一区| 91碰在线视频| 久久久久久97三级| 丝袜诱惑制服诱惑色一区在线观看| 毛片av一区二区三区| 在线观看日韩高清av| www成人在线观看| 日本午夜一本久久久综合| 91蜜桃网址入口| 国产肉丝袜一区二区| 久久国产精品72免费观看| 欧美日韩一区二区三区视频 | 日韩久久久精品| 亚洲一区二区美女| 99re成人精品视频| 欧美高清在线精品一区| 久久福利资源站| 久久久不卡影院| 久久精工是国产品牌吗| 欧美日韩高清在线播放| 亚洲精品乱码久久久久久| 成人午夜视频在线观看| 久久久久88色偷偷免费| 免费在线观看成人| 欧美日韩成人激情| 亚洲综合一区在线| 成人av在线播放网站| 欧美国产综合一区二区| 国产精品77777| 2022国产精品视频| 国产一区三区三区| 欧美大片一区二区| 麻豆91在线看| 精品国产一区二区三区不卡| 免费av成人在线| 欧美一区欧美二区| 日av在线不卡| 日韩欧美一区二区在线视频| 美洲天堂一区二卡三卡四卡视频| 欧美午夜寂寞影院| 亚洲高清视频中文字幕| 欧美日韩在线免费视频| 亚洲mv在线观看| 91精品国产综合久久福利| 五月开心婷婷久久| 久久久天堂av| 国产精一区二区三区| 国产精品素人一区二区| av亚洲产国偷v产偷v自拍| 国产精品福利av| 在线观看国产精品网站| 五月婷婷综合在线| 日韩女优电影在线观看| 国产一区二区不卡在线| 国产精品女同互慰在线看| 97精品视频在线观看自产线路二| 中文字幕一区在线| 欧美性高清videossexo| 日韩成人dvd| 国产亚洲欧美在线| 色狠狠桃花综合| 日韩精品亚洲专区| 久久久亚洲精品一区二区三区| 国产综合久久久久影院| 国产精品久久福利| 欧美色精品天天在线观看视频| 偷拍自拍另类欧美| 国产三级欧美三级| 日本二三区不卡| 国产制服丝袜一区| 中文字幕在线观看一区| 91精品国产综合久久久久久久 | 玉米视频成人免费看|