diff options
| author | Sterling Hughes <sterling@php.net> | 2001-11-06 12:24:09 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2001-11-06 12:24:09 +0000 |
| commit | ef537403e682950acfff8fce19fbad8ce4176bab (patch) | |
| tree | 2a41b0b13f4a387b80e79ecb87e3936bb0fbfe83 /ext/dio/php_dio.h | |
| parent | afa2c22e9c5ead3edc9cb4c58b3ba10c53029046 (diff) | |
| download | php-git-ef537403e682950acfff8fce19fbad8ce4176bab.tar.gz | |
@ Add Direct I/O extension for lowlevel access to the POSIX layer. (sterling)
Diffstat (limited to 'ext/dio/php_dio.h')
| -rw-r--r-- | ext/dio/php_dio.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/ext/dio/php_dio.h b/ext/dio/php_dio.h new file mode 100644 index 0000000000..65d9c6672e --- /dev/null +++ b/ext/dio/php_dio.h @@ -0,0 +1,63 @@ +/* + +----------------------------------------------------------------------+ + | PHP version 4.0 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.02 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.php.net/license/2_02.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Sterling Hughes <sterling@php.net> | | + +----------------------------------------------------------------------+ + */ + +#ifndef PHP_DIO_H +#define PHP_DIO_H + +extern zend_module_entry dio_module_entry; +#define phpext_dio_ptr &dio_module_entry + +#ifdef PHP_WIN32 +#define PHP_DIO_API __declspec(dllexport) +#else +#define PHP_DIO_API +#endif + +#ifdef ZTS +#include "TSRM.h" +#endif + +PHP_MINIT_FUNCTION(dio); +PHP_MSHUTDOWN_FUNCTION(dio); +PHP_RINIT_FUNCTION(dio); +PHP_RSHUTDOWN_FUNCTION(dio); +PHP_MINFO_FUNCTION(dio); + +PHP_FUNCTION(dio_open); +PHP_FUNCTION(dio_truncate); +PHP_FUNCTION(dio_stat); +PHP_FUNCTION(dio_seek); +PHP_FUNCTION(dio_read); +PHP_FUNCTION(dio_write); +PHP_FUNCTION(dio_fcntl); +PHP_FUNCTION(dio_close); + +typedef struct { + int fd; +} php_fd_t; + +#endif + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * indent-tabs-mode: t + * End: + */ |
