Searched refs:shm_id (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_shm.c51 int shm_id; member in struct:__anon148
104 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags);
106 shared_segments[i].shm_id = first_segment_id;
109 if (shared_segments[i].shm_id == -1) {
113 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0);
116 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds);
119 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds);
/PHP_TRUNK/ext/sysvshm/
H A Dsysvshm.c153 zend_long shm_key, shm_id, shm_size = php_sysvshm.init_mem, shm_flag = 0666; local
167 if ((shm_id = shmget(shm_key, 0, 0)) < 0) {
173 if ((shm_id = shmget(shm_key, shm_size, shm_flag | IPC_CREAT | IPC_EXCL)) < 0) {
180 if ((shm_ptr = shmat(shm_id, NULL, 0)) == (void *) -1) {
197 shm_list_ptr->id = shm_id;
208 zval *shm_id; local
211 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &shm_id)) {
214 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id);
215 RETURN_BOOL(SUCCESS == zend_list_close(Z_RES_P(shm_id)));
223 zval *shm_id; local
244 zval *shm_id, *arg_var; local
284 zval *shm_id; local
321 zval *shm_id; local
337 zval *shm_id; local
[all...]

Completed in 2 milliseconds