Searched defs:stream (Results 1 - 25 of 91) sorted by relevance

1234

/PHP_TRUNK/TSRM/
H A Dtsrm_nw.c60 FILE *stream = NULL; local
202 stream = fdopen(pipe_handle, type);
223 return stream;
226 TSRM_API int pclose(FILE* stream) argument
232 fd = fileno(stream);
235 err = fclose(stream);
H A Dtsrm_win32.h52 FILE *stream; member in struct:__anon2
104 TSRM_API int pclose(FILE *stream);
/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c37 php_stream *stream,
83 newbucket = php_stream_bucket_new(stream, outchunk, n, 1, data->persistent);
114 newbucket = php_stream_bucket_new(stream, data->block_buffer, data->blocksize, 0, data->persistent);
36 php_mcrypt_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags) argument
/PHP_TRUNK/main/streams/
H A Dphp_stream_filter_api.h28 * Each stream can have a chain of filters for reading and another for writing.
30 * When data is written to the stream, it is placed into a bucket and placed at
63 PSFS_ERR_FATAL, /* error in data stream */
70 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent);
87 php_stream *stream,
104 /* Owning stream */
105 php_stream *stream; member in struct:_php_stream_filter_chain
115 /* link into stream and chain */
125 /* stack filter onto a stream */
142 #define php_stream_is_filtered(stream) ((strea
[all...]
H A Dglob_wrapper.c50 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, size_t *plen STREAMS_DC) /* {{{ */ argument
52 glob_s_t *pglob = (glob_s_t *)stream->abstract;
72 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, size_t *plen STREAMS_DC) /* {{{ */ argument
74 glob_s_t *pglob = (glob_s_t *)stream->abstract;
94 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC) /* {{{ */ argument
96 glob_s_t *pglob = (glob_s_t *)stream->abstract;
140 static size_t php_glob_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ argument
142 glob_s_t *pglob = (glob_s_t *)stream->abstract;
146 /* avoid problems if someone mis-uses the stream */
164 static int php_glob_stream_close(php_stream *stream, in argument
183 php_glob_stream_rewind(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
[all...]
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) argument
40 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_MAP_RANGE, &range)) {
49 PHPAPI int _php_stream_mmap_unmap(php_stream *stream) argument
51 return php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_UNMAP, NULL) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0;
54 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden) argument
58 if (php_stream_seek(stream, readden, SEEK_CUR) != 0) {
61 if (php_stream_mmap_unmap(stream) == 0) {
H A Dcast.c85 php_stream *stream = (php_stream*)cookie; local
88 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
89 return php_stream_free(stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_KEEP_RSRC);
127 php_stream *stream = (php_stream*)cookie; local
130 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
131 return php_stream_free(stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_KEEP_RSRC);
148 void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result) argument
152 const char *cur_mode = stream->mode;
191 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err) argument
198 php_stream_flush(stream);
348 php_stream *stream = NULL; local
[all...]
H A Dtransports.c60 php_stream *stream = NULL; local
75 switch(php_stream_from_persistent_id(persistent_id, &stream)) {
79 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_CHECK_LIVENESS, 0, NULL)) {
80 return stream;
83 php_stream_pclose(stream);
84 stream = NULL;
132 stream = (factory)(protocol, n,
136 if (stream) {
137 php_stream_context_set(stream, context);
143 if (-1 == php_stream_xport_connect(stream, nam
196 php_stream_xport_bind(php_stream *stream, const char *name, size_t namelen, zend_string **error_text ) argument
224 php_stream_xport_connect(php_stream *stream, const char *name, size_t namelen, int asynchronous, struct timeval *timeout, zend_string **error_text, int *error_code ) argument
260 php_stream_xport_listen(php_stream *stream, int backlog, zend_string **error_text) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, zend_string **textaddr, void **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_text ) argument
322 php_stream_xport_get_name(php_stream *stream, int want_peer, zend_string **textaddr, void **addr, socklen_t *addrlen ) argument
352 php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream) argument
373 php_stream_xport_crypto_enable(php_stream *stream, int activate) argument
395 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, int flags, void **addr, socklen_t *addrlen, zend_string **textaddr ) argument
464 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, int flags, void *addr, socklen_t addrlen) argument
504 php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how) argument
[all...]
/PHP_TRUNK/Zend/
H A Dzend_stream.c78 static void zend_stream_unmap(zend_stream *stream) { /* {{{ */ argument
80 if (stream->mmap.map) {
81 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
84 if (stream->mmap.buf) {
85 efree(stream->mmap.buf);
87 stream->mmap.len = 0;
88 stream->mmap.pos = 0;
89 stream->mmap.map = 0;
90 stream
94 zend_stream_mmap_closer(zend_stream *stream) argument
[all...]
H A Dzend_stream.h30 /* Lightweight stream implementation for the ZE scanners.
69 zend_stream stream; member in union:_zend_file_handle::__anon8
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c32 php_stream *stream; member in struct:php_gz_stream_data_t
35 static size_t php_gziop_read(php_stream *stream, char *buf, size_t count) argument
37 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
44 stream->eof = 1;
50 static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count) argument
52 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
61 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
63 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
76 static int php_gziop_close(php_stream *stream, int close_handle) argument
78 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream
96 php_gziop_flush(php_stream *stream) argument
117 php_stream *stream = NULL, *innerstream = NULL; local
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfsmagic.c97 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream *stream) argument
105 if (fn == NULL && !stream) {
111 if (stream) {
113 if (php_stream_stat(stream, &ssb) < 0) {
H A Dmagic.c343 magic_stream(struct magic_set *ms, php_stream *stream) argument
347 return file_or_stream(ms, NULL, stream);
351 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument
359 if (!inname && !stream) {
373 switch (file_fsmagic(ms, inname, &sb, stream)) {
385 if (!stream && inname) {
387 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL);
390 if (!stream) {
404 if ((nbytes = php_stream_read(stream, (char *)buf, HOWMANY)) < 0) {
410 if (file_buffer(ms, stream, innam
[all...]
/PHP_TRUNK/ext/ftp/
H A Dftp.h77 php_stream *stream; /* output stream for "nonblocking" transfers */ member in struct:ftpbuf
80 int closestream;/* close or not close stream */
H A Dphp_ftp.c357 Opens a FTP stream */
393 Opens a FTP-SSL stream */
426 /* {{{ proto bool ftp_login(resource stream, string username, string password)
453 /* {{{ proto string ftp_pwd(resource stream)
478 /* {{{ proto bool ftp_cdup(resource stream)
502 /* {{{ proto bool ftp_chdir(resource stream, string directory)
529 /* {{{ proto bool ftp_exec(resource stream, string command)
556 /* {{{ proto array ftp_raw(resource stream, string command)
578 /* {{{ proto string ftp_mkdir(resource stream, string directory)
606 /* {{{ proto bool ftp_rmdir(resource stream, strin
784 php_stream *stream; local
830 php_stream *stream; local
1084 php_stream *stream; local
1134 php_stream *stream; local
[all...]
/PHP_TRUNK/ext/bz2/
H A Dbz2_filter.c68 php_stream *stream,
142 out_bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0);
165 bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0);
206 php_stream *stream,
256 out_bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0);
274 bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0);
407 /* Unspecified (probably strm) error, let stream-filter error do its own whining */
67 php_bz2_decompress_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags ) argument
205 php_bz2_compress_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags ) argument
/PHP_TRUNK/ext/phar/
H A Ddirstream.c3 | phar:// stream wrapper support |
43 static int phar_dir_close(php_stream *stream, int close_handle) /* {{{ */ argument
45 HashTable *data = (HashTable *)stream->abstract;
51 stream->abstract = NULL;
61 static int phar_dir_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) /* {{{ */ argument
63 HashTable *data = (HashTable *)stream->abstract;
93 static size_t phar_dir_read(php_stream *stream, char *buf, size_t count) /* {{{ */ argument
96 HashTable *data = (HashTable *)stream->abstract;
122 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ argument
131 static int phar_dir_flush(php_stream *stream) /* {{{ */ argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dfsock.c46 php_stream *stream = NULL; local
88 stream = php_stream_xport_create(hostname, hostname_len, REPORT_ERRORS,
94 if (stream == NULL) {
102 if (stream == NULL) {
122 php_stream_to_zval(stream, return_value);
H A Dmd5.c85 php_stream *stream; local
91 stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS, NULL);
92 if (!stream) {
98 while ((n = php_stream_read(stream, (char*)buf, sizeof(buf))) > 0) {
103 if (!php_stream_eof(stream)) {
104 php_stream_close(stream);
110 php_stream_close(stream);
H A Dsha1.c75 php_stream *stream; local
81 stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS, NULL);
82 if (!stream) {
88 while ((n = php_stream_read(stream, (char *) buf, sizeof(buf))) > 0) {
94 php_stream_close(stream);
H A Durl.c718 php_stream *stream; local
728 if (!(stream = php_stream_open_wrapper_ex(url, "r", REPORT_ERRORS | STREAM_USE_URL | STREAM_ONLY_GET_HEADERS, NULL, context))) {
732 if (Z_TYPE(stream->wrapperdata) != IS_ARRAY) {
733 php_stream_close(stream);
740 if ((h = zend_hash_str_find(HASH_OF(&stream->wrapperdata), "headers", sizeof("headers")-1)) != NULL && Z_TYPE_P(h) == IS_ARRAY) {
743 php_stream_getc(stream);
745 h = zend_hash_str_find(HASH_OF(&stream->wrapperdata), "headers", sizeof("headers")-1);
748 hashT = HASH_OF(&stream->wrapperdata);
784 php_stream_close(stream);
H A Dexec.c67 php_stream *stream; local
87 stream = php_stream_fopen_from_pipe(fp, "rb");
95 while (php_stream_get_line(stream, b, EXEC_INPUT_BUF, &bufl)) {
97 if (b[bufl - 1] != '\n' && !php_stream_eof(stream)) {
148 while((bufl = php_stream_read(stream, buf, EXEC_INPUT_BUF)) > 0) {
153 pclose_return = php_stream_close(stream);
456 php_stream *stream; local
471 stream = php_stream_fopen_from_pipe(in, "rb");
472 ret = php_stream_copy_to_mem(stream, PHP_STREAM_COPY_ALL, 0);
473 php_stream_close(stream);
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_webdata_transfer.c54 php_stream *stream; local
57 stream = php_stream_temp_create_ex(TEMP_STREAM_DEFAULT, SAPI_POST_BLOCK_SIZE, PG(upload_tmp_dir));
58 if ((str = php_stream_copy_to_mem(stream, PHP_STREAM_COPY_ALL, 0))) {
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c49 php_stream * stream = (php_stream *)ctx->data; local
50 php_stream_write(stream, &ch, 1);
55 php_stream * stream = (php_stream *)ctx->data; local
56 return php_stream_write(stream, (void *)buf, l);
84 php_stream *stream; local
119 php_stream_from_zval_no_verify(stream, to_zval);
120 if (stream == NULL) {
129 stream = php_stream_open_wrapper(Z_STRVAL_P(to_zval), "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_WIN, NULL);
130 if (stream == NULL) {
134 php_error_docref(NULL, E_WARNING, "Invalid 2nd parameter, it must a filename or a stream");
[all...]
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c39 php_stream *stream; member in struct:php_zip_stream_data_t
43 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
47 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count) argument
58 stream->eof = 1;
59 php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf));
63 stream->eof = 1;
64 php_error_docref(NULL, E_WARNING, "Zip stream error: %s", zip_error_strerror(err));
72 stream->eof = 1;
82 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count) argument
84 if (!stream) {
93 php_zip_ops_close(php_stream *stream, int close_handle) argument
114 php_zip_ops_flush(php_stream *stream) argument
124 php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) argument
217 php_stream *stream = NULL; local
279 php_stream *stream = NULL; local
[all...]

Completed in 90 milliseconds

1234