Lines Matching refs:shared
7 * hugeshmdt01 - check that largr shared memory is detached correctly
10 * create a large shared memory resource
17 * attempt to write a value to the large shared memory address
38 static int *shared;
52 if (shmdt(shared) == -1)
57 /* reattach the shared memory segment in case we are looping */
58 shared = shmat(shm_id_1, 0, 0);
59 if (shared == (void *)-1)
68 /* stat the shared memory segment */
78 * Try writing to the shared memory. This should generate a
92 *shared = 2;
95 tst_res(TPASS, "huge shared memory detached correctly");
97 tst_res(TFAIL, "huge shared memory was not detached "
126 /* create a shared memory resource with read and write permissions */
132 /* attach the shared memory segment */
133 shared = shmat(shm_id_1, 0, 0);
134 if (shared == (void *)-1)
137 /* give a value to the shared memory integer */
138 *shared = 4;