Home
last modified time | relevance | path

Searched refs:shm_id (Results 1 – 5 of 5) sorted by relevance

/PHP-8.1/ext/shmop/tests/
H A D001.phpt12 $shm_id = shmop_open($hex_shm_id, "n", 0644, 1024);
13 if (!$shm_id) {
19 echo "shm size is: " . ($shm_size = shmop_size($shm_id)) . "\n";
22 $written = shmop_write($shm_id, $write_d1, 0);
32 $shm_id = shmop_open($hex_shm_id, "a", 0644, 1024);
33 if (!$shm_id) {
43 shmop_write($shm_id, $write_d1, $written);
49 $shm_id = shmop_open($hex_shm_id, "w", 0644, 1024);
50 if (!$shm_id) {
57 $written = shmop_write($shm_id, $write_d2, $written);
[all …]
H A D002.phpt44 $shm_id = shmop_open(1338, 'n', 0600, 1024);
46 shmop_read($shm_id, -10, 0);
50 shmop_delete($shm_id);
53 $shm_id = shmop_open(1339, 'n', 0600, 1024);
55 shmop_read($shm_id, 0, -10);
59 shmop_delete($shm_id);
63 $shm_id = shmop_open(1340, 'n', 0600, 1024);
65 shmop_write($shm_id, 'text to try write', -10);
69 shmop_delete($shm_id);
/PHP-8.1/ext/sysvshm/
H A Dsysvshm.c182 shm_list_ptr->id = shm_id; in PHP_FUNCTION()
190 zval *shm_id; in PHP_FUNCTION() local
197 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
213 zval *shm_id; in PHP_FUNCTION() local
220 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
238 zval *shm_id, *arg_var; in PHP_FUNCTION() local
249 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
277 zval *shm_id; in PHP_FUNCTION() local
289 shm_list_ptr = Z_SYSVSHM_P(shm_id); in PHP_FUNCTION()
318 zval *shm_id; in PHP_FUNCTION() local
[all …]
/PHP-8.1/ext/opcache/
H A Dshared_alloc_shm.c50 int shm_id; member
103 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments()
105 shared_segments[i].shm_id = first_segment_id; in create_segments()
108 if (shared_segments[i].shm_id == -1) { in create_segments()
112 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments()
115 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
118 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments()
/PHP-8.1/ext/sysvsem/tests/
H A Dsysv.phpt29 $shm_id = shm_attach($SHMKEY, $MEMSIZE);
30 if ($shm_id === FALSE) {
38 if (!shm_put_var($shm_id, 1, "Variable 1")) {
39 echo "Fail to put var 1 on shared memory $shm_id.\n";
41 shm_remove ($shm_id);
47 if (!shm_put_var($shm_id, 2, "Variable 2")) {
50 shm_remove ($shm_id);
56 $var1 = shm_get_var ($shm_id, 1);
64 $var2 = shm_get_var ($shm_id, 2);
78 if (shm_remove ($shm_id)) {

Completed in 11 milliseconds