Home
last modified time | relevance | path

Searched refs:pooh (Results 1 – 12 of 12) sorted by relevance

/curl/tests/libtest/
H A Dlib670.c55 switch(pooh->count++) { in read_callback()
60 pooh->origin = time(NULL); in read_callback()
84 if(pooh->origin) { in xferinfo()
118 struct ReadThis pooh; in test() local
130 pooh.origin = (time_t) 0; in test()
131 pooh.count = 0; in test()
132 pooh.easy = curl_easy_init(); in test()
145 mime = curl_mime_init(pooh.easy); in test()
196 if(pooh.origin) { in test()
244 test_setopt(pooh.easy, CURLOPT_XFERINFODATA, &pooh); in test()
[all …]
H A Dlib1517.c37 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
44 if(tocopy < 1 || !pooh->sizeleft) in read_callback()
47 if(pooh->sizeleft < tocopy) in read_callback()
48 tocopy = pooh->sizeleft; in read_callback()
50 memcpy(ptr, pooh->readptr, tocopy);/* copy requested data */ in read_callback()
51 pooh->readptr += tocopy; /* advance pointer */ in read_callback()
52 pooh->sizeleft -= tocopy; /* less data left */ in read_callback()
61 struct WriteThis pooh; in test() local
73 pooh.readptr = data; in test()
74 pooh.sizeleft = strlen(data); in test()
[all …]
H A Dlib508.c37 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
42 if(pooh->sizeleft) { in read_callback()
43 *ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
44 pooh->readptr++; /* advance pointer */ in read_callback()
45 pooh->sizeleft--; /* less data left */ in read_callback()
57 struct WriteThis pooh; in test() local
59 pooh.readptr = data; in test()
60 pooh.sizeleft = strlen(data); in test()
81 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); in test()
87 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
H A Dlib654.c41 pooh->freecount++; in free_callback()
47 int eof = !*pooh->readptr; in read_callback()
52 eof = pooh->sizeleft <= 0; in read_callback()
54 pooh->sizeleft--; in read_callback()
73 struct WriteThis pooh; in test() local
97 pooh.readptr = data; in test()
98 pooh.sizeleft = (curl_off_t) strlen(data); in test()
99 pooh.freecount = 0; in test()
114 &pooh); in test()
153 if(pooh.freecount != 2) { in test()
[all …]
H A Dlib667.c38 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
39 int eof = !*pooh->readptr; in read_callback()
44 eof = pooh->sizeleft <= 0; in read_callback()
46 pooh->sizeleft--; in read_callback()
49 *ptr = *pooh->readptr; /* copy one single byte */ in read_callback()
50 pooh->readptr++; /* advance pointer */ in read_callback()
63 struct WriteThis pooh; in test() local
87 pooh.readptr = data; in test()
88 pooh.sizeleft = (curl_off_t) strlen(data); in test()
96 curl_mime_data_cb(part, (curl_off_t) -1, read_callback, NULL, NULL, &pooh); in test()
H A Dlib554.c47 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback()
52 if(pooh->sizeleft) { in read_callback()
53 *ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
54 pooh->readptr++; /* advance pointer */ in read_callback()
55 pooh->sizeleft--; /* less data left */ in read_callback()
71 struct WriteThis pooh; in once() local
74 pooh.readptr = data; in once()
75 pooh.sizeleft = strlen(data); in once()
82 CURLFORM_STREAM, &pooh, in once()
92 CURLFORM_STREAM, &pooh, in once()
[all …]
H A Dlib1514.c42 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
47 if(pooh->sizeleft) { in read_callback()
48 *ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
49 pooh->readptr++; /* advance pointer */ in read_callback()
50 pooh->sizeleft--; /* less data left */ in read_callback()
62 struct WriteThis pooh = { data, sizeof(data)-1 }; in test() local
72 easy_setopt(curl, CURLOPT_READDATA, &pooh); in test()
H A Dlib510.c43 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
49 data = post[pooh->counter]; in read_callback()
58 pooh->counter++; /* advance pointer */ in read_callback()
69 struct WriteThis pooh; in test() local
70 pooh.counter = 0; in test()
102 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
H A Dlib643.c38 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
39 int eof = !*pooh->readptr; in read_callback()
45 eof = pooh->sizeleft <= 0; in read_callback()
47 pooh->sizeleft--; in read_callback()
51 *ptr = *pooh->readptr; /* copy one single byte */ in read_callback()
52 pooh->readptr++; /* advance pointer */ in read_callback()
66 struct WriteThis pooh; in once() local
70 pooh.readptr = data; in once()
74 pooh.sizeleft = datasize; in once()
105 NULL, NULL, &pooh); in once()
[all …]
H A Dlib579.c71 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
77 data = post[pooh->counter]; in read_callback()
82 pooh->counter++; /* advance pointer */ in read_callback()
93 struct WriteThis pooh; in test() local
94 pooh.counter = 0; in test()
126 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
H A Dlib1662.c34 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
40 if(pooh->sizeleft) { in read_callback()
42 pooh->sizeleft = 0; in read_callback()
56 struct WriteThis pooh = { 1 }; in test() local
70 curl_mime_data_cb(part1, -1, read_callback, NULL, NULL, &pooh); in test()
H A Dlib668.c37 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
38 size_t len = strlen(pooh->readptr); in read_callback()
45 memcpy(ptr, pooh->readptr, len); in read_callback()
46 pooh->readptr += len; in read_callback()

Completed in 25 milliseconds