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.
351 ARG_FILE /* requires an argument, usually a file name */
384 {"create-file-mode", ARG_STRG, ' ', C_CREATE_FILE_MODE},
407 {"egd-file", ARG_STRG, ' ', C_EGD_FILE},
485 {"netrc-file", ARG_FILE, ' ', C_NETRC_FILE},
543 {"random-file", ARG_FILE, ' ', C_RANDOM_FILE},
612 {"upload-file", ARG_FILE, 'T', C_UPLOAD_FILE},
699 dudes can use : when using drive letters and thus c:\file:password
701 separator, but we try to detect when it is used for a file name! On
758 GetFileAndPassword(char *nextarg, char **file, char **password)
763 Curl_safefree(*file);
764 *file = certname;
846 * [name]@[file name]
848 * Case 2: we first load the file using that name and then encode
865 /* neither @ nor =, so no name and it isn't a file */
870 FILE *file;
871 /* a '@' letter, it means that a file name or - (stdin) follows */
873 file = stdin;
877 file = fopen(p, "rb");
878 if(!file) {
884 err = file2memory(&postdata, &size, file);
886 if(file && (file != stdin))
887 fclose(file);
900 /* no data from the file, point to a zero byte string to make this
1070 FILE *file;
1080 /* the data begins with a '@' letter, it means that a file name
1085 file = stdin;
1090 file = fopen(nextarg, "rb");
1091 if(!file) {
1100 err = file2memory(&postdata, &size, file);
1102 err = file2string(&postdata, file);
1107 if(file && (file != stdin))
1108 fclose(file);
1113 /* no data from the file, point to a zero byte string to make this
1335 /* if the file name looks like a command line option */
1336 warnf(global, "The file name argument '%s' looks like a flag.",
1367 case C_RANDOM_FILE: /* --random-file */
1369 case C_EGD_FILE: /* --egd-file */
1507 case C_CREATE_FILE_MODE: /* --create-file-mode */
1997 /* We have a cookie file to read from! */
2315 /* read many headers from a file or stdin */
2319 FILE *file = use_stdin?stdin:fopen(&nextarg[1], FOPEN_READTEXT);
2320 if(!file) {
2325 err = file2memory(&string, &len, file);
2342 fclose(file);
2409 case C_NETRC_FILE: /* --netrc-file */
2433 /* output file */
2549 /* use remote file's time */
2562 case C_UPLOAD_FILE: /* --upload-file */
2630 /* the data begins with a '@' letter, it means that a file name
2632 FILE *file;
2637 file = stdin;
2641 file = fopen(fname, FOPEN_READTEXT);
2642 if(!file) {
2649 err = file2string(&config->writeout, file);
2650 if(file && (file != stdin))
2651 fclose(file);
2727 /* now let's see if it is a file name to get the time from instead! */
2730 /* pull the time out from the file */
2737 "a file name). Disabling time condition. "