Lines Matching refs:shm_list_ptr
154 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
168 shm_list_ptr = (sysvshm_shm *) emalloc(sizeof(sysvshm_shm)); in PHP_FUNCTION()
174 efree(shm_list_ptr); in PHP_FUNCTION()
179 efree(shm_list_ptr); in PHP_FUNCTION()
186 efree(shm_list_ptr); in PHP_FUNCTION()
200 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
201 shm_list_ptr->id = shm_id; in PHP_FUNCTION()
202 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION()
204 RETURN_RES(zend_register_resource(shm_list_ptr, php_sysvshm.le_shm)); in PHP_FUNCTION()
213 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
218 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
228 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
233 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
235 if (shmctl(shm_list_ptr->id, IPC_RMID, NULL) < 0) { in PHP_FUNCTION()
236 …php_error_docref(NULL, E_WARNING, "failed for key 0x%x, id " ZEND_LONG_FMT ": %s", shm_list_ptr->k… in PHP_FUNCTION()
251 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
264 shm_list_ptr = zend_fetch_resource(Z_RES_P(shm_id), PHP_SHM_RSRC_NAME, php_sysvshm.le_shm); in PHP_FUNCTION()
265 if (!shm_list_ptr) { in PHP_FUNCTION()
271 …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()
290 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
299 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
303 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
309 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos); in PHP_FUNCTION()
327 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
332 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
333 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
343 sysvshm_shm *shm_list_ptr; in PHP_FUNCTION() local
348 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
350 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
356 php_remove_shm_data((shm_list_ptr->ptr), shm_varpos); in PHP_FUNCTION()