Lines Matching refs:cookie
45 FILE *fopencookie(void *cookie, const char *mode, COOKIE_IO_FUNCTIONS_T *funcs) in fopencookie() argument
47 return funopen(cookie, funcs->reader, funcs->writer, funcs->seeker, funcs->closer); in fopencookie()
59 static int stream_cookie_reader(void *cookie, char *buffer, int size) in stream_cookie_reader() argument
63 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader()
67 static int stream_cookie_writer(void *cookie, const char *buffer, int size) in stream_cookie_writer() argument
70 return php_stream_write((php_stream *)cookie, (char *)buffer, size); in stream_cookie_writer()
73 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
76 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
79 static int stream_cookie_closer(void *cookie) in stream_cookie_closer() argument
81 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer()
89 static ssize_t stream_cookie_reader(void *cookie, char *buffer, size_t size) in stream_cookie_reader() argument
93 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader()
97 static ssize_t stream_cookie_writer(void *cookie, const char *buffer, size_t size) in stream_cookie_writer() argument
100 return php_stream_write(((php_stream *)cookie), (char *)buffer, size); in stream_cookie_writer()
104 static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) in stream_cookie_seeker() argument
107 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker()
115 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
118 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
122 static int stream_cookie_closer(void *cookie) in stream_cookie_closer() argument
124 php_stream *stream = (php_stream*)cookie; in stream_cookie_closer()