Home | History | Annotate | Download | only in libxml2

Lines Matching refs:FILE

50 /* Figure a portable way to know if a file is a directory. */
156 "Bad file descriptor", /* EBADF */
163 "File exists", /* EEXIST */
165 "File too large", /* EFBIG */
177 "No such file or directory",/* ENOENT */
191 "Read-only file system", /* EROFS */
493 * @path: the input file path
586 * Standard I/O for file accesses *
597 * function opens the file specified by @path
600 static FILE*
603 FILE *fd = NULL;
652 file or directory
682 * function opens the file specified by @path
685 static FILE*
696 * function obtains information about the file or directory
711 typedef FILE* (* xmlWrapOpenFunc)(const char *f,int mode);
758 * (file, socket...) for XML.
763 * if stat succeeds and the file is a directory,
859 * input from FILE *
872 * input from FILE *, supports compressed input
880 FILE *fd;
890 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) {
896 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
902 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:/", 6)) {
957 * output to from FILE *,
965 FILE *fd;
972 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
978 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
1016 ret = fread(&buffer[0], 1, len, (FILE *) context);
1038 items = fwrite(&buffer[0], len, 1, (FILE *) context);
1039 if ((items == 0) && (ferror((FILE *) context))) {
1057 FILE *fil;
1062 fil = (FILE *) context;
1071 ret = ( fclose((FILE *) context) == EOF ) ? -1 : 0;
1089 ret = ( fflush((FILE *) context) == EOF ) ? -1 : 0;
1120 * I/O for compressed file accesses *
1127 * input from compressed file test
1140 * input from compressed file open
1155 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
1161 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
1212 * input from compressed file open
1229 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
1235 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
1315 * I/O for compressed file accesses *
1323 * input from compressed file test
1336 * input from compressed file open
1351 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) {
1353 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
1355 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:/", 6)) {
1434 * I/O for HTTP file accesses *
1493 ** support 64 bit file sizes, this code would need to be patched
1714 * Flushes the compression buffers, appends gzip file trailers and
1945 * Collect data from memory buffer into a temporary file for later
2062 FILE * tst_file = NULL;
2085 "Transmitted content saved in file: %s\n", buffer );
2096 "Reply content saved in file: %s\n", buffer );
2170 * I/O for FTP file accesses *
2676 * Create a buffered parser input for the progressive parsing of a file
2715 (!xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
2722 (xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
2822 * Create a buffered output for the progressive saving of a file
2827 * writing to a local file.
2844 * @file: a FILE*
2847 * Create a buffered parser input for the progressive parsing of a FILE *
2853 xmlParserInputBufferCreateFile(FILE *file, xmlCharEncoding enc) {
2859 if (file == NULL) return(NULL);
2863 ret->context = file;
2874 * @file: a FILE*
2877 * Create a buffered output for the progressive saving to a FILE *
2883 xmlOutputBufferCreateFile(FILE *file, xmlCharEncodingHandlerPtr encoder) {
2889 if (file == NULL) return(NULL);
2893 ret->context = file;
2929 * @fd: a file descriptor number
2933 * from a file descriptor
2996 * the parsing, this is useful for example when using mmap'ed file.
3035 * @fd: a file descriptor number
3039 * to a file descriptor
3125 * Registers a callback for URI input file handling
3145 * Registers a callback for URI output file handling
3224 * When reading from an Input channel indicated end of file or error
3739 * @filename: the path to a file
3741 * lookup the directory for that file
3873 if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file
3879 else if (!xmlStrncasecmp(BAD_CAST URL, BAD_CAST "file:///", 8)) {
3912 * If the resource doesn't exists as a file,