Lines Matching defs:file

10  * This software is licensed as described in the file COPYING, which
16 * furnished to do so, under the terms of the COPYING file.
149 * get_vms_file_size does what it takes to get the real size of the file
153 * For all others, have to read the entire file in, discarding the contents.
164 FILE * file;
167 file = fopen(name, "r"); /* VMS */
168 if(!file) {
174 ret_stat = fread(buffer, 1, sizeof(buffer), file);
178 fclose(file);
279 * a fixed file with implied CC needs to have a byte added for every
317 /* we ignore file size for char/block devices, sockets, etc. */
419 /* Set file extended attributes */
429 ==> force creation of an empty output file (if an output file
432 /* do not create (or even overwrite) the file in case we get no
507 * file (or terminal). If we write to a file, we must rewind
508 * or close/re-open the file so that the next attempt starts
588 /* We have written data to an output file, we truncate file
594 /* truncate file at the position where we started appending */
599 errorf(config->global, "Failed to truncate file");
602 /* now seek to the end of the file, the position where we
603 just truncated the file in a large file-safe way */
606 /* ftruncate is not available, so just reposition the file
613 errorf(config->global, "Failed seeking to end of file");
631 /* Close the outs file */
644 notef(global, "Removed output file: %s", outs->filename);
649 warnf(global, "Skipping removal; not a regular file: %s",
654 /* File time can only be set _after_ the file has been closed */
656 /* Ask libcurl if we got a remote file time */
666 /* Close function-local opened file descriptors */
887 /* open file for reading: */
888 FILE *file = fopen(config->etag_compare_file, FOPEN_READTEXT);
889 if(!file && !config->etag_save_file) {
896 if((PARAM_OK == file2string(&etag_from_file, file)) &&
905 if(file)
906 fclose(file);
913 /* add Etag from file to list of custom headers */
917 if(file)
918 fclose(file);
926 /* open file for output: */
930 warnf(global, "Failed creating file for saving etags: \"%s\". "
984 /* Single header file for all URLs */
986 /* open file for output: */
991 * Since every transfer has its own file handle for dumping
994 * The first transfer just clears the file.
995 * TODO: Consider placing the file handle inside the
1064 * We have specified a file name to store the result in, or we have
1065 * decided we want to use the remote file name.
1069 /* extract the file name from the URL */
1072 errorf(global, "Failed to extract a sensible file name"
1077 errorf(global, "Remote file name has no length");
1109 file output call */
1126 of the file as it is now and open it for append instead */
1130 /* set offset to current file size: */
1139 /* open file for output, forcing VMS output format into stream
1141 FILE *file = fopen(outfile, "ab",
1144 /* open file for output: */
1145 FILE *file = fopen(per->outfile, "ab");
1147 if(!file) {
1153 outs->stream = file;
1165 * We have specified a file to upload and it isn't "-".
1195 " file or a fixed auth type instead");
1300 * lib/telnet.c will Curl_poll() on the input file descriptor
1818 warnf(global, "Couldn't find a known_hosts file");
2550 * at compile time. So we look here for the file in two ways: