Searched refs:cookie (Results 1 - 25 of 36) sorted by last modified time

12

/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dvdprintf.c44 __dwrite(void *cookie, const char *buf, int n) argument
46 int *fdp = cookie;
H A Dvsscanf.c39 eofread(void *cookie, char *buf, int len) argument
H A Dvswscanf.c46 eofread(void *cookie, char *buf, int len) argument
/bionic/tests/libs/
H A Dbionic_tests_zipalign.cpp43 void* cookie; local
44 int32_t return_value = StartIteration(handle, &cookie, nullptr, nullptr);
52 while ((return_value = Next(cookie, &entry, &name)) == 0) {
64 EndIteration(cookie);
/bionic/tests/
H A Dsystem_properties_test.cpp58 static void foreach_test_callback(const prop_info *pi, void* cookie) { argument
59 size_t *count = static_cast<size_t *>(cookie);
65 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { argument
66 bool (*ok)[8][8] = static_cast<bool (*)[8][8]>(cookie);
486 [](void* cookie, const char*, const char* value, uint32_t) {
487 auto* out_value = reinterpret_cast<std::string*>(cookie);
H A Dsystem_properties_test2.cpp94 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) {
95 const std::string* expected_name = static_cast<const std::string*>(cookie);
105 [](void* cookie, const char* name, const char* value, unsigned /*serial*/) {
106 const std::string* expected_name = static_cast<const std::string*>(cookie);
/bionic/libc/arch-mips/bionic/
H A Dsetjmp.S136 #define SC_FLAG_OFFSET (2*4) /* 8 bytes, cookie and savesigs flag, first actual field */
165 .macro m_mangle_reg_and_store reg, cookie, temp, offset
166 xor \temp, \reg, \cookie
170 .macro m_unmangle_reg_and_load reg, cookie, temp, offset
172 xor \reg, \temp, \cookie
217 # get the cookie and store it along with the signal flag.
222 REG_S $v0, SC_FLAG_OFFSET($a0) # save cookie and savesigs flag
236 REG_L $t0, SC_FLAG_OFFSET($a0) # move cookie to temp reg
241 # m_mangle_reg_and_store reg, cookie, temp, offset
354 move $t0, $s2 # get cookie t
[all...]
/bionic/libc/arch-mips64/bionic/
H A Dsetjmp.S136 #define SC_FLAG_OFFSET (2*4) /* 8 bytes, cookie and savesigs flag, first actual field */
165 .macro m_mangle_reg_and_store reg, cookie, temp, offset
166 xor \temp, \reg, \cookie
170 .macro m_unmangle_reg_and_load reg, cookie, temp, offset
172 xor \reg, \temp, \cookie
217 # get the cookie and store it along with the signal flag.
222 REG_S $v0, SC_FLAG_OFFSET($a0) # save cookie and savesigs flag
236 REG_L $t0, SC_FLAG_OFFSET($a0) # move cookie to temp reg
241 # m_mangle_reg_and_store reg, cookie, temp, offset
354 move $t0, $s2 # get cookie t
[all...]
/bionic/libc/bionic/
H A Dsetjmp_cookie.cpp59 // Aborts if cookie doesn't match, returns the signal flag otherwise.
60 extern "C" __LIBC_HIDDEN__ long __bionic_setjmp_cookie_check(long cookie) { argument
61 if (__libc_globals->setjmp_cookie != (cookie & ~1)) {
62 async_safe_fatal("setjmp cookie mismatch");
65 return cookie & 1;
H A Dsystem_property_api.cpp81 void (*callback)(void* cookie, const char* name,
83 void* cookie) {
84 return system_properties.ReadCallback(pi, callback, cookie);
125 int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { argument
126 return system_properties.Foreach(propfn, cookie);
80 __system_property_read_callback(const prop_info* pi, void (*callback)(void* cookie, const char* name, const char* value, uint32_t serial), void* cookie) argument
/bionic/libc/include/
H A Dstdio.h254 #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0)
255 #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0)
/bionic/libc/kernel/uapi/linux/android/
H A Dbinder.h55 binder_uintptr_t cookie; member in struct:flat_binder_object
64 binder_uintptr_t cookie; member in struct:binder_fd_object
102 binder_uintptr_t cookie; member in struct:binder_node_debug_info
125 binder_uintptr_t cookie; member in struct:binder_transaction_data
146 binder_uintptr_t cookie; member in struct:binder_ptr_cookie
150 binder_uintptr_t cookie; member in struct:binder_handle_cookie
159 binder_uintptr_t cookie; member in struct:binder_pri_ptr_cookie
/bionic/libc/kernel/uapi/linux/
H A Dif_arcnet.h59 __u8 cookie[sizeof(int)]; member in struct:arc_cap
H A Dinotify.h26 __u32 cookie; member in struct:inotify_event
H A Drds.h154 rds_rdma_cookie_t cookie; member in struct:rds_free_mr_args
158 rds_rdma_cookie_t cookie; member in struct:rds_rdma_args
166 rds_rdma_cookie_t cookie; member in struct:rds_atomic_args
/bionic/libc/stdio/
H A Dfmemopen.cpp48 static int fmemopen_read(void* cookie, char* buf, int n) { argument
49 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie);
60 static int fmemopen_write(void* cookie, const char* buf, int n) { argument
61 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie);
92 static fpos_t fmemopen_seek(void* cookie, fpos_t offset, int whence) { argument
93 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie);
106 static int fmemopen_close(void* cookie) { argument
107 fmemopen_cookie* ck = static_cast<fmemopen_cookie*>(cookie);
H A Dstdio.cpp178 // Caller sets cookie, _read/_write etc.
473 int __sread(void* cookie, char* buf, int n) { argument
474 FILE* fp = reinterpret_cast<FILE*>(cookie);
478 int __swrite(void* cookie, const char* buf, int n) { argument
479 FILE* fp = reinterpret_cast<FILE*>(cookie);
483 fpos_t __sseek(void* cookie, fpos_t offset, int whence) { argument
484 FILE* fp = reinterpret_cast<FILE*>(cookie);
488 off64_t __sseek64(void* cookie, off64_t offset, int whence) { argument
489 FILE* fp = reinterpret_cast<FILE*>(cookie);
493 int __sclose(void* cookie) { argument
630 __funopen(const void* cookie, int (*read_fn)(void*, char*, int), int (*write_fn)(void*, const char*, int), int (*close_fn)(void*)) argument
659 funopen(const void* cookie, int (*read_fn)(void*, char*, int), int (*write_fn)(void*, const char*, int), fpos_t (*seek_fn)(void*, fpos_t, int), int (*close_fn)(void*)) argument
671 funopen64(const void* cookie, int (*read_fn)(void*, char*, int), int (*write_fn)(void*, const char*, int), fpos64_t (*seek_fn)(void*, fpos64_t, int), int (*close_fn)(void*)) argument
[all...]
/bionic/libc/system_properties/
H A Dcontexts_serialized.cpp147 void ContextsSerialized::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { argument
150 context_nodes_[i].pa()->foreach (propfn, cookie);
H A Dcontexts_split.cpp347 void ContextsSplit::ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) { argument
348 ListForEach(contexts_, [propfn, cookie](ContextListNode* l) {
350 l->pa()->foreach (propfn, cookie);
/bionic/libc/system_properties/include/system_properties/
H A Dcontexts.h42 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) = 0;
H A Dcontexts_pre_split.h54 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override {
55 pre_split_prop_area_->foreach (propfn, cookie);
H A Dcontexts_serialized.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
H A Dcontexts_split.h46 virtual void ForEach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) override;
H A Dprop_area.h114 bool foreach (void (*propfn)(const prop_info* pi, void* cookie), void* cookie);
144 bool foreach_property(prop_bt* const trie, void (*propfn)(const prop_info* pi, void* cookie),
145 void* cookie);
H A Dsystem_properties.h63 void (*callback)(void* cookie, const char* name, const char* value,
65 void* cookie);
74 int Foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie);

Completed in 211 milliseconds

12