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

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

?? dir.c

?? 嵌入式環境下的GUI
?? C
字號:
/* * Standard directory I/O support routines for PhysicsFS. * * Please see the file LICENSE in the source's root directory. * *  This file written by Ryan C. Gordon. */#if HAVE_CONFIG_H#  include <config.h>#endif#include <stdio.h>#include <stdlib.h>#include <string.h>#include "physfs.h"#define __PHYSICSFS_INTERNAL__#include "physfs_internal.h"static PHYSFS_sint64 DIR_read(FileHandle *handle, void *buffer,                              PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);static PHYSFS_sint64 DIR_write(FileHandle *handle, const void *buffer,                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);static PHYSFS_sint64 DIR_dummyRead(FileHandle *handle, void *buffer,                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);static PHYSFS_sint64 DIR_dummyWrite(FileHandle *handle, const void *buffer,                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount);static int DIR_eof(FileHandle *handle);static PHYSFS_sint64 DIR_tell(FileHandle *handle);static int DIR_seek(FileHandle *handle, PHYSFS_uint64 offset);static PHYSFS_sint64 DIR_fileLength(FileHandle *handle);static int DIR_fileClose(FileHandle *handle);static int DIR_isArchive(const char *filename, int forWriting);static DirHandle *DIR_openArchive(const char *name, int forWriting);static LinkedStringList *DIR_enumerateFiles(DirHandle *h,                                            const char *dname,                                            int omitSymLinks);static int DIR_exists(DirHandle *h, const char *name);static int DIR_isDirectory(DirHandle *h, const char *name, int *fileExists);static int DIR_isSymLink(DirHandle *h, const char *name, int *fileExists);static FileHandle *DIR_openRead(DirHandle *h, const char *fnm, int *exist);static PHYSFS_sint64 DIR_getLastModTime(DirHandle *h, const char *f, int *e);static FileHandle *DIR_openWrite(DirHandle *h, const char *filename);static FileHandle *DIR_openAppend(DirHandle *h, const char *filename);static int DIR_remove(DirHandle *h, const char *name);static int DIR_mkdir(DirHandle *h, const char *name);static void DIR_dirClose(DirHandle *h);const PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_DIR ={    "",    DIR_ARCHIVE_DESCRIPTION,    "Ryan C. Gordon <icculus@clutteredmind.org>",    "http://icculus.org/physfs/",};static const FileFunctions __PHYSFS_FileFunctions_DIR ={    DIR_read,       /* read() method       */    DIR_dummyWrite, /* write() method      */    DIR_eof,        /* eof() method        */    DIR_tell,       /* tell() method       */    DIR_seek,       /* seek() method       */    DIR_fileLength, /* fileLength() method */    DIR_fileClose   /* fileClose() method  */};static const FileFunctions __PHYSFS_FileFunctions_DIRW ={    DIR_dummyRead,  /* read() method       */    DIR_write,      /* write() method      */    DIR_eof,        /* eof() method        */    DIR_tell,       /* tell() method       */    DIR_seek,       /* seek() method       */    DIR_fileLength, /* fileLength() method */    DIR_fileClose   /* fileClose() method  */};const DirFunctions __PHYSFS_DirFunctions_DIR ={    &__PHYSFS_ArchiveInfo_DIR,    DIR_isArchive,          /* isArchive() method      */    DIR_openArchive,        /* openArchive() method    */    DIR_enumerateFiles,     /* enumerateFiles() method */    DIR_exists,             /* exists() method         */    DIR_isDirectory,        /* isDirectory() method    */    DIR_isSymLink,          /* isSymLink() method      */    DIR_getLastModTime,     /* getLastModTime() method */    DIR_openRead,           /* openRead() method       */    DIR_openWrite,          /* openWrite() method      */    DIR_openAppend,         /* openAppend() method     */    DIR_remove,             /* remove() method         */    DIR_mkdir,              /* mkdir() method          */    DIR_dirClose            /* dirClose() method       */};static PHYSFS_sint64 DIR_read(FileHandle *handle, void *buffer,                              PHYSFS_uint32 objSize, PHYSFS_uint32 objCount){    PHYSFS_sint64 retval;    retval = __PHYSFS_platformRead(handle->opaque, buffer, objSize, objCount);    return(retval);} /* DIR_read */static PHYSFS_sint64 DIR_write(FileHandle *handle, const void *buffer,                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount){    PHYSFS_sint64 retval;    retval = __PHYSFS_platformWrite(handle->opaque, buffer, objSize, objCount);    return(retval);} /* DIR_write */static PHYSFS_sint64 DIR_dummyRead(FileHandle *handle, void *buffer,                              PHYSFS_uint32 objSize, PHYSFS_uint32 objCount){    BAIL_MACRO(ERR_NOT_SUPPORTED, -1);} /* DIR_dummyRead */static PHYSFS_sint64 DIR_dummyWrite(FileHandle *handle, const void *buffer,                               PHYSFS_uint32 objSize, PHYSFS_uint32 objCount){    BAIL_MACRO(ERR_NOT_SUPPORTED, -1);} /* DIR_dummyWrite */static int DIR_eof(FileHandle *handle){    return(__PHYSFS_platformEOF(handle->opaque));} /* DIR_eof */static PHYSFS_sint64 DIR_tell(FileHandle *handle){    return(__PHYSFS_platformTell(handle->opaque));} /* DIR_tell */static int DIR_seek(FileHandle *handle, PHYSFS_uint64 offset){    return(__PHYSFS_platformSeek(handle->opaque, offset));} /* DIR_seek */static PHYSFS_sint64 DIR_fileLength(FileHandle *handle){    return(__PHYSFS_platformFileLength(handle->opaque));} /* DIR_fileLength */static int DIR_fileClose(FileHandle *handle){    /*     * we manually flush the buffer, since that's the place a close will     *  most likely fail, but that will leave the file handle in an undefined     *  state if it fails. Flush failures we can recover from.     */    BAIL_IF_MACRO(!__PHYSFS_platformFlush(handle->opaque), NULL, 0);    BAIL_IF_MACRO(!__PHYSFS_platformClose(handle->opaque), NULL, 0);    free(handle);    return(1);} /* DIR_fileClose */static int DIR_isArchive(const char *filename, int forWriting){    /* directories ARE archives in this driver... */    return(__PHYSFS_platformIsDirectory(filename));} /* DIR_isArchive */static DirHandle *DIR_openArchive(const char *name, int forWriting){    const char *dirsep = PHYSFS_getDirSeparator();    DirHandle *retval = NULL;    size_t namelen = strlen(name);    size_t seplen = strlen(dirsep);    BAIL_IF_MACRO(!DIR_isArchive(name, forWriting),                    ERR_UNSUPPORTED_ARCHIVE, NULL);    retval = (DirHandle *) malloc(sizeof (DirHandle));    BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);    retval->opaque = malloc(namelen + seplen + 1);    if (retval->opaque == NULL)    {        free(retval);        BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);    } /* if */        /* make sure there's a dir separator at the end of the string */    strcpy((char *) (retval->opaque), name);    if (strcmp((name + namelen) - seplen, dirsep) != 0)        strcat((char *) (retval->opaque), dirsep);    retval->funcs = &__PHYSFS_DirFunctions_DIR;    return(retval);} /* DIR_openArchive */static LinkedStringList *DIR_enumerateFiles(DirHandle *h,                                            const char *dname,                                            int omitSymLinks){    char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque),dname,NULL);    LinkedStringList *retval;    BAIL_IF_MACRO(d == NULL, NULL, NULL);    retval = __PHYSFS_platformEnumerateFiles(d, omitSymLinks);    free(d);    return(retval);} /* DIR_enumerateFiles */static int DIR_exists(DirHandle *h, const char *name){    char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    int retval;    BAIL_IF_MACRO(f == NULL, NULL, 0);    retval = __PHYSFS_platformExists(f);    free(f);    return(retval);} /* DIR_exists */static int DIR_isDirectory(DirHandle *h, const char *name, int *fileExists){    char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    int retval = 0;    BAIL_IF_MACRO(d == NULL, NULL, 0);    *fileExists = __PHYSFS_platformExists(d);    if (*fileExists)        retval = __PHYSFS_platformIsDirectory(d);    free(d);    return(retval);} /* DIR_isDirectory */static int DIR_isSymLink(DirHandle *h, const char *name, int *fileExists){    char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    int retval = 0;    BAIL_IF_MACRO(f == NULL, NULL, 0);    *fileExists = __PHYSFS_platformExists(f);    if (*fileExists)        retval = __PHYSFS_platformIsSymLink(f);    free(f);    return(retval);} /* DIR_isSymLink */static PHYSFS_sint64 DIR_getLastModTime(DirHandle *h,                                        const char *name,                                        int *fileExists){    char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    PHYSFS_sint64 retval = -1;    BAIL_IF_MACRO(d == NULL, NULL, 0);    *fileExists = __PHYSFS_platformExists(d);    if (*fileExists)        retval = __PHYSFS_platformGetLastModTime(d);    free(d);    return(retval);} /* DIR_getLastModTime */static FileHandle *doOpen(DirHandle *h, const char *name,                          void *(*openFunc)(const char *filename),                          int *fileExists, const FileFunctions *fileFuncs){    char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    void *rc;    FileHandle *retval;    BAIL_IF_MACRO(f == NULL, NULL, NULL);    if (fileExists != NULL)    {        *fileExists = __PHYSFS_platformExists(f);        if (!(*fileExists))        {            free(f);            return(NULL);        } /* if */    } /* if */    retval = (FileHandle *) malloc(sizeof (FileHandle));    if (!retval)    {        free(f);        BAIL_MACRO(ERR_OUT_OF_MEMORY, NULL);    } /* if */    rc = openFunc(f);    free(f);    if (!rc)    {        free(retval);        return(NULL);    } /* if */    retval->opaque = (void *) rc;    retval->dirHandle = h;    retval->funcs = fileFuncs;    return(retval);} /* doOpen */static FileHandle *DIR_openRead(DirHandle *h, const char *fnm, int *exist){    return(doOpen(h, fnm, __PHYSFS_platformOpenRead, exist,                  &__PHYSFS_FileFunctions_DIR));} /* DIR_openRead */static FileHandle *DIR_openWrite(DirHandle *h, const char *filename){    return(doOpen(h, filename, __PHYSFS_platformOpenWrite, NULL,                  &__PHYSFS_FileFunctions_DIRW));} /* DIR_openWrite */static FileHandle *DIR_openAppend(DirHandle *h, const char *filename){    return(doOpen(h, filename, __PHYSFS_platformOpenAppend, NULL,                  &__PHYSFS_FileFunctions_DIRW));} /* DIR_openAppend */static int DIR_remove(DirHandle *h, const char *name){    char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    int retval;    BAIL_IF_MACRO(f == NULL, NULL, 0);    retval = __PHYSFS_platformDelete(f);    free(f);    return(retval);} /* DIR_remove */static int DIR_mkdir(DirHandle *h, const char *name){    char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);    int retval;    BAIL_IF_MACRO(f == NULL, NULL, 0);    retval = __PHYSFS_platformMkDir(f);    free(f);    return(retval);} /* DIR_mkdir */static void DIR_dirClose(DirHandle *h){    free(h->opaque);    free(h);} /* DIR_dirClose *//* end of dir.c ... */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久综合色一本| 亚洲精品国产无套在线观| 亚洲视频一区二区在线| 日韩在线卡一卡二| 国产成人精品免费网站| 欧美日韩视频专区在线播放| 欧美激情艳妇裸体舞| 免费欧美在线视频| 在线观看日韩一区| 亚洲欧美在线高清| 国产激情一区二区三区四区 | 自拍视频在线观看一区二区| 免费观看久久久4p| 欧美在线视频你懂得| 国产精品另类一区| 国产成人啪免费观看软件| 欧美一区二区视频免费观看| 亚洲小说春色综合另类电影| 成人午夜av在线| 久久久不卡影院| 国产又黄又大久久| 欧美电影免费观看高清完整版在线观看| 亚洲女爱视频在线| 成人免费看黄yyy456| 久久男人中文字幕资源站| 蜜桃一区二区三区在线观看| 欧美日韩中文精品| 亚洲成va人在线观看| 欧美在线制服丝袜| 亚洲成人中文在线| 在线播放91灌醉迷j高跟美女| 亚洲国产成人av网| 欧美日韩五月天| 日韩黄色免费电影| 日韩欧美一区在线观看| 久久国产精品区| 日韩免费电影一区| 国产专区欧美精品| 亚洲欧美区自拍先锋| 成人黄色在线看| 亚洲私人影院在线观看| 色综合av在线| 亚洲国产精品久久人人爱蜜臀| 在线精品视频免费播放| 亚洲成人先锋电影| 精品裸体舞一区二区三区| 精品一区二区三区在线视频| 久久综合色鬼综合色| 国产ts人妖一区二区| 综合分类小说区另类春色亚洲小说欧美| 99免费精品在线| 亚洲国产一区在线观看| 欧美精品一级二级| 国产一区二区三区四| 成人欧美一区二区三区| 欧美亚洲高清一区二区三区不卡| 日韩激情在线观看| 国产丝袜欧美中文另类| 91福利精品视频| 蜜桃视频在线观看一区| 亚洲国产精品精华液2区45| 色老汉av一区二区三区| 日韩va欧美va亚洲va久久| 久久亚洲精精品中文字幕早川悠里 | 国产麻豆欧美日韩一区| 综合久久久久综合| 日韩一卡二卡三卡国产欧美| 国产精品一区二区久久不卡| 亚洲欧美激情插| 精品少妇一区二区三区免费观看| 成人美女在线观看| 日本色综合中文字幕| 国产日韩精品一区二区三区| 欧美亚洲精品一区| 国产精品一线二线三线精华| 亚洲一区二区欧美日韩| 久久精品一区二区三区不卡牛牛| 色综合天天综合色综合av | 国产精品美女久久久久aⅴ国产馆| 一本色道久久综合亚洲91| 蜜臀精品一区二区三区在线观看| 国产精品色眯眯| 日韩亚洲欧美综合| 91激情在线视频| 国产suv一区二区三区88区| 午夜在线电影亚洲一区| 18成人在线视频| 久久婷婷色综合| 欧美精品 日韩| 日本韩国视频一区二区| 粉嫩av一区二区三区粉嫩| 麻豆国产精品777777在线| 一区二区在线观看视频在线观看| 久久久美女毛片| 日韩一级片在线播放| 欧美亚男人的天堂| 91麻豆免费观看| 风间由美一区二区av101| 久久99久久99| 日本欧美肥老太交大片| 亚洲国产一区二区视频| 亚洲激情欧美激情| 自拍偷在线精品自拍偷无码专区 | 国产高清视频一区| 蜜桃视频在线观看一区二区| 亚洲成精国产精品女| 亚洲福利电影网| 一区二区久久久| 亚洲人成在线播放网站岛国| 国产精品网站在线观看| 中文字幕精品一区二区三区精品 | 国产麻豆91精品| 久久爱www久久做| 久久成人av少妇免费| 日本视频在线一区| 日本va欧美va欧美va精品| 日韩国产精品大片| 免费日本视频一区| 精品写真视频在线观看| 国产一区二区三区av电影| 国内偷窥港台综合视频在线播放| 另类小说综合欧美亚洲| 国模冰冰炮一区二区| 国产精品 日产精品 欧美精品| 国产乱子伦视频一区二区三区 | 亚洲精品在线网站| 久久精品在线观看| 中文字幕一区二区三区乱码在线| 国产欧美日韩精品一区| 亚洲欧美日韩久久| 亚洲最新在线观看| 免费三级欧美电影| 高清av一区二区| 欧洲精品一区二区三区在线观看| 精品视频999| 欧美大片在线观看一区二区| 久久综合一区二区| 亚洲欧美日韩精品久久久久| 午夜精品免费在线| 国产最新精品精品你懂的| 成人免费不卡视频| 欧美精品视频www在线观看| 精品日韩99亚洲| 亚洲桃色在线一区| 蜜桃视频一区二区三区| www.99精品| 91精品午夜视频| 国产精品欧美久久久久无广告| 亚洲综合无码一区二区| 极品少妇一区二区三区精品视频| www.日本不卡| 日韩欧美精品在线视频| 亚洲欧美怡红院| 黄色精品一二区| 色婷婷av一区二区三区软件| 精品国产污污免费网站入口 | 91在线观看高清| 欧美嫩在线观看| 国产精品色在线| 免费在线观看视频一区| 一本色道综合亚洲| 久久精品一区二区三区不卡| 亚洲va欧美va国产va天堂影院| 国产精品一区二区在线观看网站| 在线影视一区二区三区| 国产亚洲欧美在线| 日本aⅴ亚洲精品中文乱码| 91丨九色porny丨蝌蚪| 久久久亚洲高清| 图片区小说区国产精品视频| 91性感美女视频| 久久久不卡网国产精品二区 | 91精品国产综合久久福利软件| 中文幕一区二区三区久久蜜桃| 日韩精品一区第一页| 欧美在线免费播放| 欧美国产精品v| 精品一区二区三区久久| 7777精品伊人久久久大香线蕉 | 蜜桃精品在线观看| 精品视频一区二区不卡| 亚洲欧美韩国综合色| 不卡的看片网站| 日本一区二区在线不卡| 激情深爱一区二区| 日韩欧美一级片| 蜜臀久久99精品久久久久宅男 | 欧美日韩亚洲国产综合| 一区二区三区在线视频免费 | 国产麻豆欧美日韩一区| 精品久久久影院| 免费人成网站在线观看欧美高清| 欧美日本视频在线| 午夜免费久久看| 欧美日韩国产片| 日韩高清一区在线| 欧美一激情一区二区三区| 蜜桃视频第一区免费观看| 日韩女优毛片在线| 狠狠色丁香久久婷婷综|