Back to index

php5  5.3.10
dirstream.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | phar php single-file executable PHP extension                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 2006-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt.                                 |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Authors: Gregory Beaver <cellog@php.net>                             |
00016   |          Marcus Boerger <helly@php.net>                              |
00017   +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: dirstream.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 BEGIN_EXTERN_C()
00023 int phar_wrapper_mkdir(php_stream_wrapper *wrapper, char *url_from, int mode, int options, php_stream_context *context TSRMLS_DC);
00024 int phar_wrapper_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC);
00025 
00026 #ifdef PHAR_DIRSTREAM
00027 php_url* phar_parse_url(php_stream_wrapper *wrapper, char *filename, char *mode, int options TSRMLS_DC);
00028 
00029 /* directory handlers */
00030 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
00031 static size_t phar_dir_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
00032 static int    phar_dir_close(php_stream *stream, int close_handle TSRMLS_DC);
00033 static int    phar_dir_flush(php_stream *stream TSRMLS_DC);
00034 static int    phar_dir_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
00035 #else
00036 php_stream* phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
00037 #endif
00038 END_EXTERN_C()
00039 
00040 /*
00041  * Local variables:
00042  * tab-width: 4
00043  * c-basic-offset: 4
00044  * End:
00045  * vim600: noet sw=4 ts=4 fdm=marker
00046  * vim<600: noet sw=4 ts=4
00047  */