Lines Matching defs:prov
188 static void pool_xml_connection_free(pool_xml_connection_t *prov);
1235 pool_xml_connection_t *prov = (pool_xml_connection_t *)conf->pc_prov;
1241 if (fseek(prov->pxc_file, 0, SEEK_SET) != 0) {
1246 if (ftruncate(fileno(prov->pxc_file), 0) == -1) {
1254 if ((buf = xmlOutputBufferCreateFile(prov->pxc_file, NULL)) == NULL) {
1259 if (xmlSaveFormatFileTo(buf, prov->pxc_doc, NULL, 1) == -1) {
1304 pool_xml_connection_t *prov = (pool_xml_connection_t *)conf->pc_prov;
1307 if (fseek(prov->pxc_file, 0, SEEK_SET) != 0) {
1609 pool_xml_connection_t *prov;
1612 if ((prov = malloc(sizeof (pool_xml_connection_t))) == NULL) {
1616 (void) memset(prov, 0, sizeof (pool_xml_connection_t));
1620 prov->pc_name = strdup("LIBXML 2.4.0");
1621 prov->pc_store_type = XML_DATA_STORE;
1622 prov->pc_oflags = oflags;
1626 prov->pc_close = pool_xml_close;
1627 prov->pc_validate = pool_xml_validate;
1628 prov->pc_commit = pool_xml_commit;
1629 prov->pc_export = pool_xml_export;
1630 prov->pc_rollback = pool_xml_rollback;
1631 prov->pc_exec_query = pool_xml_exec_query;
1632 prov->pc_elem_create = pool_xml_elem_create;
1633 prov->pc_remove = pool_xml_remove;
1634 prov->pc_res_xfer = pool_xml_res_transfer;
1635 prov->pc_res_xxfer = pool_xml_res_xtransfer;
1642 conf->pc_prov = (pool_connection_t *)prov;
1684 pool_xml_connection_free(pool_xml_connection_t *prov)
1686 free((void *)prov->pc_name);
1687 free(prov);
2007 pool_xml_connection_t *prov = (pool_xml_connection_t *)conf->pc_prov;
2012 if (prov->pxc_file != NULL) {
2013 (void) fclose(prov->pxc_file);
2014 prov->pxc_file = NULL;
2026 if ((prov->pc_oflags & PO_RDWR) != 0)
2027 prov->pxc_file = fopen(conf->pc_location, "r+F");
2029 prov->pxc_file = fopen(conf->pc_location, "rF");
2031 if (prov->pxc_file == NULL) {
2039 lock.l_type = (prov->pc_oflags & PO_RDWR) ? F_WRLCK : F_RDLCK;
2043 if (fcntl(fileno(prov->pxc_file), F_SETLKW, &lock) == -1) {
2052 (void) fclose(prov->pxc_file);
2053 prov->pxc_file = NULL;
2101 pool_xml_connection_t *prov = (pool_xml_connection_t *)conf->pc_prov;
2120 if (pool_is_xml_attr(prov->pxc_doc,
2139 if (pool_build_xpath_buf(prov, src, PEC_SYSTEM,
2146 if (pool_build_xpath_buf(prov, src, PEC_POOL,
2153 if (pool_build_xpath_buf(prov, src,
2160 if (pool_build_xpath_buf(prov, src,
2180 if (pool_build_xpath_buf(prov, src, PEC_SYSTEM, props,
2187 if (pool_build_xpath_buf(prov, src, PEC_POOL, props,
2194 if (pool_build_xpath_buf(prov, src, PEC_RES_COMP, props,
2201 if (pool_build_xpath_buf(prov, src, PEC_RES_AGG, props,
2208 if (pool_build_xpath_buf(prov, src, PEC_COMP, props,
2259 pool_build_xpath_buf(pool_xml_connection_t *prov, const pool_elem_t *src,
2322 if (pool_is_xml_attr(prov->pxc_doc,
2679 pool_xml_connection_t *prov = (pool_xml_connection_t *)conf->pc_prov;
2685 if (fstat(fileno(prov->pxc_file), &f_stat) == -1) {
2696 res = fread(chars, 1, size, prov->pxc_file);
2707 while ((res = fread(chars, 1, size, prov->pxc_file)) > 0) {
2733 prov->pxc_doc = ctxt->myDoc;
2737 if (prov->pxc_doc == NULL) {
2741 prov->pxc_doc->_private = conf;
2744 if ((root = xmlDocGetRootElement(prov->pxc_doc)) == NULL) {