Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dstdio.c44 __sread(void *cookie, char *buf, int n) in __sread() argument
46 FILE *fp = cookie; in __sread()
59 __swrite(void *cookie, const char *buf, int n) in __swrite() argument
61 FILE *fp = cookie; in __swrite()
70 __sseek(void *cookie, fpos_t offset, int whence) in __sseek() argument
72 FILE *fp = cookie; in __sseek()
86 __sclose(void *cookie) in __sclose() argument
88 return (close(((FILE *)cookie)->_file)); in __sclose()
Dfunopen.c39 funopen(const void *cookie, int (*readfn)(void *, char *, int), in funopen() argument
62 fp->_cookie = (void *)cookie; /* SAFE: cookie not modified */ in funopen()
Dvdprintf.c44 __dwrite(void *cookie, const char *buf, int n) in __dwrite() argument
46 int *fdp = cookie; in __dwrite()
Dvsscanf.c40 eofread(void *cookie, char *buf, int len) in eofread() argument
Dsscanf.c41 eofread(void *cookie, char *buf, int len) in eofread() argument
Dvswscanf.c46 eofread(void *cookie, char *buf, int len) in eofread() argument
/bionic/libc/include/sys/
Dsystem_properties.h97 void (*propfn)(const prop_info *pi, void *cookie),
98 void *cookie);
D_system_properties.h140 void (*propfn)(const prop_info *pi, void *cookie),
141 void *cookie);
/bionic/libc/bionic/
Dsystem_properties.cpp533 find_nth_cookie *cookie = reinterpret_cast<find_nth_cookie*>(ptr); in find_nth_fn() local
535 if (cookie->n == cookie->count) in find_nth_fn()
536 cookie->pi = pi; in find_nth_fn()
538 cookie->count++; in find_nth_fn()
542 void (*propfn)(const prop_info *pi, void *cookie), void *cookie) in foreach_property() argument
549 const int err = foreach_property(trie->left, propfn, cookie); in foreach_property()
557 propfn(info, cookie); in foreach_property()
560 const int err = foreach_property(trie->children, propfn, cookie); in foreach_property()
565 const int err = foreach_property(trie->right, propfn, cookie); in foreach_property()
719 find_nth_cookie cookie(n); in __system_property_find_nth() local
[all …]
Dsystem_properties_compat.c120 void (*propfn)(const prop_info *pi, void *cookie), in __system_property_foreach_compat() argument
121 void *cookie) in __system_property_foreach_compat()
129 propfn((const prop_info *)pi, cookie); in __system_property_foreach_compat()
/bionic/libc/kernel/uapi/linux/
Dbinder.h56 binder_uintptr_t cookie; member
101 binder_uintptr_t cookie; member
122 binder_uintptr_t cookie; member
127 binder_uintptr_t cookie; member
139 binder_uintptr_t cookie; member
Drds.h156 rds_rdma_cookie_t cookie; member
161 rds_rdma_cookie_t cookie; member
171 rds_rdma_cookie_t cookie; member
Dinotify.h27 __u32 cookie; member
Dif_arcnet.h69 __u8 cookie[sizeof(int)]; member
/bionic/libc/include/
Dstdio.h352 #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) argument
353 #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) argument
/bionic/tests/
Dsystem_properties_test.cpp72 static void foreach_test_callback(const prop_info *pi, void* cookie) { in foreach_test_callback() argument
73 size_t *count = static_cast<size_t *>(cookie); in foreach_test_callback()
79 static void hierarchical_test_callback(const prop_info *pi, void *cookie) { in hierarchical_test_callback() argument
80 bool (*ok)[8][8] = static_cast<bool (*)[8][8]>(cookie); in hierarchical_test_callback()