Lines Matching refs:shm_key
153 long shm_key, shm_id, shm_size = php_sysvshm.init_mem, shm_flag = 0666; in PHP_FUNCTION() local
155 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|ll", &shm_key, &shm_size, &shm_… in PHP_FUNCTION()
167 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
169 …php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: memorysize too small", shm_key); in PHP_FUNCTION()
173 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
174 … php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", shm_key, strerror(errno)); in PHP_FUNCTION()
181 php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed for key 0x%lx: %s", shm_key, strerror(errno)); in PHP_FUNCTION()
196 shm_list_ptr->key = shm_key; in PHP_FUNCTION()
246 long shm_key; in PHP_FUNCTION() local
251 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlz", &shm_id, &shm_key, &arg_var… in PHP_FUNCTION()
267 ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.c, shm_var.len); in PHP_FUNCTION()
285 long shm_key; in PHP_FUNCTION() local
292 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
299 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
302 php_error_docref(NULL TSRMLS_CC, E_WARNING, "variable key %ld doesn't exist", shm_key); in PHP_FUNCTION()
322 long shm_key; in PHP_FUNCTION() local
325 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
329 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_key) >= 0); in PHP_FUNCTION()
338 long shm_key, shm_varpos; in PHP_FUNCTION() local
341 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
346 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key); in PHP_FUNCTION()
349 php_error_docref(NULL TSRMLS_CC, E_WARNING, "variable key %ld doesn't exist", shm_key); in PHP_FUNCTION()