/curl/tests/unit/ |
H A D | unit3200.c | 90 FILE *fp; variable 96 fp = fopen(arg, "wb"); 99 fclose(fp); 101 fp = fopen(arg, "rb"); 107 rc = Curl_get_line(&buf, fp); 111 rc = Curl_get_line(&buf, fp); 115 rc = Curl_get_line(&buf, fp); 119 rc = Curl_get_line(&buf, fp); 123 rc = Curl_get_line(&buf, fp); 127 rc = Curl_get_line(&buf, fp); [all …]
|
/curl/docs/examples/ |
H A D | anyauthput.c | 37 # define FILENO(fp) _fileno(fp) argument 39 # define FILENO(fp) fileno(fp) argument 60 FILE *fp = (FILE *) userp; in my_seek() local 62 if(-1 == fseek(fp, (long) offset, origin)) in my_seek() 87 FILE *fp; in main() local 100 fp = fopen(file, "rb"); in main() 101 fstat(FILENO(fp), &file_info); in main() 113 curl_easy_setopt(curl, CURLOPT_READDATA, (void *) fp); in main() 119 curl_easy_setopt(curl, CURLOPT_SEEKDATA, (void *) fp); in main() 151 fclose(fp); /* close the local file */ in main()
|
/curl/src/ |
H A D | tool_stderr.c | 41 FILE *fp; in tool_set_stderr_file() local 53 fp = fopen(filename, FOPEN_WRITETEXT); in tool_set_stderr_file() 54 if(!fp) { in tool_set_stderr_file() 58 fclose(fp); in tool_set_stderr_file() 63 fp = freopen(filename, FOPEN_WRITETEXT, stderr); in tool_set_stderr_file() 64 if(!fp) { in tool_set_stderr_file()
|
H A D | tool_parsecfg.c | 46 static bool my_get_line(FILE *fp, struct curlx_dynbuf *, bool *error); 304 static bool my_get_line(FILE *fp, struct curlx_dynbuf *db, in my_get_line() argument 312 if(!fgets(buf, sizeof(buf), fp)) in my_get_line()
|
H A D | tool_formparse.c | 400 const char *filename, FILE *fp, in read_field_headers() argument 410 int c = getc(fp); in read_field_headers() 427 if(ferror(fp)) { in read_field_headers() 543 FILE *fp; in get_param_part() local 557 fp = fopen(hdrfile, FOPEN_READTEXT); in get_param_part() 558 if(!fp) in get_param_part() 562 int i = read_field_headers(config, hdrfile, fp, &headers); in get_param_part() 564 fclose(fp); in get_param_part()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_TFTP_NO_OPTIONS.md | 44 size_t write_callback(char *ptr, size_t size, size_t nmemb, void *fp) 46 return fwrite(ptr, size, nmemb, (FILE *)fp); 53 FILE *fp = fopen("foo.bin", "wb"); 54 if(fp) { 55 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)fp); 66 fclose(fp);
|
/curl/tests/ |
H A D | util.py | 46 with open(self.filename, "a") as fp: 47 self.setStream(fp)
|
/curl/lib/ |
H A D | hsts.c | 338 static CURLcode hsts_out(struct stsentry *sts, FILE *fp) in hsts_out() argument 345 fprintf(fp, "%s%s \"%d%02d%02d %02d:%02d:%02d\"\n", in hsts_out() 351 fprintf(fp, "%s%s \"%s\"\n", in hsts_out() 516 FILE *fp; in hsts_load() local 525 fp = fopen(file, FOPEN_READTEXT); in hsts_load() 526 if(fp) { in hsts_load() 529 while(Curl_get_line(&buf, fp)) { in hsts_load() 543 fclose(fp); in hsts_load()
|
H A D | altsvc.c | 214 FILE *fp; in altsvc_load() local 223 fp = fopen(file, FOPEN_READTEXT); in altsvc_load() 224 if(fp) { in altsvc_load() 227 while(Curl_get_line(&buf, fp)) { in altsvc_load() 238 fclose(fp); in altsvc_load() 247 static CURLcode altsvc_out(struct altsvc *as, FILE *fp) in altsvc_out() argument 270 fprintf(fp, in altsvc_out()
|
H A D | mime.c | 713 if(part->fp) in mime_open_file() 715 part->fp = fopen_read(part->data, "rb"); in mime_open_file() 716 return part->fp ? 0 : -1; in mime_open_file() 730 return fread(buffer, size, nitems, part->fp); in mime_file_read() 751 if(part->fp) { in mime_file_free() 752 fclose(part->fp); in mime_file_free() 753 part->fp = NULL; in mime_file_free() 822 if(part->fp && feof(part->fp)) in read_part_content() 974 fclose(part->fp); in readback_part() 975 part->fp = NULL; in readback_part() [all …]
|
H A D | mime.h | 120 FILE *fp; /* File pointer. */ member
|
H A D | cookie.c | 1239 FILE *fp = NULL; in Curl_cookie_init() local 1242 fp = stdin; in Curl_cookie_init() 1244 fp = fopen(file, "rb"); in Curl_cookie_init() 1245 if(!fp) in Curl_cookie_init() 1248 handle = fp; in Curl_cookie_init() 1253 if(fp) { in Curl_cookie_init() 1256 while(Curl_get_line(&buf, fp)) { in Curl_cookie_init()
|
/curl/lib/vtls/ |
H A D | bearssl.c | 122 FILE *fp = 0; in load_cafile() local 132 fp = fopen(source->data, "rb"); in load_cafile() 133 if(!fp) in load_cafile() 148 n = fread(buf, 1, sizeof(buf), fp); in load_cafile() 250 if(fp && ferror(fp)) in load_cafile() 256 if(fp) in load_cafile() 257 fclose(fp); in load_cafile()
|
H A D | vtls.c | 1115 FILE *fp = fopen(pinnedpubkey, "rb"); in Curl_pin_peer_pubkey() local 1116 if(!fp) in Curl_pin_peer_pubkey() 1122 if(fseek(fp, 0, SEEK_END)) in Curl_pin_peer_pubkey() 1124 filesize = ftell(fp); in Curl_pin_peer_pubkey() 1125 if(fseek(fp, 0, SEEK_SET)) in Curl_pin_peer_pubkey() 1145 if(want != fread(buffer, 1, want, fp)) in Curl_pin_peer_pubkey() 1177 fclose(fp); in Curl_pin_peer_pubkey()
|
H A D | openssl.c | 4530 BIO *fp = NULL; local 4615 fp = BIO_new_mem_buf(conn_config->issuercert_blob->data, 4617 if(!fp) { 4629 fp = BIO_new(BIO_s_file()); 4630 if(!fp) { 4641 if(BIO_read_filename(fp, conn_config->issuercert) <= 0) { 4645 BIO_free(fp); 4652 issuer = PEM_read_bio_X509(fp, NULL, ZERO_NULL, NULL); 4657 BIO_free(fp); 4668 BIO_free(fp); [all …]
|
/curl/tests/server/ |
H A D | mqttd.c | 144 FILE *fp = fopen(configfile, FOPEN_READTEXT); in getconfig() local 146 if(fp) { in getconfig() 149 while(fgets(buffer, sizeof(buffer), fp)) { in getconfig() 179 fclose(fp); in getconfig()
|
H A D | socksd.c | 186 FILE *fp = fopen(configfile, FOPEN_READTEXT); in getconfig() local 188 if(fp) { in getconfig() 191 while(fgets(buffer, sizeof(buffer), fp)) { in getconfig() 238 fclose(fp); in getconfig()
|
/curl/m4/ |
H A D | curl-compilers.m4 | 1158 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
|