1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 946ea9d0d2156ced1bac460d7d5fc3420e1934bb */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_sem_get, 0, 1, SysvSemaphore, MAY_BE_FALSE)
5 ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
6 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, max_acquire, IS_LONG, 0, "1")
7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permissions, IS_LONG, 0, "0666")
8 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auto_release, _IS_BOOL, 0, "true")
9 ZEND_END_ARG_INFO()
10
11 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_acquire, 0, 1, _IS_BOOL, 0)
12 ZEND_ARG_OBJ_INFO(0, semaphore, SysvSemaphore, 0)
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, non_blocking, _IS_BOOL, 0, "false")
14 ZEND_END_ARG_INFO()
15
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_release, 0, 1, _IS_BOOL, 0)
17 ZEND_ARG_OBJ_INFO(0, semaphore, SysvSemaphore, 0)
18 ZEND_END_ARG_INFO()
19
20 #define arginfo_sem_remove arginfo_sem_release
21
22 ZEND_FUNCTION(sem_get);
23 ZEND_FUNCTION(sem_acquire);
24 ZEND_FUNCTION(sem_release);
25 ZEND_FUNCTION(sem_remove);
26
27 static const zend_function_entry ext_functions[] = {
28 ZEND_FE(sem_get, arginfo_sem_get)
29 ZEND_FE(sem_acquire, arginfo_sem_acquire)
30 ZEND_FE(sem_release, arginfo_sem_release)
31 ZEND_FE(sem_remove, arginfo_sem_remove)
32 ZEND_FE_END
33 };
34
register_class_SysvSemaphore(void)35 static zend_class_entry *register_class_SysvSemaphore(void)
36 {
37 zend_class_entry ce, *class_entry;
38
39 INIT_CLASS_ENTRY(ce, "SysvSemaphore", NULL);
40 class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE);
41
42 return class_entry;
43 }
44