Lines Matching defs:ds
879 dav_stream *ds = data;
880 if (ds->temppath) {
881 apr_file_remove(ds->temppath, ds->p);
912 dav_stream *ds = apr_pcalloc(p, sizeof(*ds));
929 ds->p = p;
930 ds->pathname = resource->info->pathname;
931 ds->temppath = NULL;
932 ds->unlink_on_error = 0;
935 ds->temppath = apr_pstrcat(p, ap_make_dirstr_parent(p, ds->pathname),
937 rv = dav_fs_mktemp(&ds->f, ds->temppath, ds->p);
938 apr_pool_cleanup_register(p, ds, tmpfile_cleanup,
942 rv = apr_file_open(&ds->f, ds->pathname, flags | APR_FOPEN_EXCL,
943 APR_OS_DEFAULT, ds->p);
946 ds->unlink_on_error = 1;
949 rv = apr_file_open(&ds->f, ds->pathname, flags, APR_OS_DEFAULT,
950 ds->p);
954 rv = apr_file_open(&ds->f, ds->pathname, flags, APR_OS_DEFAULT, ds->p);
964 *stream = ds;