Searched refs:shm_id (Results 1 – 4 of 4) sorted by relevance
/PHP-5.6/ext/shmop/tests/ |
H A D | 001.phpt | 16 $shm_id = shmop_open($hex_shm_id, "n", 0644, 1024); 17 if (!$shm_id) { 26 $written = shmop_write($shm_id, $write_d1, 0); 35 shmop_close($shm_id); 38 $shm_id = shmop_open($hex_shm_id, "a", 0644, 1024); 39 if (!$shm_id) { 48 @shmop_write($shm_id, $write_d1, $written); 51 shmop_close($shm_id); 55 if (!$shm_id) { 72 if (!shmop_delete($shm_id)) { [all …]
|
/PHP-5.6/ext/sysvshm/ |
H A D | sysvshm.c | 197 shm_list_ptr->id = shm_id; in PHP_FUNCTION() 208 zval *shm_id; in PHP_FUNCTION() local 214 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION() 223 zval *shm_id; in PHP_FUNCTION() local 229 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION() 244 zval *shm_id, *arg_var; in PHP_FUNCTION() local 284 zval *shm_id; in PHP_FUNCTION() local 295 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION() 321 zval *shm_id; in PHP_FUNCTION() local 328 SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/sysvsem/tests/ |
H A D | sysv.phpt | 32 $shm_id = shm_attach($SHMKEY, $MEMSIZE); 33 if ($shm_id === FALSE) { 38 echo "Success to attach shared memory : $shm_id.\n"; 41 if (!shm_put_var($shm_id, 1, "Variable 1")) { 42 echo "Fail to put var 1 on shared memory $shm_id.\n"; 44 shm_remove ($shm_id); 50 if (!shm_put_var($shm_id, 2, "Variable 2")) { 53 shm_remove ($shm_id); 59 $var1 = shm_get_var ($shm_id, 1); 67 $var2 = shm_get_var ($shm_id, 2); [all …]
|
/PHP-5.6/ext/opcache/ |
H A D | shared_alloc_shm.c | 51 int shm_id; member 104 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments() 106 shared_segments[i].shm_id = first_segment_id; in create_segments() 109 if (shared_segments[i].shm_id == -1) { in create_segments() 113 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments() 116 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments() 119 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
|
Completed in 8 milliseconds