2020-06-19 09:40:31 +00:00
|
|
|
/* This is a generated file, edit the .stub.php file instead.
|
2021-02-15 09:00:46 +00:00
|
|
|
* Stub hash: dd7be82f586ef5f9221268ae90e959e8cccdcacf */
|
2019-08-11 17:52:30 +00:00
|
|
|
|
2020-05-07 08:21:44 +00:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_sem_get, 0, 1, SysvSemaphore, MAY_BE_FALSE)
|
2019-08-11 17:52:30 +00:00
|
|
|
ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
|
2020-04-06 09:02:13 +00:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, max_acquire, IS_LONG, 0, "1")
|
2020-10-01 08:00:43 +00:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permissions, IS_LONG, 0, "0666")
|
2020-09-16 19:38:30 +00:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auto_release, _IS_BOOL, 0, "true")
|
2019-08-11 17:52:30 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_acquire, 0, 1, _IS_BOOL, 0)
|
2020-05-07 08:21:44 +00:00
|
|
|
ZEND_ARG_OBJ_INFO(0, semaphore, SysvSemaphore, 0)
|
2020-10-01 08:00:43 +00:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, non_blocking, _IS_BOOL, 0, "false")
|
2019-08-11 17:52:30 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_release, 0, 1, _IS_BOOL, 0)
|
2020-05-07 08:21:44 +00:00
|
|
|
ZEND_ARG_OBJ_INFO(0, semaphore, SysvSemaphore, 0)
|
2019-08-11 17:52:30 +00:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_sem_remove arginfo_sem_release
|
2020-04-05 19:15:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
ZEND_FUNCTION(sem_get);
|
|
|
|
ZEND_FUNCTION(sem_acquire);
|
|
|
|
ZEND_FUNCTION(sem_release);
|
|
|
|
ZEND_FUNCTION(sem_remove);
|
|
|
|
|
|
|
|
|
|
|
|
static const zend_function_entry ext_functions[] = {
|
|
|
|
ZEND_FE(sem_get, arginfo_sem_get)
|
|
|
|
ZEND_FE(sem_acquire, arginfo_sem_acquire)
|
|
|
|
ZEND_FE(sem_release, arginfo_sem_release)
|
|
|
|
ZEND_FE(sem_remove, arginfo_sem_remove)
|
|
|
|
ZEND_FE_END
|
|
|
|
};
|
2020-05-01 12:00:19 +00:00
|
|
|
|
|
|
|
|
2020-05-07 08:21:44 +00:00
|
|
|
static const zend_function_entry class_SysvSemaphore_methods[] = {
|
2020-05-01 12:00:19 +00:00
|
|
|
ZEND_FE_END
|
|
|
|
};
|
2021-02-15 09:00:46 +00:00
|
|
|
|
2021-02-15 21:14:36 +00:00
|
|
|
static zend_class_entry *register_class_SysvSemaphore(void)
|
2021-02-15 09:00:46 +00:00
|
|
|
{
|
|
|
|
zend_class_entry ce, *class_entry;
|
|
|
|
|
|
|
|
INIT_CLASS_ENTRY(ce, "SysvSemaphore", class_SysvSemaphore_methods);
|
|
|
|
class_entry = zend_register_internal_class_ex(&ce, NULL);
|
|
|
|
class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
|
|
|
|
|
|
return class_entry;
|
|
|
|
}
|