Lines Matching refs:ptr

206 			if (SQLITE_OK != sqlite3_open(s->sqlite_db_name->ptr, &(s->sql))) {  in SETDEFAULTS_FUNC()
536 if (-1 == unlink(dst->path->ptr)) { in webdav_delete_file()
561 dst->rel_path->ptr, in webdav_delete_file()
585 if (NULL != (dir = opendir(dst->path->ptr))) { in webdav_delete_dir()
607 if (-1 == stat(d.path->ptr, &st)) { in webdav_delete_dir()
613 if (-1 == rmdir(d.path->ptr)) { in webdav_delete_dir()
639 d.rel_path->ptr, in webdav_delete_dir()
672 …if (-1 == (ofd = open(dst->path->ptr, O_WRONLY|O_TRUNC|O_CREAT|(overwrite ? 0 : O_EXCL), WEBDAV_FI… in webdav_copy_file()
717 dst->rel_path->ptr, in webdav_copy_file()
722 src->rel_path->ptr, in webdav_copy_file()
741 if (NULL != (srcdir = opendir(src->path->ptr))) { in webdav_copy_dir()
775 if (-1 == stat(s.path->ptr, &st)) { in webdav_copy_dir()
779 if (-1 == mkdir(d.path->ptr, WEBDAV_DIR_MODE) && in webdav_copy_dir()
796 dst->rel_path->ptr, in webdav_copy_dir()
801 src->rel_path->ptr, in webdav_copy_dir()
910 dst->rel_path->ptr, in webdav_get_property()
959 webdav_property **ptr; member
972 prop = props->ptr[i]; in webdav_get_props()
1016 -1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) { in webdav_parse_chunkqueue()
1054 log_error_write(srv, __FILE__, __LINE__, "ss", "XML-request-body:", c->mem->ptr + c->offset); in webdav_parse_chunkqueue()
1057 if (XML_ERR_OK != (err = xmlParseChunk(ctxt, c->mem->ptr + c->offset, weHave, 0))) { in webdav_parse_chunkqueue()
1231 depth = strtol(ds->value->ptr, NULL, 10); in URIHANDLER_FUNC()
1288 free(req_props->ptr[i]->ns); in URIHANDLER_FUNC()
1289 free(req_props->ptr[i]->prop); in URIHANDLER_FUNC()
1290 free(req_props->ptr[i]); in URIHANDLER_FUNC()
1292 free(req_props->ptr); in URIHANDLER_FUNC()
1302 req_props->ptr = malloc(sizeof(*(req_props->ptr)) * req_props->size); in URIHANDLER_FUNC()
1305 req_props->ptr = realloc(req_props->ptr, sizeof(*(req_props->ptr)) * req_props->size); in URIHANDLER_FUNC()
1308 req_props->ptr[req_props->used] = malloc(sizeof(webdav_property)); in URIHANDLER_FUNC()
1309 …req_props->ptr[req_props->used]->ns = (char *)xmlStrdup(prop->ns ? prop->ns->href : (xmlChar *)""); in URIHANDLER_FUNC()
1310 req_props->ptr[req_props->used]->prop = (char *)xmlStrdup(prop->name); in URIHANDLER_FUNC()
1322 con->uri.path->ptr, in URIHANDLER_FUNC()
1399 if (NULL != (dir = opendir(con->physical.path->ptr))) { in URIHANDLER_FUNC()
1476 free(req_props->ptr[i]->ns); in URIHANDLER_FUNC()
1477 free(req_props->ptr[i]->prop); in URIHANDLER_FUNC()
1478 free(req_props->ptr[i]); in URIHANDLER_FUNC()
1480 free(req_props->ptr); in URIHANDLER_FUNC()
1510 if (-1 == mkdir(con->physical.path->ptr, WEBDAV_DIR_MODE)) { in URIHANDLER_FUNC()
1543 if (-1 == stat(con->physical.path->ptr, &st)) { in URIHANDLER_FUNC()
1579 if (-1 == rmdir(con->physical.path->ptr)) { in URIHANDLER_FUNC()
1594 } else if (-1 == unlink(con->physical.path->ptr)) { in URIHANDLER_FUNC()
1637 const char *num = ds_range->value->ptr; in URIHANDLER_FUNC()
1668 if (-1 == (fd = open(con->physical.path->ptr, O_WRONLY, WEBDAV_FILE_MODE))) { in URIHANDLER_FUNC()
1692 if (-1 == (fd = open(con->physical.path->ptr, O_WRONLY|O_TRUNC, WEBDAV_FILE_MODE))) { in URIHANDLER_FUNC()
1694 … -1 == (fd = open(con->physical.path->ptr, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, WEBDAV_FILE_MODE))) { in URIHANDLER_FUNC()
1718 -1 == (c->file.fd = open(c->file.name->ptr, O_RDONLY))) { in URIHANDLER_FUNC()
1754 if ((r = write(fd, c->mem->ptr + c->offset, c->mem->used - c->offset - 1)) < 0) { in URIHANDLER_FUNC()
1810 (ds->value->ptr[0] != 'F' && in URIHANDLER_FUNC()
1811 ds->value->ptr[0] != 'T') ) { in URIHANDLER_FUNC()
1815 overwrite = (ds->value->ptr[0] == 'F' ? 0 : 1); in URIHANDLER_FUNC()
1830 start = destination->ptr; in URIHANDLER_FUNC()
1882 if (p->physical.rel_path->ptr[0] == '/') { in URIHANDLER_FUNC()
1883 …buffer_append_string_len(p->physical.path, p->physical.rel_path->ptr + 1, p->physical.rel_path->us… in URIHANDLER_FUNC()
1891 if (-1 == stat(con->physical.path->ptr, &st)) { in URIHANDLER_FUNC()
1905 if (-1 == stat(p->physical.path->ptr, &st)) { in URIHANDLER_FUNC()
1906 if (-1 == mkdir(p->physical.path->ptr, WEBDAV_DIR_MODE)) { in URIHANDLER_FUNC()
1916 unlink(p->physical.path->ptr); in URIHANDLER_FUNC()
1917 if (-1 == mkdir(p->physical.path->ptr, WEBDAV_DIR_MODE)) { in URIHANDLER_FUNC()
1934 rmdir(con->physical.path->ptr); in URIHANDLER_FUNC()
1949 if (0 == (r = stat(p->physical.path->ptr, &st))) { in URIHANDLER_FUNC()
1954 if (NULL != (sep = strrchr(con->physical.path->ptr, '/'))) { in URIHANDLER_FUNC()
1956 r = stat(p->physical.path->ptr, &st); in URIHANDLER_FUNC()
1981 if (0 == rename(con->physical.path->ptr, p->physical.path->ptr)) { in URIHANDLER_FUNC()
1992 con->uri.path->ptr, in URIHANDLER_FUNC()
2008 p->uri.path->ptr, in URIHANDLER_FUNC()
2013 con->uri.path->ptr, in URIHANDLER_FUNC()
2055 if (-1 == stat(con->physical.path->ptr, &st)) { in URIHANDLER_FUNC()
2120 con->uri.path->ptr, in URIHANDLER_FUNC()
2289 p->uri.path->ptr, in URIHANDLER_FUNC()
2399 buffer_copy_string_len(p->tmp_buf, locktoken->ptr + 2, locktoken->used - 5); in URIHANDLER_FUNC()
2452 buffer_copy_string_len(p->tmp_buf, locktoken->ptr + 1, locktoken->used - 3); in URIHANDLER_FUNC()