Searched refs:shm_size (Results 1 – 5 of 5) sorted by relevance
/PHP-8.0/ext/sysvshm/ |
H A D | sysvshm.c | 139 zend_long shm_key, shm_id, shm_size, shm_flag = 0666; in PHP_FUNCTION() local 142 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &shm_key, &shm_size, &shm_size_is_n… in PHP_FUNCTION() 147 shm_size = php_sysvshm.init_mem; in PHP_FUNCTION() 150 if (shm_size < 1) { in PHP_FUNCTION() 157 if (shm_size < (zend_long)sizeof(sysvshm_chunk_head)) { in PHP_FUNCTION() 161 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION() 178 chunk_ptr->total = shm_size; in PHP_FUNCTION() 179 chunk_ptr->free = shm_size-chunk_ptr->end; in PHP_FUNCTION()
|
/PHP-8.0/TSRM/ |
H A D | tsrm_win32.c | 48 globals->shm_size = 0; in tsrm_win32_ctor() 71 for (ptr = globals->shm; ptr < (globals->shm + globals->shm_size); ptr++) { in tsrm_win32_dtor() 404 for (ptr = TWG(shm); ptr < (TWG(shm) + TWG(shm_size)); ptr++) { in shm_get() 415 if (ptr < (TWG(shm) + TWG(shm_size))) { in shm_get() 419 newptr = (shm_pair*)realloc((void*)TWG(shm), (TWG(shm_size)+1)*sizeof(shm_pair)); in shm_get() 425 ptr = newptr + TWG(shm_size); in shm_get() 426 TWG(shm_size)++; in shm_get()
|
H A D | tsrm_win32.h | 62 int shm_size; member
|
/PHP-8.0/ext/shmop/tests/ |
H A D | 001.phpt | 23 echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n";
|
/PHP-8.0/ext/opcache/ |
H A D | ZendAccelerator.c | 2975 size_t shm_size = ZCG(accel_directives).memory_consumption; local 2997 shm_size += jit_size; 3000 switch (zend_shared_alloc_startup(shm_size, jit_size)) { 3002 switch (zend_shared_alloc_startup(shm_size, 0)) {
|
Completed in 24 milliseconds