Lines Matching refs:shm_list_ptr
136 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
184 shm_list_ptr = Z_SYSVSHM_P(return_value); in PHP_FUNCTION()
186 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
187 shm_list_ptr->id = shm_id; in PHP_FUNCTION()
188 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
196 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
202 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
203 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
208 shmdt((void *) shm_list_ptr->ptr); in PHP_FUNCTION()
209 shm_list_ptr->ptr = NULL; in PHP_FUNCTION()
219 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
225 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
226 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
231 if (shmctl(shm_list_ptr->id, IPC_RMID, NULL) < 0) { in PHP_FUNCTION()
232 …php_error_docref(NULL, E_WARNING, "Failed for key 0x%x, id " ZEND_LONG_FMT ": %s", shm_list_ptr->k… in PHP_FUNCTION()
246 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
254 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
255 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
266 …ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.s? ZSTR_VAL(shm_var.s) : NULL, shm_var.… in PHP_FUNCTION()
284 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
294 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
295 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
302 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
308 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
325 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
331 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
332 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
337 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
346 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
352 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
353 if (!shm_list_ptr->ptr) { in PHP_FUNCTION()
358 shm_varpos = php_check_shm_data(shm_list_ptr->ptr, shm_key); in PHP_FUNCTION()
364 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()