Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 18 of 18) sorted by relevance

/curl/tests/unit/
H A Dunit3200.c90 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 Danyauthput.c37 # 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 Dtool_stderr.c41 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 Dtool_parsecfg.c46 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 Dtool_formparse.c400 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 DCURLOPT_TFTP_NO_OPTIONS.md44 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 Dutil.py46 with open(self.filename, "a") as fp:
47 self.setStream(fp)
/curl/lib/
H A Dhsts.c338 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 Daltsvc.c214 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 Dmime.c713 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 Dmime.h120 FILE *fp; /* File pointer. */ member
H A Dcookie.c1239 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 Dbearssl.c122 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 Dvtls.c1115 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 Dopenssl.c4530 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 Dmqttd.c144 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 Dsocksd.c186 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 Dcurl-compilers.m41158 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"

Completed in 62 milliseconds