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

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

?? repos.c

?? apache服務器源代碼(版本號:2.2.2)
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//*** DAV filesystem-based repository provider*/#include "apr.h"#include "apr_file_io.h"#include "apr_strings.h"#include "apr_buckets.h"#if APR_HAVE_STDIO_H#include <stdio.h>              /* for sprintf() */#endif#include "httpd.h"#include "http_log.h"#include "http_protocol.h"      /* for ap_set_* (in dav_fs_set_headers) */#include "http_request.h"       /* for ap_update_mtime() */#include "mod_dav.h"#include "repos.h"/* to assist in debugging mod_dav's GET handling */#define DEBUG_GET_HANDLER       0#define DAV_FS_COPY_BLOCKSIZE   16384   /* copy 16k at a time *//* context needed to identify a resource */struct dav_resource_private {    apr_pool_t *pool;        /* memory storage pool associated with request */    const char *pathname;   /* full pathname to resource */    apr_finfo_t finfo;       /* filesystem info */};/* private context for doing a filesystem walk */typedef struct {    /* the input walk parameters */    const dav_walk_params *params;    /* reused as we walk */    dav_walk_resource wres;    dav_resource res1;    dav_resource_private info1;    dav_buffer path1;    dav_buffer uri_buf;    /* MOVE/COPY need a secondary path */    dav_resource res2;    dav_resource_private info2;    dav_buffer path2;    dav_buffer locknull_buf;} dav_fs_walker_context;typedef struct {    int is_move;                /* is this a MOVE? */    dav_buffer work_buf;        /* handy buffer for copymove_file() */    /* CALLBACK: this is a secondary resource managed specially for us */    const dav_resource *res_dst;    /* copied from dav_walk_params (they are invariant across the walk) */    const dav_resource *root;    apr_pool_t *pool;} dav_fs_copymove_walk_ctx;/* an internal WALKTYPE to walk hidden files (the .DAV directory) */#define DAV_WALKTYPE_HIDDEN     0x4000/* an internal WALKTYPE to call collections (again) after their contents */#define DAV_WALKTYPE_POSTFIX    0x8000#define DAV_CALLTYPE_POSTFIX    1000    /* a private call type *//* pull this in from the other source file */extern const dav_hooks_locks dav_hooks_locks_fs;/* forward-declare the hook structures */static const dav_hooks_repository dav_hooks_repository_fs;static const dav_hooks_liveprop dav_hooks_liveprop_fs;/*** The namespace URIs that we use. This list and the enumeration must** stay in sync.*/static const char * const dav_fs_namespace_uris[] ={    "DAV:",    "http://apache.org/dav/props/",    NULL        /* sentinel */};enum {    DAV_FS_URI_DAV,            /* the DAV: namespace URI */    DAV_FS_URI_MYPROPS         /* the namespace URI for our custom props */};/*** Does this platform support an executable flag?**** ### need a way to portably abstract this query*/#ifndef WIN32#define DAV_FS_HAS_EXECUTABLE#endif/*** The single property that we define (in the DAV_FS_URI_MYPROPS namespace)*/#define DAV_PROPID_FS_executable        1static const dav_liveprop_spec dav_fs_props[] ={    /* standard DAV properties */    {        DAV_FS_URI_DAV,        "creationdate",        DAV_PROPID_creationdate,        0    },    {        DAV_FS_URI_DAV,        "getcontentlength",        DAV_PROPID_getcontentlength,        0    },    {        DAV_FS_URI_DAV,        "getetag",        DAV_PROPID_getetag,        0    },    {        DAV_FS_URI_DAV,        "getlastmodified",        DAV_PROPID_getlastmodified,        0    },    /* our custom properties */    {        DAV_FS_URI_MYPROPS,        "executable",        DAV_PROPID_FS_executable,        0       /* handled special in dav_fs_is_writable */    },    { 0 }        /* sentinel */};static const dav_liveprop_group dav_fs_liveprop_group ={    dav_fs_props,    dav_fs_namespace_uris,    &dav_hooks_liveprop_fs};/* define the dav_stream structure for our use */struct dav_stream {    apr_pool_t *p;    apr_file_t *f;    const char *pathname;       /* we may need to remove it at close time */};/* returns an appropriate HTTP status code given an APR status code for a * failed I/O operation.  ### use something besides 500? */#define MAP_IO2HTTP(e) (APR_STATUS_IS_ENOSPC(e) ? HTTP_INSUFFICIENT_STORAGE : \                        HTTP_INTERNAL_SERVER_ERROR)/* forward declaration for internal treewalkers */static dav_error * dav_fs_walk(const dav_walk_params *params, int depth,                               dav_response **response);static dav_error * dav_fs_internal_walk(const dav_walk_params *params,                                        int depth, int is_move,                                        const dav_resource *root_dst,                                        dav_response **response);/* --------------------------------------------------------------------**** PRIVATE REPOSITORY FUNCTIONS*/apr_pool_t *dav_fs_pool(const dav_resource *resource){    return resource->info->pool;}const char *dav_fs_pathname(const dav_resource *resource){    return resource->info->pathname;}dav_error * dav_fs_dir_file_name(    const dav_resource *resource,    const char **dirpath_p,    const char **fname_p){    dav_resource_private *ctx = resource->info;    if (resource->collection) {        *dirpath_p = ctx->pathname;        if (fname_p != NULL)            *fname_p = NULL;    }    else {        const char *testpath, *rootpath;        char *dirpath = ap_make_dirstr_parent(ctx->pool, ctx->pathname);        apr_size_t dirlen = strlen(dirpath);        apr_status_t rv = APR_SUCCESS;        testpath = dirpath;        if (dirlen > 0) {            rv = apr_filepath_root(&rootpath, &testpath, 0, ctx->pool);        }        /* remove trailing slash from dirpath, unless it's a root path         */        if ((rv == APR_SUCCESS && testpath && *testpath)            || rv == APR_ERELATIVE) {            if (dirpath[dirlen - 1] == '/') {                dirpath[dirlen - 1] = '\0';            }        }        /* ###: Looks like a response could be appropriate         *         * APR_SUCCESS     here tells us the dir is a root         * APR_ERELATIVE   told us we had no root (ok)         * APR_EINCOMPLETE an incomplete testpath told us         *                 there was no -file- name here!         * APR_EBADPATH    or other errors tell us this file         *                 path is undecipherable         */        if (rv == APR_SUCCESS || rv == APR_ERELATIVE) {            *dirpath_p = dirpath;            if (fname_p != NULL)                *fname_p = ctx->pathname + dirlen;        }        else {            return dav_new_error(ctx->pool, HTTP_INTERNAL_SERVER_ERROR, 0,                                 "An incomplete/bad path was found in "                                 "dav_fs_dir_file_name.");        }    }    return NULL;}/* Note: picked up from ap_gm_timestr_822() *//* NOTE: buf must be at least DAV_TIMEBUF_SIZE chars in size */static void dav_format_time(int style, apr_time_t sec, char *buf){    apr_time_exp_t tms;    /* ### what to do if fails? */    (void) apr_time_exp_gmt(&tms, sec);    if (style == DAV_STYLE_ISO8601) {        /* ### should we use "-00:00" instead of "Z" ?? */        /* 20 chars plus null term */        sprintf(buf, "%.4d-%.2d-%.2dT%.2d:%.2d:%.2dZ",               tms.tm_year + 1900, tms.tm_mon + 1, tms.tm_mday,               tms.tm_hour, tms.tm_min, tms.tm_sec);        return;    }    /* RFC 822 date format; as strftime '%a, %d %b %Y %T GMT' */    /* 29 chars plus null term */    sprintf(buf,            "%s, %.2d %s %d %.2d:%.2d:%.2d GMT",           apr_day_snames[tms.tm_wday],           tms.tm_mday, apr_month_snames[tms.tm_mon],           tms.tm_year + 1900,           tms.tm_hour, tms.tm_min, tms.tm_sec);}/* Copy or move src to dst; src_finfo is used to propagate permissions * bits across if non-NULL; dst_finfo must be non-NULL iff dst already * exists. */static dav_error * dav_fs_copymove_file(    int is_move,    apr_pool_t * p,    const char *src,    const char *dst,    const apr_finfo_t *src_finfo,    const apr_finfo_t *dst_finfo,    dav_buffer *pbuf){    dav_buffer work_buf = { 0 };    apr_file_t *inf = NULL;    apr_file_t *outf = NULL;    apr_status_t status;    apr_fileperms_t perms;    if (pbuf == NULL)        pbuf = &work_buf;    /* Determine permissions to use for destination */    if (src_finfo && src_finfo->valid & APR_FINFO_PROT        && src_finfo->protection & APR_UEXECUTE) {        perms = src_finfo->protection;        if (dst_finfo != NULL) {            /* chmod it if it already exist */            if (apr_file_perms_set(dst, perms)) {                return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,                                     "Could not set permissions on destination");            }        }    }    else {        perms = APR_OS_DEFAULT;    }    dav_set_bufsize(p, pbuf, DAV_FS_COPY_BLOCKSIZE);    if ((apr_file_open(&inf, src, APR_READ | APR_BINARY, APR_OS_DEFAULT, p))            != APR_SUCCESS) {        /* ### use something besides 500? */        return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,                             "Could not open file for reading");    }    /* ### do we need to deal with the umask? */    status = apr_file_open(&outf, dst, APR_WRITE | APR_CREATE | APR_TRUNCATE                           | APR_BINARY, perms, p);    if (status != APR_SUCCESS) {        apr_file_close(inf);        return dav_new_error(p, MAP_IO2HTTP(status), 0,                             "Could not open file for writing");    }    while (1) {        apr_size_t len = DAV_FS_COPY_BLOCKSIZE;        status = apr_file_read(inf, pbuf->buf, &len);        if (status != APR_SUCCESS && status != APR_EOF) {            apr_file_close(inf);            apr_file_close(outf);            if (apr_file_remove(dst, p) != APR_SUCCESS) {                /* ### ACK! Inconsistent state... */                /* ### use something besides 500? */                return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,                                     "Could not delete output after read "                                     "failure. Server is now in an "                                     "inconsistent state.");            }            /* ### use something besides 500? */            return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,                                 "Could not read input file");        }        if (status == APR_EOF)            break;        /* write any bytes that were read */        status = apr_file_write_full(outf, pbuf->buf, len, NULL);        if (status != APR_SUCCESS) {            apr_file_close(inf);            apr_file_close(outf);            if (apr_file_remove(dst, p) != APR_SUCCESS) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图欧洲色图| 成人免费高清视频在线观看| 成人综合在线观看| 8x福利精品第一导航| 亚洲v精品v日韩v欧美v专区| 这里是久久伊人| 久久色视频免费观看| 夜夜夜精品看看| 国产69精品久久久久777| 日韩理论片中文av| 亚洲丝袜自拍清纯另类| 精品一区二区影视| 欧美理论片在线| 亚洲人成网站精品片在线观看| 极品瑜伽女神91| 91麻豆精品国产91久久久更新时间 | 夜夜精品视频一区二区| 成人小视频免费观看| 日韩免费在线观看| 午夜视频久久久久久| 91免费版在线看| 国产精品久久久久影院色老大| 国产一区在线精品| 精品国产91乱码一区二区三区| 婷婷成人综合网| 欧美在线视频不卡| 亚洲欧美日韩国产中文在线| av电影在线观看不卡| 国产欧美日韩亚州综合| 国产精品99久久久久| 26uuu精品一区二区三区四区在线| 免费的成人av| 欧美一区二区三区婷婷月色| 天堂影院一区二区| 欧美日韩一区二区电影| 一区二区久久久久久| 91小视频在线免费看| 亚洲国产精品ⅴa在线观看| 国产jizzjizz一区二区| 亚洲国产精品成人久久综合一区 | 亚洲精选一二三| 91在线云播放| 亚洲男人都懂的| 一本大道久久a久久精二百| 亚洲欧美成aⅴ人在线观看| 9色porny自拍视频一区二区| 中文字幕一区二区视频| 91同城在线观看| 一区二区三区不卡视频在线观看| 色哟哟精品一区| 一级女性全黄久久生活片免费| 欧美少妇bbb| 图片区小说区区亚洲影院| 91 com成人网| 国内外成人在线| 久久精品视频在线看| 成人v精品蜜桃久久一区| 亚洲美女视频在线观看| 欧美性猛片aaaaaaa做受| 爽好多水快深点欧美视频| 精品日韩一区二区三区 | 天堂一区二区在线| 精品少妇一区二区三区在线视频 | 日韩av在线发布| 日韩午夜激情av| 国产一区不卡视频| **性色生活片久久毛片| 欧美在线综合视频| 日本成人在线看| 久久精品日韩一区二区三区| av午夜一区麻豆| 午夜精品福利一区二区三区蜜桃| 欧美大胆一级视频| 成人aa视频在线观看| 一区二区在线观看av| 欧美一级xxx| 国产不卡免费视频| 亚洲一区中文日韩| 精品国产乱码久久久久久老虎 | 日本午夜一区二区| 久久久不卡网国产精品二区| 色综合天天综合网国产成人综合天 | 久久久久久久久久久久久夜| 99re热视频精品| 日韩精品成人一区二区在线| 久久久久久久久久久99999| 日本久久精品电影| 青草av.久久免费一区| 国产精品久久久久久久久久免费看| 欧美午夜精品一区二区三区 | 亚洲自拍偷拍网站| 精品日韩在线观看| 色94色欧美sute亚洲线路二| 久久99精品视频| 亚洲免费在线播放| 欧美成人官网二区| 91国内精品野花午夜精品| 久久精品免费看| 一区二区三区中文字幕在线观看| 欧美一区二区二区| 91色.com| 极品少妇一区二区三区精品视频| 一区二区三区中文字幕电影| 久久蜜桃一区二区| 欧美日韩国产小视频在线观看| 国产黑丝在线一区二区三区| 亚洲午夜日本在线观看| 国产精品天干天干在线综合| 欧美一区二区三区免费视频| 99久久综合精品| 极品少妇xxxx精品少妇偷拍| 亚洲丶国产丶欧美一区二区三区| 欧美激情自拍偷拍| 日韩免费在线观看| 欧美三级电影精品| 99精品欧美一区二区三区小说| 经典三级视频一区| 偷拍自拍另类欧美| 一卡二卡三卡日韩欧美| 国产精品丝袜久久久久久app| 精品理论电影在线观看 | 91丨九色丨黑人外教| 久久99久久99| 五月开心婷婷久久| 亚洲女人的天堂| 国产精品污污网站在线观看| 日韩美一区二区三区| 欧美性受xxxx黑人xyx性爽| av资源网一区| 国产 欧美在线| 国产在线精品一区二区夜色 | 麻豆精品一区二区| 亚洲一区欧美一区| 成人免费一区二区三区视频| 久久久另类综合| 欧美精品一区二区在线观看| 日韩女优制服丝袜电影| 欧美剧在线免费观看网站| 在线观看www91| 99久久精品免费| 99久久免费精品| 成人白浆超碰人人人人| 国产不卡在线播放| 国产·精品毛片| 国产91丝袜在线播放0| 国产一区福利在线| 激情深爱一区二区| 国产一区二区视频在线播放| 国内外成人在线| 国产乱码一区二区三区| 国产在线精品视频| 国产一区二区在线电影| 国产精品一区2区| 国产精品伊人色| 国产精品一区二区免费不卡| 国产精品2024| 粉嫩嫩av羞羞动漫久久久 | 99热精品一区二区| 国产电影一区在线| 国产成人在线看| 国产v综合v亚洲欧| 成人不卡免费av| 色哟哟在线观看一区二区三区| 91小视频在线免费看| 在线视频你懂得一区二区三区| 色婷婷国产精品久久包臀| 在线精品视频免费播放| 欧美日产在线观看| 日韩午夜激情免费电影| 久久综合久久综合久久| 欧美国产一区二区| 亚洲色图欧美偷拍| 亚洲国产精品久久久男人的天堂| 婷婷丁香久久五月婷婷| 久久99久久99| 成人国产精品免费网站| 色欧美片视频在线观看| 欧美日韩精品综合在线| 日韩区在线观看| 久久精品视频在线看| 亚洲免费观看视频| 五月天欧美精品| 国产麻豆一精品一av一免费| 成人午夜伦理影院| 色成人在线视频| 日韩情涩欧美日韩视频| 欧美国产综合一区二区| 一区二区三区欧美在线观看| 首页亚洲欧美制服丝腿| 国产一区二区不卡在线| 色综合夜色一区| 欧美一区二区啪啪| 欧美韩国日本综合| 亚洲午夜私人影院| 国产一区不卡在线| 99久久久无码国产精品| 777奇米成人网| 国产精品青草久久| 亚洲成av人片一区二区三区| 国产美女主播视频一区|