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

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

?? usrdosfsold.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* usrDosFsOld.c - old DosFs compatibility library *//* Copyright 1998-2002 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01j,15may02,jkf  SPR#77063, adding dosFsVolFormat option to dosFsDevInit01i,14nov01,jkf  general clean up, removed void * use.01h,20sep01,jkf  SPR#69031, common code for both AE & 5.x.01g,26dec99,jkf  T3 changes01f,31jul99,jkf  T2 merge, tidiness & spelling.01e,23nov98,???  clean warning01d,14jul98,lrn  usrFsLib now linked in by usrLib01c,09jul98,lrn  moved definitions to dosFsLib.h, added dosFsCacheSizeDefault01b,30jun98,lrn  added dosFsInit() installing all sub-modules,		 added PCMCIA comment, dosFsDateTimeInstall01a,24jun98,mjc  written.*//*DESCRIPTIONThis library provides backward compatibility with old DosFs implementation.Many of the routines here are just stubs and the other are simply envelopes to new DosFs user interface.This backwards compatibility module is intended to allow easy upgrade ofthe MS-DOS file system without modification of any of the VxWorksconfiguration and initialization files.In some cases however this backwards compatibility interface isinsufficient, and will require the user to modify the VxWorksconfiguration code to use the new interface. One such configuration isthe PCMCIA support for x86 targets.This is strongly recommended do not use the routines from this library in thenew application design.  Instead, they may be used as examples which demonstrate use of routines to initialize and configure devices in the new DosFs.LIMITATIONSSEE ALSO: dosFsLib, dcacheLib, dpartLib*//* INCLUDES */#include "vxWorks.h"#include "private/dosFsVerP.h"#include "errnoLib.h"#include "string.h"#include "stdlib.h"#include "dosFsLib.h"#include "dcacheCbio.h"#include "time.h"#include "timers.h"#include "usrLib.h"/* DEFINES */#define DEFAULT_OPTIONS         0       /* default volume options *//* locals */LOCAL UINT	dosFsMkfsOptions = DEFAULT_OPTIONS;						/* options to use during mkfs */LOCAL FUNCPTR	pDosFsDateTimeFunc = NULL ;LOCAL BOOL	dosFsInitCalled = FALSE ;/* globals */int dosFsCacheSizeDefault	= 128 * 1024 ;/* forward */LOCAL void dosFsDateTimeSet (void );/********************************************************************************* dosFsInit - initialize the MS-DOS file system and related libraries** This function is part of the backward compatibility library delivered* with the new MS-DOS file system. It is intended to provide the same* interface as the old version of the MS-DOS file system, and configure* all sub-modules of the new file system implementation.** In order to avoid modifying the VxWorks configuration files, this* backward compatibility function will install all available MS-DOS file* system sub-modules. This code is provided in source so that the user may* eliminate the options which they do not require and save memory.** RETURNS: ERROR if the main dosFsLib module has failed to initialize** SEE ALSO dosFsLib*/STATUS dosFsInit (int ignored )    {    IMPORT STATUS dosFsFat16Init(void);    if( TRUE == dosFsInitCalled )	{	return OK;	}    /* First initialize the main module */    if( dosFsLibInit( 0 ) == ERROR )	return ERROR;    /* Initialize sub-modules */    /* Sub-module: VFAT Directory Handler */    dosVDirLibInit();    /* Sub-module: Vintage 8.2 and VxLong Directory Handler */    dosDirOldLibInit();    /* Sub-module: FAT12/FAT16/FAT32 FAT Handler */    dosFsFatInit();    /* Sub-module: Consistency check handler */    dosChkLibInit();    /* Sub-module: Formatter */    dosFsFmtLibInit();    dosFsInitCalled = TRUE ;    return OK;    }/********************************************************************************* dosFsDevInit - associate a block device with dosFs file system functions** This function is part of the backward compatibility library delivered* with the new MS-DOS file system. It is intended to provide the same* interface as the old version of the MS-DOS file system.** This routine takes a block device structure (BLK_DEV) created by* a device driver and defines it as a DosFs volume.  As a result, when* high-level I/O operations (e.g., open(), write()) are performed on* the device, the calls will be routed through dosFsLib.  The <pBlkDev>* parameter is the address of the BLK_DEV structure which describes this* device.** This routine associates the name <pDevName> with the device and installs* it in the VxWorks I/O system's device table.  The driver number used when* the device is added to the table is that which was assigned to the* DosFs library during dosFsInit().** The <pConfig> parameter is now minimally supported.  If <pConfig> is NULL, * it is ignored.  If <pConfig> is not NULL, dosFsVolFormat is called with * default formatting options.** If the device being initialized already has a valid DosFs file system on it,  * the configuration data will be read from the boot sector of the disk while * the volume will be mounted.** The specific dosFs configuration data to be used for this volume may be * provided during the volume formatting with the new dosFsVolFormat() call.** The FIODISKINIT ioctl() command can be issued now on a preformatted device * only to reformat this one.** This routine allocates and initializes a dummy volume descriptor * (DOS_VOL_DESC) for the device.  It returns a pointer to DOS_VOL_DESC.* ** RETURNS: A pointer to the dummy volume descriptor DOS_VOL_DESC, or NULL if*          there is an error.** SEE ALSO: dosFsMkfs()*/DOS_VOL_DESC *dosFsDevInit    (    char *		pDevName,       /* device name */    BLK_DEV *		pBlkDev,       /* pointer to block device struct */    DOS_VOL_CONFIG *	pConfig        /* pointer to volume config data */    )    {    DOS_VOL_DESC *	pVolDesc;	/* pointer to volume descriptor */    CBIO_DEV_ID	cbio;    /* Return error if no BLK_DEV */    if (pBlkDev == NULL)	{	errnoSet (S_dosFsLib_INVALID_PARAMETER);	return (NULL);	}    /* make sure all modules are initialized */    if( FALSE == dosFsInitCalled )	{	dosFsInit( 0 );	}    /* Create e.g. 128 Kbytes disk cache */    if ( (cbio = dcacheDevCreate( (CBIO_DEV_ID) pBlkDev, NULL,		dosFsCacheSizeDefault, pDevName)) == NULL )        return NULL;    /*      * Create file system with 20 (default) simultaneously open files and      * default volume integrity check on mount level (repair + verbous_1).     */    if (dosFsDevCreate (pDevName, cbio, 0, NONE) != OK)        return NULL;    /*      * if <pConfig> is not NULL, then dosFsVolFormat the volume      * This will help a subsequent diskInit() to function closer     * to how dosFs1 user may expect...     */        if (NULL != pConfig)        {        dosFsVolFormat (cbio, DOS_OPT_DEFAULT, NULL);        }    /* Allocate a dummy dosFs volume descriptor */    pVolDesc = (DOS_VOL_DESC *) KHEAP_ALLOC((sizeof (DOS_VOL_DESC)));    if (NULL == pVolDesc)         return (NULL);				/* no memory */    bzero ((char *)pVolDesc, sizeof (DOS_VOL_DESC));    if ( (*pVolDesc = KHEAP_ALLOC((strlen (pDevName) + 1))) == NULL )	return NULL;				/* no memory */    strcpy (*pVolDesc, pDevName);    dosFsDateTimeSet();    return (pVolDesc);    } /* dosFsDevInit *//********************************************************************************* dosFsDevInitOptionsSet - specify volume options for dosFsDevInit()** This function is part of the backward compatibility library delivered* with the new MS-DOS file system. It is intended to provide the same* interface as the old version of the MS-DOS file system.** Since the volume options which might be specified in this call are * inapplicable now, this routine just returns OK.** RETURNS: OK always.** SEE ALSO: dosFsDevInit(), dosFsVolOptionsSet()*  */STATUS dosFsDevInitOptionsSet    (    UINT	options		/* options for future dosFsDevInit() calls */    )    {    return (OK);    } /* dosFsDevInitOptionsSet *//********************************************************************************* dosFsMkfs - initialize a device and create a dosFs file system** This function is part of the backward compatibility library delivered* with the new MS-DOS file system. It is intended to provide the same* interface as the old version of the MS-DOS file system.** This routine provides a quick method of creating a DosFs file system on* a device.** It uses default values for various DosFs configuration parameters.* These defaults differ from old DosFs ones.** The only long filenames volume option is enabled by this routine now.* This option can be set using dosFsMkfsOptionsSet().  By default, no it is * enabled for disks initialized by dosFsMkfs().** RETURNS: A pointer to a dummy DosFs volume descriptor, or NULL if there is an *          error.** SEE ALSO: dosFsDevInit()*/DOS_VOL_DESC * dosFsMkfs    (    char *	pVolName,	/* volume name to use */    BLK_DEV *	pBlkDev		/* pointer to block device structure */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91色porny在线视频| 国产日韩影视精品| 久久先锋资源网| 亚洲一区二区在线视频| 国产综合色视频| 欧美精品123区| 亚洲欧洲日韩在线| 国产乱子伦视频一区二区三区 | 国产综合色产在线精品 | 国产高清久久久| 欧美精品aⅴ在线视频| 国产精品欧美久久久久无广告| 蜜臀久久久99精品久久久久久| heyzo一本久久综合| 久久久久一区二区三区四区| 全部av―极品视觉盛宴亚洲| 欧美三级资源在线| 亚洲色图欧美激情| 99re亚洲国产精品| 中日韩免费视频中文字幕| 国产在线播放一区三区四| 欧美一级xxx| 美国一区二区三区在线播放| 欧美精品一卡两卡| 香蕉成人啪国产精品视频综合网| 日本道色综合久久| 中文字幕亚洲一区二区av在线| 国产精品一区二区三区乱码| 亚洲精品在线免费观看视频| 久久不见久久见免费视频1| 日韩小视频在线观看专区| 日韩福利电影在线观看| 91精品国产麻豆国产自产在线 | 成人福利在线看| 国产日韩精品一区二区三区| 国产一区二区导航在线播放| 日韩免费成人网| 国产精品1区二区.| 中文字幕国产精品一区二区| 成人精品鲁一区一区二区| 国产精品久久久久久户外露出| 成人18视频在线播放| 亚洲精品一卡二卡| 欧美综合欧美视频| 日韩av高清在线观看| 欧美精品三级日韩久久| 久久电影网站中文字幕| 国产色婷婷亚洲99精品小说| 成人性生交大片免费看视频在线| 国产精品乱人伦| 日本道色综合久久| 免费欧美在线视频| 国产三级久久久| 欧美午夜片在线观看| 久久精品72免费观看| 国产亚洲精品7777| 91久久国产最好的精华液| 日韩激情在线观看| 国产精品美女久久久久av爽李琼 | 成人精品视频一区| 亚洲大片在线观看| 精品国产91亚洲一区二区三区婷婷 | 亚洲va欧美va国产va天堂影院| 91麻豆精品国产91久久久资源速度| 免费xxxx性欧美18vr| 国产精品每日更新| 欧美精品在欧美一区二区少妇| 国产精品综合视频| 亚洲精品久久久蜜桃| 日韩一区二区三区观看| 成人动漫一区二区| 青青草原综合久久大伊人精品优势| 精品成人佐山爱一区二区| 99视频热这里只有精品免费| 日本欧美一区二区| 国产精品欧美经典| 日韩一区二区三区免费看| 91蜜桃在线观看| 国产在线看一区| 一区二区三区日韩| 亚洲国产精品ⅴa在线观看| 欧美日韩精品一区二区| 国产乱人伦精品一区二区在线观看| 一区二区三区在线免费视频 | 欧美精品123区| 国内精品不卡在线| 亚洲国产综合人成综合网站| 国产香蕉久久精品综合网| 欧美日韩综合不卡| 97久久精品人人做人人爽| 国产综合久久久久久久久久久久| 亚洲一区二区三区四区在线观看| 欧美国产国产综合| 久久久久一区二区三区四区| 制服丝袜一区二区三区| 欧美婷婷六月丁香综合色| 99免费精品视频| 国产91露脸合集magnet| 日韩国产精品久久久久久亚洲| 亚洲国产日韩一区二区| 一区二区视频在线看| 国产日韩高清在线| 国产日本欧美一区二区| 亚洲精品一区二区三区影院 | 欧美三区在线观看| 91成人看片片| 色婷婷综合久色| 91视频一区二区| 成人动漫在线一区| 成人免费三级在线| 从欧美一区二区三区| 国产大陆亚洲精品国产| 国产成人在线视频网站| 国产精品一色哟哟哟| 国产99久久久国产精品免费看| 国产精品资源在线看| 国产乱子伦视频一区二区三区| 国产乱淫av一区二区三区| 国内精品免费在线观看| 国产成人综合网| 风间由美一区二区av101| 国产成人免费高清| 不卡视频在线看| 日本乱人伦aⅴ精品| 欧美日韩精品一区二区| 日韩一区二区在线播放| 久久综合色8888| 国产精品国产三级国产| 伊人一区二区三区| 日韩av成人高清| 国内精品伊人久久久久影院对白| 国产精品亚洲成人| 99久久综合99久久综合网站| 色哟哟精品一区| 51精品秘密在线观看| 精品va天堂亚洲国产| 1区2区3区国产精品| 亚洲国产成人av好男人在线观看| 日韩电影在线一区二区| 韩国成人在线视频| 99精品久久久久久| 欧美男人的天堂一二区| 国产午夜一区二区三区| 亚洲精品日韩专区silk| 久久精品国产一区二区三区免费看| 国产美女主播视频一区| 成人app网站| 制服丝袜中文字幕亚洲| 中文无字幕一区二区三区| 亚洲午夜三级在线| 国产精品白丝jk黑袜喷水| 91精品1区2区| 久久婷婷一区二区三区| 一区二区在线观看不卡| 精品一区二区成人精品| 91麻豆免费视频| 亚洲精品在线三区| 婷婷中文字幕一区三区| 国产一区二区在线视频| 欧美日精品一区视频| 国产情人综合久久777777| 亚洲成人免费电影| 麻豆国产精品官网| 一本一本大道香蕉久在线精品| 欧美tickling网站挠脚心| 亚洲欧美日韩国产中文在线| 理论电影国产精品| 欧美性色aⅴ视频一区日韩精品| 亚洲精品一区二区三区在线观看| 亚洲成人一区二区| 色老头久久综合| 国产视频一区二区三区在线观看| 奇米888四色在线精品| 色欧美88888久久久久久影院| 国产亚洲综合性久久久影院| 午夜精品久久久久久久99水蜜桃 | 6080午夜不卡| 一区二区三区日韩精品视频| 成人va在线观看| 26uuu亚洲综合色欧美| 日韩国产欧美在线播放| 91激情五月电影| 国产精品国产自产拍高清av| 国产精品一区二区在线观看不卡 | 亚洲激情中文1区| 高潮精品一区videoshd| 久久综合九色综合97婷婷女人 | 国产精品美女久久久久久2018| 激情综合网av| 欧美变态口味重另类| 免费高清不卡av| 欧美一级二级在线观看| 日韩电影在线看| 日韩一区二区不卡| 蜜臀av一区二区在线观看 | 欧美亚洲一区二区在线观看| 国产精品盗摄一区二区三区| 成人污视频在线观看| 国产欧美日韩亚州综合 | 亚洲激情在线播放|