xmlRNewMutex() is used to allocate a reentrant mutex for use in synchronizing access to data. token_r is a re-entrant lock and thus useful for synchronizing access to data structures that may be manipulated in a recursive fashion.
+
Returns:
the new reentrant mutex pointer or NULL in case of error
xmlRMutexUnlock() is used to unlock a libxml2 token_r.
+
tok:
the reentrant mutex
+
+
xmlUnlockLibrary ()
void xmlUnlockLibrary (void)
+
xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 library.
+
+
+
+
+
+
--
cgit v1.2.3
From 58f9d16e3a77d5207d9ccc413b61e2cb45190018 Mon Sep 17 00:00:00 2001
From: Mike Hommey
Date: Wed, 13 Jun 2007 20:47:19 +0200
Subject: Load /tmp/libxml2-2.6.29 into libxml2/branches/upstream/current.
---
ChangeLog | 177 +++++++++++++++++++++++++
HTMLparser.c | 23 +++-
HTMLtree.c | 4 +
Makefile.am | 2 +-
Makefile.in | 2 +-
NEWS | 26 ++++
SAX2.c | 42 +++---
catalog.c | 23 +++-
configure | 8 +-
configure.in | 8 +-
doc/APIchunk10.html | 3 +-
doc/APIchunk12.html | 2 +-
doc/APIchunk13.html | 1 +
doc/APIchunk24.html | 2 +
doc/APIchunk26.html | 1 -
doc/APIchunk5.html | 1 -
doc/APIfiles.html | 1 +
doc/APIfunctions.html | 2 +
doc/APIsymbols.html | 1 +
doc/devhelp/libxml2-threads.html | 11 +-
doc/devhelp/libxml2-uri.html | 7 +-
doc/devhelp/libxml2.devhelp | 1 +
doc/examples/Makefile.am | 2 +-
doc/examples/Makefile.in | 2 +-
doc/html/libxml-threads.html | 5 +-
doc/html/libxml-uri.html | 7 +-
doc/libxml2-api.xml | 21 ++-
doc/libxml2.xsa | 77 ++++-------
doc/news.html | 25 +++-
doc/xml.html | 27 ++++
encoding.c | 13 +-
include/libxml/threads.h | 4 +
include/libxml/uri.h | 7 +-
include/libxml/xmlversion.h | 11 +-
include/libxml/xmlversion.h.in | 3 +-
include/win32config.h | 9 +-
libxml.h | 17 ++-
libxml2.spec | 6 +-
list.c | 4 +-
nanohttp.c | 9 +-
parser.c | 24 +++-
python/libxml2-py.c | 32 +++++
python/libxml2-python-api.xml | 11 ++
python/setup.py | 2 +-
python/types.c | 3 +-
relaxng.c | 3 +-
schematron.c | 4 +
testapi.c | 2 +-
threads.c | 6 +-
tree.c | 5 +-
uri.c | 65 ++++++++--
valid.c | 23 +++-
win32/Makefile.msvc | 81 +++++++++++-
win32/configure.js | 12 +-
xmlIO.c | 13 +-
xmlregexp.c | 6 +
xmlsave.c | 1 -
xmlwriter.c | 274 +++++++++++++++++++++++++--------------
xpath.c | 50 ++++---
xstc/Makefile.am | 6 +-
xstc/Makefile.in | 6 +-
61 files changed, 922 insertions(+), 304 deletions(-)
(limited to 'doc/devhelp/libxml2-threads.html')
diff --git a/ChangeLog b/ChangeLog
index b6a6855..5f5d9a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,180 @@
+Tue Jun 12 18:17:28 CEST 2007 Daniel Veillard
+
+ * doc/* configure.in NEWS: release of libxml2 2.6.28
+ * valid.c: patch from Dagfinn I. Mannsåker for idness of name
+ in HTML, c.f. bug #305885.
+
+Tue Jun 12 17:14:08 CEST 2007 Daniel Veillard
+
+ * SAX2.c: fixing bug #319964, parsing of HTML attribute really
+ should not have namespace processing.
+
+Tue Jun 12 16:42:14 CEST 2007 Daniel Veillard
+
+ * parser.c: fixed the push mode when a big comment occurs before
+ an internal subset, should close bug #438835
+ * test/comment6.xml result//comment6.xml*: added a special
+ test in the regression suite
+
+Tue Jun 12 15:41:09 CEST 2007 Daniel Veillard
+
+ * parser.c: fix bug #414846 where invalid characters in attributes
+ would sometimes not be detected.
+ * test/errors/attr4.xml result/errors/attr4.xml*: added a specific
+ test case to the regression tests
+
+Tue Jun 12 14:23:24 CEST 2007 Daniel Veillard
+
+ * xstc/Makefile.am: apply patch from Ryan Hill to cope with changes
+ in GNU tar, should fix #396751
+
+Tue Jun 12 12:03:36 CEST 2007 Daniel Veillard
+
+ * python/types.c: try to allow compilation on old python version
+ should fix #398125
+
+Tue Jun 12 11:48:15 CEST 2007 Daniel Veillard
+
+ * HTMLtree.c: htmlNodeDumpFormatOutput didn't handle XML_ATTRIBUTE_NODe
+ fixes bug #438390
+
+Tue Jun 12 11:37:55 CEST 2007 Daniel Veillard
+
+ * xmlIO.c: workaround misgenerated file: URIs c.f. #437385
+
+Tue Jun 12 11:22:47 CEST 2007 Daniel Veillard
+
+ * relaxng.c: fixed bug #407436 a crash in a specific case of
+ Relax-NG validation
+
+Tue Jun 12 11:12:50 CEST 2007 Daniel Veillard
+
+ * catalog.c: fixed bug #383687, some case of recursion on next
+ were not caught in the catalog code.
+
+Tue Jun 12 10:37:42 CEST 2007 Daniel Veillard
+
+ * HTMLparser.c: fixed bug #381877, avoid reading over the end
+ of stream when generating an UTF-8 encoding error.
+
+Tue Jun 12 10:16:48 CEST 2007 Daniel Veillard
+
+ * parser.c: fixed bug #366161, trivially added the check in
+ xmlCtxtReset()
+
+Fri Jun 8 21:48:21 CEST 2007 Rob Richards
+
+ * win32/configure.js win32/Makefile.msvc: add --vcmanifest flag (yes/no)
+ for VC8 build support to embed manifest within files. Under MS VC, build
+ libxml2_a_dll.lib by default (LIBXML_STATIC_FOR_DLL flag).
+
+Fri Jun 8 21:37:46 CEST 2007 Rob Richards
+
+ * threads.c include/libxml/threads.h: use specified calling convention
+ for xmlDllMain. Old SDKs (VC6) only support InterlockedCompareExchange.
+ add xmlDllMain to header for win32 when building for static dll
+
+Fri Jun 8 10:51:28 CEST 2007 Rob Richards
+
+ * xmlwriter.c: fixed problem with namespace declaration being
+ written more than once per element start tag
+
+Wed Jun 6 10:18:28 PDT 2007 William Brack
+
+ * xpath.c: fixed problem with xmlXPathNodeSetSort;
+ fixed problem with xmlXPathNodeTrailingSorted (both bug#413451)
+
+Wed May 30 22:05:08 PDT 2007 William Brack
+
+ * xpath.c: fixed problem with string value for PI node
+ (bug #442275)
+
+Mon May 28 16:14:50 CEST 2007 Daniel Veillard
+
+ * uri.c: fix bug reported by François Delyon
+
+Tue May 22 08:59:48 PDT 2007 William Brack
+
+ * encoding.c: Fixed typo in xmlCharEncFirstLine pointed out
+ by Mark Rowe (bug #440159)
+ * include/libxml/xmlversion.h.in: Added check for definition of
+ _POSIX_C_SOURCE to avoid warnings on Apple OS/X (patch from
+ Wendy Doyle and Mark Rowe, bug #346675)
+ * schematron.c, testapi.c, tree.c, xmlIO.c, xmlsave.c: minor
+ changes to fix compilation warnings - no change to logic.
+
+Tue May 15 22:18:08 PDT 2007 William Brack
+
+ * nanohttp.c: small enhancement to last fix, pointed out
+ by Alex Cornejo
+
+Tue May 15 12:38:38 PDT 2007 William Brack
+
+ * nanohttp.c: fixed problem on gzip streams (bug #438045)
+ * xpath.c: fixed minor spot of redundant code - no logic change.
+
+Fri May 11 22:45:18 HKT 2007 William Brack
+
+ * xpath.c: enhanced the coding for xmlXPathCastNumberToString
+ in order to produce the required number of significant digits
+ (bug #437179)
+
+Thu May 10 01:52:42 CEST 2007 Daniel Veillard
+
+ * list.c: applied patch to fix xmlListAppend() from
+ Georges-André SILBER
+ * valid.c: also fix the place wher it was called.
+
+Wed May 2 18:47:33 CEST 2007 Daniel Veillard
+
+ * parser.c: tried to fix an error problem on entity content failure
+ reported by Michael Day
+
+Wed May 2 18:23:35 CEST 2007 Daniel Veillard
+
+ * configure.in: typo patch from Bjorn Reese
+
+Wed May 2 18:12:58 CEST 2007 Daniel Veillard
+
+ * HTMLparser.c: applied patch from Michael Day to add support for
+
Unescaping routine, does not do validity checks ! Output is direct unsigned char translation of %XX values (no encoding)
-
str:
the string to unescape
len:
the length in bytes to unescape (or <= 0 to indicate full string)
target:
optional destination buffer
Returns:
an copy of the string, but unescaped
+
Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string.
+
str:
the string to unescape
len:
the length in bytes to unescape (or <= 0 to indicate full string)
target:
optional destination buffer
Returns:
a copy of the string, but unescaped, will return NULL only in case of error
diff --git a/doc/devhelp/libxml2.devhelp b/doc/devhelp/libxml2.devhelp
index 6a3841c..a932cdf 100644
--- a/doc/devhelp/libxml2.devhelp
+++ b/doc/devhelp/libxml2.devhelp
@@ -2193,6 +2193,7 @@
+
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
index cd9f4ef..ea23621 100644
--- a/doc/examples/Makefile.am
+++ b/doc/examples/Makefile.am
@@ -96,7 +96,7 @@ xpath2_DEPENDENCIES= $(DEPS)
xpath2_LDADD= @RDL_LIBS@ $(LDADDS)
valgrind:
- $(MAKE) CHECKER='valgrind' tests
+ $(MAKE) CHECKER='valgrind -q' tests
tests: $(noinst_PROGRAMS)
@(echo '## examples regression tests')
diff --git a/doc/examples/Makefile.in b/doc/examples/Makefile.in
index f8af861..5fd6a3a 100644
--- a/doc/examples/Makefile.in
+++ b/doc/examples/Makefile.in
@@ -707,7 +707,7 @@ install-data-local:
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
valgrind:
- $(MAKE) CHECKER='valgrind' tests
+ $(MAKE) CHECKER='valgrind -q' tests
tests: $(noinst_PROGRAMS)
@(echo '## examples regression tests')
diff --git a/doc/html/libxml-threads.html b/doc/html/libxml-threads.html
index eebcf3c..8bb2cbf 100644
--- a/doc/html/libxml-threads.html
+++ b/doc/html/libxml-threads.html
@@ -17,6 +17,7 @@ The content of this structure is not made public by the API.
The content of this structure is not made public by the API.
xmlRFreeMutex() is used to reclaim resources associated with a reentrant mutex.
diff --git a/doc/html/libxml-uri.html b/doc/html/libxml-uri.html
index fa7ee19..1c668e8 100644
--- a/doc/html/libxml-uri.html
+++ b/doc/html/libxml-uri.html
@@ -36,9 +36,10 @@ A:link, A:visited, A:active { text-decoration: underline }
char * user : the user part
int port : the port number
char * path : the path string
- char * query : the query string
+ char * query : the query string (deprecated - use with
char * fragment : the fragment identifier
int cleanup : parsing potentially unclean URI
+ char * query_raw : the query string (as it appears in the
}
Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really wierd or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation.