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
23 ZEND_FUNCTION(sem_get);
24 ZEND_FUNCTION(sem_acquire);
25 ZEND_FUNCTION(sem_release);
26 ZEND_FUNCTION(sem_remove);
27
28
29 static const zend_function_entry ext_functions[] = {
30 ZEND_FE(sem_get, arginfo_sem_get)
31 ZEND_FE(sem_acquire, arginfo_sem_acquire)
32 ZEND_FE(sem_release, arginfo_sem_release)
33 ZEND_FE(sem_remove, arginfo_sem_remove)
34 ZEND_FE_END
35 };
36
37
38 static const zend_function_entry class_SysvSemaphore_methods[] = {
39 ZEND_FE_END
40 };
41
register_class_SysvSemaphore(void)42 static zend_class_entry *register_class_SysvSemaphore(void)
43 {
44 zend_class_entry ce, *class_entry;
45
46 INIT_CLASS_ENTRY(ce, "SysvSemaphore", class_SysvSemaphore_methods);
47 class_entry = zend_register_internal_class_ex(&ce, NULL);
48 class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE;
49
50 return class_entry;
51 }
52