Lines Matching refs:shm_id

134 	zend_long shm_key, shm_id, shm_size, shm_flag = 0666;  in PHP_FUNCTION()  local
151 if ((shm_id = shmget(shm_key, 0, 0)) < 0) { in PHP_FUNCTION()
156 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) { in PHP_FUNCTION()
162 if ((shm_ptr = shmat(shm_id, NULL, 0)) == (void *) -1) { in PHP_FUNCTION()
182 shm_list_ptr->id = shm_id; in PHP_FUNCTION()
190 zval *shm_id; in PHP_FUNCTION() local
193 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "O", &shm_id, sysvshm_ce)) { in PHP_FUNCTION()
197 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
213 zval *shm_id; in PHP_FUNCTION() local
216 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "O", &shm_id, sysvshm_ce)) { in PHP_FUNCTION()
220 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
227 …led for key 0x%x, id " ZEND_LONG_FMT ": %s", shm_list_ptr->key, Z_LVAL_P(shm_id), strerror(errno)); in PHP_FUNCTION()
238 zval *shm_id, *arg_var; in PHP_FUNCTION() local
245 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Olz", &shm_id, sysvshm_ce, &shm_key, &arg_v… in PHP_FUNCTION()
249 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
283 zval *shm_id; in PHP_FUNCTION() local
291 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
295 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
324 zval *shm_id; in PHP_FUNCTION() local
328 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
332 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
345 zval *shm_id; in PHP_FUNCTION() local
349 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &shm_id, sysvshm_ce, &shm_key)) { in PHP_FUNCTION()
353 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()