Lines Matching refs:cookie
47 FILE *fopencookie(void *cookie, const char *mode, COOKIE_IO_FUNCTIONS_T *funcs) in fopencookie() argument
49 FILE *file = funopen(cookie, funcs->reader, funcs->writer, funcs->seeker, funcs->closer); in fopencookie()
68 static int stream_cookie_reader(void *cookie, char *buffer, int size) in stream_cookie_reader() argument
72 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader()
76 static int stream_cookie_writer(void *cookie, const char *buffer, int size) in stream_cookie_writer() argument
79 return php_stream_write((php_stream *)cookie, (char *)buffer, size); in stream_cookie_writer()
82 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
85 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
88 static int stream_cookie_closer(void *cookie) in stream_cookie_closer() argument
90 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer()
98 static ssize_t stream_cookie_reader(void *cookie, char *buffer, size_t size) in stream_cookie_reader() argument
102 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader()
106 static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t size) in stream_cookie_writer() argument
109 return php_stream_write(((php_stream *)cookie), (char *)buffer, size); in stream_cookie_writer()
113 static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) in stream_cookie_seeker() argument
115 static int stream_cookie_seeker(void *cookie, off_t *position, int whence) in stream_cookie_seeker()
119 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker()
127 static int stream_cookie_closer(void *cookie) in stream_cookie_closer() argument
129 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer()