mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
On Windows, we don't have fcntl() which helps us to find out how a file was opened, so we need to resort to the Windows API NtQueryInformationFile() in ntdll.dll to help us, and compare the file access modes as appropriate to deduce the modes we want to pass into fdopen(). As all official Python 3.x releases are built against newer Windows CRTs that toughen checks on the validity of the file descriptor when we convert the fd to a native Windows File Handle using _get_osfhandle(), we need to define an empty handler so that the program does not abort if the fd that was passed in was invalid; instead, we just return NULL if _get_osfhandle() could not return us a valid Windows File Handle.
Module libxml2-python ===================== This is the libxml2 python module, providing access to the libxml2 and libxslt (if available) libraries. For general informationss on those XML and XSLT libraries check their web pages at : http://xmlsoft.org/ and http://xmlsoft.org/XSLT/ The latest version of the sources for this module and the associated libraries can be found at: ftp://xmlsoft.org/ Binaries packages of the libxml2 and libxslt libraries can be found either on the FTP site for Linux, from external sources linked from the web pages, or as part of your set of packages provided with your operating system. NOTE: this module distribution is not the primary distribution of the libxml2 and libxslt Python binding code, but as the Python way of packaging those for non-Linux systems. The main sources are the libxml2 and libxslt tar.gz found on the site. One side effect is that the official RPM packages for those modules are not generated from the libxml2-python distributions but as part of the normal RPM packaging of those two libraries. The RPM packages can be found at: http://rpmfind.net/linux/rpm2html/search.php?query=libxml2-python http://rpmfind.net/linux/rpm2html/search.php?query=libxslt-python Daniel Veillard