Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 27) sorted by relevance

12

/bionic/libc/stdio/
Dfmemopen.cpp48 static int fmemopen_read(void* cookie, char* buf, int n) { in fmemopen_read() argument
49 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_read()
60 static int fmemopen_write(void* cookie, const char* buf, int n) { in fmemopen_write() argument
61 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_write()
92 static fpos_t fmemopen_seek(void* cookie, fpos_t offset, int whence) { in fmemopen_seek() argument
93 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_seek()
106 static int fmemopen_close(void* cookie) { in fmemopen_close() argument
107 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie); in fmemopen_close()
Dstdio.cpp528 int __sread(void* cookie, char* buf, int n) { in __sread() argument
529 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sread()
533 int __swrite(void* cookie, const char* buf, int n) { in __swrite() argument
534 FILE* fp = reinterpret_cast<FILE*>(cookie); in __swrite()
538 fpos_t __sseek(void* cookie, fpos_t offset, int whence) { in __sseek() argument
539 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek()
543 off64_t __sseek64(void* cookie, off64_t offset, int whence) { in __sseek64() argument
544 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek64()
548 int __sclose(void* cookie) { in __sclose() argument
549 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sclose()
[all …]
/bionic/libc/bionic/
Dsystem_property_api.cpp79 void (*callback)(void* cookie, const char* name, in __system_property_read_callback() argument
81 void* cookie) { in __system_property_read_callback()
82 return system_properties.ReadCallback(pi, callback, cookie); in __system_property_read_callback()
129 int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in __system_property_foreach() argument
130 return system_properties.Foreach(propfn, cookie); in __system_property_foreach()
Dsetjmp_cookie.cpp59 extern "C" __LIBC_HIDDEN__ long __bionic_setjmp_cookie_check(long cookie) { in __bionic_setjmp_cookie_check() argument
60 if (__libc_globals->setjmp_cookie != (cookie & ~1)) { in __bionic_setjmp_cookie_check()
64 return cookie & 1; in __bionic_setjmp_cookie_check()
/bionic/libc/kernel/uapi/linux/android/
Dbinder.h61 binder_uintptr_t cookie; member
70 binder_uintptr_t cookie; member
108 binder_uintptr_t cookie; member
141 binder_uintptr_t cookie; member
166 binder_uintptr_t cookie; member
170 binder_uintptr_t cookie; member
179 binder_uintptr_t cookie; member
/bionic/libc/system_properties/include/system_properties/
Dsystem_properties.h63 void (*callback)(void* cookie, const char* name, const char* value,
65 void* cookie);
73 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
Dcontexts_pre_split.h54 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override { in ForEach() argument
55 pre_split_prop_area_->foreach (propfn, cookie); in ForEach()
Dprop_area.h128 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
161 bool foreach_property(prop_bt* const trie, void (*propfn)(const prop_info* pi, void* cookie),
162 void* cookie);
Dcontexts.h42 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
Dcontexts_serialized.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
Dcontexts_split.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
/bionic/libc/system_properties/
Dsystem_properties.cpp198 void (*callback)(void* cookie, const char* name, in ReadCallback() argument
200 void* cookie) { in ReadCallback()
206 callback(cookie, pi->name, pi->long_value(), serial); in ReadCallback()
208 callback(cookie, pi->name, pi->value, serial); in ReadCallback()
215 callback(cookie, pi->name, value_buf, serial); in ReadCallback()
367 int SystemProperties::Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in Foreach() argument
372 contexts_->ForEach(propfn, cookie); in Foreach()
Dprop_area.cpp334 void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach_property() argument
339 const int err = foreach_property(to_prop_bt(&trie->left), propfn, cookie); in foreach_property()
346 propfn(info, cookie); in foreach_property()
350 const int err = foreach_property(to_prop_bt(&trie->children), propfn, cookie); in foreach_property()
355 const int err = foreach_property(to_prop_bt(&trie->right), propfn, cookie); in foreach_property()
371 bool prop_area::foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach() argument
372 return foreach_property(root_node(), propfn, cookie); in foreach()
Dcontexts_serialized.cpp147 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
150 context_nodes_[i].pa()->foreach (propfn, cookie); in ForEach()
Dcontexts_split.cpp345 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
346 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) { in ForEach()
348 l->pa()->foreach (propfn, cookie); in ForEach()
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp43 void* cookie; in GetEntries() local
44 int32_t return_value = StartIteration(handle, &cookie); in GetEntries()
52 while ((return_value = Next(cookie, &entry, &name)) == 0) { in GetEntries()
63 EndIteration(cookie); in GetEntries()
/bionic/tests/
Dsystem_properties_test2.cpp96 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) { in TEST() argument
97 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST()
107 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) { in TEST() argument
108 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST()
Dsystem_properties_test.cpp58 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback() argument
59 size_t *count = static_cast<size_t *>(cookie); in foreach_test_callback()
65 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback() argument
66 bool (*ok)[8][8] = static_cast<bool (*)[8][8]>(cookie); in hierarchical_test_callback()
486 [](void* cookie, const char*, const char* value, uint32_t) { in TEST() argument
487 auto* out_value = reinterpret_cast<std::string*>(cookie); in TEST()
/bionic/benchmarks/
Dproperty_benchmark.cpp203 [](const prop_info* pi, void* cookie) { in BM_property_find_real() argument
205 [](void* cookie, const char* name, const char*, unsigned) { in BM_property_find_real() argument
207 reinterpret_cast<std::vector<std::string>*>(cookie); in BM_property_find_real()
210 cookie); in BM_property_find_real()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvdprintf.c44 __dwrite(void *cookie, const char *buf, int n) in __dwrite() argument
46 int *fdp = cookie; in __dwrite()
Dvsscanf.c39 eofread(void *cookie, char *buf, int len) in eofread() argument
/bionic/libc/include/
Dstdio.h298 #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) argument
299 #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) argument
/bionic/libc/kernel/uapi/linux/
Drds.h225 rds_rdma_cookie_t cookie; member
229 rds_rdma_cookie_t cookie; member
237 rds_rdma_cookie_t cookie; member
Dinotify.h26 __u32 cookie; member
/bionic/libc/kernel/uapi/rdma/
Dmlx5_user_ioctl_verbs.h51 __aligned_u64 cookie; member

12