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
+7
View File
@@ -0,0 +1,7 @@
PHP_ARG_ENABLE(posix_semaphores, whether to enable POSIX semaphores support,
[ --enable-posix-semaphores Enable POSIX semaphores support])
if test "$PHP_POSIX_SEMAPHORES" = "yes"; then
AC_DEFINE(HAVE_POSIX_SEMAPHORES, 1, [Whether you have POSIX semaphores])
PHP_NEW_EXTENSION(posix_semaphores, posix_semaphores.c, $ext_shared)
fi