Lines Matching refs:shm_id
153 long shm_key, shm_id, shm_size = php_sysvshm.init_mem, shm_flag = 0666; in PHP_FUNCTION() local
167 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
173 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
180 if ((shm_ptr = shmat(shm_id, NULL, 0)) == (void *) -1) { in PHP_FUNCTION()
197 shm_list_ptr->id = shm_id; in PHP_FUNCTION()
208 zval *shm_id; in PHP_FUNCTION() local
211 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &shm_id)) { in PHP_FUNCTION()
214 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
215 RETURN_BOOL(SUCCESS == zend_list_delete(Z_LVAL_P(shm_id))); in PHP_FUNCTION()
223 zval *shm_id; in PHP_FUNCTION() local
226 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &shm_id)) { in PHP_FUNCTION()
229 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
232 …_WARNING, "failed for key 0x%x, id %ld: %s", shm_list_ptr->key, Z_LVAL_P(shm_id), strerror(errno)); in PHP_FUNCTION()
244 zval *shm_id, *arg_var; 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()
260 …shm_list_ptr = zend_fetch_resource(&shm_id TSRMLS_CC, -1, PHP_SHM_RSRC_NAME, NULL, 1, php_sysvshm.… in PHP_FUNCTION()
284 zval *shm_id; in PHP_FUNCTION() local
292 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
295 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
321 zval *shm_id; in PHP_FUNCTION() local
325 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
328 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()
337 zval *shm_id; in PHP_FUNCTION() local
341 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &shm_id, &shm_key)) { in PHP_FUNCTION()
344 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION()