Created extension skeleton. Added functions to open, close and unlink named semaphore
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef POSIX_SEMAPHORES_H
|
||||
#define POSIX_SEMAPHORES_H 1
|
||||
|
||||
#define PHP_POSIX_SEMAPHORES_VERSION "1.0"
|
||||
#define PHP_POSIX_SEMAPHORES_EXTNAME "posix_semaphores"
|
||||
|
||||
PHP_MINIT_FUNCTION(posix_semaphores);
|
||||
PHP_MSHUTDOWN_FUNCTION(posix_semaphores);
|
||||
|
||||
PHP_FUNCTION(posix_sem_open);
|
||||
PHP_FUNCTION(posix_sem_close);
|
||||
PHP_FUNCTION(posix_sem_unlink);
|
||||
|
||||
extern zend_module_entry posix_semaphores_module_entry;
|
||||
#define phpext_posix_semaphores_ptr &posix_semaphores_module_entry;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user