Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 25 of 32) 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.cpp526 int __sread(void* cookie, char* buf, int n) { in __sread() argument
527 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sread()
531 int __swrite(void* cookie, const char* buf, int n) { in __swrite() argument
532 FILE* fp = reinterpret_cast<FILE*>(cookie); in __swrite()
536 fpos_t __sseek(void* cookie, fpos_t offset, int whence) { in __sseek() argument
537 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek()
541 off64_t __sseek64(void* cookie, off64_t offset, int whence) { in __sseek64() argument
542 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sseek64()
546 int __sclose(void* cookie) { in __sclose() argument
547 FILE* fp = reinterpret_cast<FILE*>(cookie); in __sclose()
[all …]
/bionic/libc/bionic/
Dsystem_property_api.cpp80 void (*callback)(void* cookie, const char* name, in __system_property_read_callback() argument
82 void* cookie) { in __system_property_read_callback()
83 return system_properties.ReadCallback(pi, callback, cookie); in __system_property_read_callback()
130 int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in __system_property_foreach() argument
131 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()
Dsysprop_helpers.cpp51 [](void* cookie, const char* /* name */, const char* value, uint32_t /* serial */) { in get_property_value() argument
52 auto* cb_cookie = reinterpret_cast<PropCbCookie*>(cookie); in get_property_value()
/bionic/libc/system_properties/include/system_properties/
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()
Dsystem_properties.h62 void (*callback)(void* cookie, const char* name, const char* value,
64 void* cookie);
72 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
Dprop_area.h128 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
161 void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
Dcontexts.h43 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
Dcontexts_split.h47 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
Dcontexts_serialized.h48 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
/bionic/libc/kernel/uapi/linux/android/
Dbinder.h49 binder_uintptr_t cookie; member
58 binder_uintptr_t cookie; member
96 binder_uintptr_t cookie; member
152 binder_uintptr_t cookie; member
177 binder_uintptr_t cookie; member
181 binder_uintptr_t cookie; member
190 binder_uintptr_t cookie; member
/bionic/libc/system_properties/
Dprop_area.cpp337 void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach_property() argument
342 const int err = foreach_property(to_prop_trie_node(&trie->left), propfn, cookie); in foreach_property()
349 propfn(info, cookie); in foreach_property()
353 const int err = foreach_property(to_prop_trie_node(&trie->children), propfn, cookie); in foreach_property()
358 const int err = foreach_property(to_prop_trie_node(&trie->right), propfn, cookie); in foreach_property()
374 bool prop_area::foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in foreach() argument
375 return foreach_property(root_node(), propfn, cookie); in foreach()
Dsystem_properties.cpp239 void (*callback)(void* cookie, const char* name, in ReadCallback() argument
241 void* cookie) { in ReadCallback()
247 callback(cookie, pi->name, pi->long_value(), serial); in ReadCallback()
249 callback(cookie, pi->name, pi->value, serial); in ReadCallback()
256 callback(cookie, pi->name, value_buf, serial); in ReadCallback()
471 int SystemProperties::Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in Foreach() argument
476 contexts_->ForEach(propfn, cookie); in Foreach()
Dcontexts_serialized.cpp151 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
154 context_nodes_[i].pa()->foreach (propfn, cookie); in ForEach()
Dcontexts_split.cpp339 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { in ForEach() argument
340 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) { in ForEach()
342 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/libc/kernel/uapi/linux/
Dnbd.h43 __be64 cookie; member
53 __be64 cookie; member
Drds.h214 rds_rdma_cookie_t cookie; member
218 rds_rdma_cookie_t cookie; member
226 rds_rdma_cookie_t cookie; member
Dinotify.h14 __u32 cookie; member
/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/tests/
Dsystem_properties_test2.cpp92 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) { in TEST() argument
93 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST()
103 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) { in TEST() argument
104 const std::string* expected_name = static_cast<const std::string*>(cookie); in TEST()
/bionic/benchmarks/
Dproperty_benchmark.cpp207 [](const prop_info* pi, void* cookie) { in BM_property_find_real() argument
209 [](void* cookie, const char* name, const char*, unsigned) { in BM_property_find_real() argument
211 reinterpret_cast<std::vector<std::string>*>(cookie); in BM_property_find_real()
214 cookie); in BM_property_find_real()
/bionic/libc/kernel/uapi/rdma/
Dmlx5_user_ioctl_verbs.h41 __aligned_u64 cookie; member

12