Lines Matching refs:shm_varpos
95 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos);
286 zend_long shm_varpos; in PHP_FUNCTION() local
302 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
304 if (shm_varpos < 0) { in PHP_FUNCTION()
308 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
345 zend_long shm_key, shm_varpos; in PHP_FUNCTION() local
358 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
360 if (shm_varpos < 0) { in PHP_FUNCTION()
364 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()
375 zend_long shm_varpos; in php_put_shm_data() local
379 if ((shm_varpos = php_check_shm_data(ptr, key)) > 0) { in php_put_shm_data()
380 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data()
427 static int php_remove_shm_data(sysvshm_chunk_head *ptr, zend_long shm_varpos) in php_remove_shm_data() argument
434 chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos); in php_remove_shm_data()
435 next_chunk_ptr = (sysvshm_chunk *) ((char *) ptr + shm_varpos + chunk_ptr->next); in php_remove_shm_data()
437 memcpy_len = ptr->end-shm_varpos - chunk_ptr->next; in php_remove_shm_data()