Created extension skeleton. Added functions to open, close and unlink named semaphore

This commit is contained in:
ftc
2019-07-31 00:10:25 +03:00
parent 0533d4debe
commit a86d053f73
3 changed files with 161 additions and 0 deletions
+17
View File
@@ -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