Back to index

php5  5.3.10
php_sysvmsg.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-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   | Author: Wez Furlong <wez@thebrainroom.com>                           |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_sysvmsg.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_SYSVMSG_H
00022 #define PHP_SYSVMSG_H
00023 
00024 #if HAVE_SYSVMSG
00025 
00026 extern zend_module_entry sysvmsg_module_entry;
00027 #define phpext_sysvmsg_ptr &sysvmsg_module_entry
00028 
00029 #ifndef __USE_GNU
00030 /* we want to use mtype instead of __mtype */
00031 #define __USE_GNU
00032 #endif
00033 
00034 #include <sys/types.h>
00035 #include <sys/ipc.h>
00036 #include <sys/msg.h>
00037 
00038 #ifdef ZTS
00039 #include "TSRM.h"
00040 #endif
00041 
00042 PHP_MINIT_FUNCTION(sysvmsg);
00043 PHP_MINFO_FUNCTION(sysvmsg);
00044 
00045 PHP_FUNCTION(msg_get_queue);
00046 PHP_FUNCTION(msg_remove_queue);
00047 PHP_FUNCTION(msg_stat_queue);
00048 PHP_FUNCTION(msg_set_queue);
00049 PHP_FUNCTION(msg_send);
00050 PHP_FUNCTION(msg_receive);
00051 PHP_FUNCTION(msg_queue_exists);
00052 
00053 typedef struct {
00054        key_t key;
00055        long id;
00056 } sysvmsg_queue_t;
00057 
00058 struct php_msgbuf {
00059        long mtype;
00060        char mtext[1];
00061 };
00062 
00063 #endif /* HAVE_SYSVMSG */
00064 
00065 #endif /* PHP_SYSVMSG_H */
00066 
00067 
00068 /*
00069  * Local variables:
00070  * tab-width: 4
00071  * c-basic-offset: 4
00072  * indent-tabs-mode: t
00073  * End:
00074  */