Home
last modified time | relevance | path

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

/external/curl/tests/libtest/
Dlib1517.c35 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
42 if(tocopy < 1 || !pooh->sizeleft) in read_callback()
45 if(pooh->sizeleft < tocopy) in read_callback()
46 tocopy = pooh->sizeleft; in read_callback()
48 memcpy(ptr, pooh->readptr, tocopy);/* copy requested data */ in read_callback()
49 pooh->readptr += tocopy; /* advance pointer */ in read_callback()
50 pooh->sizeleft -= tocopy; /* less data left */ in read_callback()
59 struct WriteThis pooh; in test() local
61 pooh.readptr = data; in test()
62 pooh.sizeleft = strlen(data); in test()
[all …]
Dlib508.c35 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
40 if(pooh->sizeleft) { in read_callback()
41 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
42 pooh->readptr++; /* advance pointer */ in read_callback()
43 pooh->sizeleft--; /* less data left */ in read_callback()
55 struct WriteThis pooh; in test() local
57 pooh.readptr = data; in test()
58 pooh.sizeleft = strlen(data); in test()
83 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); in test()
89 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
Dlib554.c51 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback()
56 if(pooh->sizeleft) { in read_callback()
57 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
58 pooh->readptr++; /* advance pointer */ in read_callback()
59 pooh->sizeleft--; /* less data left */ in read_callback()
75 struct WriteThis pooh; in once() local
78 pooh.readptr = data; in once()
79 pooh.sizeleft = strlen(data); in once()
86 CURLFORM_STREAM, &pooh, in once()
87 CURLFORM_CONTENTSLENGTH, (long)pooh.sizeleft, in once()
[all …]
Dlib1514.c40 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
45 if(pooh->sizeleft) { in read_callback()
46 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
47 pooh->readptr++; /* advance pointer */ in read_callback()
48 pooh->sizeleft--; /* less data left */ in read_callback()
60 struct WriteThis pooh = { data, sizeof(data)-1 }; in test() local
70 easy_setopt(curl, CURLOPT_READDATA, &pooh); in test()
Dlib510.c41 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
47 data = post[pooh->counter]; in read_callback()
52 pooh->counter++; /* advance pointer */ in read_callback()
63 struct WriteThis pooh; in test() local
64 pooh.counter = 0; in test()
100 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
Dlib579.c70 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
76 data = post[pooh->counter]; in read_callback()
81 pooh->counter++; /* advance pointer */ in read_callback()
92 struct WriteThis pooh; in test() local
93 pooh.counter = 0; in test()
129 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()
/external/curl/docs/examples/
Dpost-callback.c40 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
45 if(pooh->sizeleft) { in read_callback()
46 *(char *)ptr = pooh->readptr[0]; /* copy one single byte */ in read_callback()
47 pooh->readptr++; /* advance pointer */ in read_callback()
48 pooh->sizeleft--; /* less data left */ in read_callback()
60 struct WriteThis pooh; in main() local
62 pooh.readptr = data; in main()
63 pooh.sizeleft = (long)strlen(data); in main()
87 curl_easy_setopt(curl, CURLOPT_READDATA, &pooh); in main()
111 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft); in main()
/external/libexif/
DChangeLog1832 Renchi Raju <renchi@pooh.tam.uiuc.edu> found another bug in