From 3fb0ec063551582bfb056463598c16b6fb7f70a2 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Thu, 16 Nov 2023 09:36:20 +0000 Subject: [PATCH] Add POSIX_SC_CHILD_MAX and POSIX_SC_CLK_TCK constants --- ext/posix/posix.stub.php | 14 ++++++++++++++ ext/posix/posix_arginfo.h | 8 +++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ext/posix/posix.stub.php b/ext/posix/posix.stub.php index 4e5adc2eef92b..904635f67f32c 100644 --- a/ext/posix/posix.stub.php +++ b/ext/posix/posix.stub.php @@ -198,6 +198,20 @@ */ const POSIX_SC_ARG_MAX = UNKNOWN; #endif +#ifdef _SC_CHILD_MAX +/** + * @var int + * @cvalue _SC_CHILD_MAX + */ +const POSIX_SC_CHILD_MAX = UNKNOWN; +#endif +#ifdef _SC_CLK_TCK +/** + * @var int + * @cvalue _SC_CLK_TCK + */ +const POSIX_SC_CLK_TCK = UNKNOWN; +#endif #ifdef _SC_PAGESIZE /** * @var int diff --git a/ext/posix/posix_arginfo.h b/ext/posix/posix_arginfo.h index 2953e93fcdd4d..717de3a844f23 100644 --- a/ext/posix/posix_arginfo.h +++ b/ext/posix/posix_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 5a4a863892761475f2d34d9463e0660b0a8ede5d */ + * Stub hash: bf0c3b394a47374357d6ac95b4c401fbcf7bc697 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_kill, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0) @@ -418,6 +418,12 @@ static void register_posix_symbols(int module_number) #if defined(_SC_ARG_MAX) REGISTER_LONG_CONSTANT("POSIX_SC_ARG_MAX", _SC_ARG_MAX, CONST_PERSISTENT); #endif +#if defined(_SC_CHILD_MAX) + REGISTER_LONG_CONSTANT("POSIX_SC_CHILD_MAX", _SC_CHILD_MAX, CONST_PERSISTENT); +#endif +#if defined(_SC_CLK_TCK) + REGISTER_LONG_CONSTANT("POSIX_SC_CLK_TCK", _SC_CLK_TCK, CONST_PERSISTENT); +#endif #if defined(_SC_PAGESIZE) REGISTER_LONG_CONSTANT("POSIX_SC_PAGESIZE", _SC_PAGESIZE, CONST_PERSISTENT); #endif