Lines Matching defs:shared
10 * create a large shared memory resouce with read/write permissions
32 #define CASE0 10 /* values to write into the shared */
86 int *shared;
89 shared = (int *)addr;
91 /* stat the shared memory ID */
112 * "writing" a value to the shared memory space.
116 *shared = CASE0;
121 * a value to the shared memory space and then checking
125 *shared = CASE1;
128 tst_res(TFAIL, "shared memory address is not "
135 * This time the shared memory is read only. Read the value
137 * because shared memory is persistent.
139 if (*shared != CASE1) {
140 tst_res(TFAIL, "shared memory value isn't correct");